/* RowGuard site — zero dependencies, system fonts, light + dark. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --text: #16201d;
  --muted: #5b6763;
  --line: #dde5e2;
  --brand: #0f6e5c;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ed;
  --flag-high: #f8d7da;
  --flag-med: #fff3cd;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1513;
    --bg-soft: #161e1b;
    --text: #e8efec;
    --muted: #9db0a9;
    --line: #26332e;
    --brand: #2fa889;
    --brand-ink: #06120f;
    --brand-soft: #173029;
    --flag-high: #5a2a2f;
    --flag-med: #574a1f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--brand); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .wrap > *, .split > *, .grid3 > *, .plans > * { min-width: 0; }
.mock-scroll { overflow-x: auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta .note { font-size: 14px; color: var(--muted); }

/* sheet mock */
.mock { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 40, 32, .10); font-size: 13px; position: relative; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mock th, .mock td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 7px 10px; text-align: left; white-space: nowrap; }
.mock th { background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.mock td.num { text-align: right; }
.mock td.high { background: var(--flag-high); }
.mock td.med { background: var(--flag-med); }
.mock .callout { margin: 12px; background: var(--bg); border: 1px solid var(--line);
  border-left: 4px solid #d1242f; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.mock .callout b { display: block; margin-bottom: 2px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-lede { color: var(--muted); margin: 0 0 36px; max-width: 42em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.step { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 9px; border: solid var(--brand-ink);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .tag { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; align-self: flex-start; margin-top: 8px; }
.price { font-size: 40px; font-weight: 700; margin: 16px 0 4px; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; color: var(--muted); }
.plan ul b { color: var(--text); }
.plan .btn { margin-top: auto; text-align: center; }
.fineprint { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* install */
.install { text-align: center; }
.install .card { max-width: 640px; margin: 0 auto; }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: var(--text); }
.legal .meta { color: var(--muted); margin-top: -8px; }
.legal .callout-box { background: var(--brand-soft); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }
.legal code { font-size: 13.5px; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .nav { display: none; }
}
