:root {
  --bg: #f7f8f7;
  --card: #ffffff;
  --ink: #17211f;
  --muted: #5c6b68;
  --line: #dde4e2;
  --accent: #0e6e64;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ee;
  --warn-soft: #f7eedc;
  --mono: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171b; --card: #162025; --ink: #dee6e4; --muted: #8fa09d;
    --line: #263238; --accent: #4fbfb0; --accent-ink: #08211d;
    --accent-soft: #143530; --warn-soft: #382a10;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); margin: 0 0 0.5em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.6em; font-weight: 750; }
h3 { font-size: 1.05rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; }

/* header */
header.site {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.logo > svg { width: 26px; height: 26px; flex: none; }
.logo .okl-word { position: relative; display: inline-block; }
.logo .okl-sig {
  position: absolute; right: -0.24em; top: -0.62em;
  width: 2.66em; height: 0.98em; overflow: visible; pointer-events: none;
  color: var(--accent);
}
header.site nav { margin-left: auto; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
header.site nav a:hover { color: var(--accent); }

/* buttons */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-weight: 650; text-decoration: none; border: 1.5px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); font-weight: 650;
}
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; }
.hero .fine { font-size: 0.85rem; color: var(--muted); }

/* sections */
section { padding: 48px 0; }
section.alt { border-top: 1px solid var(--line); }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.tile p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* compare table */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
td.c, th.c { text-align: center; }
.yes { color: var(--accent); font-weight: 700; }
.no { color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 8px; }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; }
.plan.hot { border-color: var(--accent); position: relative; }
.plan.hot .tag {
  position: absolute; top: -11px; right: 18px; background: var(--accent); color: var(--accent-ink);
  font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.price { font-size: 2.3rem; font-weight: 800; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding: 0 0 0 2px; margin: 14px 0 22px; list-style: none; flex: 1; }
.plan li { padding: 4px 0 4px 26px; position: relative; font-size: 0.94rem; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.plan li.dim { color: var(--muted); }
.plan li.dim::before { content: "—"; color: var(--muted); }

/* faq */
details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
details p { color: var(--muted); font-size: 0.95rem; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 30px 0 44px; margin-top: 40px; font-size: 0.88rem; color: var(--muted); }
footer.site .cols { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--accent); }

/* legal pages */
main.legal { padding: 48px 0 20px; }
main.legal h2 { margin-top: 2em; font-size: 1.25rem; }
main.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- billing toggle + tier cards ---------- */
.billing-toggle {
  display: inline-flex; gap: 4px; margin: 4px 0 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px;
}
.bt-opt {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 650; font-size: 0.92rem; padding: 8px 18px; border-radius: 7px;
}
.bt-opt.active { background: var(--accent); color: var(--accent-ink); }
.bt-opt .save { font-size: 0.72rem; font-weight: 700; opacity: 0.9; margin-left: 4px; }
.plan .sites { font-size: 0.95rem; color: var(--muted); margin: 0 0 4px; }
.plan .sites strong { color: var(--ink); }
.plan .price .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
