:root {
  --bg: #f5f9f8; --text: #13201e; --muted: #5a6966;
  --accent: #0f7a6c; --accent-strong: #0b6155; --accent-soft: #e1f3ef; --on-accent: #ffffff;
  --card-bg: #ffffff; --border: #dce7e4;
  --green: #2f7d5b; --green-bg: #eaf5ef; --amber: #a86b00; --amber-bg: #fff4dc; --red: #b4362c; --red-bg: #fdecea;
  --hero-1: #d9f0ea; --hero-2: #edf7f4; --hero-glow: rgba(15, 122, 108, 0.18);
  --shadow: 0 1px 2px rgba(19, 32, 30, 0.06), 0 8px 24px rgba(19, 32, 30, 0.08);
  --shadow-lg: 0 2px 4px rgba(19, 32, 30, 0.06), 0 18px 48px rgba(19, 32, 30, 0.14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1312; --text: #e3ebe9; --muted: #97a6a2;
    --accent: #5cc8b6; --accent-strong: #86dacb; --accent-soft: #12302a; --on-accent: #06201b;
    --card-bg: #141d1b; --border: #26332f;
    --green: #5cc492; --green-bg: #15251d; --amber: #f0c060; --amber-bg: #2d2412; --red: #f08a80; --red-bg: #321816;
    --hero-1: #10282a; --hero-2: #0f1b1a; --hero-glow: rgba(92, 200, 182, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.5);
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
main { max-width: 680px; margin: 0 auto; padding: 56px 24px 40px; }
a { color: var(--accent); }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
h2 { font-size: 1.2rem; font-weight: 600; margin: 48px 0 16px; }
h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
p, li { font-size: 0.95rem; margin-bottom: 12px; }
ul, ol { padding-left: 20px; margin-bottom: 12px; }
code { font-family: var(--mono); font-size: 0.85em; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
[hidden] { display: none !important; }

/* Navigation */
.nav { max-width: 860px; margin: 0 auto; padding: 16px 24px 0; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; font-size: 0.85rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .brand { color: var(--text); font-weight: 650; margin-right: auto; display: inline-flex; align-items: center; gap: 8px; }

/* Forms */
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 12px; }
label .hint { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font-size: 0.95rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
textarea { font-family: var(--mono); font-size: 0.78rem; line-height: 1.5; resize: vertical; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button { cursor: pointer; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); font-size: 0.9rem; }
button.link { border: none; background: none; padding: 0; color: var(--muted); font-size: 0.8rem; text-decoration: underline; }

/* ── Home page ─────────────────────────────────────────── */
body.home .nav { max-width: 1080px; }
body.home { background: linear-gradient(180deg, var(--hero-1) 0, var(--hero-2) 520px, var(--bg) 1000px) no-repeat, var(--bg); }
.hero-band {
  background:
    radial-gradient(700px 360px at 85% 0%, var(--hero-glow), transparent 70%),
    radial-gradient(600px 300px at 5% 30%, var(--hero-glow), transparent 70%);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 48px 24px 40px; text-align: center; }
.eyebrow { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.01em; }
.pill { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 10px; margin-right: 6px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-inner h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 760px; margin: 0 auto 14px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.tools { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; text-align: left; align-items: start; }
.tools > * { min-width: 0; }
.tool-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.tool-head { display: flex; align-items: center; gap: 12px; }
.tool-head h2 { margin: 0; font-size: 1.15rem; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tool-sub { color: var(--muted); font-size: 0.92rem; margin: 0; }
.check-form label:last-of-type { margin-bottom: 8px; }
.check-result { background: linear-gradient(150deg, var(--accent-soft), transparent); border-radius: 14px; padding: 14px 18px; }
.check-result .label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }
.check-result .figure, .verdict { margin: 2px 0 4px; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); }
.figure.bad, .verdict.bad { color: var(--red); }
.figure.good, .verdict.good { color: var(--green); }
.check-result .note { font-size: 0.85rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.alarm { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 0.85rem; font-weight: 600; }
.findings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.finding { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); }
.finding strong { display: block; font-size: 0.9rem; line-height: 1.35; }
.finding p { font-size: 0.8rem; color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }
.finding > div { min-width: 0; }
.badge { flex: none; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-top: 1px; }
.finding.blocker { border-color: var(--red); background: var(--red-bg); }
.finding.blocker .badge { background: var(--red); color: var(--card-bg); }
.finding.warning .badge { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.finding.pass .badge { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.fine { font-size: 0.75rem; color: var(--muted); margin: 0; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; margin: 0; }
.trust svg { color: var(--green); flex: none; }

.home-main { max-width: 1080px; padding-top: 24px; }
.home-main > section { margin-top: 72px; }
.home-main > section:first-child { margin-top: 24px; }
.home-main h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; }
.home-main .card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.app-section { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.app-section > * { min-width: 0; }
.app-copy .lede { text-align: left; margin: 0 0 20px; font-size: 1.02rem; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); border: 1px solid var(--green); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Illustrated Mac window (not a screenshot) */
.mac { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.8rem; transform: rotate(0.8deg); }
.mac-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mac-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mac-bar span:nth-child(2) { background: #febc2e; }
.mac-bar span:nth-child(3) { background: #28c840; }
.mac-bar em { font-style: normal; color: var(--muted); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-body { display: grid; grid-template-columns: 150px 1fr; min-height: 250px; }
.mac-side { background: var(--bg); border-right: 1px solid var(--border); padding: 10px 8px; }
.mac-side p { font-size: 0.78rem; margin: 0 0 2px; padding: 5px 8px; border-radius: 6px; color: var(--muted); display: flex; justify-content: space-between; }
.mac-side p.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.mac-side b { color: var(--red); }
.mac-main { padding: 6px 14px; min-width: 0; }
.mac-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.mac-row span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mac-row.head { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sev { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sev.bad { background: var(--red); } .sev.warn { background: var(--amber); } .sev.ok { background: var(--green); }
.mac-caption { font-size: 0.72rem; color: var(--muted); text-align: center; margin: 0; padding: 6px; border-top: 1px solid var(--border); }

.step-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-grid li { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 56px 18px 18px; box-shadow: var(--shadow); margin: 0; }
.step-grid .num { top: 16px; left: 18px; }
.step-grid p { color: var(--muted); font-size: 0.88rem; margin: 0; }

.deal { background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.deal-item { position: relative; padding-left: 48px; }
.deal-item.wide { grid-column: 1 / -1; }
.deal-item h3 { font-size: 1rem; margin-bottom: 2px; }
.deal-item p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.num { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-bottom: 12px; }
.tier { background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.tier h3 { font-size: 1rem; }
.tier .price { font-size: 1.8rem; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0 0; }
.tier .price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier .alt { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.tier p:last-child { font-size: 0.9rem; color: var(--muted); margin: 12px 0 0; }
.tier .alt + p { margin-top: 0; }
.tier.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.tier .tag { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--on-accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.plain-list { list-style: none; padding-left: 0; margin: 12px 0 0; }
.plain-list li { font-size: 0.9rem; color: var(--muted); padding-left: 20px; text-indent: -20px; margin-bottom: 8px; }
.plain-list li::before { content: "\2014\00a0\00a0"; }

footer { max-width: 680px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted); }
footer p { font-size: 0.75rem; margin-bottom: 4px; }
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
body.home footer { max-width: 1080px; }
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 900px) {
  .tools, .app-section, .two-col, .tiers, .deal-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .deal { padding: 24px 20px; }
  .mac { transform: none; }
}
@media (max-width: 560px) {
  .nav .brand { flex-basis: 100%; margin-bottom: 2px; }
  .step-grid, .row2 { grid-template-columns: 1fr; }
  .mac-body { grid-template-columns: 1fr; }
  .mac-side { display: none; }
  main { padding: 40px 16px 32px; }
}
@media (max-width: 420px) {
  .hero-inner { padding: 32px 16px 28px; }
  .tool-card { padding: 18px; }
}
