:root {
  color-scheme: light;
  --background: #FBFAF5;
  --surface: #FFFFFF;
  --text: #111111;
  --ink: #2F2A24;
  --muted: #7A7166;
  --paper: #E8E1D2;
  --warm-gray: #C7B299;
  --app-icon-radius: 22%;
  --download-control-radius: 9px;
  --shell: min(1160px, calc(100% - 64px));
  --serif: "Noto Serif SC", "Songti SC", STSong, "Yu Mincho", serif;
  --sans: "Noto Sans SC", "PingFang SC", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] {
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 9px 14px; color: var(--surface); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--warm-gray); outline-offset: 5px; }

.site-header {
  border-bottom: 1px solid var(--paper);
  background: var(--background);
}
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .03em; }
.brand img { width: 34px; height: 34px; border-radius: var(--app-icon-radius); }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.nav-links a, .footer-links a, .text-link, .principles-note a { transition: color .2s ease; }
.nav-links a:hover, .footer-links a:hover, .text-link:hover, .principles-note a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.language-switch { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.language-switch [aria-current="page"] { color: var(--text); }
.language-switch a { transition: color .2s ease; }
.language-switch a:hover { color: var(--text); }
.nav-download { padding-bottom: 2px; border-bottom: 1px solid var(--text); font-size: 12px; letter-spacing: .06em; }

.hero { padding: 36px 0 0; }
.hero-meta { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--paper); color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy { max-width: 900px; padding: 132px 0 122px; }
.eyebrow, .section-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  margin: 24px 0 38px;
  font-family: var(--serif);
  font-size: clamp(54px, 7.4vw, 92px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.24;
}
.hero-lead { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 46px; }
.app-store-link { display: inline-flex; transition: opacity .2s ease; }
.app-store-link:hover { opacity: .74; }
.app-store-link img { width: auto; height: 56px; border-radius: var(--download-control-radius); }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; padding: 0 22px; border: 1px solid var(--ink); border-radius: var(--download-control-radius); font-size: 13px; letter-spacing: .04em; transition: color .2s ease, background .2s ease; }
.button-ink { color: var(--surface); background: var(--ink); }
.button-ink:hover { color: var(--ink); background: var(--surface); }

.hero-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(90px, .7fr) 190px minmax(90px, .7fr) 1fr;
  align-items: center;
  min-height: 380px;
  padding: 54px 0;
  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
}
.map-node { display: flex; flex-direction: column; align-items: flex-start; }
.map-node-end { align-items: flex-end; text-align: right; }
.map-number { margin-bottom: 42px; color: var(--warm-gray); font-family: var(--serif); font-size: 12px; }
.map-node strong { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.map-node small, .map-center small { margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.map-line { padding: 0 18px; }
.map-line span { display: block; width: 100%; height: 1px; background: var(--warm-gray); }
.map-center { display: flex; flex-direction: column; align-items: center; }
.map-center img { width: 72px; height: 72px; border-radius: var(--app-icon-radius); }
.watch-note { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); color: var(--muted); font-size: 10px; letter-spacing: .06em; white-space: nowrap; }
.watch-note span { margin-right: 8px; color: var(--warm-gray); font-family: var(--serif); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 26px 0 50px; }
.hero-foot p { margin: 0; font-family: var(--serif); font-size: 14px; }
.hero-foot div { display: flex; gap: 24px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }

.facts { border-top: 1px solid var(--paper); border-bottom: 1px solid var(--paper); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 40px 30px; border-right: 1px solid var(--paper); }
.facts-grid div:first-child { padding-left: 0; }
.facts-grid div:last-child { border-right: 0; }
.facts-grid span { display: block; color: var(--warm-gray); font-family: var(--serif); font-size: 11px; }
.facts-grid strong { display: block; margin-top: 42px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.facts-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.section { padding: 150px 0; }
.editorial-grid, .faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 120px; }
.section-heading { max-width: 470px; }
.section-heading h2 {
  margin: 26px 0 30px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.38;
}
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.section-heading-wide { max-width: 760px; margin-bottom: 80px; }

.feature-list { border-top: 1px solid var(--ink); }
.feature-row { display: grid; grid-template-columns: 54px 1fr 50px; align-items: start; gap: 22px; min-height: 180px; padding: 34px 0; border-bottom: 1px solid var(--paper); }
.feature-number { color: var(--warm-gray); font-family: var(--serif); font-size: 12px; }
.feature-row h3 { margin: -5px 0 12px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.feature-row p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.feature-mark { justify-self: end; color: var(--paper); font-family: var(--serif); font-size: 28px; font-weight: 500; }

.principles-section { color: var(--surface); background: var(--ink); }
.principles-top { display: flex; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--muted); }
.principles-top .section-label, .principles-top > p:last-child { color: var(--paper); }
.principles-top > p:last-child { margin: 0; font-size: 11px; letter-spacing: .08em; }
.principles-statement { padding: 112px 0 120px; }
.principles-statement p { margin: 0; font-family: var(--serif); font-size: clamp(42px, 6vw, 76px); font-weight: 500; line-height: 1.55; }
.principles-statement p:nth-child(2) { padding-left: 15%; color: var(--paper); }
.principles-statement p:nth-child(3) { padding-left: 30%; color: var(--warm-gray); }
.principles-note { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: end; padding-top: 34px; border-top: 1px solid var(--muted); }
.principles-note p { max-width: 600px; margin: 0; color: var(--paper); font-size: 13px; line-height: 2; }
.principles-note a { padding-bottom: 2px; border-bottom: 1px solid var(--paper); color: var(--paper); font-size: 12px; }

.setup-section { background: var(--surface); }
.steps { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.steps li { display: grid; grid-template-columns: 170px 1fr; gap: 60px; min-height: 240px; padding: 46px 0; border-bottom: 1px solid var(--paper); }
.step-number { color: var(--paper); font-family: var(--serif); font-size: 78px; font-weight: 500; line-height: 1; }
.steps h3 { margin: 5px 0 18px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.steps p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; }
.permission-note { display: grid; grid-template-columns: 170px 1fr; gap: 60px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--warm-gray); border-bottom: 1px solid var(--warm-gray); }
.permission-note span { color: var(--ink); font-family: var(--serif); font-size: 13px; }
.permission-note p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; }

.download-section { border-top: 1px solid var(--paper); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.download-item { padding: 44px 50px 0 0; }
.download-item + .download-item { padding-right: 0; padding-left: 50px; border-left: 1px solid var(--paper); }
.download-head { display: flex; align-items: flex-start; justify-content: space-between; min-height: 126px; }
.download-head > span { color: var(--warm-gray); font-family: var(--serif); font-size: 12px; }
.download-head img { width: 58px; height: 58px; border-radius: var(--app-icon-radius); }
.download-platform { margin: 0 0 12px !important; color: var(--muted) !important; font-size: 10px !important; letter-spacing: .12em; text-transform: uppercase; }
.download-body h3 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.download-body > p { min-height: 62px; margin: 18px 0 30px; color: var(--muted); font-size: 13px; }
.download-body > small { display: block; margin-top: 22px; color: var(--muted); font-size: 10px; }
.download-body > small a { border-bottom: 1px solid var(--muted); }

.faq-section { border-top: 1px solid var(--paper); background: var(--surface); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--paper); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--warm-gray); font-family: var(--sans); font-size: 18px; font-weight: 300; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 620px; margin: -7px 0 30px; padding-right: 46px; color: var(--muted); font-size: 13px; line-height: 2; }
.text-link { display: inline-flex; gap: 10px; margin-top: 28px; padding-bottom: 2px; border-bottom: 1px solid var(--muted); color: var(--muted); font-size: 12px; }

.site-footer { padding: 76px 0 30px; border-top: 1px solid var(--paper); }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; padding-bottom: 70px; }
.footer-main p { margin: 18px 0 0; color: var(--muted); font-family: var(--serif); font-size: 13px; }
.footer-links { display: flex; gap: 28px; color: var(--muted); font-size: 11px; }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-top: 22px; border-top: 1px solid var(--paper); color: var(--muted); font-size: 9px; }
.footer-bottom span:last-child { max-width: 620px; text-align: right; }

.legal-page { background: var(--background); }
.solid-header { background: var(--background); }
.legal-main { max-width: 900px; padding: 110px 0 150px; }
.legal-hero { margin-bottom: 70px; }
.legal-hero .kicker { margin: 0 0 20px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 72px); font-weight: 500; line-height: 1.25; }
.legal-hero > p:last-child { color: var(--muted); font-size: 11px; }
.legal-card { padding-top: 58px; border-top: 1px solid var(--ink); }
.legal-lead { max-width: 720px; margin-top: 0; font-family: var(--serif); font-size: 18px; line-height: 2; }
.legal-card h2 { margin: 62px 0 16px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.legal-card p, .legal-card li { color: var(--muted); font-size: 14px; line-height: 2; }
.legal-card li { margin: 8px 0; }
.legal-card a { border-bottom: 1px solid var(--muted); }
.legal-card hr { margin: 100px 0; border: 0; border-top: 1px solid var(--paper); }
.english-legal-heading { margin-bottom: 54px; }
.legal-footer { padding-top: 30px; }
.legal-footer a { border-bottom: 1px solid var(--muted); }

@media (max-width: 900px) {
  .editorial-grid, .faq-layout { grid-template-columns: 1fr; gap: 72px; }
  .section-heading { max-width: 680px; }
  .principles-statement p:nth-child(2) { padding-left: 8%; }
  .principles-statement p:nth-child(3) { padding-left: 16%; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 36px, 1160px); }
  .nav-shell { min-height: 68px; }
  .nav-links { display: none; }
  .nav-actions { gap: 16px; margin-left: auto; }
  .nav-download { font-size: 10px; }
  .hero { padding-top: 22px; }
  .hero-meta { gap: 20px; font-size: 8px; }
  .hero-copy { padding: 88px 0 90px; }
  .hero h1 { font-size: 48px; line-height: 1.35; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-map { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding: 48px 0 74px; }
  .map-node, .map-node-end { align-items: center; text-align: center; }
  .map-number { margin-bottom: 12px; }
  .map-line { width: 1px; height: 46px; margin: 0 auto; padding: 0; background: var(--warm-gray); }
  .map-line span { display: none; }
  .watch-note { bottom: 24px; }
  .hero-foot { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-foot div { flex-wrap: wrap; gap: 12px 18px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid div, .facts-grid div:first-child { padding: 28px 20px; }
  .facts-grid div:nth-child(2) { border-right: 0; }
  .facts-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--paper); }
  .facts-grid strong { margin-top: 30px; }
  .section { padding: 100px 0; }
  .section-heading h2 { font-size: 42px; }
  .section-heading-wide { margin-bottom: 58px; }
  .feature-row { grid-template-columns: 38px 1fr; min-height: 166px; }
  .feature-mark { display: none; }
  .principles-statement { padding: 82px 0 90px; }
  .principles-statement p { font-size: 38px; }
  .principles-statement p:nth-child(2), .principles-statement p:nth-child(3) { padding-left: 0; }
  .principles-note { grid-template-columns: 1fr; gap: 34px; }
  .principles-note a { justify-self: start; }
  .steps li { grid-template-columns: 78px 1fr; gap: 20px; min-height: 210px; }
  .step-number { font-size: 50px; }
  .permission-note { grid-template-columns: 1fr; gap: 14px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-item { padding: 38px 0 58px; }
  .download-item + .download-item { padding: 58px 0 0; border-top: 1px solid var(--paper); border-left: 0; }
  .download-body > p { min-height: auto; }
  .footer-main { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-bottom span:last-child { text-align: left; }
  .legal-main { padding: 80px 0 110px; }
  .legal-card { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
