/* Handy 990 marketing site — generated copy lives in homepage/, source of truth
   is homepage-src/styles.css. Light-first with dark-mode support. */

:root {
  --ink: #10231d;
  --muted: #52685f;
  --paper: #f8faf6;
  --surface: #ffffff;
  --teal: #176f5a;
  --teal-deep: #0f3f33;
  --mint: #5fd0a7;
  --gold: #e4ad3c;
  --line: rgba(16, 35, 29, 0.12);
  --chip: #eaf6f0;
  --hero-a: #d8f3e7;
  --hero-b: #dfe8ff;
  --hero-c: #fff3de;
  --shadow: 0 18px 40px rgba(16, 35, 29, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9f2ec;
    --muted: #9fb4ab;
    --paper: #0e1613;
    --surface: #17221d;
    --teal: #62cfa9;
    --teal-deep: #bfe9d8;
    --line: rgba(233, 242, 236, 0.14);
    --chip: #1d2b25;
    --hero-a: #14251f;
    --hero-b: #16202e;
    --hero-c: #241d12;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang TC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans",
    "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Korean typography: never break inside a word (inherited page-wide). */
html[lang="ko"] body { word-break: keep-all; }

.inner { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 4vw, 36px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 16px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: var(--surface); }
.lang svg { width: 15px; height: 15px; color: var(--muted); }
.lang select { border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; outline: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav { gap: 10px; } .lang { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
  overflow: hidden;
}
.hrow { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(40px, 7vw, 84px); }
.eyebrow { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; margin: 0 0 18px; letter-spacing: 0.01em; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0 0 22px; max-width: 56ch; }
.platforms { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.chip { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: #211500; font-weight: 700; font-size: 13.5px; text-decoration: none; box-shadow: 0 4px 14px rgba(228, 173, 60, 0.4); }
.hshots { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hshots img { width: min(46%, 250px); border-radius: 22px; box-shadow: var(--shadow); }
.hshots .s1 { transform: rotate(-5deg) translate(6%, 2%); z-index: 2; }
.hshots .s2 { transform: rotate(5deg) translate(-4%, 9%); }
@media (max-width: 860px) {
  .hrow { grid-template-columns: 1fr; }
  .hshots { min-height: 0; margin-top: 8px; }
}

/* ---------- badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #142019; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 9px 18px 9px 14px; min-width: 170px;
}
@media (prefers-color-scheme: dark) { .badge { background: #223229; } }
.badge:hover { transform: translateY(-1px); }
.badge svg { width: 26px; height: 26px; }
.badge small { display: block; font-size: 11px; opacity: 0.85; line-height: 1.2; }
.badge strong { display: block; font-size: 17px; line-height: 1.25; }

/* ---------- stats ---------- */
.stats { background: var(--teal-deep); color: #eefff7; }
@media (prefers-color-scheme: dark) { .stats { background: #0b2b22; color: #d9f5e8; } }
.statgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding-top: 26px; padding-bottom: 26px; }
.stat { text-align: center; padding: 8px 4px; }
.stat strong { display: block; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: 0.01em; }
.stat span { display: block; font-size: 12.5px; opacity: 0.82; line-height: 1.4; margin-top: 4px; }
@media (max-width: 860px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .statgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.alt { background: color-mix(in srgb, var(--surface) 60%, var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.label { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); font-size: 12.5px; margin: 0 0 8px; }
.section h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; margin: 0 0 18px; max-width: 30ch; }
.foot { color: var(--muted); font-size: 13.5px; }

/* why: Q&A cards */
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.qa h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--teal); }
.qa p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .qa-grid { grid-template-columns: 1fr; } }

/* why: zh_TW comparison table */
.table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.vs { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.vs th, .vs td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs thead th { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); background: var(--chip); }
.vs thead th.ours { color: var(--teal); font-weight: 800; }
.vs tbody th { font-weight: 700; width: 20%; }
.vs td.ours { width: 46%; }
.vs td.others { color: var(--muted); }
.vs tr:last-child td, .vs tr:last-child th { border-bottom: 0; }

/* feature rows */
.frow { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature.flip .frow { grid-template-columns: 0.9fr 1.1fr; }
.feature.flip .fcopy { order: 2; }
.feature.flip .fshot { order: 1; }
.fcopy ul { margin: 0; padding-left: 1.2em; }
.fcopy li { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.fcopy li::marker { color: var(--mint); }
.fshot { position: relative; display: flex; justify-content: center; }
.fshot > img:first-child {
  width: min(78%, 300px);
  border-radius: 34px;
  border: 8px solid #142019;
  box-shadow: var(--shadow);
  background: #142019;
}
.mascot-listen { position: absolute; width: 120px; bottom: -18px; right: 4%; transform: rotate(6deg); filter: drop-shadow(0 8px 14px rgba(16,35,29,.25)); }
@media (max-width: 860px) {
  .frow, .feature.flip .frow { grid-template-columns: 1fr; }
  .feature.flip .fcopy { order: 1; }
  .feature.flip .fshot { order: 2; }
}

/* bank tables */
.bank { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.bank-col { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.bank-col h3 { margin: 0 0 8px; font-size: 15px; color: var(--teal); letter-spacing: 0.03em; }
.bank-col table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bank-col td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bank-col td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bank-col tr:last-child td { border-bottom: 0; }
.bank-col tr.total td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 800; color: var(--teal); }
.grand { font-size: 17px; margin: 16px 0 8px; }
.grand strong { color: var(--teal); font-size: 22px; }
.plain { list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .bank { grid-template-columns: 1fr; } }

/* design mini-grid */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* gallery strip */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 18px clamp(18px, 4vw, 40px) 26px; scroll-snap-type: x mandatory; }
.strip img { width: min(62vw, 250px); flex: 0 0 auto; border-radius: 18px; box-shadow: var(--shadow); scroll-snap-align: center; }

/* tablet band */
.trow { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.trow > img { border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .trow { grid-template-columns: 1fr; } }

/* pricing / founder */
.founder {
  display: flex; gap: 20px; align-items: center;
  background: linear-gradient(120deg, rgba(228, 173, 60, 0.16), rgba(95, 208, 167, 0.16));
  border: 1.5px solid var(--gold);
  border-radius: 20px; padding: 20px 24px; margin: 20px 0;
}
.founder .mascot { width: 110px; flex: 0 0 auto; }
.founder h3 { margin: 0 0 6px; font-size: 19px; }
.founder p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 560px) { .founder { flex-direction: column; text-align: center; } }

/* cta */
.cta { text-align: center; background: linear-gradient(140deg, var(--hero-a), var(--hero-b)); }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .badges { justify-content: center; }

/* footer */
.footer { background: #0c1a15; color: #cfe0d8; padding: 40px 0 30px; font-size: 14px; }
.footer a { color: #cfe0d8; }
.frow2 { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 24px; }
.fbrand { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #fff; margin: 0 0 6px; }
.fbrand img { border-radius: 7px; }
.footer p { margin: 0 0 8px; }
.studio { color: #8fa89e; }
.flinks { display: flex; flex-direction: column; gap: 8px; }
.flangs p { margin: 0 0 8px; color: #8fa89e; }
.langlinks a { text-decoration: none; }
.langlinks a:hover { text-decoration: underline; }
.legal { color: #7e968c; font-size: 12.5px; margin-top: 18px; }
@media (max-width: 760px) { .frow2 { grid-template-columns: 1fr; } }

/* ---------- root language picker page ---------- */
.rootmain { max-width: 720px; margin: 0 auto; padding: 60px 22px 40px; text-align: center; }
.ricon { margin: 0 auto 14px; border-radius: 22px; box-shadow: var(--shadow); }
.rootmain h1 { margin: 0 0 8px; font-size: 36px; }
.rootmain .lede { margin: 0 auto 18px; }
.rmascot { margin: 6px auto 10px; }
.rhint { font-weight: 700; color: var(--muted); }
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 26px; }
.pick { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-decoration: none; }
.pick:hover { border-color: var(--teal); }
.pick strong { display: block; font-size: 16px; }
.pick span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .picker { grid-template-columns: repeat(2, 1fr); } }
