/* Shared styles for the Rowpine site pages (home, pricing, license, thanks, privacy). */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f5;
  --surface: #ffffff;
  --fg: #0e1611;
  --muted: #56615a;
  --line: #e3e8e4;
  --line-strong: #cdd5cf;
  --brand: #1f5b40;
  --brand-strong: #163f2c;
  --accent: #23804f;
  --accent-soft: #e7f2eb;
  --on-brand: #ffffff;
  --shadow-sm: 0 1px 2px rgba(14, 22, 17, .06);
  --shadow: 0 1px 2px rgba(14, 22, 17, .05), 0 12px 32px -12px rgba(14, 22, 17, .18);
  /* The hero, the band and the CTA stay dark in both themes. */
  --night: #0a1510;
  --night-2: #10211a;
  --night-line: rgba(255, 255, 255, .10);
  --night-fg: #eef5f0;
  --night-muted: #a3b8aa;
  --glow: #46c486;
  --radius: 10px;
}
:root[data-theme="dark"] {
  --bg: #0b100d; --bg-soft: #0f1612; --surface: #121a15; --fg: #e8eee9; --muted: #98a79d;
  --line: #1f2b24; --line-strong: #2c3b32; --brand: #7fd0a1; --brand-strong: #a8e3c1; --accent: #63c48f;
  --accent-soft: #15261c; --on-brand: #06140c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
  --night: #070e0a; --night-2: #0d1a13;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
code, pre, kbd { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace; }
code { font-size: .88em; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Announcement bar */
.announce { background: var(--night); color: var(--night-muted); font-size: 13.5px; border-bottom: 1px solid var(--night-line); }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.announce b { color: var(--night-fg); font-weight: 600; }
.announce a { color: var(--glow); font-weight: 500; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; background: rgba(70, 196, 134, .16); color: var(--glow); border: 1px solid rgba(70, 196, 134, .35); }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand .for { font-weight: 500; color: var(--muted); }
/* The logo tile keeps its own green in both themes so the white tree always reads. */
.mark { width: 30px; height: 30px; border-radius: 8px; background: #1f5b40; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mark svg { width: 19px; height: 19px; color: #fff; }
nav.main { display: flex; align-items: center; gap: 2px; flex: 1; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 7px 12px; border-radius: 7px; font-size: 14.5px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--fg); background: var(--bg-soft); }
.actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { background: var(--bg-soft); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 15px; line-height: 1.3; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--brand-strong); }
.btn.secondary, .btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn.secondary:hover, .btn.ghost:hover { border-color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .buttons, .buttons.center { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Dark surfaces: hero, band, CTA */
.night { background: var(--night); color: var(--night-fg); }
.night .btn.primary { background: var(--glow); color: #04130a; box-shadow: 0 0 0 1px rgba(70, 196, 134, .4), 0 8px 24px -8px rgba(70, 196, 134, .55); }
.night .btn.primary:hover { background: #63d39b; }
.night .btn.secondary, .night .btn.ghost { background: rgba(255, 255, 255, .04); color: var(--night-fg); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.night .btn.secondary:hover, .night .btn.ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .4); }
.night a:not(.btn) { color: var(--glow); }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 76px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 520px; left: 50%; top: 220px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(70, 196, 134, .22), transparent); filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--night-muted); padding: 5px 12px 5px 6px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255, 255, 255, .03); margin-bottom: 22px; }
.hero h1 { font-size: 58px; line-height: 1.04; font-weight: 650; letter-spacing: -0.035em; margin: 0 0 20px; max-width: 700px; }
.hero h1 .hl { background: linear-gradient(90deg, #7fe0aa, #46c486); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; line-height: 1.6; color: var(--night-muted); max-width: 600px; margin: 0; }
.hero .lead b { color: var(--night-fg); font-weight: 600; }
.install { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 4px 4px 4px 14px; border: 1px solid var(--night-line); border-radius: 8px; background: rgba(0, 0, 0, .25); font: 14px/1 "Geist Mono", ui-monospace, monospace; color: var(--night-fg); }
.install .prompt { color: var(--glow); margin-right: 6px; }
.install button { border: 0; background: transparent; color: var(--night-muted); width: 32px; height: 30px; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.install button:hover { background: rgba(255, 255, 255, .08); color: var(--night-fg); }
.install button svg { width: 15px; height: 15px; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.specs li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--night-line); font-size: 14.5px; color: var(--night-muted); }
.specs li b { color: var(--night-fg); font-weight: 600; }
.window { margin: 56px auto 0; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; background: #fff; box-shadow: 0 -2px 0 rgba(255, 255, 255, .03), 0 40px 120px -20px rgba(70, 196, 134, .28), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.window-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #f3f5f4; border-bottom: 1px solid #e1e6e3; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d7ddd9; }
.url { flex: 1; max-width: 420px; margin: 0 auto; height: 26px; border-radius: 6px; background: #fff; border: 1px solid #e1e6e3; color: #6b766f; font: 12.5px/24px "Geist Mono", ui-monospace, monospace; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 10px; }
.window-bar .live { font-size: 12px; font-weight: 600; color: #1f7a4b; display: inline-flex; align-items: center; gap: 6px; }
.window-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, .2); }
.window iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.hero-note { text-align: center; color: var(--night-muted); font-size: 13.5px; margin: 14px 0 0; }

/* Proof strip under the hero */
.proof { border-bottom: 1px solid var(--line); padding: 30px 0; }
.proof .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.proof p { margin: 0; color: var(--muted); font-size: 14px; max-width: 360px; }
.proof p b { color: var(--fg); font-weight: 600; }
.names { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; color: var(--muted); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; opacity: .8; }

/* Sections */
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.label { display: block; font: 600 12.5px/1 "Geist Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
.eyebrow { display: inline-block; font: 600 12.5px/1 "Geist Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 650; }
.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 44px; }
.center .sub { margin-left: auto; margin-right: auto; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.head-row .sub { margin-bottom: 0; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat { padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 38px; line-height: 1; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Product tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: 600 14.5px/1 inherit; font-family: inherit; color: var(--muted); padding: 10px 16px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button svg { width: 16px; height: 16px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; font-weight: 650; }
.panel p { color: var(--muted); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323804f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; height: auto; }

/* Demo cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag { font: 600 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 16.5px; margin: 0; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Code */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip .text { order: 2; }
.split .text h2 { font-size: 34px; }
.split .text > p { color: var(--muted); }
.editor { border-radius: var(--radius); overflow: hidden; background: #0c1611; border: 1px solid #1d2e25; box-shadow: var(--shadow); }
.editor-bar { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 8px; background: #101d16; border-bottom: 1px solid #1d2e25; }
.editor-bar span { font: 12.5px/1 "Geist Mono", ui-monospace, monospace; color: #8aa596; padding: 8px 12px; border-radius: 6px; }
.editor-bar span.on { color: #e3efe7; background: #18291f; }
pre.code { background: #0c1611; color: #d4e6da; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 0; }
.editor pre.code { border-radius: 0; padding: 20px 22px; }
pre.code .c { color: #6f8b7b; }
pre.code .s { color: #9fe0b7; }
pre.code .k { color: #f0b37e; }
pre.code .t { color: #8fc7ff; }

/* Production band */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.trust > div { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--night-line); }
.trust > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--night-line); }
.trust h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--night-fg); }
.trust h3 svg { width: 20px; height: 20px; flex: none; color: var(--glow); }
.trust p { margin: 0; color: var(--night-muted); font-size: 14.5px; }
.night h2 { color: var(--night-fg); }
.night .sub { color: var(--night-muted); }
.night .label { color: var(--glow); }

/* Compatibility table */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); font-size: 14.5px; }
.matrix th, .matrix td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix thead th { background: var(--bg-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.matrix td:first-child { font-weight: 600; white-space: nowrap; }
.matrix td { color: var(--muted); }
.matrix .yes { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Pricing preview */
.plans-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.plan-mini.featured { border-color: var(--brand); box-shadow: var(--shadow), 0 0 0 1px var(--brand); }
.plan-mini h3 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-mini .price-line { font-size: 40px; font-weight: 650; letter-spacing: -0.03em; margin: 14px 0 2px; line-height: 1; }
.plan-mini .price-line small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-mini > p { color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.plan-mini .ticks { margin-bottom: 26px; }
.plan-mini .btn { margin-top: auto; }
.badge { font: 600 11px/1 "Geist Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* CTA */
.cta { border-radius: 16px; padding: 64px 48px; position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(70, 196, 134, .25), transparent 70%); }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--night-muted); margin: 0; max-width: 560px; }
.cta .buttons { margin: 0; justify-content: flex-end; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14px; background: var(--bg); }
.cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.cols h4 { margin: 2px 0 12px; font-size: 13px; font-weight: 600; color: var(--fg); letter-spacing: 0; }
.cols a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.cols a:hover { color: var(--fg); }
.cols .about p { color: var(--muted); margin: 14px 0 0; max-width: 280px; }
.legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--fg); }
.fine { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

/* Inner pages: a plain page header */
.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { font-size: 46px; line-height: 1.08; font-weight: 650; letter-spacing: -0.035em; margin: 0 0 14px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0; }
.page-head.center .lead { margin: 0 auto; }
.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 88px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.015em; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.prose b, .prose strong { color: var(--fg); }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .specs { max-width: 600px; }
}
@media (max-width: 920px) {
  .panel, .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .text { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div, .trust > div:not(:nth-child(3n + 1)) { padding: 26px 22px 26px 0; border-left: 0; }
  .trust > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--night-line); }
  .plans-mini { grid-template-columns: 1fr; max-width: 520px; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols .about { grid-column: 1 / -1; }
  .cta { grid-template-columns: 1fr; padding: 48px 28px; }
  .cta .buttons { justify-content: flex-start; }
  .head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  nav.main a.hide-sm, .actions .hide-sm { display: none; }
  header.top .wrap { gap: 12px; }
  nav.main { justify-content: flex-end; }
  nav.main a { padding: 7px 8px; }
  .brand .for { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .actions .btn { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 17px; }
  .specs li { grid-template-columns: 1fr; gap: 2px; }
  .window { margin-top: 40px; }
  .window-bar .url { display: none; }
  h2 { font-size: 30px; }
  .split .text h2 { font-size: 28px; }
  .page-head { padding: 48px 0 36px; }
  .page-head h1 { font-size: 34px; }
  section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .stat b { font-size: 30px; }
  .trust { grid-template-columns: 1fr; }
  .trust > div, .trust > div:nth-child(even) { padding: 22px 0; border-left: 0; }
  .names { font-size: 16px; gap: 10px 22px; }
  .matrix th, .matrix td { padding: 12px; }
  .matrix .hide-sm { display: none; }
}

/* Dark theme (from the toggle): a lighter tick, and the CTA lifted off the page */
:root[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363c48f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }
.cta { border: 1px solid var(--night-line); }
:root[data-theme="dark"] .cta { background: linear-gradient(135deg, #0f2219, #0a1510); }
@media (max-width: 640px) { .hide-xs { display: none; } .announce .wrap { gap: 8px; } }
.cols a.brand { display: inline-flex; color: var(--fg); padding: 0; }

/* Screen to file: the table on screen beside the workbook it exports */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.pair .arrow { align-self: center; }
.pane { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.pane figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.pane figcaption .muted { margin-left: auto; font: 500 12px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.pane .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pane .dot.xl { background: #1d6f42; }
.n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e8590c; color: #fff; font: 700 10.5px/1 Geist, sans-serif; font-style: normal; margin-right: 6px; flex: none; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(232, 89, 12, .16); }
.ui { padding: 12px 14px 14px; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 4px 6px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--fg); }
.chip b { color: var(--muted); font-weight: 400; }
.ui-btn { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 6px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; font-size: 12.5px; }
table.mini th svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--brand); margin-left: 2px; }
table.mini td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini th:first-child, table.mini td:first-child { border-right: 1px solid var(--line-strong); }
table.mini tr.g td { font-weight: 600; background: var(--accent-soft); }
table.mini .r { text-align: right; font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); margin-right: 4px; font-size: 11px; }
.cnt { font: 500 11px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; margin-left: 4px; }
.arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--brand); }
.arrow svg { width: 28px; height: 28px; }
.arrow span { font: 500 12px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); white-space: nowrap; }
/* The workbook keeps spreadsheet colors in both themes, like the real thing. */
.xl-sheet { background: #fff; color: #1f2328; font-size: 12.5px; }
.fx { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #d9dde1; }
.fx span { font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: #5c6670; width: 34px; padding-right: 8px; border-right: 1px solid #d9dde1; }
.fx code { font-size: 12px; color: #1f2328; }
.fx code::before { content: "fx"; font-style: italic; color: #8b949e; margin-right: 10px; font-family: Georgia, serif; }
.grid-x { display: flex; }
.ol { width: 22px; flex: none; border-right: 1px solid #d9dde1; background: #f6f8fa; display: flex; justify-content: center; gap: 2px; padding-top: 4px; }
.ol span { display: grid; place-items: center; width: 9px; height: 13px; border: 1px solid #b6bec6; border-radius: 2px; font-size: 8px; color: #5c6670; background: #fff; }
table.sheet { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.sheet th { background: #f6f8fa; color: #5c6670; font-weight: 500; font-size: 11px; padding: 3px 8px; border: 1px solid #e1e4e8; border-top: 0; text-align: center; }
table.sheet td { padding: 5px 8px; border: 1px solid #eceef1; white-space: nowrap; }
table.sheet .rn { background: #f6f8fa; color: #5c6670; text-align: center; font-size: 11px; width: 26px; padding: 5px 4px; }
table.sheet tr.c .rn { box-shadow: inset 3px 0 0 #9aa4ae; }
table.sheet tr.h td:not(.rn) { font-weight: 700; }
table.sheet tr.g td:not(.rn) { font-weight: 700; background: #eef2f0; }
table.sheet .r { text-align: right; }
table.sheet .frozen { border-right: 2px solid #9aa4ae; }
table.sheet .sel { outline: 2px solid #1d6f42; outline-offset: -2px; }
.legend { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.legend li { display: flex; gap: 4px; font-size: 14px; }
.legend li .n { margin-top: 2px; }
.legend b { display: block; font-weight: 600; margin-bottom: 2px; }
.legend span { color: var(--muted); }

/* How it works */
.steps { list-style: none; counter-reset: step; margin: 8px 0 28px; padding: 0; display: grid; gap: 4px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 48px; display: grid; gap: 4px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 "Geist Mono", ui-monospace, monospace; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; border-left: 1px dashed var(--line-strong); }
.steps b { font-size: 16.5px; font-weight: 600; padding-top: 3px; }
.steps span { color: var(--muted); font-size: 15px; }
.steps code { justify-self: start; max-width: 100%; overflow-x: auto; white-space: nowrap; font-size: 12.5px; padding: 6px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); margin-top: 4px; }

/* Build or buy */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.cmp th, table.cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
table.cmp tbody th { font-weight: 500; width: 40%; }
table.cmp td { color: var(--muted); font-size: 13.5px; }
table.cmp .us { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
table.cmp thead th.us { color: var(--fg); font-size: 14px; }
table.cmp thead th.us .mark { display: inline-grid; vertical-align: middle; margin-right: 8px; }
.mark.sm { width: 22px; height: 22px; border-radius: 6px; }
.mark.sm svg { width: 14px; height: 14px; }
table.cmp td.yes { color: var(--accent); font-weight: 600; }
table.cmp td.yes::before { content: "\2713"; margin-right: 8px; }
table.cmp td.no::before { content: "\00D7"; margin-right: 8px; opacity: .6; }
table.cmp td.you::before { content: "\270E"; margin-right: 8px; opacity: .55; }

/* Home FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-grid .faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-grid .faq details:first-child { border-top: 1px solid var(--line); }
.faq-grid .faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-grid .faq summary::-webkit-details-marker { display: none; }
.faq-grid .faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .15s; }
.faq-grid .faq details[open] summary::after { transform: rotate(45deg); }
.faq-grid .faq p { color: var(--muted); margin: 10px 0 0; max-width: 620px; }

@media (max-width: 1080px) {
  .pair { grid-template-columns: 1fr; }
  .arrow { flex-direction: row; justify-content: center; }
  .arrow svg { transform: rotate(90deg); }
  .legend { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .faq-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .legend { grid-template-columns: 1fr; gap: 14px; }
  .pane { overflow-x: auto; }
  table.mini, table.sheet { font-size: 12px; }
  table.mini td, table.mini th { padding: 6px 8px; }
}

@media (max-width: 640px) {
  table.cmp { min-width: 0; }
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr { display: block; }
  table.cmp tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.cmp tbody tr:last-child { border-bottom: 0; }
  table.cmp tbody th { display: block; width: auto; padding: 0 0 6px; border: 0; font-weight: 600; }
  table.cmp td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; background: none; }
  table.cmp td::before { content: none; }
  table.cmp td.yes::before, table.cmp td.no::before, table.cmp td.you::before { content: none; }
  table.cmp td.us { margin: 2px -8px 0; padding: 4px 8px; border-radius: 6px; }
  table.cmp td::after { content: attr(data-l); order: -1; color: var(--muted); font-weight: 400; }
}

/* Pricing: plan table */
table.plans-cmp tbody th { width: 46%; }
table.plans-cmp tr.grp th { font: 600 12px/1 "Geist Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--bg-soft); padding-top: 12px; padding-bottom: 12px; }
table.cmp td.plain { color: var(--fg); }
table.cmp td.plain b { font-weight: 650; }
@media (max-width: 640px) { table.plans-cmp tr.grp th { padding: 4px 0; background: none; } table.plans-cmp tr.grp { padding: 14px 16px 4px; } }
table.cmp td.part::before { content: "\25D0"; margin-right: 8px; color: var(--accent); }
@media (max-width: 640px) { table.plans-cmp tbody th { width: auto; } table.cmp td.part::before { content: none; } }

/* Search: the header button and the dialog (search.js) */
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); color: var(--muted); font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; min-width: 200px; }
.search-btn:hover { border-color: var(--line-strong); color: var(--fg); }
.search-btn svg { width: 16px; height: 16px; flex: none; }
.search-btn kbd, .search-dialog kbd { margin-left: auto; font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface); }
html.s-open { overflow: hidden; }
.search-dialog { position: fixed; inset: 0; z-index: 100; }
.s-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 9, .55); backdrop-filter: blur(3px); }
.s-panel { position: relative; width: min(680px, calc(100vw - 32px)); margin: 10vh auto 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.s-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.s-input svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.s-input input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--fg); font: 500 17px/1.3 inherit; font-family: inherit; }
.s-input input::-webkit-search-cancel-button { display: none; }
.s-input kbd { cursor: pointer; }
.s-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.s-note { padding: 10px 12px; color: var(--muted); font-size: 13.5px; }
.s-results a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--fg); }
.s-results [aria-selected="true"] a { background: var(--accent-soft); }
.s-kind { flex: none; width: 48px; margin-top: 2px; font: 600 10.5px/1.6 "Geist Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.s-body { min-width: 0; display: grid; gap: 3px; }
.s-title { font-weight: 600; font-size: 14.5px; }
.s-sec { color: var(--muted); font-weight: 500; }
.s-snip { color: var(--muted); font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.s-snip mark { background: color-mix(in srgb, var(--glow) 35%, transparent); color: var(--fg); border-radius: 3px; padding: 0 1px; }
.s-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; background: var(--bg-soft); }
.s-foot kbd { margin: 0 2px 0 0; }
@media (max-width: 1100px) { .search-btn { min-width: 0; } .search-btn span, .search-btn kbd { display: none; } .search-btn { padding: 0 9px; } }
@media (max-width: 640px) { .s-panel { margin-top: 12px; max-height: calc(100vh - 24px); } .s-foot { display: none; } }
@media (max-width: 640px) { header.top .wrap { gap: 8px; } nav.main a { padding: 7px 6px; } .actions { gap: 2px; } }
@media (max-width: 440px) { nav.main a.hide-xs { display: none; } }
@media (max-width: 1100px) { .brand .for { display: none; } }
@media (max-width: 960px) { nav.main a.hide-sm, .actions .hide-sm { display: none; } }

/* The large search box (docs home, 404) */
.dsearch { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--muted); font: 500 16px/1 inherit; font-family: inherit; cursor: text; box-shadow: var(--shadow-sm); text-align: left; }
.dsearch:hover { border-color: var(--brand); }
.dsearch svg { width: 18px; height: 18px; }
.dsearch kbd { margin-left: auto; }
.dsearch kbd { font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface); }
.notfound { padding: 96px 0 120px; }
.notfound h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; margin: 0 0 14px; }
.notfound .lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.nf-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nf-links a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--fg); font-weight: 500; }
.nf-links a:hover { border-color: var(--line-strong); background: var(--bg-soft); }
@media (max-width: 640px) { .notfound { padding: 56px 0 80px; } .notfound h1 { font-size: 36px; } }
