/* ───────────────────────────────────────────────────────────────────
   Crumb — marketing landing system
   Shared brand tokens + atoms for both layout directions.
   Lifted from the product (franchiseos.css / styles.css):
   indigo primary, warm orange brand accent, deep-navy ink,
   cool-slate canvas, Outfit + Geist Mono.
   ─────────────────────────────────────────────────────────────────── */

:root {
  /* brand */
  --indigo:      #4F46E5;
  --indigo-ink:  #3730A3;
  --indigo-soft: #EEEEFD;
  --orange:      #E76A3C;
  --orange-ink:  #C2410C;
  --orange-soft: #FBEDE6;

  /* ink + neutrals */
  --navy:    #1B193B;   /* sidebar / hero ink */
  --navy-2:  #15132E;
  --navy-3:  #0C0B1E;
  --ink:     #1B193B;
  --ink-2:   #3C3A57;
  --muted:   #6C6986;
  --muted-2: #9794AB;

  /* surfaces */
  --canvas:   #F1F2F7;
  --canvas-2: #E8E9F1;
  --surface:  #FFFFFF;
  --line:     #E3E2EC;
  --line-2:   #EDEDF3;

  /* status */
  --green:      #1F8A5B;
  --green-soft: #E2F2EA;
  --amber:      #B7791F;

  /* type */
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shape */
  --r-sm: 9px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1200px;

  /* elevation */
  --sh-sm: 0 1px 2px rgba(27,25,59,.06), 0 0 0 1px rgba(27,25,59,.04);
  --sh:    0 18px 40px -20px rgba(27,25,59,.28), 0 3px 10px rgba(27,25,59,.06);
  --sh-lg: 0 50px 90px -30px rgba(27,25,59,.40), 0 12px 30px rgba(27,25,59,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--orange); color: #fff; }

.tnum { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.display { letter-spacing: -0.03em; }

/* layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1320px; }
.section { padding: 104px 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow.on-dark { color: #A9AEF6; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--orange-ink); text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
.h-xl { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.h-md { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.lede { font-size: clamp(17px, 1.55vw, 21px); line-height: 1.55; color: var(--muted); font-weight: 400; }

.ink-orange { color: var(--orange); }
.ink-indigo { color: var(--indigo); }

/* underline accent on a word */
.mark {
  position: relative; white-space: nowrap;
}
.mark::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: 0.06em; height: 0.30em;
  background: var(--orange); opacity: 0.22; border-radius: 3px; z-index: -1;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 22px;
  border-radius: 11px; border: 1px solid transparent;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, background .14s, box-shadow .14s, border-color .14s, color .14s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn .ic { width: 17px; height: 17px; }

.btn-primary {
  background: var(--indigo); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px rgba(79,70,229,.65);
}
.btn-primary:hover { background: #4038d6; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 14px 30px -10px rgba(79,70,229,.7); }

.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 24px -10px rgba(231,106,60,.7);
}
.btn-orange:hover { background: #df5e30; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #d6d5e2; box-shadow: var(--sh-sm); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--indigo);
}
.arrow-link .ar { transition: transform .16s; }
.arrow-link:hover .ar { transform: translateX(4px); }

/* ── Top navigation ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 70px; display: flex; align-items: center;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nav-inner { display: flex; align-items: center; gap: 26px; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative;
  transition: color .14s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* brand lockup */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; letter-spacing: -0.04em;
  position: relative;
  box-shadow: 0 6px 16px -6px rgba(231,106,60,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.brand-mark::after {
  content: ""; position: absolute; top: 7px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; opacity: .9;
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.brand-name .pl { color: var(--muted-2); font-weight: 500; }

/* light nav skin (over light hero) */
.nav-light.scrolled { background: rgba(241,242,247,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-light .nav-links a { color: var(--ink-2); }


/* ── Pills / badges ────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--sh-sm); white-space: nowrap;
}
.pill .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px;
}
.tag-indigo { background: var(--indigo-soft); color: var(--indigo-ink); }
.tag-orange { background: var(--orange-soft); color: var(--orange-ink); }
.tag-green  { background: var(--green-soft);  color: var(--green); }

/* ── Feature icon chip ─────────────────────────────────────────────── */
.fchip {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); background: #fff; color: var(--indigo);
  box-shadow: var(--sh-sm);
}
.fchip svg { width: 23px; height: 23px; }
.fchip.orange { color: var(--orange); }
.fchip.green  { color: var(--green); }

/* ── Product mock UI (built from divs, echoes the real app) ────────── */
.appframe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.appframe-bar {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #FAFAFC;
}
.appframe-bar .dots { display: flex; gap: 7px; }
.appframe-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #DEDEE6; display: block; }
.appframe-url {
  margin: 0 auto; font-family: var(--mono); font-size: 12px; color: var(--muted-2);
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 14px; display: inline-flex; align-items: center; gap: 7px;
}
.appframe-url::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--orange); }

/* KPI tile */
.kpi {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 2.5px solid var(--indigo);
  border-radius: var(--r); padding: 16px 18px;
}
.kpi[data-tone="orange"] { border-top-color: var(--orange); }
.kpi[data-tone="green"]  { border-top-color: var(--green); }
.kpi[data-tone="indigo"] { border-top-color: var(--indigo); }
.kpi-eye { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kpi-val { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; margin-top: 7px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kpi-val .pence, .kpi-val .unit { color: var(--muted-2); font-weight: 500; font-size: 17px; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
.kpi-delta.pos { color: var(--green); }
.kpi-delta.neg { color: var(--orange-ink); }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* generic mini-card inside frames */
.mcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px;
}
.mcard-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mcard-t { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* invoice / supplier rows */
.vrow { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.vrow:last-child { border-bottom: 0; }
.vsq { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.vname { font-size: 13.5px; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vamt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }

/* mini bars row */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.bars .b { flex: 1; border-radius: 5px 5px 0 0; background: var(--indigo); opacity: .85; }
.bars .b.alt { background: var(--orange); }
.barlbls { display: flex; gap: 7px; margin-top: 6px; }
.barlbls span { flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); }

/* vat split row with progress */
.vat-line { display: grid; grid-template-columns: 96px 1fr 78px; align-items: center; gap: 12px; padding: 8px 0; }
.vat-bar { height: 7px; border-radius: 4px; background: var(--canvas-2); overflow: hidden; }
.vat-bar i { display: block; height: 100%; border-radius: 4px; }

/* simple legend */
.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend span i { width: 9px; height: 9px; border-radius: 3px; }

/* stat (big outcome numbers) */
.stat-n { font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stat-l { font-size: 14.5px; color: var(--muted); margin-top: 10px; max-width: 22ch; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 18px; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; background: var(--indigo); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.faq summary .pm::before { left: 4px; right: 4px; top: 12px; height: 2px; }
.faq summary .pm::after  { top: 4px; bottom: 4px; left: 12px; width: 2px; }
.faq details[open] summary .pm::after { transform: scaleY(0); opacity: 0; }
.faq details[open] summary { color: var(--indigo); }
.faq .answer { padding: 0 4px 26px; font-size: 16px; color: var(--muted); max-width: 70ch; line-height: 1.6; }

/* quote / form panel */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

/* footer */
.foot { background: var(--navy); color: rgba(255,255,255,.6); padding: 64px 0 40px; }
.foot a { color: rgba(255,255,255,.6); transition: color .14s; }
.foot a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { color: rgba(255,255,255,.4); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.foot-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 13px; color: rgba(255,255,255,.45); font-family: var(--mono);
}
.foot-disclaimer { margin-top: 18px; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.32); max-width: 90ch; }
.foot .brand-name { color: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ── Final polish pass ─────────────────────────────────────────────── */

/* hover micro-interactions */
.value, .step { transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s; }
.value:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #d9d8e6; }
.feat-media .appframe { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.feat-media:hover .appframe { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.kpi { transition: transform .18s, box-shadow .18s; }

/* keyboard focus — front-facing page, keep it accessible */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px;
}
.cta-left a:focus-visible { outline-color: #fff; }

/* LIVE pulse dot */
.led.live { animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,138,91,.45); }
  50%      { box-shadow: 0 0 0 5px rgba(31,138,91,0); }
}

/* "works with your stack" strip — centred, robust at any width */
.stackstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stackstrip-in { padding: 40px 0; text-align: center; }
.stackstrip .lead {
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.stackstrip .lead b { color: var(--ink-2); font-weight: 700; }
.ichips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ichip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  background: var(--canvas); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background .14s, border-color .14s, transform .14s, box-shadow .14s;
}
.ichip:hover { background: #fff; border-color: #d9d8e6; transform: translateY(-2px); box-shadow: var(--sh-sm); }
.ichip .gd {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
}
.ichip .gd svg { width: 15px; height: 15px; }

/* trust badges in footer */
.trustrow { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.trustrow span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.55); font-family: var(--mono); }
.trustrow span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5EE6A5; }

@media (max-width: 760px) {
  .stackstrip-in { padding: 32px 0; }
}

/* quote-form fallback note (no backend yet) */
.form-note {
  grid-column: 1 / -1;
  margin-top: 14px; padding: 13px 16px;
  background: var(--indigo-soft); border: 1px solid #DDDCF9; border-radius: 10px;
  font-size: 14px; color: var(--indigo-ink); line-height: 1.5;
}
.form-note a { font-weight: 600; text-decoration: underline; }

/* legal stub pages (privacy / terms) */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 10px; }
