/* Get Asto Pro: goasto.com/pro/start/ (lib/astoapp/pro_start.py). goasto.com's own stage: black, Geist only, one
   accent (Asto teal), big statements, pill buttons; the site's font and brand files are its own (/assets/fonts,
   /brand). One question per screen, a four-part progress rail on top, nothing else competing for the eye. The
   signature: the rail fills in teal as you go, and each screen arrives with a short rise (still for reduced motion). */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --stage: #000;
  --white: #fff;
  --white-2: rgba(255,255,255,.66);
  --white-3: rgba(255,255,255,.48);
  --hairline: rgba(255,255,255,.12);
  --hairline-2: rgba(255,255,255,.2);
  --field: rgba(255,255,255,.045);
  --teal: #4FC3B8;
  --teal-hover: #66CFC5;
  --teal-active: #3DB3A8;
  --teal-tint: rgba(79,195,184,.12);
  --teal-line: rgba(79,195,184,.55);
  --ink: #101B1A;
  --bad: #FF9A8B;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
::selection { background: var(--teal); color: var(--ink); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--stage); color: var(--white); font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; caret-color: var(--teal); overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, p, ol, ul, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1:focus, main:focus { outline: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus-visible { left: 12px; z-index: 10; padding: 10px 14px; background: var(--teal); color: var(--ink); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* ---------- header ---------- */
.top { position: relative; z-index: 2; }
.top-in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; }
.top-link { font-size: 15px; color: var(--white-2); text-decoration: none; white-space: nowrap; }
.top-link span { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: 1px; transition: border-color .2s ease; }
.top-link:hover span { border-color: var(--teal); }

/* ---------- the stage ---------- */
.stage { flex: 1; position: relative; padding: 24px 0 96px; overflow: hidden; }
.stage::before {           /* one soft teal light, low behind the question */
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  width: 1100px; height: 1100px; left: 50%; top: -420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(79,195,184,.11), rgba(79,195,184,0) 70%);
}
.flow { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

/* ---------- progress rail ---------- */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 52px; }
.progress li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.progress .bar { height: 3px; border-radius: 3px; background: var(--hairline); position: relative; overflow: hidden; }
.progress .bar::after { content: ''; position: absolute; inset: 0; background: var(--teal); transform: scaleX(0);
  transform-origin: left; transition: transform .6s var(--ease); }
.progress li.done .bar::after, .progress li.now .bar::after { transform: scaleX(1); }
.progress li.now .bar::after { background: linear-gradient(90deg, var(--teal), var(--teal-hover)); }
.progress .lbl { font-size: 13px; letter-spacing: .01em; color: var(--white-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
.progress li.now .lbl { color: var(--white); }
.progress li.done .lbl { color: var(--white-2); }

/* ---------- a screen ---------- */
.screen { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-no { font-size: 14px; color: var(--teal); letter-spacing: .02em; margin: 0 0 14px; font-weight: 500; }
.screen h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; margin: 0 0 18px; text-wrap: balance; }
.sub { font-size: 18px; color: var(--white-2); max-width: 30em; margin: 0 0 30px; text-wrap: pretty; }
.sub strong, .to { color: var(--white); font-weight: 550; overflow-wrap: anywhere; }
.note { font-size: 15px; color: var(--white); background: var(--teal-tint); border: 1px solid rgba(79,195,184,.3);
  border-radius: 14px; padding: 12px 16px; margin: -10px 0 26px; }
.fine { font-size: 14.5px; color: var(--white-3); margin: 22px 0 0; max-width: 34em; }
.fine a { color: var(--white-2); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.fine a:hover { color: var(--white); border-color: var(--teal); }

/* ---------- fields ---------- */
.field { display: block; }
.field input {
  width: 100%; height: 64px; padding: 0 22px; border-radius: 18px; border: 1px solid var(--hairline-2);
  background: var(--field); color: var(--white); font: 500 20px/1 var(--font); letter-spacing: -.01em;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,.28); }
.field input:hover { border-color: rgba(255,255,255,.3); }
.field input:focus { outline: none; border-color: var(--teal); background: rgba(79,195,184,.06); box-shadow: 0 0 0 4px rgba(79,195,184,.16); }
.field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255,154,139,.12); }
.field input.code { font-size: 32px; letter-spacing: .32em; font-variant-numeric: tabular-nums; text-align: center; padding: 0 0 0 .32em; }
.ferr { color: var(--bad); font-size: 15px; margin: 10px 2px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px;
  margin-top: 16px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--teal); color: var(--ink);
  font: 600 18px/1 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-hover); }
.btn:active { background: var(--teal-active); transform: scale(.99); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.busy { color: transparent; position: relative; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(16,27,26,.25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--hairline-2); }
.btn.ghost:hover { border-color: var(--teal); background: rgba(79,195,184,.06); }
.btn.appstore { background: var(--white); color: #000; }
.btn.appstore:hover { background: #E8EFEE; }
.btn.appstore svg { width: 22px; height: 22px; fill: currentColor; margin-top: -3px; }
.links { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--white-3); font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--white-2); cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; }
.linkbtn:hover { color: var(--white); border-color: var(--teal); }

/* ---------- welcome back: the businesses ---------- */
.choices { display: grid; gap: 12px; margin: 0 0 12px; }
.choice {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px 22px; border-radius: 20px;
  border: 1px solid var(--hairline); background: rgba(255,255,255,.035); color: var(--white); font: inherit; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease);
}
.choice:hover { border-color: var(--teal-line); background: rgba(79,195,184,.06); transform: translateY(-1px); }
.choice .mono { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal); font-weight: 650; font-size: 16px; letter-spacing: .02em; }
.choice > span:not(.mono):not(.plus):not(.go) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.choice strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.choice span span { font-size: 15px; color: var(--white-2); }
.choice .go { flex: none; color: var(--white-3); font-size: 22px; transition: transform .2s var(--ease), color .2s ease; }
.choice:hover .go { transform: translateX(3px); color: var(--teal); }
.choice .pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal); width: max-content; }
.choice .pill.ready { background: rgba(255,255,255,.08); color: var(--white-2); }
.choice.add { border-style: dashed; background: transparent; }
.choice .plus { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--hairline-2); font-size: 24px; color: var(--teal); }

/* ---------- what you'll use ---------- */
.uses { display: grid; gap: 10px; }
.use { display: block; cursor: pointer; position: relative; }
.use input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.use-in {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "ic tx tick" "ic price tick";
  column-gap: 16px; row-gap: 4px; align-items: center; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--hairline); background: rgba(255,255,255,.03);
  transition: border-color .2s ease, background .2s ease;
}
.use:hover .use-in { border-color: rgba(255,255,255,.26); }
.use .ic { grid-area: ic; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--white-2); transition: background .2s ease, color .2s ease; }
.use .ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.use .tx { grid-area: tx; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.use .tx strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.use .tx span { font-size: 14.5px; color: var(--white-2); line-height: 1.4; }
.use .price { grid-area: price; font-size: 13px; color: var(--white-3); }
.use .tick { grid-area: tick; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--hairline-2);
  position: relative; transition: background .2s ease, border-color .2s ease; }
.use .tick::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--ink);
  border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.use input:checked + .use-in { border-color: var(--teal-line); background: rgba(79,195,184,.075); }
.use input:checked + .use-in .ic { background: var(--teal-tint); color: var(--teal); }
.use input:checked + .use-in .tick { background: var(--teal); border-color: var(--teal); }
.use input:checked + .use-in .tick::after { transform: rotate(45deg) scale(1); }
.use input:focus-visible + .use-in { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- get the app ---------- */
.ok { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; margin: 0 0 26px;
  animation: pop .6s var(--ease) both .1s; }
.ok svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s var(--ease) forwards .45s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.signin-as { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px;
  border: 1px solid var(--teal-line); background: rgba(79,195,184,.07); margin: -8px 0 28px; }
.signin-as { flex-direction: column; align-items: flex-start; gap: 4px; }
.signin-as .lbl { font-size: 14px; color: var(--white-2); }
.signin-as strong { font-size: clamp(17px, 4.6vw, 22px); font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; max-width: 100%; }
.signin-as .copy { font-size: 15px; margin-top: 6px; }
.howto { display: grid; gap: 0; margin: 0 0 8px; border-top: 1px solid var(--hairline); }
.howto li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.howto .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--teal-line); color: var(--teal);
  display: grid; place-items: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.howto div { display: flex; flex-direction: column; gap: 2px; }
.howto strong { font-size: 17px; font-weight: 600; }
.howto span { font-size: 15px; color: var(--white-2); }
.soon { margin: 22px 0 0; }
.left { margin: 30px 0 0; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--hairline); }
.left-h { font-size: 14px; color: var(--white-2); margin: 0 0 8px; }
.left li { position: relative; padding: 6px 0 6px 22px; font-size: 16px; }
.left li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--teal); }
.left li span { display: block; font-size: 14px; color: var(--white-3); }
.actions { margin-top: 8px; }

/* ---------- waiting ---------- */
.wait { display: flex; align-items: center; gap: 14px; color: var(--white-2); font-size: 17px; padding: 40px 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(79,195,184,.25); border-top-color: var(--teal);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hairline); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 30px; color: var(--white-3); font-size: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--white-2); }
.foot a:hover { color: var(--white); }

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .top-in { height: 72px; }
  .brand img { height: 22px; }
  .top-link { font-size: 14px; }
  .stage { padding: 8px 0 72px; }
  .progress { margin-bottom: 40px; gap: 6px; }
  .progress .lbl { font-size: 11.5px; }
  .sub { font-size: 17px; margin-bottom: 26px; }
  .field input { height: 60px; font-size: 18px; border-radius: 16px; }
  .field input.code { font-size: 28px; }
  .btn { min-height: 58px; font-size: 17px; }
  .use-in { padding: 14px 14px; column-gap: 13px; grid-template-columns: 40px 1fr auto; }
  .use .ic { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .progress .lbl { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .screen, .ok, .ok svg { animation: none; }
  .ok svg { stroke-dashoffset: 0; }
  .progress .bar::after, .choice, .use-in { transition: none; }
}
