:root {
  --bg: #f3efe6;
  --bg-raised: #faf7f2;
  --bg-sunken: #e9e2d6;
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --muted: #6f685e;
  --line: #ddd4c6;
  --line-strong: #c9bead;
  --cinnabar: #8d3428;
  --cinnabar-deep: #6f241c;
  --cinnabar-soft: #f6e4de;
  --lake: #1d4a46;
  --paper: #fffdf9;
  --shadow: 0 24px 50px -28px rgba(28, 25, 21, 0.45);
  --serif: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Source Code Pro", Menlo, Consolas, monospace;
  --wrap: 1040px;
  --prose: 760px;
  --header: 68px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 90% -10%, rgba(141, 52, 40, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-lock { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: var(--cinnabar); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cinnabar-deep); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}
.prose {
  width: min(var(--prose), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--ink); }

.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.6px solid #f4efe6;
  border-radius: 3px;
}
.mark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c4553a;
  left: 12px;
  bottom: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--cinnabar); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
}
.burger { position: relative; margin: 0 auto; }
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fffdf9;
  text-decoration: none;
  border: 1px solid var(--cinnabar);
  font-size: 15px;
}
.btn:hover { background: var(--cinnabar-deep); color: #fffdf9; border-color: var(--cinnabar-deep); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover { background: var(--paper); color: var(--ink); }

.hero { padding: 64px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--cinnabar-deep);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
}
h1 { font-size: clamp(36px, 5vw, 58px); max-width: 11em; }
.lede {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 38em;
}
.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin: 26px 0 0;
}
.hero-price b {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-price small { color: var(--muted); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 28px 0 0;
  padding: 0;
}
.facts div { min-width: 0; }
.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.facts dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 14.5px; }

.chassis-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.chassis {
  height: 230px;
  border-radius: 18px;
  background:
    radial-gradient(80px 40px at 50% 108%, rgba(28, 25, 21, 0.18), transparent 70%),
    linear-gradient(160deg, #f7f4ef 0%, #d9d3c8 42%, #b7b0a4 100%);
  display: grid;
  place-items: center;
  position: relative;
}
.slab {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfaf7, #c8c2b6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 24px -18px rgba(28, 25, 21, 0.7);
  position: relative;
}
.slab i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4553a;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(196, 85, 58, 0.15);
}
.chassis-card h2 {
  margin-top: 16px;
  font-size: 26px;
}
.chassis-card .where {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.band { padding: 72px 0; }
.band.alt {
  background: rgba(255, 253, 249, 0.72);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band h2 { font-size: clamp(30px, 4vw, 42px); }
.intro { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }

.grid-2, .grid-3 { display: grid; gap: 14px; margin-top: 28px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .access-card, .flow, .spec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}
.card h3, .access-card h3, .flow h3, .spec-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.card p, .access-card p, .flow p { color: var(--ink-soft); font-size: 15.5px; }
.index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
  margin-bottom: 10px;
}

.policy {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.policy article {
  border-radius: var(--radius);
  padding: 18px;
}
.policy .bring { background: #e7f0ee; }
.policy .refuse { background: var(--cinnabar-soft); }
.policy h3 { font-size: 22px; margin-bottom: 8px; }
.policy ul, .plain-list { margin: 8px 0 0; padding-left: 1.15em; }
.policy li + li, .plain-list li + li { margin-top: 6px; }
.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.table-scroll { margin-top: 22px; overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
caption {
  text-align: left;
  caption-side: bottom;
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
#price-table th:first-child,
#discount-table th:first-child,
.compare th:first-child {
  position: sticky;
  left: 0;
  background: var(--paper);
  z-index: 1;
}
#price-table thead th:first-child,
#discount-table thead th:first-child,
.compare thead th:first-child {
  background: #f6f1e8;
  z-index: 2;
}
thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  background: #f6f1e8;
}
tbody th { font-weight: 600; }
td b, .plan-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}
td small, .plan-spec, .plan-fit {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.plan-fit { color: var(--lake); }
.is-highlight { background: #fbf6f1; }
#line-notes { margin: 16px 0 0; padding-left: 1.15em; color: var(--ink-soft); }
#line-notes b { font-weight: 600; }

.term-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.term-chip {
  background: var(--ink);
  color: #f4efe6;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.term-chip b { font-weight: 600; margin-right: 4px; }

details.fold {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 16px;
}
details.fold summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
details.fold summary:hover { color: var(--cinnabar-deep); }
details.fold .table-scroll { margin: 0 0 16px; }
#discount-example { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.split h3 { font-size: 22px; margin-bottom: 8px; }
.check, .cross { margin: 0; padding-left: 0; list-style: none; }
.check li, .cross li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: var(--ink-soft);
}
.check li::before, .cross li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.check li::before { content: "✓"; color: var(--lake); }
.cross li::before { content: "–"; color: var(--cinnabar); }

.spec-card .spec-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cinnabar);
  margin-bottom: 6px;
}
.spec-card dl { margin: 12px 0 0; }
.spec-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.spec-card dt { color: var(--muted); margin: 0; }
.spec-card dd { margin: 0; }

.common-specs {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
}
.common-specs th { width: 7.5em; color: var(--muted); font-weight: 600; background: transparent; }
.common-specs td { background: var(--paper); }

.access-card .via {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

#accounts p + p { margin-top: 14px; }
.faq h2 + details { margin-top: 22px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px;
  color: var(--cinnabar);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details li { color: var(--ink-soft); }
.faq details > :not(summary) { margin: 0 0 14px; }
#faq-price ul { margin: 8px 0 12px; padding-left: 1.15em; }

.compare { min-width: 720px; }
.compare td:nth-child(3) { background: #fbf6f1; }

.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--cinnabar);
  padding-top: 4px;
}
.steps h3 { font-size: 22px; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); }

pre {
  margin: 12px 0 0;
  background: var(--ink);
  color: #f4efe6;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
code { font-family: var(--mono); font-size: 0.92em; }

.not-for { margin: 18px 0 0; padding-left: 1.15em; }
.not-for li { margin: 8px 0; color: var(--ink-soft); }

.contact-block {
  margin-top: 20px;
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #f4efe6;
}
.contact-pending {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  margin: 0;
}
.contact-block p + p { margin-top: 10px; color: rgba(244, 239, 230, 0.78); }

.foot {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13.5px;
}
.foot p + p { margin-top: 8px; }
.foot a { color: var(--ink-soft); }

.missing { padding: 18vh 0 24vh; }
.missing h1 { font-size: clamp(36px, 6vw, 64px); }
.missing p { margin-top: 12px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .hero-grid, .grid-2, .grid-3, .policy, .split { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -24px rgba(28, 25, 21, 0.45);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 17px;
  }
  .hero { padding-top: 36px; }
  h1 { font-size: 38px; }
  .hero-price b { font-size: 40px; }
  .facts { grid-template-columns: 1fr; }
  .band { padding: 52px 0; }
  td b { font-size: 24px; }
}

@media (max-width: 720px) {
  #price-table,
  #discount-table {
    min-width: 0;
    display: block;
    border: 0;
    background: transparent;
  }
  #price-table thead,
  #discount-table thead { display: none; }
  #price-table caption,
  #discount-table caption {
    display: block;
    margin: 2px 0 14px;
  }
  #price-table tbody,
  #discount-table tbody,
  #price-table tr,
  #discount-table tr { display: block; }
  #price-table th,
  #price-table td,
  #discount-table th,
  #discount-table td,
  #price-table th:first-child,
  #discount-table th:first-child {
    display: block;
    width: auto;
    position: static;
    border: 0;
    background: transparent;
    padding: 8px 0;
  }
  #price-table tr,
  #discount-table tr {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0 0 12px;
    padding: 12px 14px 6px;
  }
  #price-table td::before,
  #discount-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .table-scroll:has(#price-table),
  .table-scroll:has(#discount-table) { overflow: visible; }
}

@media (max-width: 640px) {
  .wrap, .prose { width: min(var(--wrap), calc(100% - 32px)); }
  .hero-actions .btn { width: 100%; }
  .chassis { height: 180px; }
  .slab { width: 108px; height: 108px; }
}
