/* waffle's website. Built into website/assets by tool/make_website.py. Colours and type follow the app (DESIGN.md):
   the night it is drawn on, Geist for words, Instrument Serif Italic for titles, the icon's sky → periwinkle → lilac.
   One idea carries the page: the app's ring, drawn behind its screens as a tuner's scale. */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff") format("woff"); font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff") format("woff"); font-style: normal; font-display: swap; }

/* How far the hero's phones have fanned out: 0 stacked, 1 open. Animated on load where @property is supported. */
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --night: #09090c;
  --surface: #111116;
  --surface-2: #16161c;
  --line: #22212a;
  --line-strong: #34333e;
  --ink: #f3f1ed;
  --quiet: #a7a4af;
  --faint: #6d6a76;
  --sky: #5bbdf2;
  --peri: #84a6ff;
  --lilac: #cf8cf0;
  --gradient: linear-gradient(100deg, var(--sky), var(--peri) 50%, var(--lilac));
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 22px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --wide: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
:lang(ja) { --sans: "Geist", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; --serif: "Instrument Serif", "Hiragino Mincho ProN", "Noto Serif JP", "Yu Mincho", serif; }
:lang(zh) { --sans: "Geist", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The hero and its stage clip together: the ring may rise behind the words, the phones end at the stage's foot. */
.top { position: relative; overflow: clip; }
/* The phones sink into the night rather than ending on a hard edge. */
.stage::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 56%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--night) 70%, transparent) 45%, var(--night) 88%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(132, 166, 255, .35); }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; margin: 0; }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { font-style: normal; letter-spacing: 0; word-break: keep-all; word-break: auto-phrase; line-break: strict; }
:lang(ja) p, :lang(zh) p { word-break: auto-phrase; line-break: strict; }

/* Platform switches: config.js sets these classes on <html>. */
.no-android .only-android, .no-ios .only-ios { display: none !important; }

/* ── Bar ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--night) 72%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font: italic 400 24px/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.01em; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 14px; }
.bar nav > a { color: var(--quiet); text-decoration: none; transition: color .2s; white-space: nowrap; }
.bar nav > a:hover { color: var(--ink); }

/* On the home page the hero carries the name: the bar's appears once the hero's has scrolled away. */
@supports (animation-timeline: scroll()) {
  .home .bar { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 40px 140px; }
  .home .brand { animation: brand-in linear both; animation-timeline: scroll(root); animation-range: 150px 240px; }
}
@keyframes bar-in {
  from { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@keyframes brand-in { from { opacity: 0; transform: translateY(6px); } }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--quiet);
  transition: color .2s, border-color .2s, background-color .2s; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 172px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6);
  animation: menu-in .18s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--quiet); }
.lang li a:hover { background: var(--surface); color: var(--ink); }
.lang li a[aria-current] { color: var(--ink); }
.lang li a[aria-current]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--gradient); vertical-align: middle; }

@media (max-width: 600px) {
  .bar nav > a { display: none; }
  .lang summary { padding: 6px 10px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────────────────────────────────────────── */
main { display: block; }
.hero {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter) 0; max-width: 920px; margin: 0 auto;
}
.lockup { display: inline-flex; align-items: center; gap: clamp(12px, 1.6vw, 16px); }
.lockup img {
  width: clamp(48px, 6vw, 64px); height: auto; aspect-ratio: 1; border-radius: 24%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 14px 36px -10px rgba(132, 166, 255, .55);
}
.lockup span, .lockup h1 {
  font: italic 400 clamp(46px, 6.4vw, 68px)/1 "Instrument Serif", Georgia, serif; letter-spacing: -0.02em;
  padding-right: .06em; /* the italic f's tail */
}
.hero h1 {
  margin: clamp(28px, 4vw, 40px) auto 0; max-width: 12.5em;
  font-size: clamp(34px, 6.2vw, 72px); line-height: 1.04;
  background: linear-gradient(180deg, #fff 35%, #c9c4d6); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
:lang(ja) .hero h1, :lang(zh) .hero h1 { max-width: 20em; font-size: clamp(28px, 4.8vw, 54px); line-height: 1.3; }
.lede {
  max-width: 34em; margin: 20px auto 0; font-size: clamp(16px, 1.9vw, 18.5px); line-height: 1.6;
  color: var(--quiet); text-wrap: pretty;
}

.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 188px; padding: 10px 22px 10px 16px;
  border-radius: 14px; text-decoration: none; text-align: left;
  background: var(--ink); color: #09090c; transition: transform .25s var(--ease), box-shadow .25s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(132, 166, 255, .7); }
.store small { display: block; font-size: 11px; line-height: 1.25; opacity: .68; }
.store b { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.store.soon {
  background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--quiet);
  border: 1px solid var(--line); cursor: default;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.store.soon:hover { transform: none; box-shadow: none; }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--faint); text-wrap: balance; }
@media (max-width: 440px) {
  .stores { flex-direction: column; align-items: center; }
  .store { width: min(100%, 260px); }
}

/* ── Stage: the screens fanned out in front of the ring (a carousel on phones) ───────────────────────────────── */
.stage {
  --w: 252px;         /* the middle phone's width */
  --step: 170px;      /* how far apart their centres are */
  --tilt: 4deg;
  --drop: 26px;
  position: relative; margin-top: clamp(48px, 7vw, 80px); padding: 0 0 clamp(8px, 2vw, 24px);
}
/* The hero and its stage clip together: the ring may rise behind the words, the phones end at the stage's foot. */
.top { position: relative; overflow: clip; }
/* The phones sink into the night rather than ending on a hard edge. */
.stage::after {
  content: ""; position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--night) 75%, transparent) 55%, var(--night) 95%);
}
.stage ul {
  position: relative; z-index: 1; width: var(--w); aspect-ratio: 1 / 2; margin: 0 auto; padding: 0; list-style: none;
}
.stage li {
  position: absolute; inset: 0; z-index: calc(10 - var(--a)); transform-origin: 50% 120%;
  transform:
    translateX(calc(var(--o) * var(--step) * var(--f)))
    translateY(calc(var(--a) * var(--drop) * var(--f) + (1 - var(--f)) * 60px))
    rotate(calc(var(--o) * var(--tilt) * var(--f)))
    scale(calc(1 - var(--a) * .06 * var(--f)));
  animation: fan 1.5s var(--ease) .1s both;
}
.stage li:hover { z-index: 20; }
.zoom { display: block; height: 100%; border-radius: 30px; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.stage img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #0c0c10;
  border: 1px solid #2c2b35;
  box-shadow:
    0 0 0 6px #0d0d11, 0 0 0 7px #2a2932,
    0 40px 80px -30px rgba(0, 0, 0, .95);
  filter: brightness(calc(1 - var(--a) * .09));
  transition: transform .5s var(--ease), filter .35s ease, box-shadow .35s ease;
}
.stage li[data-a="0"] img {
  border-color: #3d3c4a;
  box-shadow:
    0 0 0 6px #0d0d11, 0 0 0 7px #3d3c4a,
    0 50px 100px -30px rgba(0, 0, 0, 1), 0 0 100px -16px rgba(132, 166, 255, .5);
}
@media (hover: hover) {
  .stage li:hover img {
    transform: translateY(-14px) scale(1.03); filter: none;
    box-shadow: 0 0 0 6px #0d0d11, 0 0 0 7px rgba(132, 166, 255, .55), 0 60px 110px -30px rgba(0, 0, 0, 1), 0 0 90px -20px rgba(132, 166, 255, .6);
  }
}
@keyframes fan { from { --f: 0; opacity: 0; } 25% { opacity: 1; } }

/* The ring behind them: a tuner's scale of fine ticks, and an arc in the icon's gradient that turns slowly. */
.dial {
  position: absolute; z-index: 0; left: 50%; top: calc(var(--w) * .92); translate: -50% -50%;
  width: min(1040px, 158vw); aspect-ratio: 1; pointer-events: none;
  /* Rises out of the night behind the buttons and sinks back with the phones. */
  -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 30%, #000 62%, transparent 86%);
  mask-image: linear-gradient(180deg, transparent 6%, #000 30%, #000 62%, transparent 86%);
}
.dial::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background:
    radial-gradient(closest-side at 40% 45%, rgba(91, 189, 242, .24), transparent 72%),
    radial-gradient(closest-side at 62% 52%, rgba(207, 140, 240, .2), transparent 72%);
  filter: blur(30px);
}
.dial i { position: absolute; border-radius: 50%; }
.dial i:first-child {
  inset: 0;
  background: repeating-conic-gradient(rgba(255, 255, 255, .16) 0 .18deg, transparent .18deg 2.5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 99%, transparent);
  mask: radial-gradient(closest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 99%, transparent);
  opacity: .8;
}
.dial i:last-child {
  inset: 34px;
  background: conic-gradient(from 210deg, transparent 0 4%, var(--sky) 18%, var(--peri) 36%, var(--lilac) 54%, transparent 68%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px), #000 99.5%, transparent);
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px), #000 99.5%, transparent);
  opacity: .8; animation: turn 40s linear infinite;
}
@keyframes turn { to { rotate: 1turn; } }

/* Under the carousel: where you are, and what that screen shows. Phones only. */
.dots, .caption { display: none; }

@media (max-width: 1240px) {
  .stage { --w: 236px; --step: 158px; }
  .stage li[data-a="3"] { display: none; }
}
@media (max-width: 860px) {
  .stage { --w: 224px; --step: 152px; --tilt: 5deg; }
  .stage li[data-a="2"] { display: none; }
}

/* Phones: every screen large and sharp, swiped one at a time; the one in the middle comes forward. */
@media (max-width: 560px) {
  .stage { --w: min(70vw, 300px); margin-top: 36px; padding-bottom: 0; }
  .stage::after { display: none; }
  .dial { width: 170vw; top: calc(var(--w) * 1.02); }
  .dial i:last-child { inset: 22px; }
  .stage ul {
    width: auto; aspect-ratio: auto; display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 14px calc((100% - var(--w)) / 2) 30px;
  }
  .stage ul::-webkit-scrollbar { display: none; }
  .stage li {
    display: block !important; position: relative; inset: auto; z-index: auto; flex: 0 0 var(--w); aspect-ratio: 1 / 2;
    scroll-snap-align: center; scroll-snap-stop: always; transform: none; transform-origin: 50% 50%;
    animation: rise 1s var(--ease) .1s both;
  }
  .zoom, .stage img { border-radius: 28px; }
  .stage img, .stage li[data-a="0"] img {
    filter: none; border-color: #3a3946;
    box-shadow: 0 0 0 5px #0d0d11, 0 0 0 6px #34333e, 0 34px 70px -26px rgba(0, 0, 0, 1), 0 0 70px -22px rgba(132, 166, 255, .55);
  }
  .dots { display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; }
  .dots button {
    width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
  }
  .dots button::before {
    content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong);
    transition: width .35s var(--ease), background-color .35s;
  }
  .dots button[aria-current="true"]::before { width: 20px; background: var(--peri); }
  .caption {
    display: block; min-height: 3.2em; max-width: 30em; margin: 6px auto 0; padding: 0 var(--gutter);
    text-align: center; font-size: 14px; line-height: 1.5; color: var(--quiet); text-wrap: balance;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
/* Where scroll-driven animations exist, the carousel turns like a dial: the sides lean back and dim. */
@supports (animation-timeline: view()) {
  @media (max-width: 560px) and (prefers-reduced-motion: no-preference) {
    .stage li { animation: coverflow linear both; animation-timeline: view(inline); }
    .stage ul { animation: rise 1s var(--ease) .1s both; }
  }
}
@keyframes coverflow {
  0% { transform: translateY(26px) rotate(-7deg) scale(.86); opacity: .5; }
  50% { transform: none; opacity: 1; }
  100% { transform: translateY(26px) rotate(7deg) scale(.86); opacity: .5; }
}

/* ── Viewer: one screen at a time, full size ─────────────────────────────────────────────────────────────────── */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 7, 10, .9); color: var(--ink); overflow: hidden;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: viewer-in .28s ease; }
@keyframes viewer-in { from { opacity: 0; } }
.viewer .track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.viewer .track::-webkit-scrollbar { display: none; }
.viewer .slide {
  flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; min-height: 0;
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 16px 8px;
}
.viewer .slide img {
  /* As tall as the room above the caption allows (a phone's 3-line caption needs ~150 px), never wider than the screen. */
  width: min(calc(100vw - 32px), calc((100vh - 230px) / 2), calc((100dvh - 230px) / 2)); height: auto; aspect-ratio: 1 / 2;
  border-radius: clamp(22px, 3.4vh, 36px); border: 1px solid #34333e; background: #0c0c10;
  box-shadow: 0 0 0 6px #0d0d11, 0 0 0 7px #2a2932, 0 40px 100px -30px #000, 0 0 120px -30px rgba(132, 166, 255, .4);
}
.viewer .bar-low {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px;
  width: min(100%, 640px); margin: 0 auto; padding: 12px 16px max(18px, env(safe-area-inset-bottom));
}
.viewer .what { margin: 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--quiet); text-wrap: balance; }
.viewer .count { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .12em; color: var(--faint); font-variant-numeric: tabular-nums; }
.viewer button {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 50%; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink);
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.viewer button:hover { background: var(--surface-2); border-color: #4a4956; }
.viewer button:disabled { opacity: .3; cursor: default; }
.viewer .close { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage li, .stage ul, .dial i:last-child, .lang ul, .viewer[open] { animation: none; }
  .stage img { transition: none; }
}

/* ── Sections ────────────────────────────────────────────────────────────────────────────────────────────────── */
.block { max-width: var(--wide); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) 0; }
.top + .block { padding-top: clamp(40px, 6vw, 72px); }
.block h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; text-align: center; text-wrap: balance; }
.sub { max-width: 34em; margin: 14px auto 0; text-align: center; color: var(--quiet); text-wrap: pretty; }

/* Tools: a quiet two-column index, each with its colour on the ring. */
.tools {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 80px);
  margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none;
}
.tools li {
  display: grid; grid-template-columns: 14px minmax(0, 9.5em) minmax(0, 1fr); align-items: baseline; gap: 4px 14px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.tools li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.tools li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; align-self: start; margin-top: 12px;
  background: var(--gradient); background-size: 800% 100%; background-position: calc(var(--i) * 14.28%) 0;
  box-shadow: 0 0 12px rgba(132, 166, 255, .55);
}
.tools h3 { font-size: 28px; line-height: 1.1; }
.tools p { margin: 0; color: var(--quiet); font-size: 15px; line-height: 1.55; }
@media (max-width: 820px) {
  .tools { grid-template-columns: 1fr; }
  .tools li:nth-last-child(2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .tools li { grid-template-columns: 14px minmax(0, 1fr); padding: 18px 0; }
  .tools p { grid-column: 2; }
  .tools h3 { font-size: 26px; }
}

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: clamp(40px, 6vw, 64px) auto 0; }
.plans article { padding: clamp(24px, 3.4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plans .pro {
  position: relative; border-color: transparent;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(132, 166, 255, .10), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, rgba(91, 189, 242, .75), rgba(132, 166, 255, .45), rgba(207, 140, 240, .75)) border-box;
  box-shadow: 0 30px 80px -40px rgba(132, 166, 255, .45);
}
.plans h3 { font-size: 32px; line-height: 1.1; }
.plans .tag { margin: 6px 0 0; color: var(--ink); }
.plans ul { margin: 20px 0 0; padding: 0; list-style: none; }
.plans li { position: relative; padding: 10px 0 10px 24px; color: var(--quiet); font-size: 15px; border-top: 1px solid var(--line); }
.plans li:first-child { border-top: 0; }
.plans li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); }
.plans .pro li { color: #cfccd6; }
.plans .pro li::before { border: 0; background: var(--gradient); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* Support */
#support { text-align: center; }
.mail {
  display: inline-block; margin-top: 24px; font: italic 400 clamp(24px, 4vw, 36px)/1.2 "Instrument Serif", Georgia, serif;
  text-decoration: none; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 1px solid rgba(132, 166, 255, .35); padding: 0 .08em 2px; overflow-wrap: anywhere;
}
.faq { max-width: 760px; margin: 44px auto 0; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px; font-size: 17px; font-weight: 500; transition: color .2s;
}
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.5px solid var(--quiet); border-bottom: 1.5px solid var(--quiet); transform: rotate(45deg) translateY(-3px);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 2px 18px; color: var(--quiet); }
.faq details p { margin: 0 0 10px; }
.faq a, .doc a { color: var(--peri); text-underline-offset: 3px; }

/* ── Privacy ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 24px; }
.doc .eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; }
.doc .meta { margin: 12px 0 8px; color: var(--faint); font-size: 14px; }
.doc section { padding: 28px 0 6px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 27px; line-height: 1.2; margin-bottom: 10px; }
.doc p { margin: 0 0 14px; color: var(--quiet); }
.doc p strong { color: var(--ink); font-weight: 500; }

/* ── Footer ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.foot { margin-top: clamp(88px, 12vw, 144px); border-top: 1px solid var(--line); }
.foot-in {
  max-width: var(--wide); margin: 0 auto; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--faint); font-size: 14px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.foot-brand img { border-radius: 5px; }
.foot-brand span { font: italic 400 20px/1 "Instrument Serif", Georgia, serif; }
.foot-copy { margin-right: auto; }
.foot nav { display: flex; gap: 22px; }
.foot a { color: var(--quiet); text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .foot-in { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Language chooser (the site's root while it redirects) ───────────────────────────────────────────────────── */
.choose main { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 32px 16px; text-align: center; }
.choose ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.choose a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--quiet); }
.choose a:hover { color: var(--ink); border-color: var(--line-strong); }
