/*
 * Ahaarly product site. Light and dark follow the OS setting (no switch); colours, type
 * and shapes follow DESIGN.md: one green accent, DM Sans, 8px radius, borders over shadows.
 * Plain CSS, no build step.
 */

:root {
  color-scheme: light;
  --green: #0e7a43;
  --green-hover: #0b6537;
  --green-fill: #0e7a43;
  --green-fill-hover: #0b6537;
  --green-soft: rgba(14, 122, 67, 0.1);
  --green-softer: rgba(14, 122, 67, 0.05);
  --tint: #eef7f1;
  --ink: #0f1a14;
  --text: #253029;
  --muted: #6f7c74;
  --border: #dde5e0;
  --border-strong: #c5d0c9;
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-2: #fafbfa;
  --surface-3: #f3f6f4;
  --code-bg: #f6f8f7;
  --header-bg: rgba(252, 252, 252, 0.86);
  --warning: #b26a00;
  --warning-soft: rgba(178, 106, 0, 0.1);
  --danger: #ba0724;
  --glow: rgba(14, 122, 67, 0.07);
  --frame: #e4ebe7;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --green: #3cc27a;
    --green-hover: #6fd39b;
    --green-fill: #15904f;
    --green-fill-hover: #1a9a57;
    --green-soft: rgba(46, 184, 110, 0.14);
    --green-softer: rgba(46, 184, 110, 0.07);
    --tint: #1b2a21;
    --ink: #f2f3f2;
    --text: #d7d9d8;
    --muted: #8e9290;
    --border: #303131;
    --border-strong: #424443;
    --bg: #141414;
    --surface: #1e1e1e;
    --surface-2: #232323;
    --surface-3: #262727;
    --code-bg: #181818;
    --header-bg: rgba(20, 20, 20, 0.86);
    --warning: #e3a443;
    --warning-soft: rgba(227, 164, 67, 0.14);
    --danger: #de4058;
    --glow: rgba(46, 184, 110, 0.06);
    --frame: #2a2b2b;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
code, pre { font-family: var(--mono); font-variant-ligatures: none; }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-hover);
  word-break: break-word;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }

.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--green-fill); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }
.hidden, [hidden] { display: none !important; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); background: var(--green-softer); }
.nav .nav-gh { margin-left: 8px; border: 1px solid var(--border); background: var(--surface); }
.nav .nav-gh:hover { border-color: var(--border-strong); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.topbar.open .nav-toggle .i-menu { display: none; }
.topbar.open .nav-toggle .i-close { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-fill); color: #fff; }
.btn-primary:hover { background: var(--green-fill-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--ink); background: var(--surface-2); }
.btn .ic { width: 18px; height: 18px; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.btn-label small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.btn-label small:empty { display: none; }

/* Type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500;
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 12px; }

.section { padding: clamp(64px, 9vw, 112px) 0; scroll-margin-top: 40px; }
.section + .section { border-top: 1px solid var(--border); }
.section.tint { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 50% at 80% 20%, var(--glow), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 5.8vw, 64px); line-height: 1.03; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .ic { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }

/* Phone mock (HTML/CSS drawing, invented food) */
.phone {
  position: relative; justify-self: center;
  width: 100%; max-width: 380px;
  padding: 10px; border-radius: 34px;
  background: var(--frame); border: 1px solid var(--border-strong);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; z-index: 4;
  width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ink); opacity: 0.85;
}
.screen {
  position: relative; overflow: hidden;
  border-radius: 25px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 13px; line-height: 1.45;
  display: flex; flex-direction: column;
  min-height: 600px;
}
.status-bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 4px 22px 0; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.status-bar .sys { display: inline-flex; gap: 5px; align-items: center; }
.status-bar .sys i { display: block; width: 14px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.status-bar .sys b { display: block; width: 11px; height: 9px; background: currentColor; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.app-bar {
  display: grid; grid-template-columns: 32px 1fr 32px 32px; align-items: center;
  padding: 4px 8px 8px; border-bottom: 1px solid var(--border);
}
.app-bar .ic { width: 18px; height: 18px; color: var(--muted); justify-self: center; }
.app-bar .back { transform: scaleX(-1); }
.app-date { text-align: center; }
.app-date b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.app-date span { display: block; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.thread { flex: 1; min-height: 0; overflow: hidden; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.logged-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 12px; color: var(--text);
}
.logged-row .ic { width: 15px; height: 15px; color: var(--green); stroke-width: 2.2; }
.logged-row .sync { margin-left: auto; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.logged-row .sync .ic { width: 12px; height: 12px; color: var(--muted); }
.msg-user {
  align-self: flex-end; max-width: 85%;
  padding: 8px 11px; border-radius: var(--radius);
  background: var(--tint); color: var(--ink); font-size: 13px;
}
.msg-user .thumbs { display: flex; gap: 6px; margin-bottom: 6px; justify-content: flex-end; }
.plate {
  position: relative; width: 58px; height: 58px; border-radius: var(--radius-sm);
  background: #b98a5a; overflow: hidden;
}
.plate::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 38%, #e0a43c 0 9px, transparent 9.5px),
    radial-gradient(circle at 68% 64%, #f6f2e8 0 8px, transparent 8.5px),
    radial-gradient(circle at 66% 30%, #d9b679 0 10px, transparent 10.5px),
    #fbfbf8;
}
.msg-ai { color: var(--text); font-size: 13px; padding-right: 8px; }
.proposal { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.proposal-head { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.p-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.p-row b { color: var(--ink); font-weight: 600; font-size: 13px; }
.p-row .qty { color: var(--muted); font-weight: 400; }
.p-row .kcal { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.p-row .macros { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.check-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-sm); color: var(--warning); font-size: 10.5px; font-weight: 600; }
.more { color: var(--green); font-weight: 600; }
.p-total { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-actions { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; }
.mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid transparent; font: 600 12px var(--font); cursor: pointer;
}
.mini-btn.primary { background: var(--green-fill); color: #fff; }
.mini-btn.primary:hover { background: var(--green-fill-hover); }
.mini-btn.text { background: none; color: var(--green); }
.mini-btn.outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
.proposal.done .p-rows, .proposal.done .p-total, .proposal.done .p-actions, .proposal.done .proposal-head { display: none; }
.proposal .p-done { display: none; }
.proposal.done { border: 0; background: none; }
.proposal.done .p-done { display: flex; }

.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; border-top: 1px solid var(--border); background: var(--bg); }
.composer .field { flex: 1; height: 38px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 13px; }
.composer .round { width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.composer .round.send { background: var(--green-fill); border-color: var(--green-fill); color: #fff; }
.composer .ic { width: 17px; height: 17px; }

/* Review sheet inside the phone */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 86%; display: flex; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--border-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: translateY(102%); transition: transform 0.22s ease;
}
.scrim { position: absolute; inset: 0; z-index: 2; background: rgba(15, 26, 20, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.screen.reviewing .sheet { transform: none; }
.screen.reviewing .scrim { opacity: 1; }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 4px; }
.sheet h4 { padding: 4px 14px 2px; font-size: 15px; }
.sheet .sub { padding: 0 14px 10px; color: var(--muted); font-size: 11.5px; border-bottom: 1px solid var(--border); }
.sheet-body { flex: 1; overflow: hidden; padding: 6px 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; font-variant-numeric: tabular-nums; }
.kv b { color: var(--ink); font-weight: 600; }
.kv span { color: var(--muted); }
.kv .vals { grid-column: 1 / -1; color: var(--text); }
.sheet .p-actions { border-top: 1px solid var(--border); justify-content: flex-end; padding: 10px 14px 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-weight: 700;
}
.step h3 { margin-top: 16px; font-size: 18px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.step .example { margin-top: 14px; padding: 9px 12px; border-radius: var(--radius); background: var(--tint); color: var(--ink); font-size: 14px; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.bullets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets .ic { margin-top: 4px; color: var(--green); stroke-width: 2.4; width: 16px; height: 16px; }

/* Review table mock */
.review { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; min-width: 0; }
.review-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.review-head .ic { color: var(--green); }
.review-head b { color: var(--ink); font-size: 16px; font-weight: 600; }
.review-head span { margin-left: auto; color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; }
.rt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt th, .rt td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; }
.rt th { color: var(--muted); font-size: 11.5px; font-weight: 600; background: var(--surface-2); }
.rt th small { display: block; font-weight: 500; opacity: 0.8; }
.rt th:first-child, .rt td:first-child { text-align: left; position: sticky; left: 0; background: inherit; }
.rt th:first-child { background: var(--surface-2); }
.rt td:first-child { background: var(--surface); }
.rt td:first-child b { display: block; color: var(--ink); font-weight: 600; }
.rt td:first-child span { color: var(--muted); font-size: 12px; }
.rt tfoot td { font-weight: 700; color: var(--ink); background: var(--surface-2); border-bottom: 0; }
.rt tfoot td:first-child { background: var(--surface-2); }
.review-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.review-foot p { margin-right: auto; color: var(--muted); font-size: 13px; }
.review-foot .mini-btn { height: 36px; padding: 0 16px; font-size: 13px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; transition: border-color 0.2s ease; }
.card:hover { border-color: var(--border-strong); }
.card .icon { width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.card .icon .ic { width: 20px; height: 20px; }
.card h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Data flow (privacy) */
.flow { display: grid; gap: 12px; }
.flow-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.flow-item .icon { grid-row: span 2; width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.flow-item .icon .ic { width: 22px; height: 22px; }
.flow-item h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.flow-item h3 small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.flow-item p { color: var(--muted); font-size: 14.5px; }
.flow-item.home { border-color: rgba(14, 122, 67, 0.35); background: linear-gradient(var(--green-softer), var(--green-softer)), var(--surface); }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.install-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: inst; }
.install-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: inst; }
.install-steps li::before { content: counter(inst); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; }
.install-steps h3 { font-size: 16px; }
.install-steps p { color: var(--muted); font-size: 15px; }
.panel { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.panel + .panel { margin-top: 12px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.panel h3 .ic { color: var(--green); }
.panel p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.panel .btn { margin-top: 16px; width: 100%; }
.reqs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; }
.reqs .ic { margin-top: 3px; width: 16px; height: 16px; color: var(--green); stroke-width: 2.2; }
.hash { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); font: 12px/1.5 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.hash code { padding: 0; background: none; color: var(--ink); font-size: inherit; }
.hash span { display: block; color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; margin-bottom: 2px; }

/* CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(14, 122, 67, 0.25); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 122, 67, 0.08), rgba(14, 122, 67, 0.02)), var(--surface);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { margin-top: 8px; color: var(--muted); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 26px; height: 26px; }
.footer p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 380px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); min-height: 32px; }
.footer-links a:hover { color: var(--green); }
.footer-links .ic { width: 15px; height: 15px; color: var(--muted); }

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--surface); }
.page-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 660px; }
.page-hero .updated { font-size: 14px; }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.narrow { max-width: 820px; }

.prose-card { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.prose-card h2 .ic { color: var(--green); width: 20px; height: 20px; }
.prose-card p { margin-top: 10px; }
.prose-card ul { margin: 10px 0 0; padding-left: 20px; }
.prose-card li + li { margin-top: 6px; }
.prose-card.callout { border-color: rgba(14, 122, 67, 0.3); background: linear-gradient(var(--green-softer), var(--green-softer)), var(--surface); }

/* Releases */
.rel-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.rel-top .panel + .panel { margin-top: 0; }
.rel-top .panel .btn { width: auto; }
.rel-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.rel-toolbar h2 { font-size: 22px; }
.rel-toolbar a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rel-toolbar .ic { width: 15px; height: 15px; }
.rel-list { display: grid; gap: 14px; }
.release { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.release.latest { border-color: rgba(14, 122, 67, 0.4); box-shadow: 0 0 0 3px var(--green-softer); }
.release-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.release-head h3 { font-size: 20px; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-latest { background: var(--green-fill); color: #fff; }
.badge-pre { background: var(--warning-soft); color: var(--warning); }
.release-date { margin-left: auto; color: var(--muted); font-size: 14px; }
.changelog { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.changelog summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary .ic { width: 14px; height: 14px; transition: transform 0.15s ease; }
.changelog[open] summary .ic { transform: rotate(90deg); }
.md { margin-top: 10px; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.md h4 { margin: 14px 0 6px; font-size: 15px; }
.md h4:first-child { margin-top: 0; }
.md ul { margin: 6px 0; padding-left: 20px; }
.md li + li { margin-top: 3px; }
.md p + p { margin-top: 8px; }
.release-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.release-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 32px; }
.release-links .ic { width: 15px; height: 15px; }
.state { padding: 40px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); text-align: center; color: var(--muted); }
.state h3 { color: var(--ink); font-size: 17px; }
.state p { margin-top: 6px; }
.state .btn { margin-top: 16px; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .split, .install { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .topbar.open .nav { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-gh { margin: 6px 0 0; justify-content: center; }
  .rel-top { grid-template-columns: minmax(0, 1fr); }
  .release-date { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 auto; }
  .prose-card, .release, .step, .card { padding: 20px 18px; }
  .review-foot { flex-wrap: wrap; }
  .review-foot p { width: 100%; }
  .review-foot .mini-btn:first-of-type { margin-left: auto; }
}
