:root {
  color-scheme: light;
  --paper: #f8f8f4;
  --card: #ffffff;
  --ink: #13201b;
  --muted: #56655f;
  --line: #dbe2dd;
  --accent: #0a7350;
  --accent-soft: #e4f2ec;
  --accent-ink: #ffffff;
  --warn: #9a4a12;
  --warn-soft: #fbf0e4;
  --radius: 12px;
  --wrap: 1120px;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid #f0a23b; outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.92em; background: #eef1ee; padding: 1px 5px; border-radius: 4px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

/* header */
.mast { position: sticky; top: 0; z-index: 10; background: rgba(248, 248, 244, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.mast nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.mast nav a { color: var(--muted); text-decoration: none; }
.mast nav a:hover { color: var(--ink); text-decoration: underline; }
.mast nav a.btn { color: var(--accent-ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 9px; font-weight: 650; font-size: 0.97rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #085e42; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #b9c5bf; }
.btn.ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn.small { padding: 8px 13px; font-size: 0.88rem; }

/* hero */
.hero { padding: 56px 0 44px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.05rem, 4.3vw, 3.3rem); font-weight: 760; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 56ch; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.fineprint { font-size: 0.86rem; color: var(--muted); max-width: 60ch; }

.shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(19, 32, 27, 0.07); }
.shot a { display: block; }
.shot figcaption { padding: 12px 15px 13px; font-size: 0.87rem; color: var(--muted); border-top: 1px solid var(--line); background: #fcfcfa; }
.shot figcaption strong { color: var(--ink); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 6px 0 46px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--mono); font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--muted); line-height: 1.38; }

/* sections */
section.block { padding: 54px 0; border-top: 1px solid var(--line); }
.block > .wrap > h2, .block h2.title { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 740; margin-bottom: 12px; }
.block .intro { color: var(--muted); max-width: 68ch; margin-bottom: 28px; font-size: 1.03rem; }

/* problem */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.note h3 { font-size: 1.04rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.note p { color: var(--muted); font-size: 0.95rem; }

/* example viewer */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button, .views button { font: inherit; font-size: 0.92rem; font-weight: 600; padding: 9px 14px; border-radius: 8px; border: 1px solid #b9c5bf; background: var(--card); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs button:hover, .views button:hover { border-color: var(--ink); }
.example { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.example[hidden] { display: none; }
.views { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #eef1ee; border-radius: 10px; margin-bottom: 12px; }
.views button { border-color: transparent; background: transparent; font-size: 0.86rem; padding: 7px 11px; }
.views button[aria-pressed="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(19, 32, 27, 0.08); }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage a { display: block; background: #fff; }
.stage img { width: 100%; }
.stage figcaption { padding: 11px 14px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); background: #fcfcfa; min-height: 3.2em; }
.example aside h3 { font-size: 1.28rem; margin-bottom: 10px; }
.example aside p { color: var(--muted); margin-bottom: 14px; font-size: 0.98rem; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-family: var(--mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; text-align: right; }
.hint { font-size: 0.84rem; color: var(--muted); }
.flag { background: var(--warn-soft); border: 1px solid #ecd2b6; color: #6d3711; border-radius: 9px; padding: 10px 13px; font-size: 0.85rem; margin-top: 12px; }

/* benchmark */
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
caption { text-align: left; padding: 14px 16px 6px; font-weight: 650; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #fbfbf9; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.good { color: #0a6a49; font-weight: 650; }
td.bad { color: #a23a1b; font-weight: 650; }
.method { margin-top: 14px; font-size: 0.86rem; color: var(--muted); max-width: 86ch; }
.shot.compare { margin-top: 22px; }
.hero h1 { max-width: 16ch; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 0.94rem; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-family: var(--mono); margin-bottom: 12px; }
.steps li strong { display: block; color: var(--ink); margin-bottom: 5px; font-size: 1rem; }

/* options */
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.option { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.option .tag { align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.option.one .tag { background: #efe9f8; color: #5b3c96; }
.option h3 { font-size: 1.2rem; margin-bottom: 8px; }
.option p { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.option ul { padding-left: 18px; margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.option li { margin-bottom: 5px; }
.option .price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.option .price b { font-family: var(--mono); font-size: 1.12rem; display: block; color: var(--ink); }
.callout { background: var(--accent-soft); border: 1px solid #c4e0d3; border-radius: var(--radius); padding: 18px 20px; font-size: 0.97rem; }
.callout strong { color: #07543b; }
.callout + .callout { margin-top: 12px; }
.callout.plain { background: var(--card); border-color: var(--line); }

/* deliverables */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.checks li span { display: block; color: var(--muted); font-size: 0.88rem; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; font-size: 0.96rem; max-width: 80ch; }
details p + p { margin-top: -6px; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.contact .card { background: var(--ink); color: #f2f5f1; border-radius: var(--radius); padding: 26px; }
.contact .card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact .card p { color: #c7d2cb; font-size: 0.96rem; margin-bottom: 16px; }
.contact .card a.btn.primary { background: #3fd39c; color: #06281b; }
.contact .card a.btn.primary:hover { background: #6be0b4; }
.contact .card .mail { font-family: var(--mono); font-size: 0.9rem; color: #f2f5f1; word-break: break-all; }
.who p { color: var(--muted); margin-bottom: 12px; }
.who h3 { font-size: 1.2rem; margin-bottom: 10px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 0.84rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3, .options { grid-template-columns: 1fr; }
  .example { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact, .cols2 { grid-template-columns: 1fr; }
  .mast nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  :root { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .steps, .stats { grid-template-columns: 1fr; }
  section.block { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .mast, .cta-row, .tabs, .views { display: none; }
  .example[hidden] { display: grid; }
  section.block { break-inside: avoid; }
}
