/* Asto Clock early-access sign-up: goasto.com/clock/start/ (lib/astoapp/clock_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); this sheet is the page's alone. The signature: a quiet clock dial
   behind the statement, one teal hand sweeping once a minute (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,.64);
  --white-3: rgba(255,255,255,.5);
  --hairline: rgba(255,255,255,.12);
  --teal: #4FC3B8;
  --teal-hover: #66CFC5;
  --teal-active: #3DB3A8;
  --teal-tint: rgba(79,195,184,.14);
  --abyss: #0B2726;
  --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%; }
::selection { background: var(--teal); color: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--stage);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
  overflow-x: clip;
}
html { overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, p, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h2:focus, main:focus { outline: none; }

.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: the site's, quieter ---------- */
.top { position: relative; z-index: 2; }
.top-in { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 36px; width: auto; }
.top-link { font-size: 15px; color: var(--white-2); text-decoration: none; }
.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; overflow-x: clip; padding: 40px 0 112px; }
.stage::before {           /* one soft teal light behind the card */
  content: ''; position: absolute; pointer-events: none;
  width: 900px; height: 900px; right: -260px; top: -220px;
  background: radial-gradient(closest-side, rgba(79,195,184,.13), rgba(79,195,184,0) 70%);
}
.grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "intro card" "next card";
  grid-template-rows: auto 1fr;
  column-gap: 96px;
  align-items: start;
}
.intro { grid-area: intro; position: relative; isolation: isolate; padding-top: 48px; }
.next { grid-area: next; }
.card { grid-area: card; }

.headline { position: relative; margin-top: 20px; width: fit-content; max-width: 100%; }
.dial {                    /* centered on the statement: ticks, and one teal second sweeping the rim */
  position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  overflow: visible;
}
.dial .rim { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 1; }
.dial .ticks line { stroke: rgba(255,255,255,.09); stroke-width: 1.2; stroke-linecap: round; }
.dial .ticks line.h { stroke: rgba(255,255,255,.17); stroke-width: 2; }
.dial .orbit { transform-origin: 200px 200px; animation: sweep 60s linear infinite; }
.dial .trail { fill: none; stroke: rgba(79,195,184,.35); stroke-width: 1.5; stroke-linecap: round; }
.dial .dot { fill: var(--teal); }
@keyframes sweep { to { transform: rotate(360deg); } }

.pwordmark { height: 34px; width: auto; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; margin-top: 28px; font-size: 15px; color: var(--white-2); }
.eyebrow span + span::before {
  content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal); margin: 0 12px; vertical-align: middle; position: relative; top: -2px;
}
h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .98;
  max-width: 10ch;
  text-wrap: balance;
}
.accent { color: var(--teal); }
.lead { margin-top: 28px; font-size: 21px; line-height: 1.45; color: var(--white-2); max-width: 31ch; }

.next { list-style: none; padding: 0; margin-top: 56px; max-width: 470px; border-top: 1px solid var(--hairline); }
.next li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.next .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(79,195,184,.55); color: var(--teal);
  font-size: 14px; font-weight: 600;
}
.next strong { display: block; font-size: 17px; font-weight: 600; }
.next div > span { display: block; margin-top: 2px; color: var(--white-2); font-size: 15px; line-height: 1.45; }
.next a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(79,195,184,.6); }
.next a:hover { color: var(--teal); }

/* ---------- the card ---------- */
.card {
  position: relative;
  border-radius: 28px;
  padding: 44px 44px 40px;
  background: linear-gradient(180deg, #0F1615 0%, #090C0C 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 50px 120px -30px rgba(0,0,0,.9),
              0 0 0 1px rgba(0,0,0,.6);
}
.card::before {             /* a hairline of teal light along the top edge */
  content: ''; position: absolute; left: 32px; right: 32px; top: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(79,195,184,0), rgba(79,195,184,.7), rgba(79,195,184,0));
}
.step { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.sub { margin-top: 10px; color: var(--white-2); font-size: 16px; }
.to { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.to + .sub { margin-top: 10px; }
form { margin-top: 28px; display: flex; flex-direction: column; }

.field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
form > .field:first-child { margin-top: 0; }
.field > span { font-size: 14px; font-weight: 500; color: var(--white-2); }
.field input {
  height: 54px; width: 100%;
  padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--white);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(255,255,255,.3); }
.field input:hover { border-color: rgba(255,255,255,.24); }
.field input:focus { border-color: var(--teal); background: rgba(79,195,184,.05); 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:-webkit-autofill { -webkit-text-fill-color: var(--white); -webkit-box-shadow: 0 0 0 40px #12201E inset;
  caret-color: var(--teal); }
.field input.code {
  height: 68px; text-align: center; font-size: 32px; font-weight: 600; letter-spacing: .42em; padding-left: .42em;
  font-variant-numeric: tabular-nums;
}
.ferr { margin-top: 8px; font-size: 14px; color: var(--bad); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 15px; color: var(--white-2);
  cursor: pointer; line-height: 1.45; }
.agree input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.agree .box {
  flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.03);
  transition: background-color .15s ease, border-color .15s ease;
}
.agree input:checked + .box {
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23101B1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--teal);
}
.agree input:focus-visible + .box { outline: 2px solid var(--teal); outline-offset: 3px; }
.agree input[aria-invalid="true"] + .box { border-color: var(--bad); }
.agree a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.agree a:hover { border-color: var(--teal); }

.err, .note { margin-top: 20px; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.err { color: #FFD3CC; background: rgba(255,120,100,.09); border: 1px solid rgba(255,140,120,.22); }
.note { color: var(--white); background: var(--teal-tint); border: 1px solid rgba(79,195,184,.28); margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 56px; margin-top: 28px; padding: 0 28px;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--teal); color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s ease, opacity .2s ease;
}
.btn:hover { background: var(--teal-hover); transform: translateY(-1px); }
.btn:active { background: var(--teal-active); transform: none; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn .spin { width: 18px; height: 18px; border-width: 2px; border-color: rgba(16,27,26,.25); border-top-color: var(--ink); }

.fine { margin-top: 18px; font-size: 14px; color: var(--white-3); text-align: center; }
.links { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--white-3);
  font-size: 15px; flex-wrap: wrap; }
.linkbtn {
  background: none; border: none; padding: 2px 0; cursor: pointer;
  font: inherit; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.28);
}
.linkbtn:hover { border-color: var(--teal); }
.linkbtn[disabled] { color: var(--white-3); cursor: default; }

.wait { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 260px; color: var(--white-2);
  font-size: 17px; text-align: center; }
.spin {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.16); border-top-color: var(--teal);
  animation: turn .8s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

.ok {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px;
  background: var(--teal-tint); border: 1px solid rgba(79,195,184,.45);
}
.ok svg { width: 26px; height: 26px; }
.ok path { fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer: the site's bottom line ---------- */
.foot { border-top: 1px solid var(--hairline); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px;
  padding-bottom: 36px; font-size: 14px; color: var(--white-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--white-2); text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .grid { column-gap: 56px; }
  .card { padding: 36px 32px 32px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .top-in { height: 76px; }
  .brand img { height: 30px; }
  .top-link { font-size: 14px; }
  .stage { padding: 8px 0 72px; }
  .stage::before { width: 640px; height: 640px; right: -320px; top: 120px; }
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "next"; grid-template-rows: none; }
  .intro { padding-top: 24px; }
  .dial { width: 400px; height: 400px; }
  .pwordmark { height: 28px; }
  .eyebrow { margin-top: 22px; }
  h1 { font-size: clamp(44px, 12vw, 64px); }
  .lead { font-size: 18px; margin-top: 20px; }
  .card { margin-top: 40px; max-width: 600px; }
  .next { margin-top: 48px; }
}
@media (max-width: 480px) {
  .top-link { font-size: 0; }
  .top-link span { font-size: 14px; }
  .card { padding: 30px 22px 26px; border-radius: 24px; margin-left: -6px; margin-right: -6px; }
  .card h2 { font-size: 26px; }
  .field input.code { letter-spacing: .3em; padding-left: .3em; font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .dial .orbit { animation: none; }
  .step, .ok path { animation: none; stroke-dashoffset: 0; }
  .btn, .btn:hover { transition: none; transform: none; }
}
