/* maverickbuilds.app — home page.
   Tokens follow the product's front door (docs/BRAND.md in the engine
   repository); layout follows maverickans.com: black ground, charcoal cards,
   amber accents, heavy uppercase section titles. */

@font-face {
  font-family: "Montserrat";
  src: url("/_site/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0a0a0a;
  --surface: #141414;
  --card: #1a1a1a;
  --card-hi: #202020;
  --line: #262626;
  --accent: #eeb900;
  --accent-hi: #ffc000;
  --text: #ffffff;
  --text-2: #b4b4b4;
  --text-3: #7c7c7c;
  --radius: 1.125rem;
  --max: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Everything is sized in rem, so the root size scales the whole page. Up to a
   1440×900 window it is the reader's default; a larger window grows it with the
   smaller of its width and height, so the layout keeps its proportions and the
   hero stays above the fold, up to twice the default. */
@media (min-width: 1440px) {
  html { font-size: clamp(100%, min(1.1111vw, 1.7778vh), 200%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Montserrat", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.1875rem; border-radius: 0.25rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: #000; padding: 0.5rem 0.875rem; border-radius: 0.375rem; font-weight: 700;
}
.skip:focus { top: 0.75rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0 1.375rem; border-radius: 0.375rem;
  font: 700 0.9375rem/1 "Montserrat", system-ui, sans-serif; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hi); color: #000; }
.btn-outline { border-color: rgba(255,255,255,.7); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { min-height: 2.375rem; padding: 0 1rem; font-size: 0.875rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.82);
  backdrop-filter: saturate(140%) blur(0.75rem);
  -webkit-backdrop-filter: saturate(140%) blur(0.75rem);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 2.125rem; width: auto; display: block; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .nav-links { gap: 1rem; } }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-signin { color: var(--text); font-size: 0.875rem; font-weight: 600; padding: 0.5rem 0.375rem; }
.nav-signin:hover { color: var(--accent); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 2.625rem; height: 2.625rem; border-radius: 0.5rem;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--accent); }
.menu-panel {
  position: absolute; right: 0; top: 3.25rem; width: min(17.5rem, calc(100vw - 2rem));
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.875rem;
  padding: 0.625rem; box-shadow: 0 1.25rem 3.125rem rgba(0,0,0,.6);
}
.menu-panel a { display: block; padding: 0.75rem 0.875rem; border-radius: 0.5rem; color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.menu-panel a:hover { background: var(--card-hi); color: var(--accent); }
.menu-panel .btn { width: 100%; margin-top: 0.5rem; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-signin, .nav-actions .btn { display: none; }
  .menu { display: block; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 70% at 18% 20%, rgba(238,185,0,.22), rgba(238,185,0,0) 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(255,192,0,.08), rgba(255,192,0,0) 70%),
    linear-gradient(180deg, #111 0%, var(--ground) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 1.375rem 1.375rem;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem; margin: 0 0 1.375rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--accent); }
h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(2.375rem, 4.4vw, 3.875rem);
}
h1 .accent { color: var(--accent); }
.lede { margin: 1.5rem 0 0; max-width: 36.25rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; color: #d6d6d6; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.hero-note { margin: 1.125rem 0 0; font-size: 0.875rem; color: var(--text-3); }

/* The product mock: the console's dashboard widgets (grid with a selector strip,
   chart, KPI, automation button) laid out as the console draws them, in the
   site's palette rather than the console's. */
.mock {
  --m-bg: #121212; --m-surface: #1a1a1a; --m-border: #262626; --m-border-strong: #3a3a3a;
  --m-text: #ffffff; --m-text-2: #d2d2d2; --m-muted: #8a8a8a; --m-kpi-label: #8a8a8a;
  --m-brand: var(--accent); --m-brand-solid: var(--accent); --m-brand-on: #000; --m-chart-1: var(--accent);
  --m-row-line: #222222; --m-agg: #1a1a1a; --m-calc-row: #161616; --m-calc-text: var(--accent-hi); --m-calc-tag: #7c7c7c;
  --m-hdr-bg: #241f0c; --m-hdr-bg-soft: #1e1a0b; --m-hdr-border: #54440d; --m-hdr-text: var(--accent); --m-hdr-total: #9a9a9a;
  --m-input-bg: #1b1911; --m-input-border: #5f4c0c;
  position: relative; border-radius: 1rem; background: var(--m-bg); border: 1px solid var(--m-border);
  box-shadow: 0 2.5rem 5rem rgba(0,0,0,.65), 0 0 0 1px rgba(238,185,0,.06), 0 0 7.5rem rgba(238,185,0,.08);
  overflow: hidden; color: var(--m-text); font-size: 0.8125rem; line-height: 1.5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--m-border); background: var(--m-surface); }
.mock-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--m-border-strong); }
.mock-title { margin-left: 0.5rem; color: var(--m-muted); font-weight: 600; font-size: 0.75rem; }
.mock-body { padding: 1rem; display: grid; gap: 1rem; }

/* Grid widget */
.mock-grid-wrap { overflow-x: auto; }
.mock-grid { width: 100%; border-collapse: collapse; }
.mock-grid th { padding: 0.625rem 0.75rem; font-size: 0.75rem; font-weight: 600; line-height: 1.125rem; white-space: nowrap; }
.mock-grid thead tr { background: var(--m-hdr-bg); }
.mock-grid thead tr:first-child { border-bottom: 1px solid var(--m-hdr-border); }
.mock-grid thead tr:last-child { border-bottom: 2px solid var(--m-border); }
.mock-grid th.m { color: var(--m-text-2); text-align: left; }
.mock-grid th.g { color: var(--m-hdr-text); text-align: center; border-left: 1px solid var(--m-hdr-border); }
.mock-grid th.s { background: var(--m-hdr-bg-soft); color: var(--m-text-2); font-size: 0.6875rem; font-weight: 500; line-height: 1.03125rem; text-align: center; border-left: 1px solid var(--m-hdr-border); }
.mock-grid th.t { color: var(--m-hdr-total); font-weight: 700; font-style: italic; }
.mock-grid tbody tr { border-bottom: 1px solid var(--m-row-line); }
.mock-grid td { padding: 0.5rem 0.75rem; text-align: right; white-space: nowrap; }
.mock-grid td:first-child { color: var(--m-text-2); text-align: left; }
.mock-grid td.in { padding: 0.25rem 0.3125rem; }
.mock-grid td.in span { display: block; padding: 2px 0.25rem; background: var(--m-input-bg); border: 1px solid var(--m-input-border); border-radius: 0.25rem; color: var(--m-text-2); }
.mock-grid td.agg { background: var(--m-agg); font-weight: 600; }
.mock-grid tr.calc { background: var(--m-calc-row); }
.mock-grid tr.calc td { background: var(--m-agg); font-weight: 600; }
.mock-grid tr.calc td:first-child { white-space: normal; background: none; color: var(--m-calc-text); font-weight: 700; }
.mock-grid tr.calc small { margin-left: 0.25rem; color: var(--m-calc-tag); font-size: 0.625rem; font-weight: 700; letter-spacing: .04em; }

.mock-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: start; }

/* Chart widget (Recharts bar chart) */
.mock-chart { display: block; width: 100%; height: auto; }
.mock-chart .grid path { fill: none; stroke: var(--m-border); stroke-dasharray: 3 3; }
.mock-chart .bars rect { fill: var(--m-chart-1); }
.mock-chart .axis path { fill: none; stroke: var(--m-border-strong); }
.mock-chart .ticks text { fill: var(--m-muted); font-size: 11px; }

/* Selector strip, KPI widget and automation button widget */
.mock-side { display: grid; gap: 0.75rem; }
.mock-kpi { display: grid; justify-items: start; gap: 2px; padding: 0.875rem 1rem; background: var(--m-surface); border: 1px solid var(--m-border); border-radius: 0.5rem; min-width: 0; }
.mock-sel { display: flex; align-items: center; gap: 0.375rem; margin-bottom: -0.375rem; color: var(--m-muted); font-size: 0.75rem; font-weight: 500; }
.mock-select { position: relative; display: inline-flex; align-items: center; height: 2.125rem; min-width: 5.25rem; padding: 0 1.75rem 0 0.625rem; background: var(--m-surface); border: 1px solid var(--m-border-strong); border-radius: 0.375rem; color: var(--m-text); font-size: 0.8125rem; font-weight: 400; }
.mock-select svg { position: absolute; right: 0.5625rem; width: 0.875rem; height: 0.875rem; fill: none; stroke: var(--m-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mock-kpi-label { color: var(--m-kpi-label); font-size: 0.75rem; font-weight: 600; line-height: 1.125rem; letter-spacing: 0.0375rem; text-transform: uppercase; }
.mock-kpi-value { color: var(--m-text); font-size: 1.5rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.mock-kpi-accent { width: 2.5rem; height: 0.1875rem; margin-top: 0.375rem; border-radius: 2px; background: var(--m-brand); }
.mock-cmd { display: flex; align-items: center; justify-content: center; height: 2.5rem; border-radius: 0.5rem; background: var(--m-brand-solid); color: var(--m-brand-on); font-size: 0.875rem; font-weight: 600; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); flex-wrap: wrap; }
.section-title {
  margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  font-size: clamp(2.5rem, 7vw, 5rem);
}
.section-sub { margin: 0; max-width: 26.25rem; color: var(--text-2); font-size: 0.9375rem; font-weight: 400; }
h2.plain { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }

/* Use cases */
.cases { padding-top: 0; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 0.875rem; padding: 1.375rem; }
.case b { display: block; color: var(--accent); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0.5rem; }
.case p { margin: 0; color: #e0e0e0; font-size: 0.9375rem; line-height: 1.5; }
.cases-note { margin: 1rem 0 0; color: var(--text-3); font-size: 0.8125rem; }
.case-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s ease; }
.case-link:hover { color: inherit; border-color: var(--accent); }
.case-go { margin-top: auto; padding-top: 0.875rem; color: var(--accent); font-size: 0.875rem; font-weight: 600; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.125rem); display: flex; flex-direction: column; gap: 0.875rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #3a3a3a; }
.icon {
  width: 3.25rem; height: 3.25rem; border-radius: 0.875rem; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(255,192,0,.28), rgba(238,185,0,.06) 70%);
  border: 1px solid rgba(238,185,0,.35); color: var(--accent);
}
.icon svg { width: 1.625rem; height: 1.625rem; }
.card h3 { margin: 0.25rem 0 0; font-size: 1.0625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.card p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.ticks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.375rem; color: #d2d2d2; font-size: 0.90625rem; line-height: 1.5; }
.ticks li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Steps (how it works) */
.steps { display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: 8.75rem 1fr 1.2fr; gap: 1.75rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.375rem, 3vw, 2rem) clamp(1.375rem, 3vw, 2.5rem);
}
.step-n { font-size: 3.5rem; font-weight: 300; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.step h3 { margin: 0; color: var(--accent); font-size: 1.1875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.step h3 small { display: block; margin-top: 0.25rem; color: var(--text-3); font-size: 0.8125rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.step p { margin: 0; color: var(--text-2); font-size: 0.9375rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.625rem 1.5rem 1.75rem; overflow: hidden; }
.pillar-n { display: block; font-size: 4rem; font-weight: 300; line-height: .9; color: var(--accent); letter-spacing: -0.05em; margin: -0.25rem 0 1.125rem -0.25rem; }
.pillar h3 { margin: 0 0 0.875rem; font-size: 1rem; font-weight: 800; line-height: 1.3; }

/* Built on */
.stack { padding: 0 0 clamp(4.5rem, 10vw, 6.875rem); }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 0.875rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.stack-row b { color: var(--text-3); font-size: 0.75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-right: 0.75rem; }
.stack-row span { padding: 0.5625rem 1rem; border-radius: 62.4375rem; border: 1px solid var(--line); color: #dadada; font-weight: 700; font-size: 0.875rem; letter-spacing: .01em; }

/* Editions */
.editions { background: linear-gradient(180deg, var(--ground), #0e0e0e 40%, var(--ground)); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.plan.featured { border-color: rgba(238,185,0,.55); box-shadow: 0 0 0 1px rgba(238,185,0,.25), 0 1.875rem 3.75rem rgba(0,0,0,.4); background: linear-gradient(180deg, rgba(238,185,0,.07), var(--card) 45%); }
.plan-kicker { color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.plan h3 { margin: 0; font-size: 1.375rem; font-weight: 800; }
.plan-price { font-size: 0.9375rem; color: var(--text-2); }
.plan-price strong { display: block; color: var(--text); font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.plan .ticks { flex: 1; align-content: start; }
.plan .btn { width: 100%; }
.plans-note { margin: 1.375rem 0 0; color: var(--text-3); font-size: 0.84375rem; max-width: 53.75rem; }

/* Self-host */
.selfhost-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.selfhost-grid p { color: var(--text-2); }
.code {
  margin: 0; background: #0f0f0f; border: 1px solid var(--line); border-radius: 0.875rem; overflow-x: auto;
  padding: 1.375rem 1.5rem; font: 500 0.875rem/1.9 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #e8e8e8;
}
.code .c { color: #6f6f6f; }
.code .p { color: var(--accent); user-select: none; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.625rem; }
.facts li { position: relative; padding-left: 1.375rem; color: #d2d2d2; font-size: 0.9375rem; }
.facts li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.selfhost-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
/* Linux / Windows switch over the install commands: radio buttons and CSS
   only, because the page's CSP allows no script. */
.os-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.os-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.os-tabs label {
  padding: 0.4375rem 0.9375rem; border-radius: 62.4375rem; border: 1px solid var(--line);
  color: var(--text-2); font-weight: 700; font-size: 0.8125rem; cursor: pointer;
}
.os-tabs label:hover { color: var(--text); }
.os-tabs input:checked + label { border-color: var(--accent); color: var(--accent); }
.os-tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 0.1875rem; }
.os-tabs .code { flex: 1 0 100%; margin-top: 0.25rem; }
.os-tabs .os-windows, #os-windows:checked ~ .os-linux { display: none; }
#os-windows:checked ~ .os-windows { display: block; }

/* Final call to action */
.final { padding-top: 0; }
.final-box {
  position: relative; overflow: hidden; border-radius: 1.5rem; border: 1px solid #2a2a2a; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(238,185,0,.22), rgba(238,185,0,0) 70%),
    var(--surface);
}
.final-box h2 { margin: 0 auto; max-width: 51.25rem; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.final-box p { margin: 1.125rem auto 0; max-width: 37.5rem; color: var(--text-2); font-size: 1.0625rem; font-weight: 300; }
.final-box .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; color: var(--text-3); font-size: 0.875rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.foot-grid h4 { margin: 0 0 0.875rem; color: var(--text); font-size: 0.8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.foot-grid li { color: var(--text-2); }
.foot-grid a { color: var(--text-2); }
.foot-grid a:hover { color: var(--accent); }
.foot-brand img { height: 1.875rem; width: auto; }
.foot-brand p { margin: 0.875rem 0 0; max-width: 17.5rem; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1c1c1c; font-size: 0.8125rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .plans, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid, .selfhost-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 0.625rem; }
  .step-n { font-size: 2.75rem; }
}
@media (max-width: 640px) {
  .cards, .trust-grid, .plans, .cases-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-foot { grid-template-columns: 1fr; }
  .mock-chart { max-height: 11.875rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .section-head { align-items: flex-start; }
}

/* Key accents: the four things to take away, straight under the hero. */
.accents { padding: 0 0 clamp(3.5rem, 8vw, 6rem); }
.accents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.accent-tile {
  background: linear-gradient(180deg, rgba(238,185,0,.08), var(--card) 55%);
  border: 1px solid rgba(238,185,0,.28); border-radius: var(--radius);
  padding: 1.625rem 1.5rem 1.75rem;
}
.accent-big { display: block; color: var(--accent); font-size: clamp(1.875rem, 2.6vw, 2.375rem); white-space: nowrap; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.accent-tile h2 { margin: 0.75rem 0 0.625rem; font-size: 0.9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.accent-tile p { margin: 0; color: var(--text-2); font-size: 0.90625rem; line-height: 1.55; }
@media (max-width: 1080px) { .accents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .accents-grid { grid-template-columns: 1fr; } }

/* Chat and AI-plan mock-ups (AI developer, Claude & ChatGPT sections): the
   same widget palette as the hero illustration, plus a request bubble. */
.mock-msg { justify-self: end; max-width: 88%; padding: 0.625rem 0.875rem; border-radius: 0.75rem 0.75rem 0.25rem 0.75rem; background: var(--m-surface); border: 1px solid var(--m-border-strong); color: var(--m-text); }
.mock-file { display: block; width: fit-content; margin-top: 0.5rem; padding: 0.125rem 0.5rem; border-radius: 0.375rem; border: 1px solid var(--m-input-border); background: var(--m-input-bg); color: var(--m-hdr-text); font-size: 0.75rem; font-weight: 600; }
.mock-reply { color: var(--m-text-2); }
.mock-reply b { color: var(--m-text); }
.mock-note { color: var(--m-muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: .02em; }
.mock-grid td.l { text-align: left; white-space: normal; }
.mock-body > .mock-cmd { justify-self: end; padding: 0 1.5rem; }
.share-head { margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; font-size: 1.0625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 901px) { .selfhost-grid.flip > :first-child { order: 2; } }

/* Narrow illustrations (phones, and the two-column layout just above 900 px):
   tighter cells so every column of a mock grid stays in view. */
.mock { container-type: inline-size; }
@container (max-width: 540px) {
  .mock-body { padding: 0.75rem; }
  .mock-grid th, .mock-grid td { padding: 0.375rem 0.4375rem; font-size: 0.6875rem; }
  .mock-grid td.in { padding: 0.1875rem; }
  .mock-grid td.in span { padding: 1px 0.1875rem; }
  .mock-grid td:first-child, .mock-grid td:last-child { white-space: normal; }
}
@container (max-width: 340px) {
  .mock-body { padding: 0.625rem; }
  .mock-grid th, .mock-grid td { padding: 0.3125rem; font-size: 0.625rem; }
}
@container (max-width: 300px) {
  .mock-grid th, .mock-grid td { padding: 0.25rem; font-size: 0.5625rem; }
  .mock-grid th { white-space: normal; }
}
/* The smallest phones (320 px): long button labels wrap instead of widening the column. */
@media (max-width: 359px) { .btn { white-space: normal; text-align: center; } }

/* No single word stranded on a last line: browsers that support it rebalance
   paragraphs and headings; the HTML also joins each block's last two words. */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* Hyphenated words in headings stay whole once the line can hold them. */
.nobr { white-space: nowrap; }
@media (max-width: 359px) { h1 .nobr, h2 .nobr { white-space: normal; } }
