/* ============================================================
   site.css — the PUBLIC pages (landing at /, the guide and comparison
   pages). Deliberately separate from styles.css (the dashboard's 7,000+
   lines): these pages load this one small file, system fonts and no
   JavaScript, so they render instantly and read the same to a crawler as
   to a person. Tokens are the dashboard's (styles.css :root) — keep them
   in step.
   ============================================================ */
:root {
  --bg: #F5EDE0;
  --surface: #FFFDF8;
  --green: #4A7C6B;
  --green-dk: #365A4D;
  --green-lt: #E6F0EC;
  --text: #1C2220;
  --muted: #8A7C66;
  --border: #ECE2D1;
  --peach: #FBEADB;
  --radius-card: 22px;
  --radius: 18px;
  --radius-sm: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
}
a { color: var(--green-dk); }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── Header / footer ─────────────────────────────────────── */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font: 700 20px var(--font-display); }
.brand img { width: 34px; height: 34px; }
.head-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.head-links a { text-decoration: none; color: var(--text); }
.head-links a.btn, .head-links a.btn:hover { color: #fff; }
.head-links .hide-sm { display: inline; }
.site-foot { border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none; font: 700 16px var(--font-body);
  padding: 13px 22px; border-radius: var(--radius-sm); background: var(--green); color: #fff;
  min-height: 48px;
}
.btn:hover { background: var(--green-dk); color: #fff; }
.btn-quiet { background: transparent; color: var(--green-dk); border: 1px solid var(--border); }
.btn-quiet:hover { background: var(--surface); color: var(--green-dk); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: 15px; }

/* ── Type ────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(25px, 3.4vw, 32px); font-weight: 800; margin-top: 8px; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); }

/* ── Sections / cards ────────────────────────────────────── */
.hero { padding: 40px 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
section { padding: 30px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.tint { background: var(--green-lt); border-color: transparent; }
.peach { background: var(--peach); border-color: transparent; }

ul.checks { list-style: none; padding: 0; margin: 0 0 14px; }
ul.checks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.checks li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--green); font-weight: 800; }
ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 6px; }

/* ── Device table / comparison tables ────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 700; background: #FBF6EE; }
tr:last-child td { border-bottom: 0; }

/* ── Plans ───────────────────────────────────────────────── */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 800 34px/1.1 var(--font-display); letter-spacing: -0.015em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.plan .price small { font: 500 14px var(--font-body); color: var(--muted); }
.plan .per { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.plan.featured { background: var(--green); color: #FBF3E4; border-color: transparent; }
.plan.featured .per, .plan.featured .price small { color: rgba(251, 243, 228, 0.85); }
.plan.featured ul.checks li::before { color: #FDE8D5; }
.pill { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: #FBF3E4; color: var(--green-dk); margin-bottom: 8px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* ── Article pages ───────────────────────────────────────── */
.article h2 { margin-top: 34px; }
.article .card { margin: 18px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.updated { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

@media (max-width: 560px) {
  .head-links .hide-sm { display: none; }
  .hero { padding-top: 22px; }
  th, td { padding: 10px; }
}
