/* Simple AI Reader – landing page */
/* Fonts are self-hosted (SIL Open Font License, see assets/fonts/OFL.txt) – no visitor data goes to third parties */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-tight-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-tight-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-tight-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 900; font-display: swap; src: url('assets/fonts/inter-tight-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
:root {
  --navy: #171B2C;
  --ink: #0E1120;
  --blue: #3B9EE8;
  --blue-d: #2A86CF;
  --gold: #C89B20;
  --gold-l: #E2B93B;
  --paper: #F5F5F7;
  --text: #F5F6FA;
  --muted: #9AA0B4;
  --dark-text: #12141C;
  --dark-muted: #6B7080;
  --line: rgba(255,255,255,.09);
  --radius: 28px;
  --nav-h: 56px;
  --pad: clamp(56px, 7vw, 96px);
  --head-gap: clamp(28px, 4vw, 48px);
  --display: 'Inter Tight', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  /* The site has one fixed design: browsers must not apply their own dark mode */
  color-scheme: only light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2vw, 22px);
  color: var(--gold-l); letter-spacing: -.01em; margin-bottom: 14px;
}
.eyebrow.dark-text { color: var(--gold); }
.headline {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(36px, 6.4vw, 80px);
  line-height: 1.08; letter-spacing: -.04em;
}
.lead {
  font-size: clamp(18px, 2.1vw, 24px); line-height: 1.4; color: var(--muted);
  max-width: 680px; margin: 22px auto 0; font-weight: 500;
}
.sub { font-size: clamp(18px, 2vw, 22px); color: var(--dark-muted); margin-top: 12px; font-weight: 500; }

/* The gold block from the promo images – kept inside its own line */
.mark {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  padding: 0 .18em .02em; border-radius: .12em;
  line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn svg { font-size: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 14px; }
.btn:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- top: logo + web app button over the film ---------- */
.top {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  padding-inline: clamp(16px, 2vw, 28px); height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
@media (max-width: 360px) { .brand span { display: none; } }

/* ---------- sections ---------- */
section { position: relative; }
.dark { background: var(--ink); color: var(--text); }
.light { background: var(--paper); color: var(--dark-text); }

/* white sections – one even rhythm down the page */
.white-bg { background: #fff; color: var(--dark-text); padding: var(--pad) 0 0; }
.white-bg .circle-btn { background: rgba(18,20,28,.08); color: var(--dark-text); }
.white-bg .circle-btn:hover { background: rgba(18,20,28,.14); }

/* ---------- device frames (iPhone 18 / 10" tablet) ---------- */
.device { --w: 260px; position: relative; flex: none; width: var(--w); background: #050507; }
.device img { width: 100%; height: auto; display: block; }
.iphone {
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .17);
  box-shadow:
    0 0 0 calc(var(--w) * .01) #A4A9B3,
    0 0 0 calc(var(--w) * .017) #5D626C,
    0 30px 70px rgba(0,0,0,.4);
}
.iphone img { aspect-ratio: 1080 / 2340; border-radius: calc(var(--w) * .138); }
.island {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .062); width: 31%; height: calc(var(--w) * .088);
  border-radius: 999px; background: #000;
}
.tablet {
  padding: calc(var(--w) * .042);
  border-radius: calc(var(--w) * .07);
  box-shadow:
    0 0 0 calc(var(--w) * .007) #A4A9B3,
    0 0 0 calc(var(--w) * .012) #5D626C,
    0 30px 70px rgba(0,0,0,.4);
}
.tablet img { aspect-ratio: 1200 / 1920; border-radius: calc(var(--w) * .028); }
.cam {
  position: absolute; left: 50%; top: calc(var(--w) * .021); transform: translate(-50%, -50%);
  width: calc(var(--w) * .014); aspect-ratio: 1; border-radius: 50%; background: #1A1D26;
}

/* ---------- film (full-bleed, always playing) ---------- */
.film {
  height: 100vh; height: 100svh;   /* the whole visible window, on every screen (svh: iPhone toolbars) */
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(59,158,232,.38), transparent 70%),
    radial-gradient(35% 40% at 80% 20%, rgba(200,155,32,.12), transparent 70%),
    linear-gradient(180deg, #151A2E 0%, #0E1120 100%);
}
.film-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; opacity: 0; transition: opacity .6s;
}
.film.has-video .film-video { opacity: 1; }
.film.has-video .hero-devices { opacity: 0; }
/* devices on the right, fully visible and centred top-to-bottom */
/* margin | text | gap | devices | margin – margins and gap are the same share of the width */
.film { --side: 7vw; }
.hero-layout {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; gap: var(--side); padding: 0 var(--side);
}
.hero-copy { flex: 1 1 0; min-width: 0; }
.hero-devices {
  --tw: min(25vw, calc(min(100svh, 1060px) * .44));
  position: relative; flex: none; transition: opacity .6s;
  width: calc(var(--tw) * 1.22); height: calc(var(--tw) * 1.56);
}
.film-tablet {
  --w: var(--tw);
  position: absolute; left: 0; top: 0;
  animation: float 9s ease-in-out infinite;
}
.film-phone {   /* overlaps the tablet's right side, sitting a little higher – as before */
  --w: calc(var(--tw) * .42);
  position: absolute; right: 0; bottom: calc(var(--tw) * .08);
  animation: float 9s ease-in-out -4.5s infinite;
}

/* text on the left, read aloud word by word */
.hero-text {
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.1vw, 54px);
  line-height: 1.22; letter-spacing: -.03em; color: #fff;
}
.hero-text .now {   /* padding (not a spread shadow) so there is no dark seam inside the highlight */
  color: var(--navy); background: var(--gold); border-radius: .14em;
  padding: 0 .08em; margin: 0 -.08em;
  box-shadow: 0 0 34px rgba(226,185,59,.55);
}
@keyframes float { 50% { translate: 0 -14px; } }
@media (max-width: 760px) {
  .film { min-height: 520px; }
  .film { --side: 6vw; }
  .hero-layout { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: 96px var(--side) 80px; }
  .hero-copy { flex: none; }
  .hero-text { font-size: clamp(24px, 7vw, 34px); }
  .hero-devices { --tw: min(46vw, calc(92svh * .3)); align-self: center; }
}

/* ---------- features / bento ---------- */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  grid-auto-rows: 500px;
  margin-top: var(--head-gap);
}
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.tile-wide { grid-column: span 2; }
/* tile colours – same family as the gallery cards */
.c-night { background: linear-gradient(160deg, #262C47 0%, #12152A 100%); color: #fff; }
.c-gold  { background: linear-gradient(160deg, #D9AC2C 0%, #8F6B10 100%); color: var(--navy); }
.c-sand  { background: linear-gradient(160deg, #EDE6D3 0%, #C9BC97 100%); color: var(--navy); }
.c-sky   { background: linear-gradient(160deg, #DCEBFA 0%, #9CC8EE 100%); color: var(--navy); }
.tile-text { padding: clamp(24px, 3vw, 34px); position: relative; z-index: 2; }
.tile-eyebrow { font-weight: 700; font-size: 15px; opacity: .72; margin-bottom: 8px; }
.tile h3 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.tile-text > p:not(.tile-eyebrow) { margin-top: 12px; opacity: .8; max-width: 620px; }
.tile-media { flex: 1; display: flex; justify-content: center; align-items: flex-start; min-height: 0; overflow: hidden; padding-top: 12px; }
.tile-media .iphone { --w: 270px; }
.tile-media .tablet { --w: 420px; }
/* anchored: the screen is cut at --cut (share of its height) at the tile's bottom edge */
.tile-media.anchored { position: relative; container-type: size; }
.tile-media.anchored .tablet {
  /* as big as possible while the visible part still fits under the text */
  --w: min(380px, calc((100cqh - 14px) / (1.508 - (1 - var(--cut)) * 1.466)));
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--w) * -1 * ((1 - var(--cut)) * 1.466 + .042));
}

/* reading demo */
.reading-demo {
  margin: auto clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
  background: #fff; color: #2B2F3A; border-radius: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  font-family: Georgia, 'Times New Roman', serif; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6;
}
.reading-demo .s.cur { background: rgba(59,158,232,.18); border-radius: 4px; }
.reading-demo .w.cur { background: rgba(59,158,232,.55); border-radius: 4px; box-shadow: 0 0 0 2px rgba(59,158,232,.55); color: #0E1120; }

/* voices */
.voices { display: flex; flex-direction: column; gap: 8px; padding: 0 clamp(20px, 2.6vw, 28px); }
.voice {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(255,255,255,.28); border: 1px solid rgba(23,27,44,.12);
  transition: background .2s, border-color .2s;
}
.voice:hover { background: rgba(255,255,255,.42); }
.voice.playing { border-color: var(--navy); background: rgba(255,255,255,.5); }
.v-avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-weight: 800; color: var(--gold-l);
  background: var(--navy);
}
.v-name { flex: 1; font-weight: 600; display: flex; flex-direction: column; line-height: 1.25; }
.v-name small { font-weight: 400; font-size: 13px; opacity: .75; }
.v-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.v-wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--navy); opacity: .55; }
.voice.playing .v-wave i { opacity: 1; animation: wave 0.9s ease-in-out infinite; }
.voice.playing .v-wave i:nth-child(2) { animation-delay: .12s; }
.voice.playing .v-wave i:nth-child(3) { animation-delay: .24s; }
.voice.playing .v-wave i:nth-child(4) { animation-delay: .36s; }
.voice.playing .v-wave i:nth-child(5) { animation-delay: .48s; }
@keyframes wave { 0%,100% { height: 5px; } 50% { height: 22px; } }
.voice-note { padding: 14px clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 28px); font-size: 14px; opacity: .8; margin-top: auto; }

/* theme switch */
.theme-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px;
  border-radius: 999px; background: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; color: var(--dark-text);
  border: 1.5px solid transparent; transition: border-color .2s;
}
.theme-switch button[aria-selected="true"] { border-color: var(--blue); }
.sw { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sw-white { background: #fff; }
.sw-dark { background: #2E3140; }
.sw-sepia { background: #EFE1BE; }
#themeShot { transition: opacity .25s; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; gap: 14px; grid-auto-rows: auto; }
  .tile-media { flex: none; height: 320px; }
  .tile-wide { grid-column: auto; }
  .tile-media .tablet { --w: 330px; }
}

/* ---------- gallery ---------- */
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--head-gap) max(16px, calc((100% - 1080px) / 2)) 0;
  scroll-padding-inline: max(16px, calc((100% - 1080px) / 2));
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.g-card {
  scroll-snap-align: start; flex: none;
  width: min(684px, 78vw); aspect-ratio: 4 / 3.4;
  border-radius: var(--radius); overflow: hidden; position: relative;
  container-type: inline-size;
  /* caption first, device right under it – the card's bottom edge crops the device */
  display: flex; flex-direction: column; align-items: center;
}
.g-card .device { order: 1; margin-top: 6px; }
.g-card .iphone { --w: 44cqw; }
.g-card .tablet { --w: 58cqw; }
.g-card figcaption {
  align-self: stretch; padding: clamp(22px, 3.2vw, 34px) clamp(22px, 3.2vw, 34px) clamp(18px, 2.4vw, 26px);
  font-size: clamp(17px, 1.9vw, 21px); font-weight: 500; line-height: 1.35; color: inherit; opacity: .85; max-width: 560px;
}
.g-card figcaption strong { font-weight: 700; }
@media (max-width: 640px) {
  .g-card { aspect-ratio: 3 / 4; }
  .g-card .iphone { --w: 64cqw; }
  .g-card .tablet { --w: 86cqw; }
}
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.gallery-nav { display: flex; gap: 12px; flex: none; }
.circle-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); font-size: 20px; transition: background .2s, opacity .2s;
}
.circle-btn:hover { background: rgba(255,255,255,.18); }
.circle-btn:disabled { opacity: .35; cursor: default; }
.film-down {
  position: absolute; z-index: 3; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  background: rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.film-down:hover { background: rgba(255,255,255,.24); }

/* ---------- privacy ---------- */
.privacy .lead { color: var(--dark-muted); }
.privacy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: var(--head-gap);
}
.p-card {
  padding: clamp(26px, 3vw, 36px); border-radius: var(--radius);
  background: linear-gradient(160deg, #DCEBFA 0%, #9CC8EE 100%); color: var(--navy);
}
.p-card h3 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.p-card p { color: rgba(23,27,44,.72); margin-top: 10px; }
@media (max-width: 700px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- story ---------- */
.story-inner { max-width: 820px; }
.story-text { margin-top: var(--head-gap); font-size: clamp(19px, 2vw, 23px); line-height: 1.55; color: #3A3E4A; }
.story-text p + p { margin-top: 18px; }

/* ---------- download ---------- */
.download { padding-bottom: var(--pad); }
.get {
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1E2E55 0%, #0F1730 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.get h3 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.get-text p { margin-top: 8px; color: rgba(255,255,255,.85); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #0B0D16; color: #fff;
}
.store svg { font-size: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-weight: 700; font-size: 18px; }
.store small { font-family: var(--body); font-weight: 500; font-size: 11px; color: rgba(255,255,255,.7); }
.store.disabled { cursor: default; }
.qr {
  flex: none; background: #fff; border-radius: 22px; padding: 16px 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.qr svg { width: 150px; height: 150px; display: block; stroke: none; }
.qr span { font-size: 12px; font-weight: 600; color: var(--dark-muted); }
@media (max-width: 720px) {
  .get { flex-direction: column; align-items: flex-start; }
  .get-text { align-self: stretch; }
  .stores { justify-content: center; }
  .qr { align-self: center; }
}

/* ---------- footer ---------- */
.footer { background: #0F1730; color: rgba(255,255,255,.65); font-size: 13px; padding: 26px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a:hover { color: #fff; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(5,6,12,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .25s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(440px, 100%); padding: 40px 32px 32px; border-radius: 28px;
  background: var(--navy); border: 1px solid var(--line); text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}
.modal-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center;
  font-size: 30px; color: var(--blue); background: rgba(59,158,232,.14);
}
.modal-card h3 { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.modal-card p { color: var(--muted); margin: 12px 0 26px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.08); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .voice.playing .v-wave i, .film-tablet, .film-phone, .scan-line { animation: none; }
  .modal, .modal-card { animation: none; }
}

/* ---------- legal pages (text pulled live from the originals) ---------- */
.legal-hero {
  padding: calc(72px + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(50% 80% at 50% 120%, rgba(59,158,232,.32), transparent 70%),
    linear-gradient(180deg, #151A2E 0%, #0E1120 100%);
  color: #fff;
}
.legal-updated { margin-top: 18px; color: var(--muted); font-size: 16px; font-weight: 500; min-height: 1.5em; }
.legal-body { padding-bottom: var(--pad); }
.legal-grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal-toc p { font-weight: 700; color: var(--dark-text); margin-bottom: 8px; }
.legal-toc a { color: var(--dark-muted); padding: 5px 0 5px 12px; border-left: 2px solid rgba(18,20,28,.1); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--dark-text); border-color: var(--gold); }
.legal-text { max-width: 720px; font-size: 17px; line-height: 1.75; color: #3A3E4A; }
.legal-text h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.02em; line-height: 1.2; color: var(--dark-text);
  margin: 44px 0 12px; scroll-margin-top: 24px;
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text p + p { margin-top: 14px; }
.legal-text ul, .legal-text ol { margin: 12px 0 0 22px; }
.legal-text strong { color: var(--dark-text); }
.legal-text a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }
.legal-loading { color: var(--dark-muted); }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}
.legal-text .box { margin-top: 18px; padding: 22px 26px; border-radius: 20px; background: linear-gradient(160deg, #DCEBFA 0%, #B9DAF5 100%); }
.legal-text .box ul { margin-bottom: 10px; }
.legal-updated:empty { display: none; }

/* ---------- contact form ---------- */
.contact { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--dark-text); }
.req { color: var(--gold); }
.opt { font-weight: 400; color: var(--dark-muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--dark-text);
  padding: 13px 16px; border-radius: 14px;
  background: #F5F6F8; border: 1.5px solid transparent;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,158,232,.15); }
.field.invalid input, .field.invalid textarea { border-color: #D64545; background: #FFF6F6; }
.field-error { font-size: 13px; color: #C23B3B; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { font-size: 12.5px; line-height: 1.6; color: var(--dark-muted); }
.contact-notice a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 2px; }
.contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact-actions .btn:disabled { opacity: .6; cursor: default; }
.contact-status { font-size: 15px; color: var(--dark-muted); }
.contact-status:empty { display: none; }
.contact-status.ok { color: #1E7B4C; font-weight: 600; }
.contact-status.error { color: #C23B3B; }
.contact-status a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .contact { grid-template-columns: 1fr; } }

/* ---------- delete account (QR sign-in → confirm → done) ---------- */
.btn-danger { background: #D23C3C; color: #fff; }
.btn-danger:hover { background: #B92F2F; }
.btn-danger:disabled { opacity: .6; cursor: default; }
.btn-quiet { background: #F0F1F4; color: var(--dark-text); }
.btn-quiet:hover { background: #E4E6EB; }
.del { max-width: 880px; }
.qr-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius);
  background: linear-gradient(160deg, #262C47 0%, #12152A 100%); color: #fff;
}
.qr-box { position: relative; width: 232px; aspect-ratio: 1; padding: 16px; border-radius: 22px; background: #fff; }
.qr-code svg { display: block; width: 100%; height: 100%; stroke: none; }
.qr-code.faded { opacity: .12; }
.qr-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--dark-text); font-weight: 600; }
.qr-overlay[hidden] { display: none; }
.qr-info h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.qr-steps { margin: 16px 0 0 20px; display: flex; flex-direction: column; gap: 8px; color: rgba(255,255,255,.85); }
.qr-steps strong { color: #fff; }
.qr-status { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; color: rgba(255,255,255,.9); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); flex: none; }
.qr-status.waiting .dot { background: var(--gold-l); animation: pulse 1.6s ease-in-out infinite; }
.qr-status.claimed .dot { background: var(--blue); animation: pulse 1s ease-in-out infinite; }
.dot.ok { background: #2FA36B; }
@keyframes pulse { 50% { opacity: .35; } }
.qr-alt { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.qr-alt strong { color: rgba(255,255,255,.9); }
.cookie-note { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--dark-muted); }
.cookie-note a, .fine-print a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 2px; }
.signed-in { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #EEF7F2; color: #1E6B45; font-weight: 600; font-size: 15px; }
.del-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.del-card { padding: 24px; border-radius: 22px; background: linear-gradient(160deg, #DCEBFA 0%, #B9DAF5 100%); color: var(--navy); }
.del-card h3 { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.del-card p { margin-top: 8px; font-size: 15px; color: rgba(23,27,44,.78); }
.del-notes { margin: 24px 0 0 20px; display: flex; flex-direction: column; gap: 10px; color: #3A3E4A; }
.del-notes strong { color: var(--dark-text); }
.del-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.del-error { margin-top: 14px; color: #C23B3B; font-weight: 600; }
.done-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: linear-gradient(160deg, #EDE6D3 0%, #C9BC97 100%); color: var(--navy); }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--navy); color: var(--gold-l); margin-bottom: 18px; }
.done-icon svg { stroke-width: 2.4; }
.done-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.done-card p { margin-top: 12px; color: rgba(23,27,44,.8); max-width: 640px; }
.fine-print { margin-top: clamp(40px, 6vw, 64px); font-size: 11.5px; line-height: 1.6; color: #8A8F9C; max-width: 640px; }
@media (max-width: 760px) {
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .qr-info { justify-self: stretch; }
  .del-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .qr-status .dot { animation: none; } }

/* ---------- /l/<code> opened on a device without the app ---------- */
.l-card { max-width: 640px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: linear-gradient(160deg, #DCEBFA 0%, #B9DAF5 100%); color: var(--navy); }
.l-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.l-card p { margin-top: 12px; color: rgba(23,27,44,.8); }
.l-card .stores { margin-top: 22px; }
.del-intro { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: #3A3E4A; margin-bottom: 22px; max-width: 640px; }

/* delete page: light-blue sign-in box on the white page */
.del-page .qr-card { background: linear-gradient(160deg, #DCEBFA 0%, #9CC8EE 100%); color: var(--navy); }
.del-page .qr-steps { color: rgba(23,27,44,.82); }
.del-page .qr-steps strong, .del-page .qr-alt strong { color: var(--navy); }
.del-page .qr-status { color: var(--navy); }
.del-page .dot { background: rgba(23,27,44,.3); }
.del-page .qr-status.waiting .dot { background: var(--gold); }
.del-page .qr-status.claimed .dot { background: var(--blue-d); }
.del-page .qr-alt { color: rgba(23,27,44,.7); }
.del-page .qr-box { box-shadow: 0 10px 30px rgba(23,27,44,.18); }
.del-page .fine-print { margin-top: 10px; }
.qr-status[hidden] { display: none; }

/* film pause/play (required for looping motion) */
.film-pause {
  position: absolute; z-index: 3; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px);
  background: rgba(255,255,255,.14); color: #fff; font-size: 18px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.film-pause:hover { background: rgba(255,255,255,.24); }
.film-pause .i-play { display: none; }
.film.is-paused .film-pause .i-play { display: block; }
.film.is-paused .film-pause .i-pause { display: none; }
.film.is-paused .film-tablet, .film.is-paused .film-phone { animation-play-state: paused; }

/* Dark mode on the device changes nothing: same colours in light and dark mode.
   (Declaring a dark-mode rule also stops Samsung Internet from force-darkening the page.) */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; }
}
