/*
 * Talkuya website.
 * Monochrome like the app: near-black on soft gray, with a dark variant that follows the system.
 * No web fonts. assets/site.js handles the analytics consent banner and the language menu;
 * Google Tag Manager (Google Analytics) is the only third-party request.
 */
:root {
  --bg: #f4f4f6;
  --bg-raised: #ececf0;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --text: #121215;
  --muted: #65656d;
  --faint: #9b9ba3;
  --line: rgba(18, 18, 21, 0.09);
  --line-strong: rgba(18, 18, 21, 0.16);
  --accent: #121215;
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(18, 18, 21, 0.04), 0 2px 8px rgba(18, 18, 21, 0.04);
  --shadow-lg: 0 2px 6px rgba(18, 18, 21, 0.05), 0 24px 60px -12px rgba(18, 18, 21, 0.22);
  --glass: rgba(250, 250, 252, 0.72);

  /* App screen colors (Android ui/theme Palette, iOS AppTheme). */
  --app-bg: #f3f3f6;
  --app-card: #fcfcfd;
  --app-inset: #e9e9ed;
  --app-text: #131316;
  --app-muted: #65656b;
  --app-line: rgba(0, 0, 0, 0.1);
  --diff-added: rgba(43, 154, 102, 0.36);
  --diff-removed: rgba(217, 58, 58, 0.32);
  --diff-changed: rgba(245, 197, 24, 0.5);
  --error: #d93a3a;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1120px;
  --read: 760px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light dark;
}

/* Page language: CJK fonts in the right order, so Japanese and Chinese do not borrow another language's glyphs. */
html:lang(ko) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
html:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
html:lang(zh-Hans) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
html:lang(zh-Hant) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
html:lang(hi) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
}
/* Devanagari marks sit above and below the line: looser headings, no negative letter spacing. */
html:lang(hi) :is(h1, h2, h3, .plan .name) { line-height: 1.35; letter-spacing: 0; }
/* Korean wraps between words, not inside them. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-raised: #121215;
    --surface: #161619;
    --surface-2: #202024;
    --text: #f4f4f5;
    --muted: #a3a3ab;
    --faint: #6f6f78;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #f4f4f5;
    --on-accent: #121215;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px -14px rgba(0, 0, 0, 0.7);
    --glass: rgba(22, 22, 25, 0.68);

    --app-bg: #131316;
    --app-card: #202024;
    --app-inset: #2d2d32;
    --app-text: #f5f5f6;
    --app-muted: #aaaaaf;
    --app-line: rgba(255, 255, 255, 0.14);
    --diff-added: rgba(43, 154, 102, 0.55);
    --diff-removed: rgba(255, 107, 107, 0.42);
    --diff-changed: rgba(255, 210, 63, 0.48);
    --error: #ff6b6b;
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--text) 18%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header: a floating glass capsule, like the app's tab bar ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 14px 16px 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 980px; min-height: 56px; padding: 7px 8px 7px 14px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background-color 0.15s, color 0.15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-end { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }

/* Language menu (home pages only; the Privacy Policy and Terms of Use are English only) */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px;
  -webkit-user-select: none; user-select: none; transition: background-color 0.15s, color 0.15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--surface-2); }
.lang summary .icon { font-size: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 30; min-width: 200px;
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.lang-menu a { display: block; padding: 10px 14px; border-radius: 14px; text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current="true"] { font-weight: 650; background: var(--surface-2); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px 6px 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 12%, transparent); }
.kicker { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
h1, h2, h3 { font-family: var(--font-display); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 820px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 42% at 72% 38%, color-mix(in srgb, var(--surface) 92%, transparent), transparent 70%),
    radial-gradient(40% 40% at 20% 10%, color-mix(in srgb, var(--bg-raised) 80%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 7vw, 84px); line-height: 1; letter-spacing: -0.042em; font-weight: 700;
}
.hero h1 .soft {
  background: linear-gradient(180deg, var(--text) 10%, color-mix(in srgb, var(--text) 45%, var(--bg)) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0; max-width: 520px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); letter-spacing: -0.005em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; padding: 11px 20px 11px 16px;
  border-radius: 16px; background: var(--accent); color: var(--on-accent);
}
.store.alt { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.store .icon { font-size: 26px; stroke-width: 1.6; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 11.5px; font-weight: 500; opacity: 0.7; letter-spacing: 0.01em; }
.store strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 12px 0 24px; }
.float {
  position: absolute; z-index: 2; width: 236px; padding: 14px 16px;
  border-radius: 20px; border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; line-height: 1.45;
}
.float .label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.float.f1 { top: 18px; left: -44px; }
.float.f2 { bottom: 36px; right: -44px; background: rgba(12, 12, 14, 0.86); color: #f5f5f6; border-color: rgba(255, 255, 255, 0.1); }
.float.f2 .label { color: rgba(245, 245, 246, 0.6); }
.float.f2 .orig { color: rgba(245, 245, 246, 0.6); font-size: 12.5px; }
.float.f2 .big { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Phone mockup (drawn in HTML so it follows light/dark) ---------- */
.phone {
  position: relative; width: min(340px, 100%);
  padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e 40%, #1c1c20);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen {
  position: relative; height: 680px; overflow: hidden;
  border-radius: 46px; background: var(--app-bg); color: var(--app-text);
  font-size: 12px; line-height: 1.45;
  padding: 12px 14px 0;
}
.screen .status { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 12px; font-size: 12.5px; font-weight: 600; }
.screen .status .island { width: 88px; height: 24px; border-radius: 999px; background: #000; }
.screen .status .bars { display: flex; gap: 4px; align-items: center; }
.screen .status .bars i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.screen .status .battery { width: 22px; height: 11px; border-radius: 3.5px; border: 1.5px solid currentColor; position: relative; opacity: 0.9; }
.screen .status .battery::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: currentColor; }
.app-title { margin: 10px 2px 10px; font-size: 25px; font-weight: 700; letter-spacing: -0.03em; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: var(--app-inset); font-size: 12px; font-weight: 500; color: var(--app-muted); text-align: center; }
.seg span { padding: 6px 0; border-radius: 999px; }
.seg .on { background: var(--app-card); color: var(--app-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.chips { display: flex; gap: 6px; margin: 10px 0; white-space: nowrap; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--app-inset); font-size: 11.5px; font-weight: 500; flex: none; }
.chip .icon { font-size: 13px; }
.chip.round { padding: 6px 8px; }
.chip.dark { background: var(--app-text); color: var(--app-bg); }
.card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 20px; padding: 13px 14px 12px; }
.card .orig { color: var(--app-muted); font-size: 11px; line-height: 1.45; }
.card .trans { margin-top: 6px; font-size: 16.5px; line-height: 1.38; letter-spacing: -0.01em; }
.card hr { border: 0; border-top: 1px solid var(--app-line); margin: 10px 0; opacity: 0.6; }
.card .cap { font-size: 10.5px; font-weight: 600; color: var(--app-muted); margin-bottom: 4px; }
.card ul { margin: 0; padding-left: 14px; color: var(--app-muted); font-size: 10.8px; line-height: 1.5; }
.card li { margin: 3px 0; }
.card li b { color: var(--app-text); font-weight: 600; }
.actions { display: flex; justify-content: flex-end; gap: 14px; margin: 9px 0 2px; color: var(--app-muted); }
.actions .icon { font-size: 16px; }
.wide-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; padding: 8px; border-radius: 999px; background: var(--app-inset); font-size: 11.5px; font-weight: 600; }
.wide-btn .icon { font-size: 13px; }
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px;
  border-radius: 999px; border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-card) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; border-radius: 999px; font-size: 9px; font-weight: 500; color: var(--app-muted); }
.tabbar span .icon { font-size: 17px; }
.tabbar .on { background: var(--app-inset); color: var(--app-text); font-weight: 600; }
.screen .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--app-bg) 70%); pointer-events: none; }

/* Diff marks (proofreading), same colors as the app. */
.add, .del, .chg { border-radius: 3px; padding: 0 1px; color: inherit; }
.add { background: var(--diff-added); }
.del { background: var(--diff-removed); text-decoration: line-through; }
.chg { background: var(--diff-changed); }

/* ---------- Greeting band ---------- */
.band { padding: 28px 0 8px; }
.band p { margin: 0 0 16px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.marquee ul { display: flex; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
.marquee li { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { margin: 0 0 14px; font-size: clamp(34px, 4.8vw, 54px); line-height: 1.06; letter-spacing: -0.034em; font-weight: 700; }
.section .sub { margin: 0; font-size: clamp(17px, 1.8vw, 19px); color: var(--muted); line-height: 1.55; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column;
  min-height: 300px; padding: 28px;
  border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tile.span-2 { grid-column: span 2; }
.tile h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.tile .demo { margin-top: auto; padding-top: 24px; }
.tile .tag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.tile .tag .icon { font-size: 12px; }
.panel { border-radius: 20px; background: var(--surface-2); padding: 16px 18px; font-size: 14.5px; line-height: 1.5; }
.panel .small { font-size: 12.5px; color: var(--muted); }
.panel + .panel { margin-top: 10px; }

.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split .demo { margin-top: 0; padding-top: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

.bubbles { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.bubble .small { display: block; margin-top: 2px; }
.bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.bubble.out .small { color: color-mix(in srgb, var(--on-accent) 65%, transparent); }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.suggest span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }

.sign { position: relative; display: grid; place-items: center; height: 132px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #1f6f4a, #14513a); color: #fff; }
.sign .kanji { font-size: 46px; font-weight: 700; letter-spacing: 0.08em; }
.sign .arrow { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 34px; opacity: 0.9; }
.sign .pill { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #121215; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }

.mics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mic { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.mic .btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.mic .btn .icon { font-size: 22px; }
.mic.idle .btn { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }

.captions { border-radius: 18px; background: #050506; color: #f5f5f6; padding: 18px 20px; }
.captions .orig { font-size: 13px; color: rgba(245, 245, 246, 0.55); }
.captions .big { margin-top: 4px; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.captions .live { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(245, 245, 246, 0.55); }
.captions .live i { width: 7px; height: 7px; border-radius: 50%; background: #f5f5f6; }

.failed .err { margin-top: 6px; font-size: 13px; color: var(--error); }
.failed .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.failed .row span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.failed .row .primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.failed .row .icon { font-size: 13px; }

.readings { display: grid; gap: 10px; }
.readings .line { font-size: 24px; line-height: 1.9; letter-spacing: 0.02em; }
.readings rt { font-size: 0.45em; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.readings .roman { font-size: 13px; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.principle .badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: var(--surface-2); }
.principle .badge .icon { font-size: 22px; }
.principle h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.015em; font-weight: 650; }
.principle p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; padding: 32px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); }
.plan .name { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.plan .desc { margin: 0 0 22px; font-size: 15.5px; color: var(--muted); }
.plan ul { margin: 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 12px; margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.plan li .icon { margin-top: 3px; font-size: 18px; stroke-width: 2.2; }
.plan.premium { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.premium .desc { color: color-mix(in srgb, var(--on-accent) 62%, transparent); }
.plan.premium ul { border-top-color: color-mix(in srgb, var(--on-accent) 16%, transparent); }
.plan .pill { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; background: color-mix(in srgb, var(--on-accent) 14%, transparent); }
/* Premium tiers: same features, different allowances (Lite, Pro, Max). */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 16px auto 0; }
.tier { padding: 24px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.tier .name { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tier ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tier li { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tier li strong { color: var(--text); font-weight: 650; }
.plans-note { margin: 22px auto 0; max-width: 620px; text-align: center; font-size: 14px; color: var(--faint); }

/* Contact */
.cta { margin-top: 112px; padding: 72px 32px; border-radius: 40px; text-align: center; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, var(--bg-raised), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta img { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 0, 0, 0.12); }
.cta h2 { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.034em; }
.cta p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 18px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: transform 0.15s ease, opacity 0.15s;
}
.button:hover { transform: translateY(-1px); opacity: 0.92; }
.button .icon { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .footnote { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--faint); }
.link-button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.link-button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Analytics consent banner (assets/site.js) ---------- */
.consent {
  position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(600px, calc(100% - 20px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 16px 16px 20px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.consent p { flex: 1 1 280px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent p a { color: var(--text); white-space: nowrap; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-btn {
  font: inherit; font-size: 15px; font-weight: 600; min-width: 96px; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: opacity 0.15s;
}
.consent-btn:hover { opacity: 0.85; }
.consent-btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }

/* ---------- Legal pages ---------- */
.legal { max-width: var(--read); margin: 0 auto; padding: 64px 24px 24px; }
.legal .kicker { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.legal h1 { font-size: clamp(38px, 6.4vw, 60px); letter-spacing: -0.038em; line-height: 1.02; margin: 10px 0 18px; }
.legal .intro { color: var(--muted); font-size: 19px; line-height: 1.55; margin: 0 0 14px; }
.legal .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 26px 0; }
.legal .meta div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; }
.legal .meta span { display: block; font-size: 13px; color: var(--muted); }
.legal .meta strong { font-size: 16px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; margin: 26px 0 8px; }
.legal .toc strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.legal .toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal .toc li { margin: 0; padding: 4px 0; break-inside: avoid; color: var(--faint); }
.legal .toc a { text-decoration: none; color: var(--muted); }
.legal .toc a:hover { color: var(--text); text-decoration: underline; }
.legal h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; margin: 56px 0 12px; scroll-margin-top: 96px; }
.legal h3 { font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 6px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; margin: 18px 0; }
.legal .glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.legal .glance div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; font-size: 15.5px; color: var(--muted); }
.legal .glance strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; }
.contact-box p { margin: 2px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .stores { justify-content: center; }
  .float.f1 { left: calc(50% - 300px); }
  .float.f2 { right: calc(50% - 300px); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-2 { grid-column: span 2; }
  .principles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { padding: 10px 10px 0; }
  .site-header .wrap { padding-left: 10px; }
  .nav .hide-sm { display: none; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .lang summary { padding: 8px 10px; }
  .lang .lang-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .consent-actions { flex: 1 1 100%; }
  .consent-btn { flex: 1; }
  .float { display: none; }
  .section { padding-top: 84px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.span-2 { grid-column: auto; }
  .tile { min-height: 0; padding: 24px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 26px; }
  .cta { margin-top: 84px; padding: 56px 22px; border-radius: 32px; }
  .legal { padding-top: 40px; }
  .legal .toc ol { columns: 1; }
}

@media (max-width: 380px) {
  .nav a { padding: 8px 8px; }
  .store { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .button, .nav a, .lang summary, .consent-btn { transition: none; }
}
