/* The landing page around the demo (demo.css). Built into every language by
   tools/site/build.py. Bright and chunky on purpose: rounded heavy type,
   pressable buttons, tinted cards; the demo keeps its own dark cinema band. */

:root {
  --bg: #FFFDF8;
  --ink-0: #1C2028;
  --ink-1: #4B5363;
  --ink-2: #7A8291;
  --line: #ECE6DA;
  --amber: #F0A93B;
  --amber-d: #C77D12;
  --amber-t: #FFF3DE;
  --mint: #22C39A;
  --mint-d: #0E7A63;
  --mint-t: #E4F7F0;
  --blue: #3D86E0;
  --blue-d: #2F6FB5;
  --blue-t: #E8F1FC;
  --clay-t: #F7EDE6;
  --night: #0D1116;
  --round: "Nunito", "Figtree", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --word: "Newsreader", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-0);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) body, :lang(ko) body, :lang(zh-Hans) body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 900; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1, h2 { text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(ko) h1, :lang(ko) h2 { letter-spacing: 0; line-break: strict; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-family: var(--round); font-weight: 900; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-d); margin-bottom: 10px; }
:where(a, button, select, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }

/* ------------------------------------------------------------ buttons */
.btn {
  --face: var(--amber); --edge: var(--amber-d); --text: #241600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--round); font-weight: 900; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); background: var(--face); text-decoration: none;
  padding: 14px 26px; border-radius: 16px; border: 0;
  box-shadow: 0 5px 0 var(--edge);
  transition: transform .08s, box-shadow .08s, filter .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--edge); }
.btn-lg { font-size: 17px; padding: 17px 30px; }
.btn-sm { font-size: 14px; padding: 10px 18px; box-shadow: 0 4px 0 var(--edge); border-radius: 13px; }
.btn-white { --face: #fff; --edge: var(--line); --text: var(--blue-d); box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px var(--line); }
.btn-white:active { box-shadow: 0 0 0 var(--edge), inset 0 0 0 2px var(--line); }
.btn-ghost { --face: transparent; --edge: rgba(255,255,255,.35); --text: #fff; box-shadow: 0 5px 0 var(--edge), inset 0 0 0 2px rgba(255,255,255,.55); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(24px, calc((100vw - 1160px) / 2 + 24px));
  background: rgba(255, 253, 248, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 2px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-weight: 900; font-size: 23px; text-decoration: none; color: var(--ink-0); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.langpick { position: relative; display: inline-flex; align-items: center; gap: 6px; font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--ink-1); }
.langpick svg { width: 18px; height: 18px; fill: currentColor; }
.langpick select {
  appearance: none; -webkit-appearance: none; border: 2px solid var(--line); background: #fff; color: var(--ink-0);
  font: inherit; padding: 7px 30px 7px 12px; border-radius: 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-1) 50%), linear-gradient(135deg, var(--ink-1) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}

/* --------------------------------------------------------------- hero */
.hero { position: relative; background: linear-gradient(180deg, #FFF6E4 0%, #FFEFD2 100%); padding: 56px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.8vw, 68px); overflow-wrap: break-word; }
.hero h1 em {
  font-style: normal; color: var(--amber-d);
  background: linear-gradient(transparent 62%, rgba(240, 169, 59, .38) 62%); padding: 0 .08em; border-radius: 4px;
}
.hero .lead { font-size: 20px; color: var(--ink-1); margin-top: 22px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.ctas.center { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.hero-art { position: relative; height: 560px; }
.blob { position: absolute; inset: 40px 10px 20px 40px; background: radial-gradient(circle at 40% 40%, #FFD58F, #F0A93B 70%); border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%; animation: morph 14s ease-in-out infinite; opacity: .55; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 52% 60% 40% 48%; transform: rotate(6deg) scale(1.03); } }
.hero-phone { position: absolute; left: 50%; top: 6px; width: 258px; transform: translateX(-50%) rotate(4deg); filter: drop-shadow(0 30px 40px rgba(80, 50, 0, .28)); }
.bubble {
  position: absolute; left: -4px; bottom: 54px; width: 270px; padding: 14px 16px 15px; border-radius: 20px;
  background: #11151B; color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.25); transform: rotate(-3deg);
  display: flex; flex-direction: column; gap: 4px; animation: bob 6s ease-in-out infinite;
}
.bubble-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--round); font-weight: 900; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9AA3B2; }
.bubble-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.bubble b { font-family: var(--word); font-weight: 600; font-size: 21px; line-height: 1.25; }
.bubble b u { text-decoration: none; background: rgba(240,169,59,.3); border-radius: 5px; padding: 0 3px; box-shadow: inset 0 -2px 0 var(--amber); }
.bubble span:last-child { color: #F7C873; font-size: 15px; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  background: #fff; border-radius: 999px; box-shadow: 0 6px 0 rgba(0,0,0,.06), 0 10px 24px rgba(80,50,0,.14);
  font-family: var(--word); font-weight: 600; font-size: 20px; color: var(--ink-0);
  animation: bob 7s ease-in-out infinite;
}
.chip img { width: 28px; height: 28px; }
.c1 { left: 2%; top: 8%; animation-delay: -1s; }
.c2 { right: 0; top: 14%; animation-delay: -3s; }
.c3 { right: 4%; top: 52%; animation-delay: -2s; }
.c4 { left: 4%; top: 36%; animation-delay: -4s; }
.c5 { right: 16%; bottom: 4%; animation-delay: -5s; }
.c6 { left: 30%; top: -2%; animation-delay: -2.5s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--bg); }

/* ---------------------------------------------------------- languages */
.learn { padding: 8px 0 64px; text-align: center; }
.learn h2 { font-size: clamp(24px, 3vw, 32px); color: var(--ink-1); }
.flags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.flags li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; padding: 16px 8px 14px;
  background: #fff; border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--line);
  font-family: var(--round); font-weight: 800; font-size: 15px; color: var(--ink-1);
  transition: transform .15s;
}
.flags li:hover { transform: translateY(-3px); }
.flags img { width: 48px; height: 48px; }

/* --------------------------------------------------------------- demo */
.demo-band { background: var(--night); color: #F4F6F9; padding: 84px 0 96px; font-family: var(--sans); border-radius: 48px 48px 0 0; }
.demo-band .wrap { text-align: center; margin-bottom: 40px; }
.demo-band .eyebrow { color: var(--amber); }
.demo-band h2 { color: #fff; }
.demo-sub { margin-top: 14px; color: #97A2B2; font-size: 18px; }

/* ----------------------------------------------------------- features */
.features { padding: 96px 0 40px; }
.features .wrap { display: flex; flex-direction: column; gap: 32px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding: 48px 64px 0; border-radius: 36px; overflow: hidden; min-height: 420px;
}
.feature.flip .f-copy { order: 2; }
.f-copy { padding-bottom: 56px; }
.f-copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.f-copy p:last-child { margin-top: 16px; font-size: 19px; color: var(--ink-1); max-width: 30em; }
.f-art { align-self: end; display: flex; justify-content: center; }
.f-art img { width: 290px; margin-bottom: -210px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.18)); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.feature:hover .f-art img { transform: translateY(-14px); }
.tint-amber { background: var(--amber-t); }
.tint-amber .eyebrow { color: var(--amber-d); }
.tint-mint { background: var(--mint-t); }
.tint-mint .eyebrow { color: var(--mint-d); }
.tint-blue { background: var(--blue-t); }
.tint-blue .eyebrow { color: var(--blue-d); }
.tint-clay { background: var(--clay-t); }
.tint-clay .eyebrow { color: #8A6552; }

/* -------------------------------------------------------------- stats */
.stats { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--blue-d); color: #fff; border-radius: 32px; padding: 44px 32px; position: relative; overflow: hidden; }
.stats-grid::before, .stats-grid::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.stats-grid::before { width: 220px; height: 220px; left: -60px; top: -90px; }
.stats-grid::after { width: 160px; height: 160px; right: 8%; bottom: -80px; }
.stats-grid div { text-align: center; position: relative; }
.stats-grid b { display: block; font-family: var(--round); font-weight: 900; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.stats-grid span { font-size: 15px; font-weight: 600; opacity: .85; }

/* ---------------------------------------------------------------- why */
.why { padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.why-card { background: #fff; border: 2px solid var(--line); border-radius: 26px; padding: 30px 28px; box-shadow: 0 5px 0 var(--line); }
.why-card h3 { margin: 18px 0 8px; }
.why-card p { color: var(--ink-1); }
.why-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; }
.why-ico svg { width: 30px; height: 30px; fill: #fff; }
.i1 { background: var(--amber); box-shadow: 0 4px 0 var(--amber-d); }
.i2 { background: var(--mint); box-shadow: 0 4px 0 var(--mint-d); }
.i3 { background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); }

/* ------------------------------------------------------------ pricing */
.pricing { padding: 72px 0; background: linear-gradient(180deg, var(--bg), #FFF6E4); }
.pricing .lede { color: var(--ink-1); font-size: 19px; margin-top: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px auto 0; max-width: 980px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 26px; padding: 30px 26px 26px; box-shadow: 0 5px 0 var(--line); }
.plan h3 { font-size: 19px; color: var(--ink-1); }
.amount { margin-top: 6px; }
.amount b { font-family: var(--round); font-weight: 900; font-size: 44px; line-height: 1; }
.amount span { color: var(--ink-2); font-weight: 600; }
.pnote2 { color: var(--ink-1); font-size: 15px; margin: 6px 0 22px; flex: 1; }
.plan-hot { border-color: var(--amber); box-shadow: 0 5px 0 var(--amber-d); transform: translateY(-10px); }
.badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--mint); color: #fff; font-family: var(--round); font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--mint-d); white-space: nowrap; }
.foot-note { margin-top: 30px; color: var(--ink-2); font-size: 14px; }

/* ---------------------------------------------------------------- faq */
.faq { padding: 72px 0; }
.faq h2 { margin-bottom: 32px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 20px; margin-bottom: 14px; box-shadow: 0 4px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--round); font-weight: 800; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px; border-right: 3px solid var(--ink-2); border-bottom: 3px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-1); }

/* -------------------------------------------------------------- final */
.final { background: var(--mint); color: #fff; padding: 88px 0; border-radius: 48px 48px 0 0; margin-top: 32px; }
.final h2 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); max-width: 16em; margin: 0 auto; }
.final .btn-white { --text: var(--mint-d); }

/* ------------------------------------------------------------- footer */
.foot { background: #0F3D33; color: #CFE9E1; padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.foot .brand { color: #fff; font-size: 20px; }
.by { margin-top: 14px; font-size: 14px; }
.links { display: flex; gap: 18px; margin-top: 10px; font-weight: 700; font-size: 15px; }
.links a, .foot-langs a { text-decoration: none; }
.links a:hover, .foot-langs a:hover { text-decoration: underline; }
.foot-h { font-family: var(--round); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8CC7B6; margin-bottom: 10px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.foot-langs a[aria-current] { color: #fff; font-weight: 800; }

/* ------------------------------------------------------------- mobile */
@media (max-width: 960px) {
  .hero { padding: 36px 0 100px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-art { height: 470px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-phone { width: 220px; }
  .feature { grid-template-columns: minmax(0, 1fr); padding: 40px 24px 0; gap: 20px; text-align: center; min-height: 0; }
  .feature.flip .f-copy { order: 0; }
  .f-copy { padding-bottom: 0; }
  .f-copy p:last-child { margin-left: auto; margin-right: auto; }
  .f-art img { width: 240px; margin-bottom: -120px; }
  .feature { padding-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .why-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-hot { transform: none; order: -1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 16px; }
  .langpick svg { display: none; }
  .brand span { display: none; }
  .hero .lead { font-size: 18px; }
  .ctas .btn { width: 100%; }
  .bubble { width: 230px; left: 0; bottom: 30px; }
  .bubble b { font-size: 18px; }
  .chip { font-size: 16px; }
  .chip img { width: 22px; height: 22px; }
  .flags li { width: calc(33.33% - 10px); }
  .demo-band { border-radius: 32px 32px 0 0; padding: 64px 0 72px; }
  .feature { border-radius: 28px; }
  .final, .demo-band { border-radius: 32px 32px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .chip, .bubble { animation: none; }
}

/* demo.css sized the demo as a full-screen hero; here it is one band among others. */
.demo-band .stage { min-height: 0; max-width: 1240px; padding: 0 24px; }
