/* Sayoo — sayoo.me
   Editorial "live captions" aesthetic: warm paper, ink, one blue. Provisional words are pale and
   settle into ink, exactly like the app. */

:root {
  --paper: #f6f5f0;
  --paper-2: #efede6;
  --card: #fffffd;
  --ink: #0d1015;
  --ink-2: #474d59;
  --ink-3: #696e78;
  --ink-4: #b9bcc3;
  --line: rgba(13, 16, 21, 0.09);
  --blue: #0066e6;
  --blue-deep: #0048a8;
  --blue-soft: #e4eefc;
  --night: #07101f;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --shadow: 0 1px 1px rgba(13, 16, 21, 0.04), 0 12px 32px -12px rgba(13, 16, 21, 0.18);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0c10;
    --paper-2: #101319;
    --card: #14171e;
    --ink: #f1f2f4;
    --ink-2: #b7bcc6;
    --ink-3: #7c828e;
    --ink-4: #80858f;
    --line: rgba(255, 255, 255, 0.09);
    --blue: #3d8bff;
    --blue-deep: #8ab8ff;
    --blue-soft: #0f2340;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 18px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* Per-language type: Instrument covers Latin; other scripts use the platform's best faces. */
:lang(ja) { --sans: "Instrument Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; }
:lang(ko) { --sans: "Instrument Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; }
:lang(zh-Hant) { --sans: "Instrument Sans", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
.script-cyrillic, .script-vi { --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
.script-arabic { --sans: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif; }
.script-thai { --sans: -apple-system, BlinkMacSystemFont, Thonburi, "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
.script-deva { --sans: -apple-system, BlinkMacSystemFont, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }
.script-thai body, .script-deva body { line-height: 1.75; }
.script-arabic h1, .script-arabic h2, .script-thai h1, .script-thai h2, .script-deva h1, .script-deva h2, .script-arabic .mode h3 { letter-spacing: 0; }
.script-thai h1, .script-deva h1 { line-height: 1.3; }
/* Tracking breaks the headline bar of Devanagari and Thai tone marks; uppercase does nothing there anyway. */
:is(.script-deva, .script-thai, .script-arabic) :is(.kicker, .mode .tag, .caption-head, .caption-head .note, .eyebrow) { letter-spacing: 0; }
.script-thai h2, .script-deva h2, .script-arabic h2 { line-height: 1.35; }
.script-arabic h1 { line-height: 1.35; }
/* Right-to-left: mirror the composition, keep the marquee and phones' physical motion. */
[dir="rtl"] .hero::after { right: auto; left: -10%; }
[dir="rtl"] .phone.front { right: auto; left: 4%; }
[dir="rtl"] .phone.back { left: auto; right: 2%; transform: rotate(7deg) scale(.9); }
[dir="rtl"] .mode.dark::before { right: auto; left: -120px; }
[dir="rtl"] .eyebrow, [dir="rtl"] .kicker, [dir="rtl"] .stat .v sup { letter-spacing: 0; }
.marquee { direction: ltr; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
.hero { overflow-x: clip; }
/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: 0.25; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ———————————————————— Header ———————————————————— */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); display: grid; place-items: center; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--blue) 70%, transparent); }
.brand-mark span { font-family: var(--serif); font-style: italic; color: #fff; font-size: 21px; line-height: 1; transform: translateY(1px); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--ink); }
/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); }
.lang-menu summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lang-menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 2px; z-index: 60; max-height: min(70vh, 560px); overflow: auto; animation: menu .22s var(--ease); }
@keyframes menu { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 11px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.lang-menu li a:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu li a[aria-current="true"] { color: var(--blue); font-weight: 600; }
@media (max-width: 560px) { .lang-menu ul { position: fixed; inset-inline: 12px; top: 64px; grid-template-columns: 1fr 1fr; } .lang-menu li a { white-space: normal; } }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* ———————————————————— Hero ———————————————————— */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero::after { /* soft blue dawn behind the phones */
  content: ""; position: absolute; z-index: -1;
  right: -10%; top: 4%; width: 62%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 18%, transparent), transparent 72%);
  filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--blue); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 50%, transparent); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.1rem, 7.2vw, 6.6rem);
  line-height: 0.96; letter-spacing: -0.025em;
  margin: 22px 0 22px;
}
h1 em { font-style: italic; color: var(--blue); }
html:not(.script-latin) h1 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; font-size: clamp(2.5rem, 5.6vw, 5rem); }
html:not(.script-latin) h1 em { font-style: normal; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; margin: 0 0 34px; }

/* Live caption — the signature element */
.caption {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
  max-width: 560px;
  min-height: 168px;
}
.caption-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--blue); letter-spacing: 0.02em; margin-bottom: 10px; }
.caption-head .note { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.caption-head .bars { display: inline-flex; gap: 3px; align-items: center; height: 14px; }
.caption-head .bars i { width: 3px; border-radius: 2px; background: var(--blue); height: 4px; animation: bar 1s var(--ease) infinite; }
.caption-head .bars i:nth-child(2) { animation-delay: .12s } .caption-head .bars i:nth-child(3) { animation-delay: .24s } .caption-head .bars i:nth-child(4) { animation-delay: .36s }
@keyframes bar { 0%, 100% { height: 4px } 45% { height: 14px } }
.caption-source { font-size: 16px; line-height: 1.5; color: var(--ink-3); min-height: 24px; }
.caption-source .c { color: var(--ink-4); transition: color .5s; }
.caption-source .c.ok { color: var(--ink-2); }
.caption-rule { height: 1px; background: var(--line); margin: 14px 0; }
.caption-target { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.22; min-height: 2.5em; letter-spacing: -0.01em; }
.caption-target.sans { font-family: var(--sans); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.62rem); letter-spacing: 0; }
.caption-target .w { opacity: 0; display: inline; transition: opacity .35s var(--ease), color .6s; color: var(--ink-3); }
.caption-target .w.in { opacity: 1; }
.caption-target .w.ok { color: var(--ink); }
.cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--blue); vertical-align: -0.15em; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.shimmer { display: grid; gap: 9px; padding-top: 6px; }
.shimmer span { height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2) 0%, color-mix(in srgb, var(--paper-2) 30%, var(--card)) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
.shimmer span:first-child { width: 72% } .shimmer span:last-child { width: 46% }
@keyframes sh { from { background-position: 150% 0 } to { background-position: -50% 0 } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 11px 20px 11px 16px;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
}
.store:hover { transform: translateY(-2px); }
.notfound h1 em { font-style: italic; color: var(--blue); }
.notfound a { margin-right: 4px; }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store small { display: block; font-size: 11px; opacity: .72; line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.cta-note { font-size: 14px; color: var(--ink-3); }

/* Phones */
.phones { position: relative; height: clamp(520px, 62vw, 680px); }
@media (max-width: 920px) { .phones { height: auto; aspect-ratio: 1 / 1.38; max-width: 520px; margin: 8px auto 0; width: 100%; } }
.phone {
  position: absolute; width: min(300px, 62%); aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, #2b2f37, #0c0e12 55%, #22262d);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(10, 20, 40, .45), 0 18px 40px -20px rgba(10, 20, 40, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 31%; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone.front { right: 4%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone.back { left: 2%; top: 9%; transform: rotate(-7deg) scale(.9); z-index: 1; filter: saturate(.9); opacity: .96; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ———————————————————— Sections ———————————————————— */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section.flush { padding-top: 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 16em; }
h2 em { font-style: italic; color: var(--blue); }
html:not(.script-latin) h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.18; font-size: clamp(2rem, 3.8vw, 3.1rem); }
html:not(.script-latin) h2 em { font-style: normal; }
.section-lede { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; margin: 0; }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: 1fr; } }
.stat { padding: 40px 28px 36px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 760px) { .stat { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; } .stat:first-child { border-top: 0; } }
.stat .v { font-family: var(--serif); font-size: clamp(3rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; }
.stat .v sup { font-size: .42em; color: var(--blue); vertical-align: .9em; margin-inline-start: 4px; font-style: italic; }
.stat .l { margin-top: 12px; color: var(--ink-2); max-width: 19em; }
.stats .wrap.footnote { display: block; font-size: 12.5px; color: var(--ink-3); padding: 0 0 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.feature {
  grid-column: span 2;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 25%, var(--line)); }
.feature.wide { grid-column: span 3; }
@media (max-width: 1000px) { .feature, .feature.wide { grid-column: span 3; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature, .feature.wide { grid-column: span 1; } }
.feature .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.feature .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.feature .num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--serif); font-style: italic; color: var(--ink-4); font-size: 1.3rem; }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } .mode { padding: 28px 24px 30px; } }
.mode { border-radius: 28px; padding: 36px 34px 38px; border: 1px solid var(--line); background: var(--card); }
.mode.dark { background: var(--night); color: #eef2f8; border-color: transparent; position: relative; overflow: hidden; }
.mode.dark::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; background: radial-gradient(closest-side, rgba(61, 139, 255, .45), transparent); }
.mode .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.mode.dark .tag { background: rgba(61, 139, 255, .16); color: #8ab8ff; }
.mode h3 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; letter-spacing: -0.02em; margin: 18px 0 10px; line-height: 1.05; }
html:not(.script-latin) .mode h3 { font-family: var(--sans); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.01em; }
.mode p { color: var(--ink-2); margin: 0 0 18px; position: relative; }
.mode.dark p { color: #aab4c4; }
.mode ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; }
.mode li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; }
.mode li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }
.mode.dark li::before { background: #8ab8ff; }

/* Privacy band */
.privacy-band { background: var(--night); color: #eef2f8; overflow: hidden; }
.privacy-band .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .privacy-band .wrap { grid-template-columns: 1fr; } }
.privacy-band h2 { color: #fff; }
.privacy-band h2 em { color: #8ab8ff; }
.privacy-band .section-lede { color: #aab4c4; }
.privacy-band .kicker { color: #7f8aa0; }
.lock { justify-self: center; position: relative; width: min(340px, 80%); aspect-ratio: 1; }
.lock .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(138, 184, 255, .22); animation: spin 40s linear infinite; }
.lock .ring:nth-child(2) { inset: 13%; border-style: dashed; border-color: rgba(138, 184, 255, .3); animation-duration: 60s; animation-direction: reverse; }
.lock .ring:nth-child(3) { inset: 28%; border-color: rgba(138, 184, 255, .4); }
.lock .core { position: absolute; inset: 39%; border-radius: 30%; background: linear-gradient(160deg, #3d8bff, #0048a8); display: grid; place-items: center; box-shadow: 0 20px 60px -10px rgba(61, 139, 255, .6); }
.lock .core svg { width: 42%; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Languages */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 44px; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); white-space: nowrap; color: var(--ink); }
.marquee-track span:nth-child(3n+2) { font-style: italic; color: var(--blue); }
.marquee-track span:nth-child(3n) { color: var(--ink-3); }
.marquee.reverse { margin-top: 14px; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* Gallery */
.gallery { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px max(24px, calc((100vw - 1180px) / 2)) 30px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; width: 248px; scroll-snap-align: center; }
.gallery .phone { position: relative; width: 100%; border-radius: 40px; padding: 8px; animation: none; }
.gallery .phone img { border-radius: 33px; }
.gallery .phone::before { top: 16px; height: 22px; }
.gallery figcaption { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); text-align: center; }

/* FAQ */
.faq { margin-top: 40px; 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: 20px; padding: 24px 0; font-size: 1.14rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { margin: -6px 0 26px; color: var(--ink-2); max-width: 46em; }

/* Closing + footer */
.closing { text-align: center; overflow: hidden; }
.closing::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); }
.closing h2 { margin: 0 auto 18px; }
.closing .section-lede { margin: 0 auto; }
.closing .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer .trademark { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--ink-3); }

/* Reveal on scroll */
/* Content is visible without JavaScript. The hero rises on load with CSS alone; everything below
   is hidden only once site.js has marked the page (html.js) and fades in as it scrolls into view. */
.hero .reveal { animation: rise 1.1s var(--ease) both; }
.hero .d1 { animation-delay: .08s } .hero .d2 { animation-delay: .16s } .hero .d3 { animation-delay: .24s } .hero .d4 { animation-delay: .32s }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.js .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero .reveal { transition: none; }
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s } .d4 { transition-delay: .32s }

/* Legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0 96px; }
.legal .wrap { width: min(760px, calc(100% - 48px)); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 10px; }
.legal .updated { color: var(--ink-3); font-size: 14.5px; margin-bottom: 44px; }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; margin: 44px 0 12px; max-width: none; line-height: 1.3; }
.legal h3 { font-size: 1.06rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--blue); }
.legal .placeholder { background: var(--blue-soft); color: var(--blue-deep); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; }
}
