/* Oakleaf PDF website. Colours from docs/brand/README.md. System fonts only. */
:root {
  --green: #2f7d4a;
  --green-dark: #1c5532;
  --green-tint: #eaf4ee;
  --text: #1d1f24;
  --muted: #5b6270;
  --line: #dfe3e8;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #5cb87a;
    --green-dark: #8fd3a6;
    --green-tint: #17291e;
    --text: #e8eaed;
    --muted: #a3aab5;
    --line: #2c3138;
    --bg: #121417;
    --bg-soft: #181b1f;
    --card: #1c2025;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 1.2rem; font-weight: 600; }
.brand b { color: var(--green); font-weight: 600; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
  background: var(--green); color: #fff; text-decoration: none; border: 2px solid var(--green);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0d1a12; } }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green); border-color: var(--green); }
.btn-small { padding: 7px 14px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0.5em; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 0.6em; }
.centre { text-align: center; }
.centre .lead { margin-left: auto; margin-right: auto; }

.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.small-print { font-size: 0.9rem; color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 0.45em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Features page */
.feature-group { padding: 48px 0; border-bottom: 1px solid var(--line); }
.feature-group:last-of-type { border-bottom: 0; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--green-tint); color: var(--green); vertical-align: middle; margin-left: 6px; }
.tag.paid { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 1.5em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.4rem; font-weight: 700; line-height: 1; margin: 0.4em 0 0.2em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .btn { margin-top: auto; text-align: center; }
.plan.best { border: 2px solid var(--green); position: relative; }
.plan.best::before { content: "Most popular"; position: absolute; top: -13px; left: 24px; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.notice { background: var(--green-tint); border-radius: 10px; padding: 12px 16px; margin: 24px 0; }

table.compare { width: 100%; border-collapse: collapse; margin-top: 12px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.compare .yes { color: var(--green); font-weight: 700; }
.table-scroll { overflow-x: auto; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6em 0 0; }

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal li { margin-bottom: 0.4em; }
.draft { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.3em 0 0.8em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer li a { color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--green); }
.legal-line { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split, .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px 16px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .header-row .btn-small { margin-left: auto; }
  .wrap { padding: 0 16px; }
}
