/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL.txt).
   Same families, weight ranges, display and Latin subset range the saved design requested from Google Fonts
   (Inter 400-700, Inter Tight 500-800, display=swap), so the page renders identically without a third-party request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Retenna landing · base: tokens, type, header, buttons, form, footer, sheet.
   Tokens follow Overhaul v5. Since the revamp (28 September 2026) the whole page, hero included, follows the device:
   light devices get the morning canvas (#F6F5FB), dark devices the night canvas (#0F1019). There is no night-to-day arc
   any more; ".night", ".day" and ".tone-day" no longer change the tokens. The film window stays dark in both (it is video). */
:root {
  color-scheme: light dark;
  --night: #0F1019; --film: #0B0C14; --canvas: #F6F5FB;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.3,1.35,.45,1); --sheet-ease: cubic-bezier(.2,1.12,.35,1);
  --iris: linear-gradient(100deg, #6FD8FF 0%, #6A7BF0 22%, #9A5CF0 44%, #E57FCB 66%, #FFC7A6 84%);
  --max: 1200px; --gut: clamp(20px, 4.2vw, 48px);
  --r-card: 24px; --r-btn: 16px; --r-field: 16px;
  --fs-sent: 15px; --fs-frag: 13.5px; --fs-pill: 12.5px;
  --hdr-h: 68px;
  /* light (default) */
  --bg: #F6F5FB; --bg2: #EFEDF8;
  --fg: #1D1D32; --muted: #5C5C73; --faint: rgba(29,29,50,.55); --quiet: #85849C; --surface: #FFFFFF; --raised: #FFFFFF;
  --glass: rgba(246,245,251,.8); --line: #E7E5F0; --line2: #D9D6E6; --wash: #EFEDF8;
  --accent: #6142D8; --accent-text: #5030BD; --accent-soft: #ECE5FF; --green: #24715C; --green-soft: #E4F4EA;
  --peach: #A84C23; --peach-soft: #FFF0E3; --ask: #5030BD; --ask-soft: #ECE5FF;
  --pink: #AB3C78; --pink-soft: #FBE7F2; --blue: #275CC5; --blue-soft: #E4ECFD; --cyan: #087886; --cyan-soft: #DDF3F4;
  --grad: linear-gradient(120deg, #6142D8, #275CC5); --glow: 0 10px 22px -10px rgba(78,62,210,.65);
  --field: #FFFFFF; --field-line: #D9D6E6; --focus: #6142D8; --focus-ring: rgba(97,66,216,.16);
  --sh: 0 1px 1px rgba(32,32,69,.04), 0 8px 24px -12px rgba(32,32,69,.16);
  --sh-lift: 0 0 0 1px rgba(32,32,69,.06), 0 24px 50px -24px rgba(32,32,69,.35);
  --iris-text: linear-gradient(100deg, #1B8DBF 0%, #4F5FE0 24%, #7B45DB 46%, #C0428F 68%, #D2703F 90%);
  --model-rgb: 97, 66, 216;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1019; --bg2: #151626;
    --fg: #F5F3FF; --muted: #B0AEC6; --faint: rgba(245,243,255,.56); --quiet: rgba(245,243,255,.56); --surface: #1A1B28; --raised: #242536;
    --glass: rgba(15,16,25,.72); --line: #2D2E42; --line2: #3A3B52; --wash: rgba(255,255,255,.05);
    --accent: #B29AFF; --accent-text: #D9CBFF; --accent-soft: #32264F; --green: #8CDEB7; --green-soft: #1F3E35;
    --peach: #FFC19E; --peach-soft: #463025; --ask: #C9B8FF; --ask-soft: rgba(178,154,255,.14);
    --pink: #F6AED4; --pink-soft: #482A41; --blue: #A4C2FF; --blue-soft: #1F2A45; --cyan: #7DDCE2; --cyan-soft: #16363A;
    --grad: linear-gradient(120deg, #7657F0, #4F72E8); --glow: 0 10px 26px -10px rgba(118,87,240,.75);
    --field: rgba(255,255,255,.06); --field-line: rgba(255,255,255,.16); --focus: #B29AFF; --focus-ring: rgba(178,154,255,.24);
    --sh: 0 0 0 1px rgba(255,255,255,.06) inset, 0 30px 60px -30px rgba(0,0,0,.8);
    --sh-lift: 0 0 0 1px rgba(255,255,255,.08) inset, 0 30px 60px -28px rgba(0,0,0,.85);
    --iris-text: var(--iris);
    --model-rgb: 178, 154, 255;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); background: var(--bg); }
html:not([data-motion="reduced"]) { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; color: var(--fg);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11","ss01","ss03"; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure, fieldset, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: #1D1D32; font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip:focus { transform: none; }
.link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Type */
.h1 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: clamp(2.75rem, 1rem + 7.2vw, 7.4rem); line-height: .96; letter-spacing: -.05em; text-wrap: balance; }
.h2 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -.042em; text-wrap: balance; }
.h2 .m { color: inherit; } /* single tone (29 Sep 2026): the second half no longer goes grey */
.lede { font-size: clamp(16.5px, 1.2vw + 11px, 19px); line-height: 1.55; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.iris { background-image: var(--iris-text); background-size: 100% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec { position: relative; padding: clamp(72px, 7.5vw, 112px) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-btn);
  background: var(--grad); color: #fff; font-weight: 650; font-size: 16px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.18); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), filter .2s; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
.btn-ghost { background: var(--wash); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-ghost:hover { color: var(--fg); background: var(--accent-soft); }
.sheen::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 48%, transparent 66%); transform: translateX(-120%); }
html[data-motion="full"] .sheen.sheen-go::after { animation: sheen 1.1s var(--ease) .15s 1 both; }
@keyframes sheen { 0% { opacity: 1; transform: translateX(-120%); } 100% { opacity: 1; transform: translateX(120%); } }

/* Header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s; color: var(--fg); }
.hdr-in { height: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hdr.is-solid { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 1px; color: inherit; text-decoration: none; border-radius: 8px; }
.brand-r { width: auto; height: 26px; filter: drop-shadow(0 0 8px rgba(178,154,255,.35)); }
.brand-w { width: 78px; height: 15px; margin-top: 4px; }
.hdr-act { display: flex; align-items: center; gap: 6px; }
.hdr-film { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 600; color: inherit; }
.hdr-film svg.i { width: 16px; height: 16px; }
.hdr-film:hover { background: rgba(127,127,160,.14); }
.hdr-cta { margin-left: 4px; }
.hdr-cta-tick { display: none; width: 18px; height: 18px; stroke-width: 2.4; }
.hdr-cta.is-joined { background: var(--green-soft); color: inherit; box-shadow: inset 0 0 0 1px var(--green); }
.hdr-cta.is-joined .hdr-cta-tick { display: block; color: var(--green); }
@media (max-width: 720px) { .hdr-film { display: none; } :root { --hdr-h: 60px; } .brand-r { height: 23px; } .brand-w { width: 68px; height: 13px; } }
@media (max-width: 380px) { .hdr-cta { padding: 0 12px; font-size: 14px; } }

/* Early-access form (one component, two placements, shared state) */
.join { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.join-form { display: grid; gap: 8px; }
.join-lbl { font-size: 14px; font-weight: 600; color: var(--fg); }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 22px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); transition: box-shadow .2s var(--ease), background-color .2s; }
.join-row:focus-within { box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 4px var(--focus-ring); }
.join-input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent; font-size: 16.5px; color: var(--fg); outline: none; }
.join-input::placeholder { color: var(--muted); opacity: .8; }
.join-input[readonly] { opacity: .7; }
.join.is-invalid .join-row { box-shadow: inset 0 0 0 2px var(--peach), 0 0 0 4px var(--peach-soft); }
.join-btn { flex: 0 0 auto; min-height: 48px; }
.join-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; }
.join.is-submitting .join-spin { display: block; }
html[data-motion="full"] .join.is-submitting .join-spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.join.is-submitting .join-btn { cursor: progress; }
.join-msg { font-size: 14.5px; line-height: 1.45; min-height: 0; color: var(--muted); }
.join-msg:empty { display: none; }
.join.is-invalid .join-msg, .join.is-error .join-msg { color: var(--peach); font-weight: 550; }
.join-offer { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; color: var(--fg); line-height: 1.4; }
.join-offer svg.i { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); fill: currentColor; stroke: none; }
.join-legal { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 44em; }
.join-legal a { color: inherit; font-weight: 600; }
.join-done { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--green-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); outline: none; }
.join-done[hidden] { display: none; }
.join-done-tick { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--bg); display: grid; place-items: center; flex: 0 0 auto; }
.join-done-tick svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.join-done-t { font-weight: 700; font-size: 17px; }
.join-done-s { font-size: 15px; color: var(--muted); margin-top: 2px; }
.join-done-s .link { color: var(--fg); }
.join.is-done .join-form { display: none; }
@media (max-width: 560px) {
  .join-row { flex-direction: column; padding: 0; background: none; box-shadow: none; gap: 10px; }
  .join-row:focus-within { box-shadow: none; }
  .join-input { min-height: 54px; border-radius: 16px; background: var(--field); box-shadow: inset 0 0 0 1px var(--field-line); padding: 0 16px; }
  .join-input:focus { box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 4px var(--focus-ring); }
  .join.is-invalid .join-row { box-shadow: none; }
  .join.is-invalid .join-input { box-shadow: inset 0 0 0 2px var(--peach), 0 0 0 4px var(--peach-soft); }
  .join-btn { width: 100%; min-height: 54px; }
}

/* Footer: brand and link columns, then a legal line */
.ftr { background: var(--bg2); color: var(--fg); padding: 48px 0 28px; border-top: 1px solid var(--line); }
.ftr-top { display: grid; gap: 32px; }
@media (min-width: 900px) { .ftr-top { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.ftr .brand-r { height: 30px; }
.ftr .brand-w { width: 90px; height: 17px; }
.ftr-tm { align-self: flex-start; margin: 2px 0 0 3px; font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); }
.ftr-brand p { margin-top: 14px; max-width: 30em; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.ftr-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-size: 14.5px; font-weight: 650; color: var(--fg); text-decoration: none; }
.ftr-cta span { transition: transform .2s var(--ease); }
.ftr-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr-cta:hover span { transform: translateX(3px); }
.ftr-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 900px) { .ftr-nav { grid-template-columns: repeat(2, max-content); gap: 72px; } }
.ftr-h { margin-bottom: 4px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ftr-nav ul { display: grid; }
.ftr-nav a { display: inline-flex; min-height: 40px; align-items: center; color: var(--fg); text-decoration: none; font-size: 14.5px; font-weight: 550; opacity: .85; }
@media (pointer: coarse) { .ftr-nav a { min-height: 44px; } }
.ftr-nav a:hover, .ftr-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line2); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Sheet: centred panel on desktop, bottom sheet on phones */
.sheet { border: 0; padding: 0; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); border-radius: 28px; background: var(--surface); color: var(--fg);
  box-shadow: 0 0 0 1px var(--line) inset, var(--sh-lift); overflow: hidden; }
.sheet::backdrop { background: rgba(8,9,15,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-in { display: flex; flex-direction: column; max-height: inherit; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.sheet-h { font-family: "Inter Tight", Inter, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sheet-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,160,.14); flex: 0 0 auto; }
.sheet-body { overflow: auto; padding: 4px 24px 28px; overscroll-behavior: contain; }
html[data-motion="full"] .sheet[open] { animation: sheet-in .45s var(--sheet-ease); }
html[data-motion="reduced"] .sheet[open] { animation: fade-in .15s linear; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 640px) {
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 30px 30px 0 0; max-height: 86vh; }
  html[data-motion="full"] .sheet[open] { animation: sheet-up .5s var(--sheet-ease); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
