/* Where Aura You? placeholder page, version 3 (2026-11-22): one screen, no scrolling (Matt: "just keep it like that
   without any scroll downwards"). Version 2's sections and dawn footer were removed; see git history. Colours from docs/brand/colours.md: on navy, bright gold
   for the main button and mist teal for the secondary line. One typeface, Figtree (the working font, docs/open-questions.md 41). */
:root {
  --navy:#121a2f; --deep:#0c1224; --gold:#f2c96a; --gold-hover:#ffd98a; --mist:#8ccdc6; --lilac:#bd96d3;
  --soft:#c9cde0; --paper:#faf8f4; --ink:#26292e; --muted:#5f6470; --teal-dark:#1f6b74;
}
* { box-sizing:border-box; }
html { background:var(--navy); }
body { margin:0; color:#fff; font-family:'Figtree', "Segoe UI", system-ui, sans-serif; font-size:18px; line-height:1.6;
       -webkit-font-smoothing:antialiased; }
h1, h2 { margin:0; line-height:1.1; letter-spacing:-.015em; }
h2 { font-weight:700; font-size:clamp(1.55rem, 1.1rem + 1.8vw, 2.35rem); }
p { margin:0; }
a { color:inherit; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.aw { background:linear-gradient(90deg, #8ccdc6 0%, #f2c96a 50%, #bd96d3 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- Hero ---------- */
.hero { position:relative; min-height:100vh; min-height:100svh; overflow:hidden; background:var(--navy); }
.stage { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); }
.stage .art { position:absolute; inset:0; width:100%; height:100%; display:block; }
.stage .lights { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.stage.wide { display:none; }
/* phones and tall windows: the globe poster, covering the screen */
.stage.tall { width:max(100vw, calc(100svh * .5581)); aspect-ratio:1536 / 2752; top:0; transform:translateX(-50%); }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:56%; pointer-events:none;
               background:linear-gradient(to bottom, rgba(18,26,47,0), rgba(18,26,47,.8) 36%, rgba(18,26,47,.96)); }
.hero-copy { position:absolute; z-index:2; left:0; right:0; bottom:0; padding:0 6vw max(5svh, 28px); text-align:center; }
.hero-copy h1 { font-weight:800; font-size:clamp(2rem, 10vw, 4.6rem); white-space:nowrap; letter-spacing:-.02em;
                text-shadow:0 4px 30px rgba(0,0,0,.45); }
.hero-copy h1 .aw { text-shadow:none; }
.hero-copy .tag { font-weight:500; font-size:clamp(1.15rem, 5.4vw, 2rem); color:#eef1f8; margin-top:.35em; }
.hero-copy .opens { color:var(--mist); font-weight:600; font-size:clamp(.95rem, 3.8vw, 1.1rem); margin-top:.5em; }

/* squarer windows (landscape tablets): the whole poster at full height, faded at its sides */
@media (min-aspect-ratio: 3/4) and (max-aspect-ratio: 3/2) {
  .stage.tall { width:auto; height:100%; -webkit-mask-image:linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
                mask-image:linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
  .hero::after { height:44%; }
  .hero-copy h1 { font-size:clamp(2rem, 6.4vh, 4.2rem); }
  .hero-copy .tag { font-size:clamp(1.1rem, 3.1vh, 1.8rem); }
}

/* laptops and wide windows: the wide night scene, covering the window, words in the sky to the right */
@media (min-aspect-ratio: 3/2) {
  .stage.tall { display:none; }
  .hero::after { display:none; }
  .stage.wide { display:block; width:max(100vw, calc(100vh * 1.7917)); aspect-ratio:2752 / 1536; container-type:size; }
  /* figure.webp is 880 x 960 with its point at (438, 882); the top of the Earth's curve is at 38.88%, 52.08% */
  .stage.wide .fig { position:absolute; height:43.8%; width:auto; left:27.73%; top:11.84%; }
  /* top 12%: the whole block, form included, sits in the sky above the curve of the Earth */
  .hero-copy { position:absolute; left:49%; right:11%; top:12%; bottom:auto; padding:0; text-align:left; }
  .hero-copy h1 { font-size:4.9cqw; }
  .hero-copy .tag { font-size:2.2cqw; }
  .hero-copy .opens { font-size:1.15cqw; }
  .hero-copy .waitlist { font-size:1.1cqw; margin:2.2cqw 0 0; max-width:31cqw; }
}

/* lights across the world: drawn once on load, then they stay */
/* each beam's stroke and each halo's fill are gradients the script makes per picture, set on the elements */
.lights .beam { fill:none; stroke-linecap:round; opacity:.75; }
.lights .pin { fill:#ffe2a3; }
@media (prefers-reduced-motion: no-preference) {
  .lights .beam { stroke-dasharray:var(--len); stroke-dashoffset:var(--len); animation:draw 1.1s ease-out forwards; animation-delay:var(--d); }
  .lights .pinbox { opacity:0; transform-box:fill-box; transform-origin:center; animation:pop .7s ease-out forwards; animation-delay:calc(var(--d) + .9s); }
  .lights .beam.settle { animation:draw 1.1s ease-out forwards, settle 1.6s ease-in-out forwards; animation-delay:var(--d), calc(var(--d) + 2.2s); }
}
@keyframes draw { to { stroke-dashoffset:0; } }
@keyframes pop { 0% { opacity:0; transform:scale(.2); } 60% { opacity:1; transform:scale(1.25); } 100% { opacity:1; transform:scale(1); } }
@keyframes settle { to { opacity:.22; } }

/* ---------- Waitlist form ---------- */
.waitlist { margin:1.4em auto 0; max-width:30rem; font-size:1rem; }
.hero-copy .waitlist { text-align:left; }
.field { display:flex; gap:.5em; background:rgba(255,255,255,.08); border:1px solid rgba(201,205,224,.35);
         border-radius:999px; padding:.35em; backdrop-filter:blur(6px); }
.field input { flex:1; min-width:0; font:inherit; color:#fff; background:transparent; border:0; padding:.55em .9em; outline:none; }
.field input::placeholder { color:#9aa3c0; }
.field:focus-within { border-color:var(--gold); box-shadow:0 0 0 3px rgba(242,201,106,.25); }
.field button { font:inherit; font-weight:700; color:var(--navy); background:var(--gold); border:0; border-radius:999px;
                padding:.6em 1.2em; cursor:pointer; white-space:nowrap; }
.field button:hover { background:var(--gold-hover); }
.field button:focus-visible, .check input:focus-visible, a:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.field button[disabled] { opacity:.7; cursor:default; }
.check { display:inline-flex; align-items:center; gap:.5em; margin-top:.75em; color:var(--soft); font-size:.95em; cursor:pointer; }
.check input { width:1.1em; height:1.1em; accent-color:var(--gold); }
.note { margin-top:.5em; color:#c3c9dd; font-size:.85em; text-shadow:0 1px 10px rgba(12,18,36,.9); }
.note.error { color:#ffb4a8; }
.waitlist.done .field, .waitlist.done .check { display:none; }
.waitlist.done .note { color:#fff; font-size:1.05em; font-weight:600; }
.trap { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
@media (max-width:420px) {
  .field { flex-direction:column; border-radius:22px; }
  .field button { width:100%; }
}

/* short phone screens (iPhone SE size): a little smaller, without the note line, so the words stay clear of the figure */
@media (max-aspect-ratio: 3/4) and (max-height: 700px) {
  .hero-copy h1 { font-size:clamp(1.9rem, 8.6vw, 3rem); }
  .hero-copy .tag { font-size:clamp(1.05rem, 4.6vw, 1.5rem); }
  .waitlist { margin-top:.9em; }
  .waitlist .note { display:none; }
  .waitlist.done .note, .waitlist .note.error { display:block; }
}

/* small links under the form: the main accounts and the email address */
.links { margin-top:1.1em; display:flex; flex-wrap:wrap; gap:.3em 1.1em; font-weight:600; font-size:.95rem; }
.links a { color:var(--soft); text-decoration:none; text-shadow:0 1px 10px rgba(12,18,36,.9); }
.links a:hover { color:#fff; text-decoration:underline; }
.hero-copy .links { justify-content:center; }
@media (min-aspect-ratio: 3/2) {
  .hero-copy .links { justify-content:flex-start; font-size:1cqw; }
}
