/* eksigo.com (DESIGN.md section 13, Website). Same colours as the app: warm amber accent on calm neutrals. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f2eee8;
  --text: #1c1a17;
  --muted: #6b655d;
  --line: #e6e0d7;
  --accent: #d97a1a;
  --accent-soft: rgba(217, 122, 26, 0.12);
  --on-accent: #ffffff;
  --phone: #141312;
  --phone-text: #f4f1ec;
  --phone-muted: #a39d94;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1b19;
    --surface-2: #252320;
    --text: #f4f1ec;
    --muted: #a39d94;
    --line: #2f2c28;
    --accent: #ee9a3e;
    --accent-soft: rgba(238, 154, 62, 0.14);
    --on-accent: #1c1206;
    --phone: #000000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* One language at a time: <html data-lang="zh|en">, text marked with lang="zh-Hans" / lang="en". */
html[data-lang="zh"] [lang="en"]:not(html),
html[data-lang="en"] [lang="zh-Hans"]:not(html) { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); text-decoration: none; }
.lang-switch {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.lang-switch:hover { border-color: var(--muted); }

/* Buttons */
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  border-radius: 14px; padding: 11px 20px 11px 16px; font-weight: 600; font-size: 16px; line-height: 1.2;
}
.store:hover { text-decoration: none; opacity: 0.9; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }
.store[aria-disabled="true"] { cursor: default; opacity: 0.85; }
.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 11px 6px; font-weight: 600; font-size: 16px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.12; letter-spacing: -0.025em; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Phone mock-up of a lesson step */
.phone {
  justify-self: center; width: 300px; max-width: 100%;
  background: var(--phone); color: var(--phone-text);
  border-radius: 44px; padding: 18px 16px 22px; border: 6px solid #2b2926;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.phone .bar { display: flex; justify-content: space-between; font-size: 12px; color: var(--phone-muted); padding: 0 10px 14px; }
.phone .notch { width: 90px; height: 24px; background: #000; border-radius: 14px; margin: -6px auto 10px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--phone-muted); margin: 0 6px 12px; }
.step b { color: #ee9a3e; font-weight: 600; }
.dots { display: flex; gap: 4px; margin-left: auto; }
.dots i { width: 18px; height: 4px; border-radius: 2px; background: #3a3733; }
.dots i.on { background: #ee9a3e; }
.card { background: #1f1d1b; border-radius: 18px; padding: 16px; margin-bottom: 10px; }
.card .en { font-size: 17px; line-height: 1.45; font-weight: 600; }
.card .en mark { background: rgba(238, 154, 62, 0.22); color: inherit; border-radius: 4px; padding: 0 2px; }
.card .zh { font-size: 14px; color: var(--phone-muted); margin-top: 8px; }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 12px; }
.wave i { flex: 1; background: #ee9a3e; border-radius: 2px; opacity: 0.85; }
.word { display: flex; gap: 12px; align-items: baseline; }
.word .w { font-weight: 700; font-size: 16px; }
.word .ipa { font-size: 12px; color: var(--phone-muted); }
.word .lv { margin-left: auto; font-size: 11px; font-weight: 700; color: #ee9a3e; border: 1px solid rgba(238, 154, 62, 0.5); border-radius: 6px; padding: 0 5px; }
.word-zh { font-size: 14px; color: var(--phone-muted); margin-top: 4px; }
.controls { display: flex; justify-content: center; gap: 34px; margin-top: 16px; color: var(--phone-text); }
.controls svg { width: 26px; height: 26px; fill: currentColor; }
.controls .play { width: 34px; height: 34px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 40em; }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: loop; }
.loop li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.loop li::before {
  counter-increment: loop; content: counter(loop);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.loop h3, .grid h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.loop p, .grid p { margin: 0; color: var(--muted); font-size: 15.5px; }
ol.loop { padding: 0; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.best { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .who { color: var(--muted); font-size: 15px; margin: 4px 0 16px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 15.5px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; padding: 80px 0; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--muted); }

/* Policy pages */
.doc { max-width: 760px; padding: 48px 24px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px 9px 0; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .grid, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav.links { display: none; }
  .lang-switch { margin-left: auto; }
  .hero { padding: 44px 0 24px; }
  .lead { font-size: 17px; }
  section { padding: 48px 0; }
  .loop, .grid, .plans { grid-template-columns: 1fr; }
  footer nav { margin-left: 0; }
  .doc { padding: 32px 16px 56px; }
}
