:root {
  color-scheme: light;
  --ink: #2c1810;
  --muted: #6f6258;
  --paper: #fffaf3;
  --paper-deep: #f8efe4;
  --card: #ffffff;
  --line: #eadfd3;
  --brand: #c4783e;
  --brand-light: #e8a76b;
  --accent: #9c5a2e;
  --accent-soft: #f7eadc;
  --gold: #d4a24c;
  --green: #5ba37c;
  --red: #c0392b;
  --shadow: 0 18px 50px rgba(94, 54, 26, .10);
  --section: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(232, 167, 107, .13), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(212, 162, 76, .10), transparent 26%);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(196, 120, 62, .32);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }
figure { margin: 0; }

.site-header {
  color: #fff;
  background: linear-gradient(135deg, #8f4f25, #c4783e 58%, #d99a62);
}

.site-header-inner,
.page,
.footer,
.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: .04em;
}

.tagline { margin: 3px 0 0; color: rgba(255, 255, 255, .84); font-size: 13px; }
.brand-link { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand-lockup { display: grid; gap: 0; }
.brand-icon {
  width: 46px;
  height: 46px;
  margin-right: 12px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(67, 32, 13, .22);
}

.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-nav a {
  padding: 8px 11px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 84px;
}
.hero::after {
  position: absolute;
  z-index: -1;
  top: 72px;
  right: -180px;
  width: 520px;
  height: 520px;
  content: "";
  background: rgba(232, 167, 107, .13);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}
.eyebrow::before { width: 22px; height: 2px; content: ""; background: var(--brand); }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  line-height: 1.35;
}
.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -.03em;
}
.hero h1 span { color: var(--accent); }
.hero-lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: #594b41;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(156, 90, 46, .18);
}
.button:hover { color: #fff; background: #854a25; }
.button-app-store { color: #fff; background: #171717; border-color: #171717; box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.button-app-store:hover { color: #fff; background: #000; border-color: #000; }
.button-secondary {
  color: var(--accent);
  background: transparent;
  border-color: #dfc7b2;
  box-shadow: none;
}
.button-secondary:hover { color: #77401e; background: var(--accent-soft); }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.phone-stage { position: relative; min-height: 560px; }
.phone-stage::before {
  position: absolute;
  top: 40px;
  right: 7%;
  width: 280px;
  height: 390px;
  content: "";
  background: linear-gradient(145deg, #f3dfca, #fff8ef);
  border-radius: 36px;
  transform: rotate(8deg);
  box-shadow: var(--shadow);
}
.phone-shot {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 7%;
  width: min(296px, 65vw);
  border: 7px solid #fff;
  border-radius: 35px;
  box-shadow: 0 24px 60px rgba(67, 32, 13, .20);
}
.phone-badge {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 35px;
  width: 190px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.phone-badge strong { display: block; color: var(--accent); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 28px; line-height: 1.1; }
.phone-badge span { color: var(--muted); font-size: 13px; }

.section { padding: var(--section) 0; }
.section-tight { padding: 54px 0; }
.section-heading { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; }

.facts-band {
  padding: 0 0 65px;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(94, 54, 26, .06);
}
.fact { min-height: 142px; padding: 26px 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; color: var(--accent); font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.fact span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  min-height: 196px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(94, 54, 26, .09); }
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--accent);
  font-size: 21px;
  background: var(--accent-soft);
  border-radius: 12px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.audience-card {
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(145deg, #fff, #fff9f1);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.audience-card strong { display: block; margin-bottom: 7px; color: var(--accent); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; }
.audience-card p { margin: 0; color: var(--muted); font-size: 14px; }

.screenshots-wrap { overflow: hidden; }
.screenshots {
  display: grid;
  grid-template-columns: repeat(6, minmax(178px, 1fr));
  gap: 16px;
  padding: 6px 4px 22px;
}
.screenshot-card { min-width: 0; text-align: center; }
.screenshot-card img {
  width: 100%;
  border: 5px solid #fff;
  border-radius: 24px;
  box-shadow: 0 14px 32px rgba(74, 44, 24, .13);
}
.screenshot-card span { display: block; margin-top: 11px; color: var(--muted); font-size: 13px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.step::before {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
  content: counter(step);
  counter-increment: step;
  place-items: center;
  background: var(--brand);
  border-radius: 50%;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.panel-highlight { background: linear-gradient(145deg, #fff5e8, #fffaf3); border-color: #e7c9aa; }
.panel h2, .panel h3 { margin-top: 0; }
.panel h2 { font-size: clamp(25px, 3vw, 34px); }
.panel p { color: var(--muted); }
.check-list { padding: 0; margin: 18px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin: 10px 0; color: #53463d; }
.check-list li::before { position: absolute; left: 0; top: .1em; color: var(--green); font-weight: 800; content: "✓"; }

.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
details {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
summary { cursor: pointer; color: var(--ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; font-weight: 700; }
details p { margin: 12px 0 0; color: var(--muted); }

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  background: linear-gradient(135deg, #7d4420, #b96e37 70%, #d99a62);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(94, 54, 26, .16);
}
.download-panel h2 { margin: 0 0 10px; color: #fff; font-size: clamp(27px, 4vw, 40px); }
.download-panel p { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .86); }
.download-actions { display: grid; gap: 10px; min-width: 220px; }
.download-actions .button { color: var(--accent); background: #fff; border-color: #fff; box-shadow: none; }
.download-actions small { color: rgba(255, 255, 255, .78); font-size: 12px; text-align: center; }

.footer {
  padding: 38px 0 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; }
.footer-nav a { color: var(--accent); text-decoration: none; }
.icp { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* Legal and article pages */
.page { width: min(860px, calc(100% - 32px)); padding: 28px 0 64px; }
.card {
  padding: 28px clamp(20px, 5vw, 48px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(94, 54, 26, .06);
}
.page h1 { margin: 0 0 18px; font-size: clamp(27px, 5vw, 36px); }
.page h2 { margin: 34px 0 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 23px; }
.page h3 { margin: 24px 0 8px; font-size: 18px; }
.page p { margin: 10px 0; }
.page ul { padding-left: 1.5em; }
.page li { margin: 4px 0; }
.meta {
  padding: 14px 16px;
  color: var(--muted);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}
.nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nav a {
  display: inline-block;
  padding: 9px 14px;
  color: var(--accent);
  text-decoration: none;
  background: var(--accent-soft);
  border-radius: 999px;
}

.about-grid, .fact-table { display: grid; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.about-grid { grid-template-columns: repeat(2, 1fr); }
.fact-row { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt, .fact-row dd { margin: 0; padding: 12px 15px; }
.fact-row dt { color: var(--accent); font-weight: 700; background: #fffaf3; }
.fact-row dd { color: #53463d; }

@media (max-width: 980px) {
  :root { --section: 68px; }
  .hero { padding: 54px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .phone-stage { min-height: 540px; }
  .phone-stage::before, .phone-shot { right: 50%; transform: translateX(50%) rotate(0); }
  .phone-badge { right: 3%; }
  .facts-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .audience-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .screenshots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header-inner { align-items: flex-start; padding: 15px 0; }
  .site-nav { justify-content: flex-end; }
  .site-nav a { padding: 6px 7px; font-size: 12px; }
  .brand { font-size: 22px; }
  .brand-icon { width: 38px; height: 38px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .facts-grid, .feature-grid, .audience-grid, .steps, .split, .download-panel { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .download-actions { min-width: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .fact-row dt { padding-bottom: 4px; }
}

@media (max-width: 480px) {
  .site-header-inner, .site-shell, .page, .footer { width: min(100% - 24px, 1120px); }
  .site-header-inner { display: block; }
  .site-nav { justify-content: flex-start; margin-top: 10px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 36px; }
  .phone-stage { min-height: 495px; }
  .phone-shot { width: min(260px, 72vw); }
  .phone-badge { right: 0; bottom: 15px; width: 160px; }
  .screenshots { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; border-radius: 14px; }
}
