/* Landing page — every locale (/, /de/, /ja/ …). Hand-written, no Tailwind.
   Tokens mirror the app's dark theme (lib/core/theme/app_colors.dart). */

:root {
  --bg: #0E0E10;
  --bg-2: #121215;
  --elev: #17171A;
  --surface: #1F1F23;
  --text: #EDEAE3;
  --text-2: rgba(237, 234, 227, 0.66);
  --text-3: rgba(237, 234, 227, 0.42);
  --line: rgba(237, 234, 227, 0.08);
  --line-2: rgba(237, 234, 227, 0.15);
  --accent: #D4A574;
  --accent-2: #E4BD91;
  --accent-dim: rgba(212, 165, 116, 0.14);
  --ink: #16130F;

  --serif: 'Newsreader', var(--fx-serif), Georgia, serif;
  --sans: 'Geist', var(--fx-sans), ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --gutter: 20px;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 165, 116, 0.32); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Type ------------------------------------------------------- */

.kicker {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; gap: 12px;
}
.kicker .num { color: var(--accent); }
.kicker .num::after { content: ''; display: inline-block; width: 22px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

.h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.0; }
.h1 > span { display: block; }
.h2 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.06; }
.h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--accent); }
.h1 em { display: block; }

.lede { font-size: 17.5px; line-height: 1.65; color: var(--text-2); max-width: 31em; text-wrap: pretty; }
.lede-sm { font-size: 16px; }

/* CJK + Thai: no fake italics, calmer tracking, line breaking that respects words. */
:lang(ja) em, :lang(ko) em, :lang(zh-Hans) em, :lang(th) em { font-style: normal !important; }
:lang(ja) .h1, :lang(ko) .h1, :lang(zh-Hans) .h1,
:lang(ja) .h2, :lang(ko) .h2, :lang(zh-Hans) .h2,
:lang(ja) .h3, :lang(ko) .h3, :lang(zh-Hans) .h3 { letter-spacing: 0; font-weight: 500; line-height: 1.22; }
:lang(ja) .h1, :lang(ko) .h1, :lang(zh-Hans) .h1 { font-size: clamp(36px, 5.2vw, 66px); }
:lang(ja) .h2, :lang(ko) .h2, :lang(zh-Hans) .h2 { font-size: clamp(28px, 3.4vw, 44px); }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(th) .h1, :lang(th) .h2, :lang(th) .h3 { letter-spacing: 0; line-height: 1.3; font-weight: 500; }
:lang(th) .h1 { font-size: clamp(36px, 5.4vw, 68px); }
:lang(th) .h2 { font-size: clamp(28px, 3.6vw, 46px); }
:lang(th) body, :lang(th) .lede { line-height: 1.8; }
:lang(ru) .h1 { font-size: clamp(40px, 5.8vw, 76px); }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 500 14px/1 var(--sans); white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-2); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
  background: var(--text); color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.store:hover { transform: translateY(-2px); background: #fff; }
.store-icon { width: 20px; height: 22px; display: grid; place-items: center; }
.store-icon svg { width: 100%; height: 100%; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-text small { font-size: 10.5px; letter-spacing: 0.02em; opacity: 0.66; }
.store-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 500; }
.link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Language suggestion bar ------------------------------------ */

.suggest { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13.5px; position: relative; z-index: 60; }
.suggest-row { display: flex; align-items: center; gap: 16px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.suggest-text { color: var(--text-2); flex: 1; }
.suggest-go { color: var(--accent); font-weight: 500; }
.suggest-x { color: var(--text-3); font-size: 13px; }
.suggest-x:hover { color: var(--text); }
.suggest[hidden] { display: none; }

/* ---------- Nav --------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(14, 14, 16, 0.86); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 17px/1 var(--serif); letter-spacing: -0.01em; }
.brand img { border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.nav-links { display: none; gap: 30px; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-end { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2);
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em;
  transition: color 0.2s, border-color 0.2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: rgba(237, 234, 227, 0.3); }
.lang summary svg { width: 15px; height: 15px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 196px; padding: 6px;
  background: #1A1A1D; border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  max-height: min(70vh, 460px); overflow: auto;
}
.lang-list a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); }
.lang-list a:hover { background: rgba(237, 234, 227, 0.06); color: var(--text); }
.lang-list a[aria-current] { color: var(--accent); }

/* ---------- Hero -------------------------------------------------------- */

.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 80vh; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 165, 116, 0.16), rgba(212, 165, 116, 0) 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; }
}
.hero-copy .kicker { margin-bottom: 28px; }
.hero-sub { margin-top: 28px; font-size: 18.5px; line-height: 1.6; color: var(--text-2); max-width: 32em; text-wrap: pretty; }
.hero-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.facts li + li::before { content: '·'; margin: 0 10px; color: var(--line-2); }
.film-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.film-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--accent);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.film-icon svg { width: 12px; height: 12px; margin-left: 2px; }
.film-btn:hover .film-icon { background: var(--accent-dim); border-color: rgba(212, 165, 116, 0.5); transform: scale(1.05); }
.film-len { color: var(--text-3); font: 500 12px/1 var(--mono); }
.hero-media { display: flex; justify-content: center; }

/* ---------- Phone ------------------------------------------------------- */

.phone {
  --w: 264px;
  position: relative; width: var(--w); aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.032);
  background: linear-gradient(160deg, #2A2A2E, #0B0B0C 40%, #1D1D20);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 50px 90px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -40px rgba(212, 165, 116, 0.25);
}
.phone video {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--w) * 0.125);
  background: #111;
}
.phone-lg { --w: clamp(250px, 72vw, 318px); }
.phone-sm { --w: 210px; }
@media (min-width: 960px) { .phone-lg { --w: clamp(280px, 25vw, 330px); } }

/* ---------- Pillars ----------------------------------------------------- */

.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pillar-grid { display: grid; }
.pillar { padding: 36px 0; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.pillar .num { font: 500 11.5px/1 var(--mono); color: var(--accent); letter-spacing: 0.14em; }
.pillar h3 { margin-top: 18px; font: 400 23px/1.25 var(--serif); letter-spacing: -0.01em; }
.pillar p { margin-top: 10px; font-size: 15px; color: var(--text-2); max-width: 26em; }
@media (min-width: 860px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar { padding: 48px 36px; border-bottom: 0; border-left: 1px solid var(--line); }
  .pillar:first-child { border-left: 0; padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
}

/* ---------- Feature ----------------------------------------------------- */

.feature { padding: 88px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .feature { padding: 128px 0; }
  .feature-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; }
  .feature.flip .feature-copy, .feature-grid.flip .feature-copy { order: 2; }
}
.feature-copy .kicker { margin-bottom: 22px; }
.feature-copy .lede { margin-top: 22px; }

.checks { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 32em; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); line-height: 1.5; }
.checks svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.checks li.quiet { color: var(--text-3); }
.checks li.quiet i { flex: none; width: 16px; height: 16px; margin-top: 3px; position: relative; }
.checks li.quiet i::before { content: ''; position: absolute; left: 4px; top: 7.5px; width: 8px; height: 1px; background: currentColor; }


.stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 34px 20px 44px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(212, 165, 116, 0.12), rgba(212, 165, 116, 0) 70%),
    linear-gradient(180deg, #19191C, #131316);
  border: 1px solid var(--line);
  overflow: hidden;
}
@media (min-width: 960px) { .stage { padding: 40px 32px 56px; } }
.stage-sm { padding: 30px 20px 0; gap: 0; max-height: 400px; align-items: center; justify-content: flex-start; }
.stage-sm .phone { flex: none; }

.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  height: 32px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; color: var(--text-2);
  transition: background 0.25s var(--ease), color 0.25s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-selected='true'] { background: var(--text); color: var(--ink); }
.phone video.swapping { opacity: 0; }
.phone video { transition: opacity 0.25s var(--ease); }

/* ---------- Details grid ------------------------------------------------- */

.details { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .details { padding: 128px 0; } }
.section-head { max-width: 40rem; }
.section-head .kicker { margin-bottom: 20px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.detail-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.detail { padding: 28px 0; border-bottom: 1px solid var(--line); }
.detail-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-dim); color: var(--accent); }
.detail-icon svg { width: 20px; height: 20px; }
.detail h3 { margin-top: 18px; font: 500 16px/1.3 var(--sans); letter-spacing: -0.005em; }
.detail p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; max-width: 22em; }
@media (min-width: 640px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { padding: 32px 28px 32px 0; }
  .detail:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
  .detail, .detail:nth-child(2n) { padding: 36px 32px; border-left: 1px solid var(--line); }
  .detail:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .detail:nth-child(n + 7) { border-bottom: 0; }
}

/* ---------- Pricing ------------------------------------------------------ */

.pricing { padding: 96px 0; }
@media (min-width: 960px) { .pricing { padding: 128px 0; } }
.plans { margin: 56px auto 0; display: grid; gap: 16px; max-width: 880px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--elev); border: 1px solid var(--line);
}
.plan-pro {
  border-color: rgba(212, 165, 116, 0.38);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(212, 165, 116, 0.14), rgba(212, 165, 116, 0) 70%),
    var(--elev);
}
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan-head h3 { font: 400 30px/1 var(--serif); }
.plan-pro .plan-head h3 { color: var(--accent); font-style: italic; }
.plan-price { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.plan-note { margin-top: 12px; color: var(--text-2); font-size: 15px; }
.plan .checks { margin-top: 24px; }
.plan .checks li:last-child { border-bottom: 0; }
.plan-foot { margin-top: 28px; text-align: center; font-size: 14px; color: var(--text-3); }

/* ---------- FAQ ----------------------------------------------------------- */

.faq { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .faq { padding: 128px 0; } }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; } }
.faq-head .kicker { margin-bottom: 20px; }
.faq-head .lede { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 400 20px/1.35 var(--serif); letter-spacing: -0.005em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-list summary i::before, .faq-list summary i::after {
  content: ''; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1.5px; background: var(--text-3);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list summary:hover i::before, .faq-list summary:hover i::after { background: var(--accent); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--text-2); font-size: 15.5px; line-height: 1.7; max-width: 40em; }

/* ---------- CTA ---------------------------------------------------------- */

.cta { position: relative; padding: 112px 0 120px; overflow: hidden; text-align: center; }
@media (min-width: 960px) { .cta { padding: 160px 0; } }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 55%, rgba(212, 165, 116, 0.16), rgba(14, 14, 16, 0) 70%);
}
.cta-inner { position: relative; }
.cta .kicker { justify-content: center; margin-bottom: 24px; }
.h1-cta em { display: inline; }
.apk { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.apk a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.apk a:hover { color: var(--text); border-color: var(--accent); }
.apk svg { width: 15px; height: 15px; }
.apk-note { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Footer ------------------------------------------------------- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 18px; font: italic 400 17px/1.5 var(--serif); color: var(--text-2); max-width: 20em; }
:lang(ja) .foot-brand p, :lang(ko) .foot-brand p, :lang(zh-Hans) .foot-brand p, :lang(th) .foot-brand p { font-style: normal; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-h { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { color: var(--text-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.foot-langs { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-langs a { color: var(--text-3); transition: color 0.2s; }
.foot-langs a:hover { color: var(--text); }
.foot-langs a[aria-current] { color: var(--accent); }
.foot-base { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font: 500 11px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Film dialog -------------------------------------------------- */

.film {
  width: min(1100px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0;
  background: #000; border-radius: 18px; overflow: visible;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.film::backdrop { background: rgba(6, 6, 8, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.film-close {
  position: absolute; right: 0; top: -48px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(237, 234, 227, 0.1); color: var(--text);
}
.film-close:hover { background: rgba(237, 234, 227, 0.2); }
.film-close svg { width: 16px; height: 16px; }

/* ---------- Reveal ------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .store, .film-icon, .link svg { transition: none; }
}

/* ---------- Script-specific tuning --------------------------------------- */

/* Mono caps with wide tracking only suit Latin/Cyrillic. */
:lang(ja) .kicker, :lang(ko) .kicker, :lang(zh-Hans) .kicker, :lang(th) .kicker,
:lang(ja) .facts, :lang(ko) .facts, :lang(zh-Hans) .facts, :lang(th) .facts,
:lang(ja) .foot-h, :lang(ko) .foot-h, :lang(zh-Hans) .foot-h, :lang(th) .foot-h,
:lang(ja) .sources-label, :lang(ko) .sources-label, :lang(zh-Hans) .sources-label, :lang(th) .sources-label,
:lang(ja) .apk-note, :lang(ko) .apk-note, :lang(zh-Hans) .apk-note, :lang(th) .apk-note,
:lang(ja) .foot-base, :lang(ko) .foot-base, :lang(zh-Hans) .foot-base, :lang(th) .foot-base,
:lang(ja) .tcard-label, :lang(ko) .tcard-label, :lang(zh-Hans) .tcard-label, :lang(th) .tcard-label,
:lang(ja) .plan-price, :lang(ko) .plan-price, :lang(zh-Hans) .plan-price, :lang(th) .plan-price {
  font-family: var(--sans); letter-spacing: 0.06em; font-size: 12.5px;
}
.kicker .num, .pillar .num { font-family: var(--mono); }
/* Break Japanese headlines at phrase boundaries where the browser can. */
:lang(ja) .h1, :lang(ja) .h2, :lang(ja) .h3, :lang(ja) .pillar h3 { word-break: auto-phrase; }
:lang(th) .h1 { font-size: clamp(34px, 4.6vw, 60px); }

/* Grid children never grow past the viewport (long tab labels, long words). */
.hero-grid, .feature-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .feature-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.stage, .feature-copy, .feature-media { min-width: 0; }
.h1, .h2, .h3, .pillar h3 { overflow-wrap: break-word; }


/* ---------- Hero device + tour cards ---------------------------------- */

.hero-device { position: relative; }
.hcard { position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
.hcard-in {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(30, 29, 33, 0.84); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}
.hcard.on { animation: card-pop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d) both; }
.hcard.on .hcard-in { animation: card-idle 3.4s ease-in-out calc(var(--d) + 0.62s) infinite; }
.hcard.off { animation: card-out 0.32s ease-in both; }
@keyframes card-pop { 0% { opacity: 0; transform: translateY(14px) scale(0.82); } 100% { opacity: 1; transform: none; } }
@keyframes card-out { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px) scale(0.94); } }
@keyframes card-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-0.4deg); } }

.float-text { display: flex; flex-direction: column; line-height: 1.25; }
.float-text b { font-weight: 500; font-size: 14px; }
.float-text small { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.float-text small svg { width: 12px; height: 12px; }
.hcard-book .float-text small { color: var(--accent); }
.hcard-cover { width: 36px; height: 54px; border-radius: 4px; object-fit: cover; flex: none; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255,255,255,.1); }
.float-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
}
.float-avatar svg { width: 18px; height: 18px; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 22px; margin-left: 4px; }
.wave i { width: 2px; border-radius: 1px; background: var(--accent); height: 30%; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.hcard-chip .hcard-in { padding: 9px 14px; border-radius: 999px; gap: 8px; font-size: 13px; color: var(--text-2); }
.hcard-chip svg { width: 15px; height: 15px; color: var(--accent); }

.pos-tl { left: -34%; top: 15%; }
.pos-br { right: -30%; bottom: 22%; }
.pos-bl { left: -20%; bottom: 7%; }
@media (max-width: 959px) {
  .pos-tl { left: -6%; top: 10%; }
  .pos-br { right: -6%; bottom: 20%; }
  .pos-bl { left: -4%; bottom: 5%; }
}
@media (max-width: 480px) {
  .hcard-in { padding: 10px 13px 10px 10px; gap: 10px; }
  .float-text b { font-size: 13px; }
  .pos-tl { left: -3%; }
  .pos-br { right: -3%; }
}
@media (prefers-reduced-motion: reduce) {
  .hcard.on, .hcard.on .hcard-in, .hcard.off { animation: none; }
  .hcard.on { opacity: 1; }
  .wave i { animation: none; height: 60%; }
}

/* ---------- How it works ------------------------------------------------ */

.steps { padding: 72px 0 80px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-grid { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(212, 165, 116, 0.5); color: var(--accent); font: 500 13px/1 var(--mono);
}
.step h3 { margin-top: 16px; font: 400 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: 15px; color: var(--text-2); max-width: 26em; }

/* ---------- Pillar sections (import, listen) ---------------------------- */

.pillar-sec { padding: 96px 0; }
.pillar-alt { border-top: 1px solid var(--line); background:
  radial-gradient(60% 40% at 80% 20%, rgba(212, 165, 116, 0.07), rgba(212, 165, 116, 0) 70%), var(--bg); }
@media (min-width: 960px) { .pillar-sec { padding: 136px 0; } }
.h2-xl { font-size: clamp(38px, 5vw, 64px); }
:lang(ja) .h2-xl, :lang(ko) .h2-xl, :lang(zh-Hans) .h2-xl, :lang(th) .h2-xl { font-size: clamp(30px, 3.8vw, 50px); }
.h4 { font: 400 24px/1.2 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.h4 em { font-style: italic; color: var(--accent); }
:lang(ja) .h4 em, :lang(ko) .h4 em, :lang(zh-Hans) .h4 em, :lang(th) .h4 em { font-style: normal; }

.stage-scene { padding: 0; background: #0D0D10; }
.scene { width: 100%; aspect-ratio: 720 / 907; position: relative; }
.scene video { width: 100%; height: 100%; object-fit: cover; }
.scene-sm { aspect-ratio: 720 / 907; }

.stats { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 32em; }
.stats div { padding: 16px 16px 14px; border-radius: 16px; background: var(--elev); border: 1px solid var(--line); }
.stats dt { font: 400 40px/1 var(--serif); color: var(--accent); letter-spacing: -0.02em; }
.stats dd { margin: 8px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.35; }

.extras { margin-top: 72px; display: grid; gap: 16px; }
@media (min-width: 760px) { .extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.extra {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center;
  border-radius: var(--radius); overflow: hidden; background: var(--elev); border: 1px solid var(--line);
}
.extra-media { align-self: stretch; background: #0D0D10; position: relative; overflow: hidden; }
.extra-media .scene { height: 100%; aspect-ratio: auto; min-height: 240px; }
.extra-copy { padding: 26px 24px; }
.extra-copy p { margin-top: 10px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.extra-phone { display: flex; justify-content: center; padding: 22px 0 0; height: 100%; max-height: 300px;
  background: radial-gradient(70% 60% at 50% 70%, rgba(212, 165, 116, 0.14), rgba(212, 165, 116, 0) 70%), #141417; }
.phone-xs { --w: 150px; }
@media (max-width: 520px) {
  .extra { grid-template-columns: minmax(0, 1fr); }
  .extra-media .scene { aspect-ratio: 720 / 600; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: 60%; } }

/* ---------- Reads from (marquee) ---------------------------------------- */

.sources { margin-top: 72px; }
.sources-head { display: flex; align-items: center; gap: 16px; }
.sources-label { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.sources-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.marquee {
  margin-top: 22px; display: grid; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mq-row { display: flex; width: max-content; }
.mq-track { display: flex; flex: none; margin: 0; padding: 0; list-style: none; animation: mq 70s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track li {
  display: flex; align-items: center; white-space: nowrap;
  font: 400 clamp(20px, 2.2vw, 28px)/1.5 var(--serif); color: var(--text-2); letter-spacing: -0.01em;
}
.mq-track li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.55; margin: 0 clamp(18px, 2.4vw, 32px); }
.mq-rev .mq-track li { color: var(--text-3); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.sources-more { margin-top: 14px; font: italic 400 15px/1.4 var(--serif); color: var(--text-3); text-align: right; }
:lang(ja) .sources-more, :lang(ko) .sources-more, :lang(zh-Hans) .sources-more, :lang(th) .sources-more { font-style: normal; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .mq-row { width: auto; padding: 0 var(--gutter); }
  .mq-track { animation: none; flex-wrap: wrap; }
  .mq-track[aria-hidden] { display: none; }
}

/* Rights-holder note — ask for an email before a store takedown. */
.foot-rights {
  margin-top: 48px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--elev);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
}
.foot-rights p { color: var(--text-2); font-size: 14px; max-width: 40em; }
.foot-rights-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; }
.foot-rights-links a:first-child { color: var(--text); border-bottom: 1px solid var(--line-2); }
.foot-rights-links a:first-child:hover { border-color: var(--accent); }
.foot-rights + .foot-langs { margin-top: 32px; }
