/* SEO Redline — a legal-document look: paper background, serif headings, red strike, green insert. */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #fffdf8;
  --ink: #1b1c1f;
  --ink-2: #4a4c52;
  --muted: #6d6f76;
  --line: #ddd6c7;
  --red: #c0272d;
  --red-bg: #fbe4e2;
  --green: #1f7a4a;
  --green-bg: #e2f2e7;
  --amber: #8a5a00;
  --amber-bg: #fbf0d5;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16171a;
    --paper-2: #1d1e22;
    --card: #222328;
    --ink: #ecebe6;
    --ink-2: #c3c2bc;
    --muted: #9a9993;
    --line: #34353b;
    --red: #ff6b66;
    --red-bg: #3a1f1f;
    --green: #6fd39b;
    --green-bg: #18301f;
    --amber: #f0c060;
    --amber-bg: #33290f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.2rem var(--serif); }
.logo b { color: var(--red); font-weight: 600; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 0; border-radius: 6px; padding: 13px 22px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red); color: #fff; }
.btn--small { padding: 9px 14px; font-size: .9rem; }
.link { color: var(--ink-2); margin-left: 14px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 14px; }
.strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; color: var(--muted); }
.ins { color: var(--green); border-bottom: 3px solid var(--green); }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Sample redline document */
.doc { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(0,0,0,.35); font-size: .95rem; }
.doc__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); font: .8rem var(--mono); color: var(--muted); }
.pill { background: var(--amber-bg); color: var(--amber); padding: 1px 8px; border-radius: 99px; }
.doc__body { padding: 6px 18px; }
.fix { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.fix:last-child { border-bottom: 0; }
.fix p { margin: 0 0 6px; }
.fix__label { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.fix__label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
del { color: var(--red); background: var(--red-bg); text-decoration-thickness: 2px; }
ins { color: var(--green); background: var(--green-bg); text-decoration: none; }
u { text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.note { font-size: .85rem; color: var(--ink-2); border-left: 3px solid var(--green); padding: 4px 10px; background: var(--paper-2); }
.note--warn { border-left-color: var(--amber); }
.doc__foot { display: flex; gap: 20px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.doc__foot input { accent-color: var(--green); }

/* Sections */
.section { padding: 80px 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

/* Problem tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tabs button { font: 500 .95rem var(--sans); color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; max-width: 860px; }
.panel p { margin: 0; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.steps__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font: 600 .9rem var(--mono); margin-bottom: 12px; }
.steps p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* Compare table */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { color: var(--ink); }
.compare td:nth-child(3)::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* Checks */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 12px 16px; color: var(--ink-2); }
.checks b { color: var(--ink); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 16px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.plan--main { border: 2px solid var(--ink); }
.price { font-family: var(--serif); margin: 0; color: var(--ink-2); }
.price span { font-size: 2.6rem; font-weight: 600; color: var(--ink); }
.founder { font: 500 .85rem var(--mono); color: var(--green); }
.plan ul { padding-left: 18px; margin: 12px 0 0; color: var(--ink-2); }

/* Form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input[type=email], .form input[type=text], .form input[type=url], .form select { font: 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; accent-color: var(--green); }
.form .hp { position: absolute; left: -9999px; }
.form__msg { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form__msg.ok { color: var(--green); }
.form__msg.err { color: var(--red); }
.form [hidden] { display: none; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font: 600 1.15rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--red); font-family: var(--mono); }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Final + footer */
.final { padding: 80px 0; background: var(--ink); color: var(--paper); }
.final h2 { max-width: 760px; margin: 0 auto 24px; }
.final .btn { background: var(--paper); color: var(--ink); }
.final .btn:hover { background: var(--red); color: #fff; }
.foot { padding: 28px 0; font-size: .9rem; color: var(--muted); }
.foot__in { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Narrow screens */
@media (max-width: 960px) {
  .hero__grid, .two { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero { padding: 40px 0 56px; }
  .section, .final { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .link { margin-left: 0; }
}
