:root {
  --ink: #1B1D1A;
  --ink-2: #3F443E;
  --ink-3: #4A4F49;
  --muted: #5B605A;
  --line: #E3E1D9;
  --line-2: #EEECE5;
  --paper: #FBFAF7;
  --band: #F2F0E8;
  --soft: #F4F3EE;
  --accent: #1E6B4E;
  --accent-ink: #1E5A42;
  --accent-soft: #E3F0E9;
  --bad: #8E3524;
  --bad-soft: #F8E9E4;
  --hl: #F6D78A;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #14503A; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.strong { font-weight: 600; font-size: 20px; margin-top: 28px; }
.muted { color: #6A6F68; }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.kicker-light { color: #9FD3B9; }
.lede { font-size: 20px; color: var(--ink-3); margin-top: 18px; }
.lede-light { color: #C9C7BE; font-size: 19px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6A6F68; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: #185A41; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); min-height: 50px; }
.btn-outline:hover { background: var(--soft); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(251,250,247,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { color: var(--accent); }
.brand:hover { color: var(--ink); }
.brand-sm { font-size: 18px; min-height: 0; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.pill { display: inline-flex; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .lede { max-width: 520px; margin-top: 22px; }
.hero-form { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 540px; }
.hero-form input[type=email] { flex: 1 1 260px; min-width: 0; height: 54px; padding: 0 16px; font-size: 17px; border: 1.5px solid #CFCCC1; border-radius: 12px; background: #fff; color: var(--ink); }
.hero-form .form-msg { flex-basis: 100%; }

.checks { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-3); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%231E6B4E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks-lg { flex-direction: column; gap: 10px; font-size: 18px; color: var(--ink); margin: 0; }
.checks-lg li::before { width: 20px; height: 20px; background-size: 20px; }

.hero-visual { flex: 1 1 440px; min-width: 0; margin: 0; }
.hero-visual figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -28px rgba(27,29,26,.28); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; color: #6A6F68; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar em { font-style: normal; margin-left: 8px; }
.browser-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--soft); align-self: flex-start; }
.seg-btn { min-height: 40px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; background: transparent; color: var(--ink-3); }
.seg-btn[aria-pressed=true] { border-color: var(--ink); background: #fff; color: var(--ink); }

.listing-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.listing-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.listing-id small { display: block; font-size: 13px; color: var(--muted); }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--band); display: flex; align-items: center; justify-content: center; flex: none; }
.vh-head .thumb { width: 40px; height: 40px; }
.badge { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; flex: none; }
.badge-good { color: var(--accent-ink); background: var(--accent-soft); }
.badge-mid { color: #7A5410; background: #F6ECD6; }
.badge-base { color: #4A4E48; background: #ECEBE6; }

.diff { display: flex; flex-direction: column; gap: 10px; }
.diff .eyebrow + .diff-old, .diff .eyebrow + .diff-new { margin-top: -2px; }
.diff-new + .eyebrow, .diff-old + .eyebrow { margin-top: 4px; }
.diff-old { padding: 12px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 15px; text-decoration: line-through; text-decoration-color: rgba(142,53,36,.5); }
.diff-new { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: #17402F; font-size: 15px; font-weight: 500; }
mark { background: var(--hl); color: #17402F; padding: 0 3px; border-radius: 4px; }

.stats { display: flex; align-items: stretch; gap: 12px; }
.stat { flex: 1 1 0; padding: 16px; border-radius: 12px; background: var(--soft); text-align: center; color: var(--muted); }
.stat small { display: block; font-size: 13px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.stat-hot { background: var(--accent); color: #fff; }
.stat-arrow { align-self: center; color: #8A8F88; flex: none; }

/* Bands */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section { padding-top: 88px; padding-bottom: 88px; }
.dark { background: var(--ink); color: #F4F3EE; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }

/* Steps */
.steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.step svg { width: 100%; height: auto; font-family: var(--body); }
.step p { font-size: 15px; color: var(--ink-3); }
.num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Compare */
.compare { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; }
.compare > div { flex: 1 1 380px; min-width: 0; border-radius: 18px; padding: 28px; }
.compare-old { border: 1.5px dashed #CFCCC1; }
.compare-old ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--ink-3); }
.compare-new { background: #fff; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.compare-label { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.compare-new .compare-label { margin-bottom: 6px; }
.swipe { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 16px; }

/* Version history */
.vh { margin-top: 40px; background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.vh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.vh-head strong { font-size: 16px; font-weight: 600; }
.vh-body { display: flex; flex-wrap: wrap; }
.vh-list { flex: 1 1 280px; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border-right: 1px solid var(--line-2); }
.vh-item { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--ink); min-height: 44px; background: transparent; border: 2px solid transparent; }
.vh-item:hover { background: #fff; }
.vh-item[aria-pressed=true] { background: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.vh-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.vh-item-top .badge { font-size: 12px; padding: 3px 9px; }
.vh-item-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.vh-detail { flex: 999 1 520px; min-width: 0; padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.vh-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.vh-title h3 { font-size: 20px; }
.vh-title span { font-size: 14px; color: var(--muted); }
.vh-diff { display: flex; flex-direction: column; gap: 8px; }
.vh-diff .diff-old, .vh-diff .diff-new { display: flex; gap: 10px; }
.vh-diff .sign { font-weight: 700; flex: none; text-decoration: none; display: inline-block; }
.table-wrap { overflow-x: auto; }
.vh table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 360px; }
.vh th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 0; }
.vh td { padding: 10px 0; border-top: 1px solid var(--line-2); }
.vh td:first-child { font-weight: 600; }
.vh td:nth-child(2) { color: var(--muted); }
.vh td:nth-child(3) { font-weight: 700; }
.vh-verdict { font-size: 15px; color: var(--ink-2); }
.vh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.restore { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.restore:hover { background: var(--soft); }
.restored { font-size: 15px; font-weight: 600; color: var(--accent-ink); }

/* Control */
.control { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.control li { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-radius: 16px; }
.control svg { color: var(--accent); }
.control h3 { font-size: 18px; }
.control p { font-size: 15px; color: var(--ink-3); }

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 32px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { padding: 18px 32px 18px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-bottom: 20px; color: var(--ink-3); }

/* CTA */
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; }
.cta-main { flex: 1 1 520px; min-width: 0; background: var(--accent); color: #fff; border-radius: 22px; padding: 40px; }
.cta-main h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.06; }
.cta-main > p { margin-top: 14px; font-size: 18px; color: #EAF4EE; }
.cta-contact { flex: 1 1 380px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px; }
.cta-contact h2 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.cta-contact > p { margin-top: 10px; font-size: 16px; color: var(--ink-3); }
.stacked { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; padding: 0 14px; font-size: 16px; border-radius: 12px; background: #fff; color: var(--ink); border: 1.5px solid #CFCCC1; }
.field textarea { padding: 12px 14px; resize: vertical; }
.cta-main .field input, .cta-main .field select { border-color: transparent; }
.form-msg { font-size: 15px; font-weight: 600; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.ok { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.form-msg.err { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); }
.cta-main .form-msg.ok { background: #fff; }
.fine { font-size: 13px; color: #D5E9DE; }
.is-done > :not(.form-msg) { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .band .section { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .browser-body { padding: 16px; }
  .cta-main, .cta-contact { padding: 28px 22px; }
  .compare > div { padding: 22px; }
  .vh-list { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .vh-detail { padding: 20px 18px; }
  .stat b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
