/* CartridgeCore landing page
   Readable source. Served as-is (Apache gzips it); build.py adds cache-busting hashes. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — see /fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin-var.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched local fallbacks to minimise layout shift while the web fonts load. */
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 94.87%;
  ascent-override: 112.36%;
  descent-override: 31.62%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 98.97%;
  ascent-override: 100.24%;
  descent-override: 31.32%;
  line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */

:root {
  /* Colour */
  --bg: #081513;
  --bg-raised: #10241f;
  --bg-menu: #183127;
  --text: #eef5f2;
  --text-soft: #c7d4ce;
  --muted: #a6b8b1;
  --accent: #b5f29a;
  --accent-hover: #cafaaf;
  --accent-ink: #142a1b;
  --accent-04: rgba(181, 242, 154, .04);
  --accent-08: rgba(181, 242, 154, .08);
  --accent-12: rgba(181, 242, 154, .12);
  --accent-20: rgba(181, 242, 154, .20);
  --accent-35: rgba(181, 242, 154, .35);
  --white-02: rgba(255, 255, 255, .02);
  --white-04: rgba(255, 255, 255, .04);
  --line: rgba(204, 242, 223, .13);
  --line-strong: rgba(204, 242, 223, .22);
  --glass: linear-gradient(135deg, rgba(177, 229, 204, .075), rgba(116, 176, 153, .025));
  --shadow-lg: 0 35px 80px rgba(0, 0, 0, .33);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, .27);

  /* Type */
  --font-display: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;
  --fs-xs: .75rem;      /* 12px: labels, eyebrows */
  --fs-sm: .875rem;     /* 14px: secondary copy */
  --fs-base: 1rem;      /* 16px: body copy */
  --fs-md: 1.125rem;    /* 18px: lead copy */
  --fs-lg: 1.375rem;    /* 22px: card headings */
  --fs-xl: clamp(2rem, 1.45rem + 2.2vw, 2.75rem);
  --fs-2xl: clamp(2.6rem, 1.6rem + 4vw, 4.25rem);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --gutter: 56px;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-5);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 55% 25% at 83% 13%, rgba(24, 75, 62, .4), transparent),
    radial-gradient(ellipse 40% 15% at -10% 35%, rgba(24, 67, 49, .27), transparent),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.13;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); font-weight: 650; margin: var(--space-5) 0; }
h2 { font-size: var(--fs-xl); font-weight: 600; margin: var(--space-4) 0 0; }
h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.02em; margin: var(--space-5) 0 var(--space-3); }

h1 > span,
h2 > span { color: var(--accent); }

a { color: inherit; text-decoration: none; }
p a, .text-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-35); }
p a:hover { color: var(--accent); }

button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--bg); }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1240px;
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -80px;
  left: var(--space-5);
  z-index: 99;
  background: var(--accent);
  color: var(--bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { top: var(--space-3); }

/* ---------- Shared components ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-35);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 650;
  transition: transform .2s, background-color .2s;
}
.button:hover { transform: translateY(-2px); background-color: var(--accent-12); }
.button .icon { font-size: 1.15em; }

.button.primary {
  color: var(--accent-ink);
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 3px 20px rgba(159, 237, 137, .07);
}
.button.primary:hover { background-color: var(--accent-hover); }

.button.small { min-height: 44px; font-size: var(--fs-sm); padding: var(--space-2) var(--space-4); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.text-link:hover { color: var(--accent); }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 20px 50px rgba(0, 0, 0, .05);
}

.square-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-12);
  border-radius: var(--radius-md);
  background: var(--accent-04);
  color: var(--accent);
  font-size: 22px;
}

.brand-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: none;
  transform: rotate(-5deg);
}

.section { padding-top: var(--space-9); }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}
.section-top > p {
  max-width: 400px;
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: var(--fs-base);
}

/* ---------- Header ---------- */

.header {
  position: relative;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.brand-name > span { font-weight: 500; color: #b8c6c0; }

.header nav {
  display: flex;
  gap: var(--space-2) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-1);
}
.header nav a:hover { color: var(--accent); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  min-height: 660px;
  padding: var(--space-8) 0 var(--space-9);
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: var(--space-6);
}

.hero-description {
  max-width: 500px;
  color: var(--text-soft);
  font-size: var(--fs-md);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-6) 0 var(--space-5);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.hero-note li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-note .icon { color: var(--accent); }

/* Illustrative portal mock-up. Exposed to assistive tech as a single image (role="img"). */
.hero-visual {
  position: relative;
  margin-top: var(--space-3);
  padding: 45px 0 38px;
  isolation: isolate;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(181, 242, 154, .05);
  border-radius: 50%;
  pointer-events: none;
  width: 590px;
  height: 590px;
  top: -65px;
  left: -20px;
}
.orbit-two { width: 460px; height: 460px; top: 0; left: 45px; }

.dashboard {
  border-radius: 13px;
  background: linear-gradient(130deg, rgba(37, 74, 59, .73), rgba(17, 44, 37, .91));
  transform: perspective(1500px) rotateY(-6deg) rotateX(2deg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 11px;
  line-height: 1.4;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.demo-logo .brand-mark { width: 22px; height: 22px; }

.avatar {
  font-size: 10px;
  background: rgba(173, 196, 181, .13);
  padding: 5px 7px;
  border-radius: 50%;
}

.dash-body { display: flex; }

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 19px 11px;
  border-right: 1px solid var(--line);
  color: #88a295;
}
.dash-sidebar span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.dash-sidebar .selected { background: var(--accent-12); color: var(--accent); }

.dash-content { flex: 1; min-width: 0; padding: 22px 22px 18px; }

.dash-heading { display: flex; align-items: center; justify-content: space-between; }
.dash-heading .label { font-size: 9px; }
.dash-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 4px 0 16px;
}

.location-chip {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 5px;
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.dash-stats > div {
  padding: 11px 13px;
  background: var(--white-02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.dash-stats span { display: block; color: var(--muted); font-size: 10px; }
.dash-stats strong { display: block; font-size: 26px; font-weight: 500; line-height: 1.5; }
.dash-stats small { display: block; font-size: 9px; color: var(--muted); }
.dash-stats .mint-text { color: var(--accent); }

.table-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}
.table-label > span { font-size: 10px; color: var(--muted); }

.printer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .035);
}
.printer-row strong,
.printer-row small { display: block; font-size: 11px; }
.printer-row small { font-size: 9px; color: var(--muted); margin-top: 2px; }

.printer-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--white-02);
  border-radius: 5px;
  color: #b3c6bd;
  font-size: 15px;
}

.pill {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent-08);
  color: var(--accent);
  font-size: 9px;
}

.forecast {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 10px;
  background: var(--accent-04);
  border: 1px solid var(--accent-08);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.forecast .icon { font-size: 15px; margin-top: 1px; }
.forecast strong,
.forecast small { display: block; font-size: 10px; }
.forecast small { color: var(--muted); font-size: 9px; }

.dash-bottom {
  display: flex;
  justify-content: space-between;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}
.dash-bottom .status-dot { width: 5px; height: 5px; margin-right: 5px; }

.floating {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(125deg, rgba(53, 83, 71, .86), rgba(29, 52, 44, .87));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating strong,
.floating small { display: block; font-size: 12px; line-height: 1.35; }
.floating small { font-size: 10px; color: #b0c4ba; margin-top: 2px; }
.floating .square-icon { width: 32px; height: 32px; font-size: 16px; }
.top-floating { right: -13px; top: 9px; }
.bottom-floating { left: -26px; bottom: 10px; }

/* ---------- Proof bar ---------- */

.proof {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-block: 1px solid var(--line);
}
.proof-intro p { margin: var(--space-2) 0 0; font-size: var(--fs-base); }
.proof-intro p span { font-size: var(--fs-sm); color: var(--muted); }
.proof > div:not(:first-child) { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.proof strong.stat {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.04em;
}
.proof small { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Why dealers ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.why-grid article {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}
.why-grid h3 { margin-top: var(--space-5); }
.why-grid p { margin: 0; color: var(--muted); }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: var(--space-6) 30px;
  border-radius: var(--radius-lg);
}
.feature-card p { color: var(--muted); margin-bottom: var(--space-5); }

.feature-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: var(--space-6);
  align-items: start;
}

.card-heading { display: flex; align-items: center; gap: var(--space-4); }

.location-tree { margin-top: 72px; font-size: var(--fs-sm); }
.tree-root {
  padding: var(--space-3) var(--space-4);
  background: var(--white-02);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.tree-root strong { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.tree-root .icon { color: var(--accent); }
.tree-root small { display: block; color: var(--muted); font-size: var(--fs-xs); padding-left: 24px; }
.tree-branches {
  margin: 0 0 0 15px;
  padding: var(--space-2) 0 0 var(--space-3);
  border-left: 1px solid var(--accent-20);
  list-style: none;
}
.tree-branches li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  color: var(--text-soft);
}
.tree-branches b { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }

.match-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.match-demo > span:not(.connector) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.connector { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--accent); }

.feature-foot {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--white-04);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.approval-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.approval-demo .icon { color: var(--muted); }
.approval-demo strong { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 500; color: var(--accent); }
.approval-demo strong .icon { color: var(--accent); }

/* ---------- Admin tools ---------- */

.admin-block { margin-top: var(--space-8); }
.admin-block > h3 { margin: 0 0 var(--space-5); font-size: var(--fs-lg); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.admin-grid li {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.admin-grid .icon { font-size: 24px; color: var(--accent); }
.admin-grid h4 {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -.01em;
}
.admin-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Shopify ---------- */

.shopify-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.integration-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: var(--space-6);
  border-radius: 15px;
  background: radial-gradient(ellipse at center, rgba(59, 104, 68, .15), transparent), var(--glass);
}
.integration-art .label { align-self: flex-start; }

.integration-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 42px 0 var(--space-5);
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 120px;
  height: 120px;
  border: 1px solid rgba(225, 255, 227, .17);
  border-radius: 17px;
  background: rgba(232, 255, 229, .03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, .13);
}
.app-tile .brand-mark { width: 46px; height: 46px; }
.app-tile .store-icon { font-size: 40px; color: var(--accent); transform: none; }
.app-tile strong { font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; text-align: center; }

.sync-line {
  position: relative;
  display: flex;
  justify-content: center;
  width: 75px;
  border-top: 1px dashed var(--accent-35);
}
.sync-line span {
  position: absolute;
  top: -17px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-12);
  border-radius: 50%;
  background: #21382d;
  color: var(--accent);
  font-size: 17px;
}

.sync-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sync-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: var(--fs-xs);
}
.sync-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.integration-art > p { margin: var(--space-5) 0 0; font-size: var(--fs-sm); color: var(--muted); }

.integration-copy > p { margin-top: var(--space-5); color: var(--muted); }

.check-list { padding: 0; list-style: none; color: var(--text-soft); }
.check-list li { position: relative; margin: var(--space-3) 0; padding-left: 30px; }
.check-list .icon { position: absolute; left: 0; top: .3em; color: var(--accent); }
.fine-print { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Security ---------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-2);
}
.security-grid article { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.security-grid .icon { font-size: 26px; color: var(--accent); }
.security-grid h3 { margin: var(--space-4) 0 var(--space-3); font-size: 1.2rem; }
.security-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  margin-top: 90px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
}
.roadmap h2 { font-size: 1.85rem; }
.roadmap p { margin: var(--space-3) 0 0; color: var(--muted); font-size: var(--fs-sm); }

.roadmap-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.roadmap-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-base);
}
.roadmap-items small {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white-02);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

/* ---------- FAQ ---------- */

.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
}

details { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-base);
  font-weight: 550;
}
summary::-webkit-details-marker { display: none; }
summary .icon { font-size: 20px; color: var(--accent); transition: transform .2s; }
details[open] summary .icon { transform: rotate(45deg); }
summary:hover { color: var(--accent); }

details p { padding-right: var(--space-6); color: var(--muted); line-height: 1.75; }

/* ---------- Contact ---------- */

.contact-section {
  position: relative;
  overflow: hidden;
  margin-top: 100px;
  padding: 64px var(--space-5);
  border-radius: 17px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(54, 110, 56, .25), transparent 70%), var(--glass);
}
.contact-section .eyebrow { justify-content: center; }
.contact-section h2 { margin: var(--space-5) 0; font-size: clamp(2.1rem, 1.5rem + 2.6vw, 2.9rem); }
.contact-section > p { margin-bottom: var(--space-6); color: var(--muted); font-size: var(--fs-md); }
.contact-section .contact-note { margin: var(--space-5) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.contact-section .contact-note a { color: var(--text); }

/* ---------- Footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-7) 0;
}
footer .brand { font-size: 19px; }
footer .brand-mark { width: 27px; height: 27px; }
footer p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-5);
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--muted);
}
footer .footer-links > a { display: inline-flex; align-items: center; min-height: 44px; }
footer .footer-links span a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-35); }
footer a:hover { color: var(--accent); }

/* ---------- Simple pages (privacy, 404) ---------- */

.page-header { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

.prose {
  max-width: 720px;
  padding: var(--space-7) 0 var(--space-8);
}
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); margin-top: var(--space-3); }
.prose h2 { font-size: 1.4rem; margin: var(--space-7) 0 var(--space-3); letter-spacing: -.02em; }
.prose p,
.prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: var(--space-2) 0; }
.prose .updated { color: var(--muted); font-size: var(--fs-sm); }

.not-found { text-align: center; padding: var(--space-9) 0; }
.not-found h1 { margin-inline: auto; }
.not-found p { color: var(--muted); font-size: var(--fs-md); }
.not-found .hero-actions { justify-content: center; }

/* ---------- Responsive ---------- */

@media (min-width: 1450px) {
  .hero { min-height: 720px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero { gap: var(--space-5); }
  .hero-visual { transform: scale(.96); }
  .orbit { width: 440px; height: 440px; top: 0; }
  .orbit-two { width: 350px; height: 350px; top: 40px; }
  .dashboard { transform: none; }
  .dash-content { padding: 18px 14px; }
  .dash-sidebar { padding-inline: 8px; }
  .feature-card { padding: var(--space-5); }
  .shopify-section { gap: 40px; }
  .why-grid article { padding: var(--space-5); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-5); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header { height: 88px; }
  .header nav { gap: var(--space-1) var(--space-3); }
  .header-cta { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: var(--space-6); gap: var(--space-6); }
  .hero-copy { max-width: 600px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; transform: none; }

  .proof { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .proof-intro { grid-column: 1 / -1; }
  .proof > div:not(:first-child) { padding-left: var(--space-4); }
  .proof > div:nth-child(2) { border-left: none; padding-left: 0; }

  .section { padding-top: 76px; }
  .section-top { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .section-top > p { max-width: 560px; }

  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.wide { grid-column: span 2; }

  .shopify-section { grid-template-columns: minmax(0, 1fr); }
  .integration-art { order: 2; min-height: 330px; }
  .integration-copy { max-width: 600px; }

  .roadmap { grid-template-columns: 1fr; gap: var(--space-5); margin-top: 72px; }
  .faq-section { grid-template-columns: 1fr; gap: var(--space-5); }
  .contact-section { margin-top: 72px; }

  footer .footer-links { width: 100%; margin-left: 0; }
}

@media (max-width: 1100px) {
  /* Without JavaScript the links simply wrap under the logo; with it (html.js) they collapse into a menu. */
  .header { height: auto; min-height: 76px; flex-wrap: wrap; gap: 0 var(--space-5); padding: var(--space-2) 0; }
  .header nav { flex-wrap: wrap; width: 100%; }
  .header-cta { display: none; }
  .brand { font-size: 21px; }
  .js .header { height: 76px; flex-wrap: nowrap; padding: 0; gap: var(--space-3); }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text);
    font-size: var(--fs-sm);
  }
  .menu-toggle .icon { font-size: 18px; }
  .js .header nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 10;
    flex-direction: column;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-menu);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    font-size: var(--fs-base);
  }
  .js .header nav.open { display: flex; }

}

@media (max-width: 620px) {
  :root { --gutter: 20px; }

  .hero { padding: var(--space-5) 0 var(--space-7); }
  .eyebrow { letter-spacing: .12em; }
  h1 { letter-spacing: -.035em; }
  .hero-description { font-size: var(--fs-base); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; }

  .hero-visual { padding: 55px 0 64px; }
  .orbit { display: none; }
  .top-floating { right: 0; top: 6px; }
  .bottom-floating { left: 0; bottom: 0; }
  .floating { padding: 10px 12px; }
  .dashboard { font-size: 10px; }
  .dash-top { padding: 12px; }
  .dash-sidebar { display: none; }
  .dash-content { padding: 14px 12px; }

  .proof { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding: var(--space-5) 0; }
  .proof strong.stat { font-size: 30px; }
  .proof small { font-size: var(--fs-xs); }
  .proof > div:not(:first-child) { padding-left: var(--space-3); }
  .proof > div:nth-child(2) { padding-left: 0; }

  .section { padding-top: var(--space-8); }

  .feature-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .feature-card { min-height: 0; padding: var(--space-5); }
  .feature-card.wide { grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  .location-tree { margin-top: var(--space-2); }

  .admin-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; gap: var(--space-5); }

  .integration-art { padding: var(--space-5); }
  .integration-flow { margin-top: var(--space-6); }
  .app-tile { width: 100px; height: 108px; }
  .app-tile strong { font-size: var(--fs-xs); }
  .sync-line { width: 40px; }

  .roadmap { padding: 28px var(--space-5); }
  .roadmap h2 { font-size: 1.6rem; }
  .roadmap-items li { font-size: var(--fs-sm); }

  details p { padding-right: 0; }

  .contact-section { padding: 48px var(--space-5); }
  .contact-section .button { width: 100%; }

  footer { padding: var(--space-6) 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Dealer workflow and explicit contact fallback. */
[hidden] { display: none !important; }
.hero-copy, .workflow-grid > li { min-width: 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); padding: 0; margin: 0; list-style: none; }
.workflow-grid > li { padding: var(--space-5); border-radius: var(--radius-lg); }
.workflow-grid p, .audience-note { color: var(--text-soft); }
.workflow-grid p { margin-bottom: 0; }
.audience-note { margin: var(--space-5) 0 0; max-width: 850px; }
.contact-note a, .prose a { overflow-wrap: anywhere; }
.copy-email { margin-top: var(--space-4); background: transparent; color: var(--text); cursor: pointer; }
.contact-section .copy-status { min-height: 1.65em; margin: var(--space-2) 0 0; font-size: var(--fs-sm); }
@media (max-width: 860px) { .workflow-grid { grid-template-columns: 1fr; } }
