/* Summer's public site — the brand guidelines (Summer Branding, 2026-11):
   60 % Graphite, 30 % Cloud and Silver, 10 % the accent, Soft Iris. Space
   Grotesk for Latin, Alan Sans for Arabic. Dark only, like the app; the orb
   stays neutral. */
:root {
  /* 60 — Graphite and its darker steps */
  --base: #17181C;
  --base-2: #1d1e23;
  --raised: #303137;
  /* 30 — Cloud and Silver, for text, lines and surfaces */
  --ink: #F4F4F7;
  --ink-2: #C8C9D1;
  --ink-3: #90929C;
  --ink-4: #575962;
  /* 10 — the accent: primary actions, focus, the selected thing */
  --accent: #AAA7FF;            /* Soft Iris */
  --accent-hi: #BBB9FF;
  --accent-ink: #17181C;
  --accent-soft: rgba(170, 167, 255, .16);
  --glow-inner: #F4F4F7;
  --glow-mid: #90929C;
  --glow-side: #575962;
  --line: rgba(244, 244, 247, .09);
  --line-2: rgba(244, 244, 247, .16);
  --glass: rgba(29, 30, 35, .66);
  --glass-hi: rgba(244, 244, 247, .06);
  --focus: var(--accent);

  --font: "Space Grotesk", "Alan Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.4rem, 6.4vw, 4.4rem);

  --gutter: 16px;
  --wrap: 1120px;
  --r-stage: 28px;
  --r-ctl: 999px;
  --r-box: 18px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Languages: Arabic is the page; English rides beside it and the toggle swaps. */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; }
.skip:focus { inset-inline-start: 8px; z-index: 50; background: var(--ink); color: var(--base); padding: 8px 14px; border-radius: 8px; }

/* ── Navigation: one glass pill, like the reference ─────────────────────── */
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  width: min(760px, 100% - 2 * var(--gutter));
  margin: 18px auto 0;
  padding: 7px 7px 7px 7px;
  padding-inline-start: 16px;
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -.01em; }
.brand img { height: 22px; width: auto; }
.foot .lockup { height: 18px; width: auto; opacity: .85; }
.brand-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--glow-inner) 22%, var(--glow-mid) 62%, var(--glow-side) 100%);
  box-shadow: 0 0 14px rgba(236, 236, 242, .35);
}
.nav-links { display: none; gap: 2px; margin-inline-start: auto; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: var(--step--1);
  padding: 7px 12px; border-radius: 10px;
}
.nav-links a:hover { color: var(--ink); background: rgba(244, 244, 247, .06); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-end { display: flex; gap: 6px; margin-inline-start: auto; }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav-end { margin-inline-start: 0; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2);
  font: 500 var(--step--1)/1 var(--font);
  color: var(--ink); background: rgba(244, 245, 249, .04);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: rgba(244, 245, 249, .09); }
.btn-light {
  color: var(--accent-ink); border-color: transparent; font-weight: 600;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 6px 28px rgba(170, 167, 255, .26);
}
.btn-light:hover { background: linear-gradient(180deg, #CCCAFF, var(--accent-hi)); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: var(--step-0); border-radius: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn { min-width: 44px; padding: 0 10px; }

/* ── The stage: the hero panel lit from below ──────────────────────────── */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  width: calc(100% - 24px);
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
  margin: 12px auto 0;
  padding: 0 0 48px;
  display: flex; flex-direction: column;
  border-radius: var(--r-stage);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 46% at 50% 108%, rgba(236, 236, 242, .95) 0%, rgba(178, 182, 194, .55) 30%, rgba(108, 113, 126, 0) 70%),
    radial-gradient(42% 60% at 6% 92%, rgba(108, 113, 126, .55), transparent 70%),
    radial-gradient(42% 60% at 94% 92%, rgba(108, 113, 126, .55), transparent 70%),
    radial-gradient(90% 70% at 50% 100%, rgba(75, 79, 88, .55), transparent 75%),
    linear-gradient(180deg, #141519 0%, #17181C 55%, #24252b 100%);
}
.stage::before { /* fine grid, barely there, like the reference's backdrop */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 245, 249, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 249, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
.stage-in { flex: 1; display: grid; justify-items: center; align-content: center; text-align: center; gap: 20px; padding: 48px var(--gutter) 0; }

.display {
  margin: 0; max-width: 16ch;
  font-size: var(--step-4); font-weight: 500; line-height: 1.12; letter-spacing: -.025em;
  background: linear-gradient(90deg, #90929C 0%, #F4F4F7 30%, #F4F4F7 70%, #90929C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .display { letter-spacing: 0; line-height: 1.3; max-width: 18ch; }
.lede { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: var(--step-1); font-weight: 300; }

/* The orb and the conversation under it */
button.orb-box { display: block; padding: 0; border: 0; background: none; color: inherit; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
button.orb-box:not([disabled]) { cursor: pointer; }
button.orb-box:focus-visible { outline: 2px solid var(--focus); outline-offset: -12%; }
.orb-box { position: relative; width: min(440px, 72vw, 34vh); aspect-ratio: 1; }
/* The canvas spills past its box (the voice line and the halo reach beyond the
   sphere) without moving anything on the page; the box keeps the clicks. */
.orb-box canvas { position: absolute; inset: -30%; width: 160%; height: 160%; max-width: none; pointer-events: none; }
.talk {
  min-height: 3.4em; width: min(560px, 100%);
  display: grid; align-content: start; gap: 8px;
  font-size: var(--step-1); line-height: 1.5;
}
.talk .said { color: var(--ink-3); font-weight: 300; }
.talk .said::before { content: "“"; }
.talk .said::after { content: "”"; }
html[lang="ar"] .talk .said::before { content: "«"; }
html[lang="ar"] .talk .said::after { content: "»"; }
.talk .reply { color: var(--ink); }
.talk .said, .talk .reply { transition: opacity .5s ease; }
.talk .hide { opacity: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-note { margin: 0; color: rgba(17, 18, 22, .8); font-size: var(--step--1); }

/* Talk to Summer: a glass bar under the orb, like the reference's form row.
   With it on, Download stays in the nav and further down, so the hero fits one screen. */
.talk-bar:not([hidden]) ~ .cta-row { display: none; }
.talk.live .reply { font-size: var(--step-0); line-height: 1.65; }
.talk.live .said::before, .talk.live .said::after { content: none; }
.talk-bar { display: grid; justify-items: center; gap: 10px; width: min(620px, 100%); }
.talk-bar[hidden] { display: none; }
.talk-bar > .talk-mic, .talk-bar > .talk-form { grid-row: 1; }
.talk-bar { grid-template-columns: auto 1fr; align-items: center; }
.talk-status, .talk-note { grid-column: 1 / -1; margin: 0; }
.talk-mic .i-stop { display: none; }
.talk-mic.live .i-mic { display: none; }
.talk-mic.live .i-stop { display: block; }
.talk-mic.live { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 0 0 6px var(--accent-soft), 0 8px 40px rgba(170, 167, 255, .35); }
.talk-form {
  justify-self: stretch; display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(16, 16, 19, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.talk-form input {
  flex: 1; min-width: 0; min-height: 38px; padding: 0 12px; border: 0; background: transparent;
  color: var(--ink); font: 400 var(--step--1) var(--font);
}
.talk-form input::placeholder { color: var(--ink-3); }
.talk-form input:focus-visible { outline: none; }
.talk-form:focus-within { border-color: rgba(236, 236, 242, .4); }
.talk-send {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none; cursor: pointer;
  border-radius: 10px; border: 0; background: rgba(244, 245, 249, .1); color: var(--ink);
}
.talk-send:hover { background: rgba(244, 245, 249, .18); }
.talk-send .ico { width: 18px; height: 18px; }
html[dir="rtl"] .talk-send .ico { transform: none; }
.talk-status { min-height: 1.5em; color: var(--ink-2); font-size: var(--step--1); }
.talk-note { max-width: 56ch; color: var(--ink-3); font-size: .78rem; line-height: 1.6; }
.talk-note a { color: var(--ink-2); }
@media (max-width: 560px) {
  .talk-bar { grid-template-columns: 1fr; }
  .talk-bar > .talk-mic { grid-row: 1; justify-self: stretch; }
  .talk-bar > .talk-form { grid-row: 2; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding-block: 96px 24px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.h2 { margin: 0 0 12px; font-size: var(--step-3); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.35; }
.h3 { margin: 0 0 6px; font-size: var(--step-1); font-weight: 500; }
.muted { color: var(--ink-2); }
.rule { width: 160px; height: 1px; margin: 0 auto 40px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* "You say / she does": a two-column ledger, not a card grid */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li {
  display: grid; gap: 6px 40px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) { .ledger li { grid-template-columns: 11rem 1fr 1.1fr; align-items: baseline; } }
.ledger .topic { color: var(--accent); font-size: var(--step--1); }
.ledger .say { font-size: var(--step-1); font-weight: 400; color: var(--ink); }
.ledger .does { color: var(--ink-2); margin: 0; }

/* Line icons (drawn after Lucide, lucide.dev, ISC licence). No emoji anywhere. */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-in { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.gestures { display: flex; flex-wrap: wrap; gap: 8px; }
.gest {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--step--1); color: var(--ink-2);
}
.gest .ico { width: 18px; height: 18px; color: var(--ink); }

/* What stays here / what goes out */
.split { display: grid; gap: 16px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  padding: 26px; border-radius: var(--r-box);
  background: linear-gradient(180deg, rgba(244, 245, 249, .035), rgba(244, 245, 249, .01));
  border: 1px solid var(--line);
}
.panel ul { margin: 12px 0 0; padding-inline-start: 1.1em; color: var(--ink-2); }
.panel li { margin-bottom: 8px; }
.panel li::marker { color: var(--ink-3); }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s); grid-row: span 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--step--1);
}
.steps p { margin: 0; color: var(--ink-2); }

/* Download block */
.dl {
  display: grid; gap: 20px; padding: 28px; border-radius: var(--r-box);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(80% 120% at 50% 130%, rgba(236, 236, 242, .16), transparent 60%),
    var(--base-2);
}
@media (min-width: 820px) { .dl { grid-template-columns: 1fr auto; align-items: center; } }
.dl .meta { margin: 0; color: var(--ink-3); font-size: var(--step--1); }
.dl .os { display: flex; gap: 12px; align-items: center; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: var(--step-1);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 300; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding-bottom: 20px; color: var(--ink-2); max-width: 70ch; }

/* ── Get in touch: the closing glow, like the reference ───────────────── */
.touch {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(100% - 24px); margin: 96px auto 0;
  padding: 72px var(--gutter) 160px; text-align: center;
  border-radius: 0 0 var(--r-stage) var(--r-stage);
}
.touch::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0 0; height: 70%;
  background:
    radial-gradient(55% 80% at 50% 120%, rgba(236, 236, 242, .75), rgba(108, 113, 126, .25) 45%, transparent 75%),
    radial-gradient(40% 70% at 0% 120%, rgba(75, 79, 88, .5), transparent 70%),
    radial-gradient(40% 70% at 100% 120%, rgba(75, 79, 88, .5), transparent 70%);
  pointer-events: none;
}
.touch .display { margin-inline: auto; font-size: var(--step-3); }
.touch .lede { margin: 14px auto 32px; font-size: var(--step-0); }
.form {
  display: grid; gap: 8px; width: min(640px, 100%); margin-inline: auto; padding: 8px;
  border-radius: 18px; border: 1px solid var(--line); background: rgba(16, 16, 19, .7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1.6fr auto; } }
.form input {
  min-height: 42px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(9, 9, 11, .6); color: var(--ink);
  font: 400 var(--step--1) var(--font);
}
.form input::placeholder { color: var(--ink-3); }
.form-note { margin: 14px auto 0; color: var(--ink-3); font-size: var(--step--1); max-width: 52ch; }

/* ── Legal and text pages ──────────────────────────────────────────────── */
.page-head { padding: 72px 0 32px; }
.page-head .display { margin: 0; text-align: start; font-size: var(--step-3); max-width: none;
  background: none; color: var(--ink); }
.page-head p { color: var(--ink-3); margin: 10px 0 0; }
.prose { max-width: 68ch; padding-bottom: 40px; }
.prose h2 { font-size: var(--step-2); font-weight: 500; margin: 48px 0 12px; line-height: 1.3; }
.prose h3 { font-size: var(--step-1); font-weight: 500; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: var(--step--1); }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 500; }
.prose td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 28px 0 40px; color: var(--ink-3); font-size: var(--step--1); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── The one load-in moment: the hero rises from the light ────────────── */
@media (prefers-reduced-motion: no-preference) {
  .stage .display, .stage .lede, .orb-box, .stage .cta-row {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
  }
  .stage .lede { animation-delay: .08s; }
  .orb-box { animation-delay: .16s; }
  .stage .cta-row { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 600px) { .talk { min-height: 6.4em; } }

/* ── Motion ─────────────────────────────────────────────────────────────
   Everything moves only for visitors who haven't asked for less motion.
   .js is set in <head>, so nothing is hidden when scripts don't run. */
.stage { --lvl: 0; --sp: 0; }
.stage::after { /* the light from below, breathing with Summer's voice */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: auto 10% -30% 10%; height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(244, 245, 249, .9), rgba(154, 163, 181, .25) 45%, transparent 72%);
  opacity: calc(.12 + var(--lvl) * .55);
  transform: scale(calc(.92 + var(--lvl) * .14));
  transform-origin: 50% 100%;
}
.ledger li { position: relative; }
.btn { position: relative; overflow: hidden; transition: background-color .2s ease, transform .15s ease, box-shadow .3s ease; }
.btn:active { transform: scale(.97); }
.talk .reply .wd { transition: opacity .25s ease, filter .25s ease; }
.talk .reply .wd.off { opacity: 0; filter: blur(4px); }

@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the nav drops in, the headline comes out of a blur, a sheen crosses it */
  .stage .nav { animation: drop .8s cubic-bezier(.2, .7, .2, 1) both; }
  .stage .display {
    background-size: 220% 100%;
    animation: unblur 1.1s cubic-bezier(.2, .7, .2, 1) both, sheen 3.2s 1s ease-in-out both;
  }
  .stage-in {
    transform: translateY(calc(var(--sp) * .28px));
    opacity: calc(1 - var(--sp) / 1100);
  }
  @keyframes drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
  @keyframes unblur {
    from { opacity: 0; filter: blur(16px); transform: translateY(18px) scale(.98); }
    to { opacity: 1; filter: blur(0); transform: none; }
  }
  @keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* Sections arrive as you reach them */
  .js .reveal {
    opacity: 0; transform: translateY(26px); filter: blur(8px);
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }

  /* A light runs along each line of the ledger as it arrives */
  .js .ledger li::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transform: scaleX(0);
  }
  .js .ledger li.in::after { animation: run 1.6s calc(var(--i, 0) * 70ms + .2s) ease-out both; }
  @keyframes run {
    0% { opacity: 0; transform: scaleX(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: scaleX(1); }
  }

  /* Steps light up in order */
  .js .steps li::before { transition: background-color .6s ease, color .6s ease, border-color .6s ease; transition-delay: calc(var(--i, 0) * 160ms + .3s); }
  .js .steps li.in::before { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

  /* The closing glow rises when you get there */
  .js .touch::after { opacity: 0; transform: translateY(30%); transition: opacity 1.6s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
  .js .touch.in::after { opacity: 1; transform: none; }
  .js .dl { background-size: 100% 100%, 100% 100%; }
  .js .dl.in { animation: glow-in 2s ease-out both; }
  @keyframes glow-in { from { box-shadow: 0 0 0 rgba(236, 236, 242, 0); } 50% { box-shadow: 0 0 60px rgba(236, 236, 242, .12); } to { box-shadow: 0 0 0 rgba(236, 236, 242, 0); } }

  /* A sheen crosses the light buttons on hover */
  .btn-light::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%);
    transform: translateX(-120%);
  }
  .btn-light:hover::after { transition: transform .8s ease; transform: translateX(120%); }
  .btn-light:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset, 0 8px 40px rgba(236, 236, 242, .35); }

  /* FAQ answers open smoothly */
  .faq details[open] .a { animation: open .45s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}

/* 404: the stage, with a huge faint number behind the orb */
.stage-404 .stage-in { position: relative; }
.big-404 {
  position: absolute; inset-inline: 0; top: 50%; margin: 0; transform: translateY(-62%);
  font-size: clamp(9rem, 34vw, 26rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 236, 242, .08);
  background: linear-gradient(180deg, rgba(236, 236, 242, .07), transparent 80%);
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none; user-select: none; z-index: -1; direction: ltr;
}
.stage-404 .display { font-size: var(--step-3); }

/* Beta page: device switch, the request form and its status */
.ico-fill { fill: currentColor; stroke: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(9, 9, 11, .5); }
.seg button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  font: 500 var(--step--1) var(--font); cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.seg button .ico { width: 18px; height: 18px; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--base); }
.seg button:not([aria-checked="true"]):hover { color: var(--ink); background: rgba(244, 245, 249, .06); }
.join-step[hidden] { display: none; }
.join .panel { max-width: 640px; }
.join-form { display: grid; gap: 16px; }
.join-form label { display: grid; gap: 6px; color: var(--ink-2); font-size: var(--step--1); }
.join-form input, .join-form textarea {
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(9, 9, 11, .6); color: var(--ink); font: 400 var(--step-0) var(--font); resize: vertical;
}
.join-form input:focus-visible, .join-form textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.who { margin: 0 0 4px; color: var(--ink-3); font-size: var(--step--1); }
.small { font-size: var(--step--1); margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row [hidden] { display: none; }
.form-error { min-height: 1.5em; margin: 12px 0 0; color: #f0b4b4; font-size: var(--step--1); }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .join-step:not([hidden]) { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
}

/* Language switch (site.js flip): the new language opens as a circle from the
   button behind a ring of light; the old page sinks and slides away. */
html.lang-flip .nav { view-transition-name: none; }
html.lang-flip::view-transition-image-pair(root) { isolation: isolate; perspective: 1400px; }
html.lang-flip::view-transition-old(root),
html.lang-flip::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.lang-flip::view-transition-old(root) { z-index: 1; transform-origin: 50% 40%; }
html.lang-flip::view-transition-new(root) { z-index: 2; }
.lang-ring {
  position: fixed; z-index: 100; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px 14px rgba(170, 167, 255, .55), inset 0 0 90px 10px rgba(170, 167, 255, .40);
  animation: lang-ring 1.1s cubic-bezier(.75, 0, .15, 1) forwards;
}
@keyframes lang-ring {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* Browsers without view transitions: a quick blur out and back. */
body { transition: opacity .3s ease, filter .3s ease; }
html.lang-lite body { opacity: 0; filter: blur(10px); }
