:root {
  --paper: #efe9e3;
  --paper-2: #e5ddd5;
  --sheet: #fbf8f4;
  --wine: #7a2230;
  --wine-2: #99303f;
  --ink: #2c2621;
  --muted: #6c615a;
  --line: rgba(44, 38, 33, 0.14);
  --shell: 1130px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(239, 233, 227, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(122, 34, 48, 0.28);
}

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 14.5px;
  color: var(--muted);
}

.primary-nav a {
  display: inline-block;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.primary-nav a:hover { color: var(--wine); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--wine);
  color: #fdf7f2;
  font-size: 14.5px;
  font-weight: 800;
  transition: background 0.18s ease;
}

.nav-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-download:hover { background: var(--wine-2); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding: 58px 0 52px;
  overflow: hidden;
  background:
    radial-gradient(480px 300px at 4% 0%, rgba(122, 34, 48, 0.1), transparent 66%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.9fr);
  gap: 46px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--wine);
  border-bottom: 2px solid rgba(122, 34, 48, 0.5);
  padding-bottom: 3px;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(29px, 4vw, 47px);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  color: var(--wine);
}

.hero-lead {
  margin-top: 15px;
  max-width: 482px;
  color: var(--muted);
  font-size: 15.5px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 15.5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--wine);
  color: #fdf7f2;
  box-shadow: 0 12px 24px rgba(122, 34, 48, 0.22);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(122, 34, 48, 0.26);
}

.button-large { padding: 15px 30px; font-size: 16.5px; }

.text-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px dashed rgba(44, 38, 33, 0.3);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--wine); }

.hero-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.hero-tags li {
  padding: 4px 12px;
  border-radius: 3px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.hero-tags b { color: var(--wine); }

/* ---------- hero ledger book ---------- */
.ledger-book {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(44, 38, 33, 0.1) 33px 34px),
    var(--sheet);
  border: 1px solid rgba(44, 38, 33, 0.18);
  border-left: 6px solid var(--wine);
  border-radius: 4px;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 34px rgba(44, 38, 33, 0.12);
}

.ledger-book::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  height: 2px;
  background: rgba(122, 34, 48, 0.5);
}

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
}

.ledger-head p {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--wine);
}

.ledger-head span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ledger-rows {
  display: grid;
  gap: 0;
}

.ledger-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.8px;
  border-bottom: 1px dotted rgba(44, 38, 33, 0.24);
}

.ledger-rows b {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.ledger-rows span {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ledger-rows .is-up { color: var(--wine); }
.ledger-rows .is-down { color: var(--muted); }

.ledger-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 0 2px;
  border-top: 3px double rgba(122, 34, 48, 0.55);
  font-size: 13.2px;
}

.ledger-total b {
  color: var(--wine);
  letter-spacing: 0.06em;
}

.ledger-total span {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- section shared ---------- */
section { padding: 54px 0; }

.section-heading {
  max-width: 640px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 9px;
}

.section-heading h2 { font-size: clamp(22px, 2.7vw, 30px); }

.section-heading p:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.5px;
}

.section-heading-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-split > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

/* ---------- features ---------- */
.features {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.ledger-grid article {
  padding: 20px 18px 22px;
  border-right: 1px dashed rgba(44, 38, 33, 0.24);
  background: transparent;
}

.ledger-grid article:last-child { border-right: 0; }

.ledger-grid span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--wine);
  border: 1px solid rgba(122, 34, 48, 0.4);
  border-radius: 2px;
  padding: 1px 7px;
  margin-bottom: 10px;
}

.ledger-grid h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.ledger-grid p {
  font-size: 13.6px;
  color: var(--muted);
}

/* ---------- shots ---------- */
.ledger-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ledger-shots figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--wine);
}

.ledger-shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: var(--paper-2);
}

.ledger-shots figcaption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px 12px;
  font-size: 13px;
  font-weight: 700;
}

.ledger-shots figcaption b {
  font-size: 11px;
  color: var(--wine);
}

.ledger-shots figcaption small {
  margin-left: auto;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.sample-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- faq ---------- */
.faq {
  background: var(--sheet);
  border-top: 1px solid var(--line);
}

.faq-rows {
  display: grid;
  gap: 0;
  max-width: 900px;
  border-top: 2px solid var(--ink);
}

.faq-rows details {
  border-bottom: 1px dotted rgba(44, 38, 33, 0.26);
  padding: 0 4px;
}

.faq-rows details[open] { background: rgba(122, 34, 48, 0.035); }

.faq-rows summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.faq-rows summary::-webkit-details-marker { display: none; }

.faq-rows summary h3 {
  flex: 1;
  font-size: 15.5px;
}

.faq-rows summary i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(122, 34, 48, 0.4);
  border-radius: 2px;
}

.faq-rows summary i::before,
.faq-rows summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--wine);
  transform: translate(-50%, -50%);
}

.faq-rows summary i::before { width: 8px; height: 1.5px; }
.faq-rows summary i::after { width: 1.5px; height: 8px; transition: opacity 0.2s ease; }
.faq-rows details[open] summary i::after { opacity: 0; }

.faq-rows details > p {
  padding: 0 0 15px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- reviews ---------- */
.reviews { border-top: 1px solid var(--line); }

.ledger-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.review-card {
  padding: 16px 17px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 2px solid rgba(122, 34, 48, 0.5);
  border-radius: 2px;
}

.review-card > p {
  font-size: 13.8px;
  color: var(--ink);
}

.review-meta {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px dotted rgba(44, 38, 33, 0.26);
  font-size: 11px;
  color: var(--muted);
}

.review-meta b {
  font-size: 12px;
  color: var(--wine);
}

/* ---------- steps ---------- */
.ledger-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.ledger-steps li {
  padding: 20px 20px 22px;
  border-right: 1px dashed rgba(44, 38, 33, 0.24);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ledger-steps li:last-child { border-right: 0; }

.ledger-steps span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--wine);
}

.ledger-steps h3 { font-size: 17px; }

.ledger-steps p {
  font-size: 13.6px;
  color: var(--muted);
}

/* ---------- download ---------- */
.download { padding-bottom: 66px; }

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border-radius: 6px;
  background: var(--sheet);
  border: 1px solid rgba(44, 38, 33, 0.16);
  border-left: 8px solid var(--wine);
  box-shadow: 0 18px 34px rgba(44, 38, 33, 0.1);
}

.download-copy { max-width: 520px; }

.download-copy .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 8px;
}

.download-copy h2 {
  font-size: clamp(22px, 2.6vw, 29px);
  margin-bottom: 8px;
}

.download-copy p {
  font-size: 14.5px;
  color: var(--muted);
}

.download-act {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.download-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}

.download-notes li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-notes li::before {
  content: "";
  width: 5px;
  height: 1.5px;
  background: var(--wine);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #f2ece6;
  padding: 34px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 22px 30px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.footer-brand p {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(242, 236, 230, 0.6);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(242, 236, 230, 0.72);
}

.footer-nav a:hover { color: #e3a6ae; }

.footer-meta {
  font-size: 12.5px;
  color: rgba(242, 236, 230, 0.6);
  text-align: right;
}

.footer-meta a:hover { color: #e3a6ae; }

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 236, 230, 0.18);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(242, 236, 230, 0.55);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ledger-book { max-width: 500px; }
  .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-grid article:nth-child(2n) { border-right: 0; }
  .ledger-grid article:nth-child(-n+2) { border-bottom: 1px dashed rgba(44, 38, 33, 0.24); }
  .ledger-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { text-align: left; }
  .download-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    display: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 15px;
  }

  .primary-nav li { width: 100%; }

  .primary-nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-shell { position: relative; flex-wrap: wrap; }
  .primary-nav { order: 4; flex-basis: 100%; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav-download span { display: none; }
  .nav-download { padding: 10px 12px; }
}

@media (max-width: 640px) {
  .page-shell, .nav-shell { padding-left: 18px; padding-right: 18px; }
  section { padding: 42px 0; }
  .hero { padding: 40px 0 34px; }
  .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-grid article { border-right: 0; border-bottom: 1px dashed rgba(44, 38, 33, 0.24); }
  .ledger-grid article:last-child { border-bottom: 0; }
  .ledger-notes { grid-template-columns: minmax(0, 1fr); }
  .ledger-steps { grid-template-columns: minmax(0, 1fr); }
  .ledger-steps li { border-right: 0; border-bottom: 1px dashed rgba(44, 38, 33, 0.24); }
  .ledger-steps li:last-child { border-bottom: 0; }
  .section-heading-split { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-heading-split > p { white-space: normal; }
  .download-panel { padding: 26px 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .download-act { width: 100%; }
  .download-act .button { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .ledger-shots { grid-template-columns: minmax(0, 1fr); }
  .brand span { font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
}
