/* Landing page. Follows DESIGN.md: cream canvas, floating pill nav, ink pills, circular portraits, orange orbits. */
:root {
  --canvas: #F3F0EE; --lifted: #FCFBFA; --white: #FFFFFF; --ink: #141413; --slate: #696969; --granite: #555555;
  --dust: #D1CDC7; --ghost: #E8E2DA; --signal: #CF4500; --signal-light: #F37338; --clay: #9A3A0A;
  --font: "Sofia Sans", Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-weight: 450; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* One screen on desktop: the frame is exactly the viewport. */
.frame { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; max-width: 1320px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(32px, env(safe-area-inset-right, 0px)) 16px max(32px, env(safe-area-inset-left, 0px)); overflow: hidden; }

.nav { display: flex; align-items: center; gap: 24px; background: var(--white); border-radius: 999px; padding: 12px 14px 12px 22px; box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.mark { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.mark i { width: 12px; height: 12px; border-radius: 50%; background: var(--signal-light); box-shadow: 0 0 0 5px rgba(243, 115, 56, .18); }
.nav { justify-content: space-between; }
.nav-cta { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--canvas); border: 1.5px solid var(--ink); border-radius: 20px; padding: 8px 24px; font: inherit; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.ghost { background: var(--white); color: var(--ink); font-weight: 450; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 0; }
.copy { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-light); }
h1 { margin: 0; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0; color: var(--granite); font-size: 18px; line-height: 1.45; max-width: 52ch; }

.waitlist { display: flex; gap: 8px; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px; margin-top: 6px; }
.waitlist input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 16px; outline: none; }
.waitlist input + input { border-left: 1px solid #E6E1DC; }
.waitlist input:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 999px; }
.waitlist.done { opacity: .6; pointer-events: none; }
.fine { margin: -6px 0 0 18px; font-size: 14px; color: var(--slate); }
.fine.ok { color: var(--ink); font-weight: 500; }
.fine.err { color: var(--clay); }

.points { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.points li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--granite); padding-top: 14px; border-top: 1px solid var(--dust); }
.points b { color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }

/* The stage: circular portraits on orbits around a live visit card */
.stage { position: relative; height: min(600px, 100%); aspect-ratio: 1 / 1; max-width: 100%; justify-self: center; }
.watermark { position: absolute; top: 2%; left: -6%; right: -10%; font-size: clamp(56px, 6.4vw, 96px); line-height: .95; font-weight: 500; letter-spacing: -0.02em; color: var(--ghost); user-select: none; }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbits path { fill: none; stroke: var(--signal-light); stroke-width: 1.4; stroke-linecap: round; opacity: .85; stroke-dasharray: 6 8; animation: flow 6s linear infinite; }
.orbits path:nth-of-type(2) { animation-duration: 9s; animation-direction: reverse; }
.orbits path:nth-of-type(3) { animation-duration: 12s; }
.traveller { fill: var(--signal); }
@keyframes flow { to { stroke-dashoffset: -140; } }
.portrait { position: absolute; width: 22%; aspect-ratio: 1; z-index: 2; animation: float 6s ease-in-out infinite; transition: transform .6s ease; }
.portrait .face { transition: box-shadow .6s ease, transform .6s ease; }
.portrait.active .face { transform: scale(1.06); box-shadow: rgba(207, 69, 0, 0.18) 0 0 0 10px, rgba(0, 0, 0, 0.08) 0px 24px 48px 0px; }
.p2 { animation-delay: -1.5s; animation-duration: 7s; }
.p3 { animation-delay: -3s; animation-duration: 6.5s; }
.p4 { animation-delay: -4.5s; animation-duration: 8s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.face { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; color: var(--canvas);
  background: radial-gradient(circle at 30% 25%, hsl(var(--h) 45% 62%), hsl(var(--h) 38% 30%)); box-shadow: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px; }
.sat { position: absolute; right: -8%; bottom: 2%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: rgba(0, 0, 0, 0.06) 0px 6px 18px 0px; }
.sat.live::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }
.tag { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--granite); }
.p1 { left: 4%; top: 52%; }
.p2 { left: 66%; top: 6%; width: 18%; }
.p3 { left: 80%; top: 58%; width: 16%; }
.p4 { left: 22%; top: 12%; width: 13%; }
.p4 .tag, .p3 .tag { font-size: 12px; }

.visit { transition: opacity .38s ease, transform .38s ease; position: absolute; z-index: 1; left: 30%; top: 30%; width: 50%; background: var(--white); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; box-shadow: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px; }
.visit header { display: flex; align-items: center; justify-content: space-between; }
.visit .eyebrow { font-size: 11px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }
.visit h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.visit .meta { margin: 0; color: var(--slate); font-size: 13px; }
.visit ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 12px; border-left: 1.5px solid var(--signal-light); display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.visit li { display: flex; justify-content: space-between; gap: 8px; }
.visit code { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.visit li span { color: var(--slate); font-variant-numeric: tabular-nums; }
.visit footer { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.pill { background: var(--canvas); border-radius: 999px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf { flex: 1; height: 7px; background: var(--canvas); border-radius: 999px; overflow: hidden; }
.conf i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .8s ease; }
.visit.swap { opacity: 0; transform: translateY(8px); }
.visit li span:first-child { font-weight: 500; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(207, 69, 0, .45); } 70% { box-shadow: 0 0 0 8px rgba(207, 69, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(207, 69, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot, .sat.live::after, .portrait, .orbits path { animation: none; } .traveller { display: none; } }

.foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--slate); padding-top: 8px; }

/* Short laptop screens: tighten so it still fits one screen */
@media (max-height: 760px) and (min-width: 961px) {
  .copy { gap: 14px; }
  h1 { font-size: clamp(40px, 4.6vw, 58px); }
  .lead { font-size: 16px; }
  .points { margin-top: 2px; }
}

/* Tablets and phones: stack and allow scrolling */
@media (max-width: 960px) {
  .frame { height: auto; min-height: 100dvh; overflow: visible; gap: 28px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav { justify-content: space-between; padding-left: 16px; }
  .nav-cta .btn.ghost { display: none; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .stage { width: 100%; height: auto; max-width: 520px; }
  .waitlist { flex-direction: column; border-radius: 28px; }
  .waitlist input + input { border-left: 0; border-top: 1px solid #E6E1DC; }
  .points { grid-template-columns: 1fr; gap: 10px; }
  .foot { flex-direction: column; padding-bottom: 12px; }
}
@media (max-width: 480px) {
  .visit { left: 18%; width: 64%; padding: 14px; }
  .visit h2 { font-size: 20px; }
  .tag { display: none; }
}
