:root {
  color-scheme: light dark;
  --canvas: #ffffff;
  --paper: #f8f5ec;
  --raised: #ffffff;
  --ink: #171714;
  --muted: #6f6d66;
  --line: rgba(23, 23, 20, 0.13);
  --accent: #ffd60a;
  --accent-ink: #2b2400;
  --shadow: 0 24px 70px rgba(66, 54, 5, 0.11);
  --radius: 22px;
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #11110f;
    --paper: #1a1915;
    --raised: #20201d;
    --ink: #f4f2ea;
    --muted: #aaa79e;
    --line: rgba(255, 255, 255, 0.12);
    --accent-ink: #211c00;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions { gap: 18px; }

.language-segmented {
  display: flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.language-segmented button {
  min-width: 44px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.language-segmented button:hover { color: var(--ink); }

.language-segmented button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(23, 23, 20, 0.12), inset 0 0 0 1px rgba(23, 23, 20, 0.04);
}

.language-segmented button:focus-visible {
  outline: 2px solid rgba(23, 23, 20, 0.28);
  outline-offset: 1px;
}

.brand {
  font-weight: 720;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover { color: var(--ink); }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 8vw, 96px);
  padding: 90px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #826400;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .eyebrow { color: #ffd60a; }
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.65;
}

.hero-actions { margin-top: 34px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(43, 36, 0, 0.1);
}

.paper-visual {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}

.paper-sheet {
  width: min(430px, 92%);
  min-height: 475px;
  padding: 52px 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(2.4deg);
}

.paper-sheet::before {
  content: "";
  position: absolute;
  inset: 38px -18px -20px 18px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--paper) 94%, var(--canvas));
  transform: rotate(-5deg);
}

.paper-title,
.paper-line,
.paper-table {
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
}

.paper-title { width: 58%; height: 15px; margin-bottom: 34px; }
.paper-line { height: 7px; margin: 13px 0; opacity: 0.42; }
.paper-line.short { width: 72%; }

.paper-table {
  height: 155px;
  margin-top: 34px;
  border-radius: 8px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 38px, 33.333% 100%;
  border: 1px solid var(--line);
}

.scan-mark {
  position: absolute;
  right: 4%;
  bottom: 11%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 34px;
  font-weight: 750;
  box-shadow: 0 15px 35px rgba(142, 108, 0, 0.22);
  transform: rotate(-5deg);
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-copy { max-width: 720px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}

.number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 44px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--ink);
  font-weight: 760;
}

.card p,
.section-copy p,
.legal-copy p,
.legal-copy li { color: var(--muted); }

.privacy-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
  padding: 48px;
  border-radius: 28px;
  background: var(--paper);
}

.privacy-band p { margin-top: 0; color: var(--muted); }

.privacy-points {
  display: grid;
  gap: 16px;
}

.privacy-point {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.privacy-point:last-child { border-bottom: 0; padding-bottom: 0; }

.legal-hero { padding: 82px 0 52px; }
.legal-hero h1 { max-width: 820px; font-size: clamp(42px, 6vw, 68px); }
.updated { margin-top: 18px; color: var(--muted); font-size: 14px; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 72px;
  padding: 34px 0 110px;
}

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.legal-nav a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-copy section { scroll-margin-top: 110px; margin-bottom: 54px; }
.legal-copy h2 { font-size: 28px; }
.legal-copy ul { padding-left: 1.25em; }

.notice {
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.about-intro {
  max-width: 900px;
  padding-bottom: 88px;
}

.about-intro .lede { max-width: 760px; }

.about-statement {
  margin-bottom: 20px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 28px;
  background: var(--paper);
}

.about-statement h2 { max-width: 820px; }
.about-statement p { max-width: 720px; margin-bottom: 0; color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 110px;
}

.about-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
}

.about-card .number { margin-bottom: 52px; }
.about-card p { color: var(--muted); }

.site-footer {
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.copyright { color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .paper-visual { min-height: 430px; }
  .grid { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; gap: 22px; padding: 30px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { min-height: 60px; }
  .nav-actions { gap: 8px; }
  .nav-links a:nth-last-child(n+3) { display: none; }
  .language-segmented button { min-width: 40px; height: 28px; padding: 0 9px; }
  .hero { min-height: auto; padding: 58px 0 72px; }
  h1 { font-size: 44px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .paper-sheet { min-height: 410px; padding: 44px 32px; }
  .paper-visual { min-height: 410px; overflow: clip; }
  .section { padding: 72px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

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