/* Preview only: size options A/B/C for Sign in and Start. Never ship on live. */
/* A is the current arch (no overrides). B is a larger arch. C is full-bleed. */

/* -------- B: larger arch, ~1.5× on phones, proportional on desktop -------- */
html[data-size=b] .au .arch{
  width:198px;
  height:246px;
  border-radius:99px 99px 15px 15px;
}
html[data-size=b] .au .art{margin-top:6px}
@media (max-height:700px){
  /* 1.5× still fits on 375×667; only trim a little form padding so Continue stays clear of the fold */
  html[data-size=b] .au .au-f{padding-bottom:24px}
}
@media (min-width:1000px){
  html[data-size=b] body.auth .au{
    grid-template-columns:minmax(420px,min(630px,calc(100vw - 520px))) 420px;
    column-gap:80px;
  }
  html[data-size=b] .au .arch{
    width:min(630px,calc(100vw - 520px));
    height:min(960px,calc(100svh - 132px));
    border-radius:50% 50% 21px 21px;
  }
}

/* -------- C: full-bleed painting, hero scrim, form column, no card -------- */
html[data-size=c],
html[data-size=c] body{
  background:var(--bg);
}
html[data-size=c] .hdr{
  background:transparent;
  position:sticky;
  z-index:20;
}
html[data-size=c] .hdr::after{display:none}

html[data-size=c] .au .art{
  position:fixed;
  inset:0;
  margin:0;
  z-index:0;
  display:block;
  pointer-events:none;
}
html[data-size=c] .au .arch{
  width:100%;
  height:100%;
  border-radius:0;
  overflow:hidden;
  background:var(--bg);
  transform:none;
  opacity:1;
}
html[data-size=c].js .au .arch{transform:none;opacity:1}
html[data-size=c] .au .mv{
  position:absolute;
  inset:0;
  height:100%;
  transform-origin:50% 40%;
}
html[data-size=c].js .au .mv{transform:scale(1.06)}
html[data-size=c].rdy .au .mv{transform:none}
html[data-size=c].rdy body[data-step]:not([data-step=email]) .mv,
html[data-size=c] body[data-step]:not([data-step=email]) .au .mv,
html[data-size=c].rdy body[data-mode=start] .au .mv,
html[data-size=c].rdy body[data-mode=start][data-step]:not([data-step=email]) .au .mv,
html[data-size=c] body[data-mode=start] .au .mv,
html[data-size=c] body[data-mode=start][data-step]:not([data-step=email]) .au .mv,
html[data-size=c].js body[data-mode=start] .au .mv{
  transform-origin:50% 40%;
}
html[data-size=c].rdy body[data-step]:not([data-step=email]) .au .mv,
html[data-size=c].rdy body[data-mode=start][data-step]:not([data-step=email]) .au .mv{
  transform:scale(1.08);
}
html[data-size=c] .arch-pic{display:none}
html[data-size=c] .bleed-pic{display:block;width:100%;height:100%}
html[data-size=c] .bleed-pic img{
  width:100%;height:100%;object-fit:cover;object-position:50% 42%;
}
html[data-size=c] body[data-mode=start] .bleed-pic img{object-position:42% 28%}

/* Hero scrim only — paper/ink fade, no glow, no card */
html[data-size=c] .scrim{
  display:block;
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(
      to bottom,
      rgba(241,237,230,.84) 0,
      rgba(241,237,230,.28) 56px,
      rgba(241,237,230,.16) 20%,
      rgba(241,237,230,.55) 36%,
      rgba(241,237,230,.92) 48%,
      rgba(241,237,230,.97) 58%,
      rgba(241,237,230,.98) 100%
    );
}
html[data-theme=dark][data-size=c] .scrim{
  background:
    linear-gradient(
      to bottom,
      rgba(14,13,12,.86) 0,
      rgba(14,13,12,.32) 56px,
      rgba(14,13,12,.22) 20%,
      rgba(14,13,12,.62) 36%,
      rgba(14,13,12,.92) 48%,
      rgba(14,13,12,.96) 58%,
      rgba(14,13,12,.97) 100%
    );
}
/* Start on phones: denser scrim from the title down so benefit lines meet AA */
html[data-size=c] body[data-mode=start] .scrim{
  background:
    linear-gradient(
      to bottom,
      rgba(241,237,230,.84) 0,
      rgba(241,237,230,.30) 56px,
      rgba(241,237,230,.22) 14%,
      rgba(241,237,230,.88) 22%,
      rgba(241,237,230,.96) 30%,
      rgba(241,237,230,.98) 42%,
      rgba(241,237,230,.98) 100%
    );
}
html[data-theme=dark][data-size=c] body[data-mode=start] .scrim{
  background:
    linear-gradient(
      to bottom,
      rgba(14,13,12,.86) 0,
      rgba(14,13,12,.32) 56px,
      rgba(14,13,12,.22) 14%,
      rgba(14,13,12,.88) 22%,
      rgba(14,13,12,.96) 30%,
      rgba(14,13,12,.97) 42%,
      rgba(14,13,12,.98) 100%
    );
}

html[data-size=c] .au .cap{
  display:none;
}
html[data-size=c] .au .au-f{
  position:relative;
  z-index:1;
  max-width:420px;
  margin:0 auto;
  padding:8px 20px 40px;
  text-align:center;
}
/* Leave a breath of painting at the top so faces sit in the hero, then the form */
html[data-size=c] body[data-mode=signin] .au .au-f{padding-top:clamp(168px, 40svh, 310px)}
html[data-size=c] body[data-mode=start] .au .au-f{padding-top:clamp(72px, 20svh, 160px)}

/* Later Start steps: drop the painting on phones, same as live, so long lists stay usable */
html[data-size=c] body[data-step=name] .au .art,
html[data-size=c] body[data-step=topics] .au .art,
html[data-size=c] body[data-step=echo] .au .art{display:none}
html[data-size=c] body[data-step=name] .au .au-f,
html[data-size=c] body[data-step=topics] .au .au-f,
html[data-size=c] body[data-step=echo] .au .au-f{padding-top:8px}

html[data-size=c] body[data-step=code] .au .pg{
  position:absolute;
  left:0;right:0;top:8px;
  height:44px;margin:0;padding:0 8px;
  pointer-events:none;z-index:2;
}

@media (min-width:1000px){
  html[data-size=c] body.auth .au{
    display:grid;
    grid-template-columns:1fr 420px;
    column-gap:48px;
    justify-content:stretch;
    align-items:center;
    width:100%;
    max-width:none;
    padding:0 56px 0 0;
    min-height:calc(100svh - var(--hh));
  }
  html[data-size=c] .au .art{
    position:fixed;inset:0;margin:0;z-index:0;
  }
  /* Desktop scrim: painting holds the left; form sits in a clean column on the right */
  html[data-size=c] .scrim{
    background:
      linear-gradient(to bottom, rgba(241,237,230,.7) 0, rgba(241,237,230,.12) 64px, rgba(241,237,230,0) 120px),
      linear-gradient(to right, rgba(241,237,230,0) 0%, rgba(241,237,230,0) 54%, rgba(241,237,230,.4) 64%, rgba(241,237,230,.92) 70%, rgba(241,237,230,.975) 78%, rgba(241,237,230,.98) 100%);
  }
  html[data-theme=dark][data-size=c] .scrim{
    background:
      linear-gradient(to bottom, rgba(14,13,12,.72) 0, rgba(14,13,12,.14) 64px, rgba(14,13,12,0) 120px),
      linear-gradient(to right, rgba(14,13,12,0) 0%, rgba(14,13,12,0) 54%, rgba(14,13,12,.45) 64%, rgba(14,13,12,.92) 70%, rgba(14,13,12,.97) 78%, rgba(14,13,12,.98) 100%);
  }
  html[data-size=c] .bleed-pic img{object-position:50% 48%}
  html[data-size=c] body[data-mode=start] .bleed-pic img{object-position:12% 28%}
  /* Zoom The Letter so her face sits in the open left, clear of the form scrim */
  html[data-size=c] body[data-mode=start] .au .mv,
  html[data-size=c].js body[data-mode=start] .au .mv,
  html[data-size=c].rdy body[data-mode=start] .au .mv,
  html[data-size=c].rdy body[data-mode=start][data-step]:not([data-step=email]) .au .mv{
    transform:scale(1.2);
    transform-origin:16% 30%;
  }
  html[data-size=c] .au .au-f{
    grid-column:2;
    width:420px;
    max-width:none;
    margin:0;
    padding:0 0 48px;
    text-align:left;
    z-index:1;
  }
  html[data-size=c] body[data-mode=signin] .au .au-f,
  html[data-size=c] body[data-mode=start] .au .au-f{padding-top:0}
  html[data-size=c] .au .au-f .ben{justify-content:start}
  html[data-size=c] .au .cap{
    display:block;
    position:fixed;
    left:28px;
    bottom:20px;
    z-index:2;
    margin:0;
    color:var(--fg);
    font-size:12.5px;
    line-height:1.35;
    opacity:.92;
  }
  html[data-size=c] body[data-step=name] .au .art,
  html[data-size=c] body[data-step=topics] .au .art,
  html[data-size=c] body[data-step=echo] .au .art{display:block}
  html[data-size=c] body[data-step=code] .au .pg{
    position:static;height:44px;margin:0 0 18px -12px;padding:0;pointer-events:auto;
  }
  html[data-size=c] body[data-step=code] .au .pg ol{display:grid}
  html[data-size=c] body[data-step=code] .au .pg .n{margin-left:0;padding-right:0}
}

@media (prefers-reduced-motion:reduce){
  html[data-size=c] .au .arch,
  html[data-size=c] .au .mv,
  html[data-size=c].js .au .mv,
  html[data-size=c].rdy .au .mv,
  html[data-size=c].rdy body[data-step]:not([data-step=email]) .au .mv,
  html[data-size=c].rdy body[data-mode=start] .au .mv,
  html[data-size=c].rdy body[data-mode=start][data-step]:not([data-step=email]) .au .mv,
  html[data-size=c].js body[data-mode=start] .au .mv{
    transform:none!important;transition:opacity var(--v-d3);
  }
}

/* Hidden by default; shown only in size C */
.bleed-pic{display:none}
.scrim{display:none}

/* Preview switcher — hidden in screenshots via html[data-shot] */
.size-switch{
  position:fixed;
  right:12px;
  bottom:calc(12px + env(safe-area-inset-bottom,0px));
  z-index:40;
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg);
  font-size:12px;
  line-height:1;
  color:var(--mute);
}
.size-switch b{font-weight:500;padding:0 8px 0 6px;color:var(--faint)}
.size-switch a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:28px;height:28px;padding:0 8px;border-radius:7px;
  color:var(--mute);font-weight:500;
}
.size-switch a[aria-current=true]{background:var(--fg);color:var(--bg)}
html[data-shot] .size-switch{display:none}
