/* =========================================================================
   WASSSUP — "Ciel de pâte" skin (2026-10-02), loaded AFTER the inline page styles.
   WHAT: new look (clay buttons, sky page, Fraunces + Figtree). WHY: website redesign v12.
   OLD: purple-neon theme in index.template.html (still there; this file overrides it).
   Locked on purpose: the "sss" wordmark keeps its old gradient/glow (--wm-*), and the app screens inside the phone keep their own fonts.
   ========================================================================= */

:root {
  --font-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Figtree", system-ui, sans-serif;
  --orange: #F26B21; --orange-d: #C9500F; --orange-l: #FF9A5C;
  --teal: #1F9E9A; --teal-d: #137572;
  --cream: #FFF6E6; --cream-d: #EBD9B8;
  --wm-grad: linear-gradient(110deg, #7a3cff 0%, #5E03FC 40%, #1FB8B8 100%);   /* the locked "sss" look */
  --wm-glow: rgba(94,3,252,0.55);
  --ease-soft: cubic-bezier(.34, 1.4, .5, 1);
}

/* ---- sky = the page background (matches the sky colour inside the planet videos) ---- */
:root, [data-theme="light"] {
  --sky: #8db3d1; --sky-deep: #6c97be;
  --bg: var(--sky); --bg-2: #7fa7c8;
  --text: #11263d; --muted: #1d3853; --muted-2: #284a6b;
  --surface: rgba(255, 246, 230, .55); --surface-2: rgba(255, 246, 230, .8);
  --border: rgba(17, 38, 61, .22); --border-soft: rgba(17, 38, 61, .12);
  --accent: var(--orange); --accent-2: #0d6e6b;
  --grad: linear-gradient(180deg, var(--orange-l) 0%, var(--orange) 55%, #E85D12 100%);
  --glow-pp: rgba(242, 107, 33, .25); --glow-tl: rgba(31, 158, 154, .22);
  --nav-bg: rgba(141, 179, 209, .62);
  --badge-bg: #11263d; --badge-bd: rgba(17, 38, 61, .2);
  --org-bg: var(--cream);
  --clay-shadow: 0 .45em 0 var(--orange-d), 0 .8em 1.2em -.2em rgba(17, 38, 61, .35);
}
[data-theme="dark"] {
  --sky: #0e2648; --sky-deep: #08162c;
  --bg: var(--sky); --bg-2: #0a1d38;
  --text: #f8f0e0; --muted: #d3dcec; --muted-2: #b4c2da;
  --surface: rgba(255, 246, 230, .09); --surface-2: rgba(255, 246, 230, .16);
  --border: rgba(255, 246, 230, .22); --border-soft: rgba(255, 246, 230, .12);
  --accent: var(--orange-l); --accent-2: #5fd4cf;
  --grad: linear-gradient(180deg, var(--orange-l) 0%, var(--orange) 55%, #E85D12 100%);
  --glow-pp: rgba(242, 107, 33, .3); --glow-tl: rgba(95, 212, 207, .2);
  --nav-bg: rgba(14, 38, 72, .62);
  --badge-bg: #060f20; --badge-bd: rgba(255, 246, 230, .2);
  --org-bg: #172f55;
  --clay-shadow: 0 .45em 0 var(--orange-d), 0 .8em 1.2em -.2em rgba(0, 0, 0, .5);
}

html { background: var(--sky); }
body { background: transparent; font-family: var(--font-ui); overflow-x: clip; }
body::before { display: none; }                                  /* old purple/teal backdrop glow */
.hero-aura, .k-bg, .dl-glow { display: none !important; }       /* aura glow, glow blobs + grid floor: gone */

/* the sky itself: solid colour, deepening gently once the planet has gone (--deep is set from hero.js) */
#sky-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: color-mix(in srgb, var(--sky), var(--sky-deep) calc(var(--deep, 0) * 100%));
}
#skyfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
#planet {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none; will-change: transform;
  -webkit-mask-image: linear-gradient(#000 86%, transparent 100%); mask-image: linear-gradient(#000 86%, transparent 100%);
}
#planet canvas, #planet img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#planet canvas { opacity: 0; }
#planet.live canvas { opacity: 1; }
#planet.live img { opacity: 0 !important; }
#planet img { transition: opacity 1.4s ease; }
.page { position: relative; z-index: 1; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--font-disp); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "opsz" 96; line-height: 1.04; }
.beat-text .beat-tag, .sb-copy .beat-tag, .org-copy .beat-tag, .tag-yellow, .signup-eyebrow {
  font-family: var(--font-ui); font-weight: 800; font-size: 12.5px; letter-spacing: .14em; color: var(--accent-2);
}
.org-copy .beat-tag, .tag-yellow { color: var(--orange-d); }
[data-theme="dark"] .org-copy .beat-tag, [data-theme="dark"] .tag-yellow { color: var(--orange-l); }

/* the app UI inside the phone keeps its own fonts */
.scr { --font-ui: "Hanken Grotesk", system-ui, sans-serif; --font-disp: "Bricolage Grotesque", system-ui, sans-serif; --font-mono: "Space Mono", ui-monospace, monospace; }

/* the locked wordmark */
.wordmark { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.wordmark .sss { background: var(--wm-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 22px var(--wm-glow); filter: drop-shadow(0 0 10px rgba(31,184,184,.45)); }
.wordmark .wm-dot { color: #1FB8B8; }

/* ---- nav ---- */
.nav { border-bottom: 1px solid var(--border-soft); }
.nav-links a { color: var(--muted); font-weight: 700; }
.seg button { font-family: var(--font-ui); font-weight: 800; }
.seg button.on { background: var(--text); color: var(--sky); }
.theme-btn { transition: transform .35s var(--ease-soft), background .2s; }
.theme-btn:hover { transform: rotate(-14deg) scale(1.06); }

/* ---- clay buttons ---- */
.nav-cta, .signup-btn, .clay-btn {
  position: relative; font-family: var(--font-ui); font-weight: 800; letter-spacing: .01em; color: #fff; border: 0; border-radius: 999px;
  background: var(--grad); text-shadow: 0 1px 0 rgba(120, 40, 0, .35);
  box-shadow: inset 0 .12em .2em rgba(255, 255, 255, .55), inset 0 -.18em .25em rgba(150, 50, 0, .35), 0 .22em 0 var(--orange-d), 0 .5em .9em -.2em rgba(17, 38, 61, .4);
  transform: translateY(0); transition: transform .28s var(--ease-soft), box-shadow .2s;
}
.nav-cta { padding: 9px 18px; font-size: 14px; }
.nav-cta:hover, .signup-btn:hover, .clay-btn:hover { transform: translateY(-2px) scale(1.03); filter: none; }
.nav-cta:active, .signup-btn:active, .clay-btn:active {
  transform: translateY(.12em) scale(1.06, .92);
  box-shadow: inset 0 .12em .2em rgba(255, 255, 255, .4), inset 0 -.1em .2em rgba(150, 50, 0, .35), 0 .08em 0 var(--orange-d), 0 .2em .5em -.2em rgba(17, 38, 61, .4);
}
.clay-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; font-size: 16px; cursor: pointer; }
.clay-btn.teal { background: linear-gradient(180deg, #4cc6c1 0%, var(--teal) 60%, #178a86 100%); box-shadow: inset 0 .12em .2em rgba(255,255,255,.5), inset 0 -.18em .25em rgba(0,70,68,.35), 0 .22em 0 var(--teal-d), 0 .5em .9em -.2em rgba(17,38,61,.4); text-shadow: 0 1px 0 rgba(0,70,68,.35); }
.clay-btn.cream { color: var(--text); text-shadow: none; background: linear-gradient(180deg, #fffaf0, var(--cream) 60%, #f4e6c8); box-shadow: inset 0 .12em .2em #fff, inset 0 -.18em .25em rgba(150,110,40,.25), 0 .22em 0 var(--cream-d), 0 .5em .9em -.2em rgba(17,38,61,.35); }
.signup-btn { padding: 15px 26px; border-radius: 999px; font-size: 15px; }
.ghost-btn { border: 0; }

/* inputs: soft pressed clay */
.signup-input {
  border: 0 !important; border-radius: 999px !important; padding: 15px 22px !important; font-family: var(--font-ui); font-weight: 600;
  background: var(--cream) !important; color: #11263d !important;
  box-shadow: inset 0 .2em .45em rgba(17, 38, 61, .22), inset 0 -.08em .15em #fff, 0 .12em 0 rgba(255,255,255,.35);
  transition: box-shadow .2s, transform .25s var(--ease-soft);
}
.signup-input::placeholder { color: #50657d !important; }
.signup-input:focus { transform: scale(1.015); box-shadow: inset 0 .2em .45em rgba(17,38,61,.22), 0 0 0 3px rgba(242,107,33,.55); }
.signup-note { color: var(--muted); font-weight: 600; }
.signup-check { background: var(--grad); }
/* express-consent checkbox of the launch-email form (never pre-ticked) */
.signup-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 600; cursor: pointer; }
.signup-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #f26b21; cursor: pointer; }
.signup-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.signup-done:focus { outline: none; }
.cta-or { color: var(--muted); font-weight: 600; }

/* store badges (still "soon") */
.badge { border-radius: 18px; box-shadow: inset 0 .1em .15em rgba(255,255,255,.18), 0 .2em 0 rgba(0,0,0,.35); }
.badge[aria-disabled="true"]::after { background: var(--orange); font-family: var(--font-ui); font-weight: 800; }

/* ---- hero ---- */
.hero { overflow: visible; min-height: 0; padding: clamp(26px, 6vh, 64px) 20px 0; justify-content: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; text-transform: none;
  font-family: var(--font-ui); font-weight: 800; font-size: clamp(13px, 1.3vw, 15px); color: var(--text);
  background: var(--cream); color: #11263d; border: 0; padding: 8px 18px; border-radius: 999px;
  box-shadow: inset 0 .1em .15em #fff, inset 0 -.12em .2em rgba(150,110,40,.22), 0 .16em 0 var(--cream-d), 0 .4em .8em -.2em rgba(17,38,61,.3);
}
.h1 {
  font-size: clamp(40px, 6.6vw, 92px); margin-top: 22px; line-height: 1.02; letter-spacing: -0.035em; color: var(--text);
  font-weight: 800; align-items: center; max-width: 16ch;
}
.h1 .h1-l1 { display: block; }
.h1 .h1-city {
  display: flex; align-items: center; justify-content: center; gap: .18em; background: none; -webkit-text-fill-color: currentColor; filter: none; padding: 0;
}
.clay-word { display: block; height: 1.12em; width: auto; margin: -.1em -.05em -.16em; filter: drop-shadow(0 .06em .06em rgba(17,38,61,.25)); }
.hero-sub { color: var(--muted); font-weight: 600; max-width: 560px; margin-top: 22px; font-size: clamp(16px, 1.7vw, 19px); }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 14.5px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease-soft);
}
.live-pill.on { opacity: 1; transform: none; }
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd47d; box-shadow: 0 0 0 0 rgba(43,212,125,.6); animation: livePing 2.2s infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(43,212,125,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(43,212,125,0); } }
#download-top { margin-top: 6px; }
.live-wrap { min-height: 52px; display: flex; align-items: flex-end; justify-content: center; }
.beta-row { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.beta-form { display: flex; gap: 10px; width: 100%; max-width: 460px; animation: popIn .45s var(--ease-soft); }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.beta-note { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; max-width: 34rem; }
.beta-ok { font-weight: 800; color: var(--text); animation: popIn .45s var(--ease-soft); }
@media (max-width: 520px) { .beta-form { flex-direction: column; } }

/* the invisible slot the planet's horizon is lined up with (hero.js reads its position) */
.planet-slot { margin-top: 36px; width: 100%; height: clamp(300px, 58vh, 620px); pointer-events: none; }
.scroll-hint { display: none; }

/* ---- phone section: the page sky shows through, text sits on a soft sky scrim ---- */
.phone { box-shadow: inset 0 2px 2px rgba(255,255,255,.18), inset 0 -2px 3px rgba(0,0,0,.6), 0 50px 90px -30px rgba(0,0,0,.55), 0 14px 40px -10px rgba(10, 25, 45, .45); }
.beat-text h2 { max-width: 13ch; color: var(--text); }
.beat-text p { color: var(--muted); font-weight: 600; }
.bt-1::before, .bt-3::before { background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sky) 80%, transparent) 18%, transparent 72%); opacity: .85; }

/* ---- organizers: a cream clay card ---- */
.org-card {
  background: var(--org-bg); border: 0; border-radius: 40px; color: #11263d;
  box-shadow: inset 0 .25em .4em rgba(255,255,255,.7), inset 0 -.4em .6em rgba(150,110,40,.18), 0 .5em 0 var(--cream-d), 0 1.4em 2.4em -.6em rgba(10,25,45,.45);
}
[data-theme="dark"] .org-card { color: #f8f0e0; box-shadow: inset 0 .25em .4em rgba(255,255,255,.14), inset 0 -.4em .6em rgba(0,0,0,.25), 0 .5em 0 #0f2140, 0 1.4em 2.4em -.6em rgba(0,0,0,.6); }
.org-copy p { color: #28455f; font-weight: 600; }
[data-theme="dark"] .org-copy p { color: var(--muted); }
.org-pins { width: 300px; height: 250px; }
.org-pins .cp { position: absolute; width: 74px; height: auto; filter: drop-shadow(0 .5em .4em rgba(17,38,61,.28)); animation: pinBob 4.5s ease-in-out infinite; }
.org-pins .cp1 { left: 24%; top: 4%; } .org-pins .cp2 { left: 62%; top: 24%; animation-delay: -1.5s; } .org-pins .cp3 { left: 12%; top: 50%; animation-delay: -3s; width: 66px; }
.org-pins .cp4 { left: 52%; top: 62%; animation-delay: -2.2s; width: 60px; }
@keyframes pinBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }

/* ---- download + footer ---- */
.download h2 { font-size: clamp(36px, 6vw, 72px); }
.download p { color: var(--muted); font-weight: 600; }
.foot { border-top: 1px solid var(--border-soft); background: color-mix(in srgb, var(--sky-deep) 55%, transparent); }
.foot-made { font-family: var(--font-ui); font-weight: 600; }

/* ---- gentle motion: sections ease in ---- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease-soft); }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
  html[data-vt="theme"]::view-transition-new(root) { animation: vt-theme-circle 1.1s cubic-bezier(.4, 0, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .live-pill .dot, .org-pins .cp { animation: none; } #planet img { transition: none; } }

/* ---- phones ---- */
@media (max-width: 760px) {
  .h1 { font-size: clamp(34px, 9.4vw, 52px); max-width: 12ch; }
  .clay-word { height: 1.05em; }
  .planet-slot { height: clamp(240px, 40vh, 420px); }
  .org-pins { height: 190px; }
  .beat-text::before, .bt-0::before, .bt-1::before, .bt-2::before, .bt-3::before {
    background: linear-gradient(to top, var(--sky) 0%, var(--sky) 48%, color-mix(in srgb, var(--sky) 62%, transparent) 70%, color-mix(in srgb, var(--sky) 0%, transparent) 100%);
  }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
