/* ── Jinshu website — shared styles ──────────────────────────── */

:root {
  /* Background tones — paper, ink, and a restrained learning accent */
  --cream: #FAF8F1;
  --cream-alt: #F1F3EA;
  --cream-deep: #E7E9DD;
  --paper: #FFFDF8;
  --graph-line: rgba(42, 40, 36, 0.075);

  /* Text — verified WCAG AA contrast on --cream (>= 4.5:1) */
  --ink: #2A2824;          /* 14.1:1 */
  --ink-soft: #4A453D;     /* 8.6:1 */
  --muted: #7A7468;        /* 4.6:1 */
  --muted-light: #A8A193;  /* 2.8:1 — decorative only */

  /* Accent — warm amber, AA-compliant on cream */
  --accent: #B8822E;       /* 4.7:1 on --cream */
  --accent-dark: #935F19;  /* 6.9:1 on --cream */
  --accent-tint: #FAF1DB;
  --accent-soft: #F5E3BD;
  --green: #5F9D4B;
  --green-tint: #E7F2E0;

  /* Borders & surfaces */
  --border: #EAE2CE;
  --border-strong: #D4C8A8;
  --card-bg: #FFFFFF;

  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 4px;

  --max-w: 720px;
  --sidebar-w: 240px;

  --font-sans: system-ui, -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", serif;
  --font-cjk-serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.04), 0 1px 3px rgba(44, 44, 44, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.06), 0 2px 6px rgba(44, 44, 44, 0.04);
  --shadow-lg: 0 12px 36px rgba(44, 44, 44, 0.1), 0 4px 12px rgba(44, 44, 44, 0.06);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, #F3F6F0 0%, #FAF8F1 42%, #F6EFE5 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  min-height: 100vh;
  overflow-x: hidden;
}

/* Chinese pages: use Noto Serif SC for display type only; body stays sans for readability */
:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3,
:lang(zh-Hans) .wordmark,
:lang(zh-Hans) .caption-title {
  font-family: var(--font-cjk-serif);
  font-weight: 700;
}

img { display: block; max-width: 100%; height: auto; }
a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-tint);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  border: 1px solid rgba(200, 146, 61, 0.2);
}

h1, h2, h3 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: 2rem; letter-spacing: 0; }
h2 { font-size: 1.5rem; letter-spacing: 0; }
h3 { font-size: 1.1rem; letter-spacing: 0; }
p { line-height: 1.75; text-wrap: pretty; }
ul, ol { padding-left: 1.4rem; }
li { line-height: 1.75; }
strong { font-weight: 600; color: var(--ink); }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  color: var(--cream);
  text-decoration: none;
}

/* ── Site header (top bar with docs + language switcher) ─── */

.site-header {
  position: relative;
  z-index: 60;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 253, 248, 0.76) 100%);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 0;
  box-shadow: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
body.has-sticky-site-header {
  padding-top: var(--site-header-height, 0px);
}
.site-header.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 253, 248, 0.84) 100%);
  box-shadow: 0 12px 30px rgba(42, 40, 36, 0.045);
}
.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0;
  transition: opacity 0.15s ease;
}
.site-header-brand:hover {
  opacity: 0.75;
  text-decoration: none;
  color: var(--ink);
}
.site-header-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(44, 44, 44, 0.12);
}
.site-header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.site-header-link:hover {
  color: var(--accent-dark);
  text-decoration: none;
}
.site-header-link[href^="/buy"] {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(42, 40, 36, 0.16);
}
.site-header-link[href^="/buy"]:hover {
  background: #111;
  color: var(--paper);
}
.site-header-lang {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8680' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.site-header-lang:hover {
  border-color: var(--accent);
}
.site-header-lang:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Landing page ─────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.landing {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 54px;
  align-items: center;
  min-height: 660px;
  padding: 74px 0 48px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.hero-copy {
  max-width: 570px;
  min-width: 0;
  padding-left: 18px;
  animation: fadeUp 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-visual {
  animation: scaleIn 0.8s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  margin-bottom: 34px;
  border: 1px solid rgba(42, 40, 36, 0.34);
  background: rgba(255, 253, 248, 0.68);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 11px 0 0 var(--ink);
}
.hero-kicker strong {
  margin-left: auto;
  font-weight: 500;
}
.hero .wordmark,
.hero .tagline,
.hero .hero-actions,
.hero .hero-note {
  animation: fadeUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.wordmark {
  font-size: clamp(3.4rem, 5.5vw, 5rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
  color: var(--ink);
  max-width: 660px;
}
.wordmark > span {
  display: block;
  color: var(--muted-light);
}
.tagline {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 30px;
  line-height: 1.58;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.hero-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 9px 24px rgba(42, 40, 36, 0.16);
}
.hero-button-primary:hover {
  color: var(--paper);
  background: #111;
}
.hero-button-secondary {
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}
.hero-button-secondary:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(42, 40, 36, 0.12);
}
.hero-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}
.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 44px 18px 40px;
  background-image:
    linear-gradient(var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graph-line) 1px, transparent 1px);
  background-size: 176px 176px;
  border: 1px solid rgba(42, 40, 36, 0.1);
  z-index: -3;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 120px;
  left: 50%;
  bottom: 70px;
  transform: translateX(-34%) rotate(-4deg);
  background: radial-gradient(ellipse at center, rgba(42, 40, 36, 0.18), rgba(42, 40, 36, 0) 68%);
  filter: blur(10px);
  z-index: -2;
}
.hero-orbit {
  position: absolute;
  width: 500px;
  height: 260px;
  border: 1px solid rgba(42, 40, 36, 0.24);
  border-radius: 50%;
  transform: rotate(-22deg);
  z-index: -1;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: -70px 56px;
  border: 1px solid rgba(184, 130, 46, 0.16);
  border-radius: 50%;
}
.visual-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  z-index: 2;
}
.marker-top { top: 144px; left: 58%; }
.marker-left { top: 292px; left: 18%; }
.marker-right { right: 8%; bottom: 194px; }
.phone-stack {
  position: relative;
  width: 430px;
  height: 500px;
  transform: rotate(-5deg) translateX(12px);
}
.phone-shot {
  position: absolute;
  display: block;
  background: #F8F1EAe6;
  border-radius: 26px;
  border: 1px solid rgba(42, 40, 36, 0.12);
  box-shadow:
    0 28px 70px rgba(42, 40, 36, 0.18),
    0 8px 22px rgba(42, 40, 36, 0.12);
}
.phone-shot-main {
  width: 230px;
  left: 80px;
  top: 34px;
  z-index: 2;
}
.phone-shot-back {
  width: 184px;
  right: 30px;
  bottom: 42px;
  opacity: 0.92;
  transform: rotate(10deg);
  z-index: 1;
}
.metric-card {
  position: absolute;
  min-width: 174px;
  padding: 13px 14px 12px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(42, 40, 36, 0.15);
  box-shadow: 0 18px 48px rgba(42, 40, 36, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
}
.metric-card span,
.proof-intro span,
.proof-status span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.1;
}
.metric-card small {
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.35;
}
.metric-fit {
  top: 78px;
  right: 36px;
}
.metric-level {
  left: 26px;
  bottom: 114px;
}
.hero-proof-strip {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 198px;
  gap: 26px;
  align-items: stretch;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.proof-intro,
.proof-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proof-intro strong,
.proof-status strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}
.proof-status {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.proof-status strong::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.hero-proof-strip ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}
.hero-proof-strip li {
  line-height: 1.45;
}
.hero-proof-strip li strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 3px;
}
.hero-proof-strip li span {
  color: var(--muted);
  font-size: 0.82rem;
}
.badges {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.badges img { height: 48px; width: auto; display: block; }
.badges a {
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 10px;
}
.badges a:hover { transform: translateY(-2px); filter: brightness(1.1); }
.badges a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Feature grid (replaces slideshow) */
.features {
  margin: 34px 0 8px;
}
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(44, 44, 44, 0.08), 0 4px 10px rgba(44, 44, 44, 0.04);
  border-color: var(--border-strong);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(42, 40, 36, 0.12);
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.3;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.answer-block {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  margin: 46px 0 34px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.answer-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}
.answer-block p {
  color: var(--ink-soft);
  margin: 0;
}

.visual-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 42px;
  align-items: center;
  margin: 46px 0 36px;
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--border);
}
.visual-proof h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.visual-proof p {
  color: var(--ink-soft);
  max-width: 520px;
}
.visual-proof img {
  width: min(360px, 100%);
  justify-self: center;
  border-radius: 28px;
  border: 1px solid rgba(42, 40, 36, 0.1);
  box-shadow: 0 24px 70px rgba(42, 40, 36, 0.14);
}

.intent-links {
  margin: 44px 0 18px;
}
.intent-links h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.intent-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.intent-grid a {
  display: block;
  height: 100%;
  padding: 18px 18px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
}
.intent-grid a:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.intent-grid strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.intent-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* SEO / GEO intent pages */
.seo-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: center;
  margin-bottom: 40px;
}
.seo-kicker {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.seo-hero h1 {
  font-size: 2.65rem;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.seo-lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 620px;
}
.seo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}
.seo-button:hover {
  background: var(--accent-dark);
  color: var(--cream);
  text-decoration: none;
}
.seo-text-link {
  color: var(--accent-dark);
  font-weight: 700;
}
.seo-shot {
  display: flex;
  justify-content: center;
}
.seo-shot img {
  width: 300px;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
}
.seo-proof {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 28px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
}
.seo-proof span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.seo-proof p {
  color: var(--ink-soft);
  margin: 0;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 44px;
}
.seo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.seo-card h2 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.seo-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.seo-comparison,
.seo-faq,
.seo-cta {
  max-width: var(--max-w);
  margin: 0 auto 44px;
}
.seo-comparison h2,
.seo-faq h2,
.seo-cta h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.seo-comparison table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.seo-comparison th,
.seo-comparison td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.seo-comparison tr:last-child th,
.seo-comparison tr:last-child td {
  border-bottom: 0;
}
.seo-comparison th {
  width: 34%;
  color: var(--ink);
}
.seo-comparison td {
  color: var(--ink-soft);
}
.seo-faq details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  margin-bottom: 10px;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.seo-faq p {
  color: var(--ink-soft);
  margin-top: 10px;
}
.seo-cta {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}
.seo-cta p {
  color: var(--muted);
  margin: 8px auto 24px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 48px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.cta p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-links {
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--muted);
  margin: 0 12px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted-light);
  letter-spacing: 0.01em;
}

/* ── Docs page ────────────────────────────────────────────── */

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 4px 4px 4px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 6px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.docs-sidebar::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.docs-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  color: var(--ink);
  transition: opacity 0.2s ease;
}
.docs-brand:hover { opacity: 0.7; text-decoration: none; color: var(--ink); }
.docs-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.docs-brand span {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0;
}
.docs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-nav-group {
  margin-bottom: 22px;
}
.docs-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 8px;
}
.docs-nav ul { list-style: none; padding: 0; }
.docs-nav-item { margin-bottom: 2px; }
.docs-nav-item a {
  display: block;
  padding: 7px 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-radius: 6px;
  border-left: 2px solid transparent;
  line-height: 1.5;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.docs-nav-item a:hover {
  color: var(--accent-dark);
  background: var(--accent-tint);
  text-decoration: none;
}
.docs-nav-item a.active {
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-left-color: var(--accent);
  font-weight: 600;
  padding-left: 14px;
}

.docs-content {
  max-width: var(--max-w);
  min-width: 0;
}
.docs-content h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.docs-content .subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.6;
}
.docs-content section {
  margin-bottom: 56px;
  scroll-margin-top: 32px;
}
.docs-content h2 {
  font-size: 1.55rem;
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: 0;
}
.docs-content h3 {
  font-size: 1.12rem;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0;
}
.docs-content p,
.docs-content ul,
.docs-content ol {
  margin-bottom: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
}
.docs-content li { margin-bottom: 6px; }
.docs-content img {
  border-radius: var(--radius-lg);
  margin: 24px auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.docs-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-tint);
  padding: 18px 22px 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  color: var(--ink-soft);
  position: relative;
}
.docs-content blockquote::before {
  content: "💡";
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  opacity: 0.8;
}
:lang(en) .docs-content blockquote::before { content: "💡 Tip"; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); }
:lang(zh-Hans) .docs-content blockquote::before { content: "💡 提示"; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); }
:lang(ko) .docs-content blockquote::before { content: "💡 팁"; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); }
:lang(ja) .docs-content blockquote::before { content: "💡 ヒント"; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); }
.docs-content blockquote p { margin: 0; }
.docs-content blockquote p + p { margin-top: 8px; }

/* Mobile drawer toggle — hidden on desktop, sits below site-header on mobile */
.drawer-toggle {
  display: none;
  position: sticky;
  top: 52px;
  z-index: 50;
  width: 100%;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-weight: 600;
  color: var(--ink);
  align-items: center;
  gap: 10px;
  text-align: left;
}
.drawer-toggle svg { width: 20px; height: 20px; }
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 90;
}

/* ── Legal pages (privacy, terms, support) ───────────────── */

.legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal-header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-header .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.legal-header .back:hover { color: var(--accent-dark); }
.legal-header h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}
.legal-header .subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.legal-header .effective-date {
  font-size: 0.85rem;
  color: var(--muted-light);
}
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 14px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-bottom: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.android-release-note {
  margin: 22px 0 30px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.android-release-note h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.android-release-note p {
  margin: 0;
  color: var(--ink-soft);
}
.legal-body ul, .legal-body ol {
  padding-left: 1.6rem;
}
.legal-body li { margin-bottom: 4px; }
.legal-body strong { color: var(--ink); }
.android-abi-links {
  margin-top: -8px;
  font-size: 0.95rem;
}
.android-abi-links a {
  font-weight: 700;
}

/* ── 404 ──────────────────────────────────────────────────── */

.error-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 12px;
}
.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--accent-dark);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 56px;
  }
  .hero-copy {
    max-width: 760px;
    padding-left: 0;
  }
  .hero-visual {
    min-height: 510px;
  }
  .hero-proof-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .proof-status {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 18px 0 0;
  }
  .feature-grid,
  .intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }

  .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 253, 248, 0.78) 100%);
    box-shadow: none;
  }
  .site-header.is-stuck {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 253, 248, 0.86) 100%);
    box-shadow: 0 10px 26px rgba(42, 40, 36, 0.04);
  }
  .site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
  }
  .site-header-brand {
    flex: 0 0 auto;
    gap: 7px;
  }
  .site-header-brand span { font-size: 0.92rem; }
  .site-header-brand img { width: 26px; height: 26px; }
  .site-header-nav {
    display: grid;
    grid-template-columns: max-content 88px;
    width: 100%;
    justify-self: stretch;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 0;
  }
  .site-header-link {
    flex: 0 0 auto;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .site-header-link:not([href^="/buy"]) {
    display: none;
  }
  .site-header-link[href^="/buy"] {
    grid-column: 1;
    min-height: 34px;
    padding: 0 11px;
  }
  .site-header-lang {
    grid-column: 2;
    width: 88px;
    flex: 0 0 88px;
    max-width: 88px;
    min-width: 0;
    min-height: 34px;
    justify-self: end;
    padding: 5px 24px 5px 10px;
    font-size: 0.76rem;
    background-position: right 9px center;
  }

  .landing { padding: 0 18px 32px; }
  .hero {
    gap: 24px;
    padding: 38px 0 30px;
    min-width: 0;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }
  .hero-kicker {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 24px;
    font-size: 0.68rem;
    overflow: hidden;
  }
  .wordmark { font-size: 2.55rem; }
  .wordmark,
  .tagline {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  :lang(zh-Hans) .wordmark,
  :lang(ko) .wordmark,
  :lang(ja) .wordmark {
    font-size: 2.16rem;
    line-height: 1.08;
  }
  .tagline { font-size: 0.98rem; margin: 0 0 22px; }
  .hero-actions { align-items: stretch; }
  .hero-button {
    width: 100%;
    min-height: 46px;
  }
  .hero-note {
    max-width: 100%;
    width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-visual {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    justify-items: center;
    margin: 4px 0 0;
    padding: 30px 8px 8px;
    overflow: hidden;
  }
  .hero-visual::before {
    inset: 24px 8px 88px;
    background-size: 118px 118px;
  }
  .hero-visual::after {
    width: 260px;
    height: 80px;
    bottom: 118px;
  }
  .hero-orbit {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 286px;
    height: 150px;
  }
  .hero-orbit::before {
    inset: -38px 30px;
  }
  .phone-stack {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 250px;
    height: 350px;
    transform: rotate(-4deg) translateY(14px);
  }
  .phone-shot {
    border-radius: 20px;
  }
  .phone-shot-main {
    width: 144px;
    left: 62px;
    top: 32px;
  }
  .phone-shot-back {
    width: 112px;
    right: 34px;
    bottom: 82px;
  }
  .metric-card {
    position: relative;
    align-self: stretch;
    width: clamp(124px, 36vw, 132px);
    min-width: 0;
    padding: 10px 10px 9px;
  }
  .metric-card strong {
    font-size: 0.86rem;
  }
  .metric-card small {
    font-size: 0.68rem;
  }
  .metric-fit {
    grid-column: 1;
    grid-row: 2;
    top: auto;
    right: auto;
    left: auto;
  }
  .metric-level {
    grid-column: 2;
    grid-row: 2;
    left: auto;
    bottom: auto;
  }
  .visual-marker { display: none; }
  .hero-proof-strip {
    padding: 22px 0;
  }
  .hero-proof-strip ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .badges { gap: 10px; }
  .badges img { height: 44px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 22px 20px 20px; }
  .feature-icon { width: 38px; height: 38px; font-size: 16px; margin-bottom: 12px; }
  .feature-title { font-size: 1rem; }
  .feature-desc { font-size: 0.88rem; }

  .answer-block {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 30px 0 24px;
    padding: 24px 0;
  }
  .visual-proof {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0 28px;
    padding: 30px 0 32px;
  }
  .visual-proof h2 {
    font-size: 2rem;
  }
  .visual-proof img {
    width: 214px;
    margin: 0 auto;
  }
  .intent-grid { grid-template-columns: 1fr; }

  .seo-page { padding: 34px 20px 56px; }
  .seo-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .seo-hero h1 { font-size: 2rem; }
  .seo-lede { font-size: 1rem; }
  .seo-shot img {
    width: 190px;
    max-height: 360px;
    margin: 0 auto;
    border-radius: 22px;
  }
  .seo-proof {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .seo-grid { grid-template-columns: 1fr; }
  .seo-comparison th,
  .seo-comparison td {
    display: block;
    width: 100%;
  }
  .seo-comparison th {
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .seo-comparison td {
    padding-top: 0;
  }

  .cta { padding: 36px 0 8px; margin-top: 24px; }
  .cta p { font-size: 0.96rem; margin-bottom: 22px; }

  .site-footer { margin-top: 48px; padding-top: 28px; }
  .footer-links a { margin: 0 8px; font-size: 0.85rem; }

  /* Docs: collapse to single column with drawer */
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    max-width: 100%;
  }
  .drawer-toggle {
    display: flex;
    min-height: 48px;
  }
  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-height: none;
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    padding: 24px 16px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  body.drawer-open .docs-sidebar {
    transform: translateX(0);
  }
  body.drawer-open .drawer-overlay {
    display: block;
  }
  .docs-content {
    padding: 24px 20px 56px;
    max-width: 100%;
  }
  .docs-content h1 { font-size: 1.8rem; }
  .docs-content h2 { font-size: 1.3rem; }
  .docs-content .subtitle { margin-bottom: 32px; font-size: 1rem; }
  .docs-content section { margin-bottom: 44px; }

  .legal { padding: 32px 20px 56px; }
  .legal-header { padding-bottom: 24px; margin-bottom: 28px; }
  .legal-header h1 { font-size: 1.6rem; }
  .legal-body h2 { font-size: 1.2rem; margin-top: 32px; }

  .error-page { padding: 72px 24px; }
  .error-code { font-size: 4rem; }
}

@media (max-width: 560px) {
  .site-header-brand span {
    display: none;
  }
  .site-header-nav {
    grid-template-columns: max-content 84px;
    gap: 7px;
  }
  .site-header-link {
    font-size: 0.8rem;
  }
  .site-header-lang {
    width: 84px;
    flex-basis: 84px;
    max-width: 84px;
  }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .slide { transition: none; }
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-visual,
  .hero .wordmark,
  .hero .tagline,
  .hero .hero-actions,
  .hero .hero-note,
  .hero .badges { animation: none; opacity: 1; transform: none; }
  .caption { opacity: 1 !important; transform: none !important; }
}

/* ── Focus visibility ─────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
a:focus-visible {
  outline-offset: 4px;
}
