/* Mobile first: the base is a 360px phone; only min-width queries below. */
:root {
  --page: #f5f4ef; --surface: #fff; --surface-2: #eaece7;
  --ink: #202923; --ink2: #3a463e; --mute: #526057; --line: #d5dad3; --field: #7f8a82;
  --acc: #20563e; --acc-d: #17432f; --rust: #a64b20; --rust-bg: #f6e9de;
  --ok: #286344; --warn: #81500c; --bad: #a02f29;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 10px; --tap: 52px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 17px/1.55 var(--sans); color: var(--ink); background: var(--page); overflow-wrap: break-word; }
svg { max-width: 100%; }
a { color: var(--acc); text-underline-offset: 2px; }
a:hover { color: var(--acc-d); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 25px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section.wrap { margin-bottom: 16px; }
.sec { padding-top: 44px; }
.sec > h2, .sec-h { border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 14px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.sec-h h2 { margin: 0; }
.sec-lead { color: var(--ink2); max-width: 720px; }
.fine { font-size: 15px; color: var(--mute); }

/* Header */
.top { background: var(--surface); border-bottom: 3px solid var(--ink); position: relative; }
.top-in { display: flex; align-items: center; gap: 4px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; color: var(--acc); }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font: 700 14px var(--mono); color: var(--ink); text-decoration: none; }
.nav-d { display: none; }
.nav-m summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.nav-m summary::-webkit-details-marker { display: none; }
.nav-m[open] summary { background: var(--ink); color: #fff; }
.nav-m nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface); border-bottom: 3px solid var(--ink); padding: 4px 16px 8px; }
.nav-m nav a { display: flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-m nav a:last-child { border-bottom: 0; }
.nav-m nav a.on { color: var(--acc); }

/* Hero */
.hero { padding: 32px 0 8px; }
.hero.is-small { padding: 28px 0 8px; }
.kicker { color: var(--rust); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink2); max-width: 720px; margin: 0 0 20px; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.cta-note { font-size: 15px; color: var(--mute); margin: 12px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap); padding: 10px 22px; border-radius: 8px; border: 2px solid var(--acc); background: var(--acc); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--acc-d); border-color: var(--acc-d); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.is-ghost { background: transparent; color: var(--acc); }
.btn.is-ghost:hover { background: var(--surface-2); color: var(--acc-d); }
.btn.is-wide { width: 100%; }
.btn.is-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn.is-danger:hover { background: #fbeeed; color: var(--bad); }

/* Sample report: one table, shown as part tags on a phone */
.stamp { display: inline-block; padding: 2px 8px; border: 2px solid var(--rust); border-radius: 4px; color: var(--rust); font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.rep { display: block; width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.rep thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rep tbody { display: grid; gap: 14px; }
.rep tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 10px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: var(--r); padding: 14px 16px; }
.rep td { display: block; padding: 0; font: 600 17px var(--mono); font-variant-numeric: tabular-nums; }
.rep td::before { content: attr(data-label); display: block; font: 400 14px/1.3 var(--sans); color: var(--mute); margin-bottom: 2px; }
.rep .c-part { grid-column: span 6; font: 700 19px/1.25 var(--sans); }
.rep .c-part::before { display: none; }
.rep .c-oem, .rep .c-cond { grid-column: span 3; font-size: 15px; font-weight: 400; }
.rep .c-cond { font-family: var(--sans); }
.rep .c-price, .rep .c-sug { grid-column: span 3; font-size: 27px; font-weight: 700; line-height: 1.1; border-top: 1px dashed var(--field); padding-top: 12px; }
.rep .c-sug { color: var(--acc); order: 1; }
.rep .c-sug.is-none { color: var(--mute); }
.rep .c-sug small { display: block; font: 400 14px/1.3 var(--sans); color: var(--mute); margin-top: 4px; }
.rep .c-num { grid-column: span 2; order: 2; }

/* Rows, steps, panels */
.rows { display: grid; gap: 0; border-bottom: 1px solid var(--line); }
.rows > div { padding: 14px 0; border-top: 1px solid var(--line); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows p { color: var(--ink2); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 12px; }
.steps li::before { content: counter(step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--ink); color: #fff; font: 700 20px var(--mono); border-radius: 6px; }
.steps h3 { margin: 0 0 2px; }
.steps p { color: var(--ink2); margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card p { color: var(--ink2); }
.card p:last-child { margin-bottom: 0; }
.grid3, .two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--ink2); }
.ticks svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; color: var(--ok); }
.ticks.is-no svg { color: var(--bad); }
.ticks.is-note svg { color: var(--rust); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--tap); padding: 12px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font: 700 24px/1 var(--mono); color: var(--acc); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink2); margin: 0 0 14px; max-width: 720px; }

/* Closing call to action */
.end { background: var(--rust-bg); border-left: 6px solid var(--rust); border-radius: 0 var(--r) var(--r) 0; padding: 20px 18px; margin-top: 44px; }
.end h2 { margin-bottom: 6px; }
.end p { color: var(--ink2); }
.end .btn { width: 100%; }

/* Forms */
.form label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.form small { font-weight: 400; color: var(--mute); font-size: 15px; }
input, select, textarea { display: block; width: 100%; min-height: var(--tap); margin-top: 6px; padding: 12px; border: 1px solid var(--field); border-radius: 6px; font: inherit; font-size: 17px; font-weight: 400; background: var(--surface); color: var(--ink); }
textarea { min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: var(--acc); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
label.tick { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--ink2); margin: 0 0 16px; }
label.tick input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 0; accent-color: var(--acc); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--bad); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.form .btn { width: 100%; }

/* Legal */
.legal { padding-top: 28px; padding-bottom: 32px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: var(--ink2); }
.legal-meta { color: var(--mute) !important; font-size: 15px; }
.legal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 16px; color: var(--ink2); margin: 16px 0; }
.legal-tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; display: block; overflow-x: auto; }
.legal-tbl th, .legal-tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; background: var(--surface); }
.legal-tbl th { background: var(--surface-2); }
mark { background: var(--rust-bg); color: var(--warn); padding: 0 3px; border-radius: 3px; }

/* Footer */
.foot { border-top: 3px solid var(--ink); background: var(--surface); margin-top: 44px; }
.foot-in { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; font-size: 15px; color: var(--mute); }
.foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.foot a { display: flex; align-items: center; min-height: 44px; color: var(--ink2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Price Optimizer window */
body.is-bare { background: var(--surface); }
body.is-bare .foot { margin-top: 16px; }
.pw { max-width: 620px; margin: 0 auto; padding: 16px; }
.pw-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 16px; flex-wrap: wrap; }
.pw-h .brand { font-size: 18px; margin-right: 0; }
.pw-h .brand svg { width: 26px; height: 26px; }
.pw-t { font-weight: 800; font-size: 18px; }
.pw-via { margin-left: auto; font-size: 14px; color: var(--mute); background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.pw-shop { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px; }
.pw-shop b { display: block; }
.pw-shop span { font-size: 14px; color: var(--mute); }
.pw-shop a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.pw-form h2 { font-size: 20px; }
.pw-field { display: block; font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.pw-lbl { display: block; margin-bottom: 6px; }
.pw-ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-ticks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--field); border-radius: 8px; padding: 6px 12px; font-weight: 500; cursor: pointer; }
.pw-ticks input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--acc); }
.pw-note { font-size: 15px; color: var(--mute); margin: 0 0 14px; }
.pw-warn { font-size: 15px; background: var(--rust-bg); color: var(--warn); border: 1px solid var(--rust); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.pw-status { border: 1px solid var(--line); background: var(--page); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.pw-status.is-ok { border-color: var(--ok); background: #eaf3ee; }
.pw-status.is-bad { border-color: var(--bad); background: #fbeeed; }
.pw-status b { display: block; font-size: 18px; }
.pw-status span { font-size: 15px; color: var(--ink2); }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .5s; }
.pw-run .btn { margin-top: 8px; }

@media (min-width: 30rem) {
  .cta { flex-direction: row; flex-wrap: wrap; }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .form .btn, .end .btn { width: auto; }
}

@media (min-width: 48rem) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 19px; }
  .lead { font-size: 21px; }
  .hero { padding: 56px 0 12px; }
  .hero.is-small { padding: 40px 0 12px; }
  .sec { padding-top: 56px; }
  .nav-m { display: none; }
  .nav-d { display: flex; gap: 2px; }
  .nav-d a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; border-bottom: 3px solid transparent; }
  .nav-d a:hover, .nav-d a.on { border-bottom-color: var(--acc); color: var(--ink); }
  .top-in { min-height: 68px; }
  .rep tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 22px; }
  .end { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; }
  .end .btn { flex: 0 0 auto; }
  .end p { margin: 0; }
  .foot-in { flex-direction: row; justify-content: space-between; align-items: center; padding: 20px 32px; }
  .foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
}

@media (min-width: 64rem) {
  h1 { font-size: 52px; }
  .hero-t { max-width: 860px; }
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; border-bottom: 0; }
  .rows > div, .rows > div:first-child { padding: 12px 0 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .rep { display: table; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); }
  .rep thead { position: static; display: table-header-group; width: auto; height: auto; clip-path: none; }
  .rep tbody { display: table-row-group; }
  .rep tr { display: table-row; border: 0; padding: 0; background: none; }
  .rep th { padding: 10px 12px; font-size: 15px; font-weight: 700; text-align: left; color: var(--mute); border-bottom: 2px solid var(--ink); }
  .rep th.num { text-align: right; }
  .rep td, .rep .c-part, .rep .c-oem, .rep .c-cond, .rep .c-price, .rep .c-sug { display: table-cell; padding: 12px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 400; line-height: 1.3; vertical-align: top; }
  .rep td::before { display: none; }
  .rep .c-part { font-weight: 700; }
  .rep .c-price, .rep .c-sug, .rep .c-num { text-align: right; }
  .rep .c-price, .rep .c-sug { font-weight: 700; font-size: 18px; }
  .rep .c-sug small { margin-top: 2px; }
}
