/* Business Master marketing site. Direction 3 "the blend": ink-navy, concrete-grey, amber for action. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-700.woff2") format("woff2");
}

:root {
  --ink-deep: #0d1729;
  --ink: #13213a;
  --ink-2: #1c2d4b;
  --ink-line: rgba(159, 176, 200, 0.22);
  --on-ink: #e9eef6;
  --on-ink-muted: #a3b3ca;
  --concrete: #eceff3;
  --concrete-2: #e2e6ec;
  --paper: #ffffff;
  --rule: #d3d9e1;
  --text: #13213a;
  --muted: #535e6e;
  --amber: #f5a400;
  --amber-hover: #ffb522;
  --amber-ink: #3a2700;
  --amber-soft: #fff4d6;

  /* Labour % bands: product rule, never restyled in meaning. */
  --band-green: #1f7a4d;
  --band-yellow: #b07b06;
  --band-orange: #c2560c;
  --band-red: #b42318;
  --band-green-ink: #46d08d;
  --band-yellow-ink: #f4c430;
  --band-orange-ink: #f59248;
  --band-red-ink: #ff6b5f;

  --focus: var(--ink);
  --display: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --radius: 10px;
  --shadow-lg: 0 30px 60px -20px rgba(4, 10, 24, 0.55), 0 12px 24px -12px rgba(4, 10, 24, 0.4);
  --shadow-md: 0 14px 30px -14px rgba(13, 23, 41, 0.35), 0 4px 10px -6px rgba(13, 23, 41, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--text);
  background: var(--concrete);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
img[hidden] { display: none; }
figure { margin: 0; }
figure, .shot, .phone { min-width: 0; }
.shot img { width: 100%; }
/* One-column layouts get a track that can shrink below an image's own width,
   so a slow or failed image can never push the page wider than the phone. */
.hero-grid, .split, .problem-intro, .field-grid, .owner-foot, .tabpanel, .exports, .setup, .vault, .enquire-grid, .meter, .proof, .flow { grid-template-columns: minmax(0, 1fr); }

/* A picture that would not load: a calm panel with a retry, never the browser's broken icon */
.img-missing {
  display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; min-height: 140px;
  padding: 20px; border: 0; border-radius: inherit; cursor: pointer; text-align: center;
  font: 500 0.95rem/1.4 var(--body); color: var(--muted); background: var(--concrete);
}
.img-missing svg { width: 28px; height: 28px; }
.img-missing:hover:not(:disabled) { color: var(--text); }
.img-missing:disabled { cursor: progress; }
.phone .img-missing { color: var(--on-ink-muted); background: #0b1322; border-radius: 25px; }
.phone .img-missing:hover:not(:disabled) { color: #fff; }
.hero-shot .img-missing { background: var(--ink-2); color: var(--on-ink-muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
.num, [data-figure] { font-variant-numeric: tabular-nums lining-nums; }

/* Browser surfaces carry the palette */
::selection { background: rgba(245, 164, 0, 0.38); color: inherit; }
input, textarea, select { caret-color: var(--amber); accent-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-ink { --focus: var(--amber); }
html { scrollbar-color: #9aa4b4 var(--concrete-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--concrete-2); }
::-webkit-scrollbar-thumb { background: #9aa4b4; border-radius: 8px; border: 2px solid var(--concrete-2); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  font: 600 1.0625rem/1 var(--display); letter-spacing: 0.01em;
  border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 6px 16px -8px rgba(245, 164, 0, 0.8); }
.btn-amber:hover { background: var(--amber-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: rgba(233, 238, 246, 0.38); }
.btn-ghost:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); text-decoration: none; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.65; cursor: progress; }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-deep); color: var(--on-ink);
  border-bottom: 1px solid var(--ink-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; min-width: 0; }
.brand:hover { text-decoration: none; }
.logo { width: 42px; height: 42px; padding: 3px; background: #33415a; border-radius: 9px; flex: none; }
.logo img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.brand-name { display: block; font: 700 1.125rem/1.1 var(--body); letter-spacing: -0.005em; white-space: nowrap; }
.brand-sub { display: block; font-size: 0.78rem; line-height: 1.3; color: #8fb0e2; white-space: nowrap; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 0.95rem; color: var(--on-ink-muted); text-decoration: none; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.header-cta { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  background: transparent; color: #fff; border: 1px solid var(--ink-line); border-radius: 8px; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .close-ico { display: none; }
.nav-open .menu-btn .open-ico { display: none; }
.nav-open .menu-btn .close-ico { display: block; }
.nav-open .nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink-deep); border-bottom: 1px solid var(--ink-line); padding: 8px var(--gutter) 20px;
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
}
.nav-open .nav ul { flex-direction: column; }
.nav-open .nav a { padding: 14px 4px; font-size: 1.05rem; color: var(--on-ink); border-bottom: 1px solid var(--ink-line); border-radius: 0; }
.nav .nav-cta { margin-top: 14px; }
.nav .nav-cta a { display: inline-flex; color: var(--amber-ink); border: 0; padding: 0 22px; border-radius: 8px; }
.nav .nav-cta a:hover { background: var(--amber-hover); }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink-deep); color: var(--on-ink);
  padding: clamp(40px, 5vw, 60px) 0 0;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  /* Faint survey grid: the ledger paper the figures sit on */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(159, 176, 200, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(159, 176, 200, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.hero-grid { display: grid; gap: 40px; }
.hero h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
  line-height: 0.98; letter-spacing: -0.022em; color: #fff; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: #c9d4e4; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-dates { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 0.95rem; color: var(--on-ink-muted); }
.hero-dates span { display: inline-flex; align-items: center; gap: 8px; }
.hero-dates span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.hero-dates span + span::before { background: var(--on-ink-muted); }

.hero-shot { position: relative; }
.hero-shot .frame {
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}
/* On wide screens the screenshot runs off the right edge; on phones it stays inside the frame */
@media (min-width: 980px) {
  .hero-shot { margin-right: calc(-1 * var(--gutter)); }
  .hero-shot .frame { border-radius: 12px 0 0 12px; border-right: 0; }
}
.hero-shot figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--on-ink-muted); }

/* The ledger row lifted out of the app: crosses from the navy band into the page */
.ledger-wrap { position: relative; margin-top: clamp(40px, 5vw, 52px); }
.ledger-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--concrete); z-index: -1;
}
.ledger {
  position: relative; background: var(--paper); color: var(--text);
  border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--rule);
  padding: 18px 18px 20px;
}
.ledger-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.ledger-job { font: 600 1.05rem/1.25 var(--display); }
.ledger-job small { display: block; font: 400 0.82rem/1.4 var(--body); color: var(--muted); }
.ledger-tag { font-size: 0.8rem; color: var(--muted); }
.ledger-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.ledger-cell { padding: 14px 4px 12px; border-bottom: 1px solid var(--rule); min-width: 0; }
.ledger-cell:first-child { grid-column: 1 / -1; }
.ledger-cell:nth-child(2) { padding-right: 12px; border-right: 1px solid var(--rule); }
.ledger-cell:nth-child(3) { padding-left: 14px; }
.ledger-cell dt { font: 600 0.74rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger-cell dd { margin: 6px 0 0; font: 700 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1.05 var(--display); white-space: nowrap; }
.ledger-cell.is-earned dd { color: var(--band-green); }
.ledger-cell.is-wages dd { color: #9a5b00; }
.ledger-cell.is-labour { grid-column: 1 / -1; border-right: 0; padding-left: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ledger-cell.is-labour dd { color: var(--band-red); }
.ledger-op { display: none; }
.needs-you {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: #fde7e4; color: #8c1b12; font: 600 0.9rem/1 var(--display); white-space: nowrap;
}
.needs-you::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--band-red); }

.ruler { margin-top: 16px; }
.ruler-track { position: relative; height: 14px; border-radius: 4px; overflow: visible; display: flex; }
.ruler-track i { display: block; height: 100%; }
.ruler-track i:nth-child(1) { width: 50%; background: var(--band-green); border-radius: 4px 0 0 4px; }
.ruler-track i:nth-child(2) { width: 10%; background: var(--band-yellow); }
.ruler-track i:nth-child(3) { width: 10%; background: var(--band-orange); }
.ruler-track i:nth-child(4) { width: 30%; background: var(--band-red); border-radius: 0 4px 4px 0; }
.ruler-marker {
  position: absolute; top: -7px; left: var(--pos, 0%); width: 4px; height: 28px; margin-left: -2px;
  background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px #fff;
}
.ruler-marker::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font: 700 0.8rem/1 var(--display); color: var(--ink); white-space: nowrap;
  background: #fff; padding: 3px 6px; border-radius: 4px; box-shadow: 0 2px 6px rgba(13, 23, 41, 0.18);
}
.ruler-scale { position: relative; height: 20px; margin-top: 6px; font-size: 0.75rem; color: var(--muted); }
.ruler-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ruler-scale span:first-child { left: 0; transform: none; }
.ruler-scale span:last-child { left: 100%; transform: translateX(-100%); }
.ruler-scale .s25 { left: 50%; }
.ruler-scale .s30 { left: 60%; }
.ruler-scale .s35 { left: 70%; }

#ledger .ruler-marker, #m-marker { --pos: 88.8%; }
.ledger .needs-you { transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.ledger.is-armed .needs-you { opacity: 0; transform: translateY(4px); }

@media (min-width: 720px) {
  .ledger { padding: 22px 26px 24px; }
  .ledger-cells { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); }
  .ledger-cell, .ledger-cell:nth-child(2), .ledger-cell:nth-child(3) { padding: 16px 18px 14px; border-right: 1px solid var(--rule); border-bottom: 0; }
  .ledger-cell:first-child { grid-column: auto; padding-left: 0; }
  .ledger-cell.is-labour { grid-column: auto; border-right: 0; padding-right: 0; }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-ink { background: var(--ink-deep); color: var(--on-ink); }
.section-ink2 { background: var(--ink); color: var(--on-ink); }
.section-paper { background: var(--paper); }
.section h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); max-width: 18ch; }
.section-ink h2, .section-ink2 h2 { color: #fff; }
.lede { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 38em; }
.section-ink .lede, .section-ink2 .lede { color: #c2cee0; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 38em; }
.section-ink .prose, .section-ink2 .prose { color: #cfd9e8; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

/* ---------- Problem: the month as 30 days ---------- */
.problem-intro { display: grid; gap: 28px; }
@media (min-width: 960px) { .problem-intro { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: end; } }
.month { margin-top: clamp(40px, 6vw, 64px); background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(18px, 3vw, 32px); }
.month-row + .month-row { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--rule); }
.month-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.month-label strong { font: 700 1.125rem/1.2 var(--display); }
.month-label span { font-size: 0.9rem; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.days i { display: block; height: 34px; border-radius: 3px; background: var(--concrete-2); }
.days.excel i:last-child { background: var(--band-red); }
.days.bm i { background: var(--band-green); }
.days.bm i:nth-child(n+7) { background: var(--band-yellow); }
.days.bm i:nth-child(n+9) { background: var(--band-orange); }
.days.bm i:nth-child(n+10) { background: var(--band-red); }
.days-axis { position: relative; height: 22px; margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.days-axis span { position: absolute; top: 0; white-space: nowrap; }
.days-axis .a-start { left: 0; }
.days-axis .a-end { right: 0; }
.days-note { position: relative; margin-top: 10px; font: 600 0.95rem/1.35 var(--display); display: flex; gap: 10px; align-items: flex-start; }
.days-note::before { content: ""; flex: none; width: 2px; height: 1.35em; background: currentColor; }
.days-note.n-excel { justify-content: flex-end; text-align: right; color: var(--band-red); }
.days-note.n-excel::before { order: 2; }
.days-note.n-bm { color: var(--band-red); margin-left: calc(9 / 30 * 100%); }
.month-foot { margin-top: 20px; font-size: 0.82rem; color: var(--muted); }

/* ---------- The meter (signature interaction) ---------- */
.meter {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; gap: 0; background: var(--ink); color: var(--on-ink);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md);
}
.meter-copy { padding: clamp(24px, 4vw, 44px); }
.meter-copy h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: #fff; }
.meter-copy p { margin-top: 14px; color: #c2cee0; max-width: 32em; }
.formula { margin-top: 22px; font: 600 1.05rem/1.4 var(--display); color: #fff; }
.formula b { color: var(--amber); font-weight: 700; }
.meter-ctl { padding: clamp(24px, 4vw, 44px); background: var(--ink-deep); border-top: 1px solid var(--ink-line); }
.slider + .slider { margin-top: 26px; }
.slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; color: #dfe6f1; }
.slider output { font: 700 1.35rem/1 var(--display); color: #fff; }
.slider input[type="range"] { width: 100%; margin: 14px 0 0; height: 32px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--amber) var(--fill, 50%), rgba(255, 255, 255, 0.18) var(--fill, 50%)); }
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--amber); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.slider input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); }
.slider input[type="range"]:focus-visible { outline-offset: 4px; }
.readout { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ink-line); display: grid; gap: 6px; }
.readout-pct { font: 700 clamp(3rem, 2.2rem + 3vw, 4.6rem)/0.95 var(--display); letter-spacing: -0.02em; transition: color 200ms linear; }
.readout-pct[data-band="green"] { color: var(--band-green-ink); }
.readout-pct[data-band="yellow"] { color: var(--band-yellow-ink); }
.readout-pct[data-band="orange"] { color: var(--band-orange-ink); }
.readout-pct[data-band="red"], .readout-pct[data-band="none"] { color: var(--band-red-ink); }
.readout-verdict { font: 600 1.1rem/1.35 var(--display); color: #fff; min-height: 1.35em; }
.readout-hint { font-size: 0.95rem; color: #b6c3d6; min-height: 3em; }
.meter .ruler { margin-top: 18px; }
.meter .ruler-marker { background: #fff; box-shadow: 0 0 0 2px var(--ink-deep); transition: left 260ms var(--ease-out); }
.meter .ruler-marker::after { display: none; }
.meter .ruler-scale { color: var(--on-ink-muted); }
.meter-note { margin-top: 18px; font-size: 0.82rem; color: var(--on-ink-muted); }
@media (min-width: 960px) {
  .meter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .meter-ctl { border-top: 0; border-left: 1px solid var(--ink-line); }
}

/* ---------- How it works: quote → site → dashboard ---------- */
.flow { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 0; counter-reset: step; list-style: none; padding: 0; }
.flow li { position: relative; padding: 0 0 44px 64px; }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: var(--amber-ink);
  font: 700 1.25rem/1 var(--display);
}
.flow li::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--rule); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); padding-top: 4px; }
.flow h3 small { display: block; margin-top: 6px; font: 500 0.95rem/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.flow p { margin-top: 12px; color: var(--muted); max-width: 30em; }
.flow figure { margin: 22px 0 0; }
.shot {
  border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: #fff;
  box-shadow: 0 12px 28px -18px rgba(13, 23, 41, 0.45);
}
.flow figcaption, .cap { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
/* Phones: the screenshot uses the full width under the step number, the text stays indented */
@media (max-width: 959px) {
  .flow figure { position: relative; z-index: 1; margin-left: -64px; }
  .flow figcaption { padding-left: 64px; }
}
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .flow li { padding: 68px 0 0; }
  .flow li::after { left: 56px; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flow li:last-child::after { display: none; }
}

/* ---------- Field app ---------- */
.field-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .field-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.dayrail { list-style: none; margin: 34px 0 0; padding: 0; }
.dayrail li { position: relative; padding: 0 0 26px 58px; }
.dayrail li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 2px; background: var(--ink-line); }
.dayrail li:last-child::after { display: none; }
.dayrail .dot {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.1rem/1 var(--display);
  background: var(--ink-2); color: #fff; border: 2px solid rgba(159, 176, 200, 0.4);
}
.dayrail li:nth-child(2) .dot { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.dayrail h3 { font-size: 1.35rem; color: #fff; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.dayrail .date { font: 600 0.82rem/1 var(--display); letter-spacing: 0.04em; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #dbe4f1; }
.dayrail p { margin-top: 8px; color: #c2cee0; max-width: 30em; }
.field-points { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--ink-line); display: grid; gap: 14px; }
.field-points li { display: flex; gap: 12px; color: #cfd9e8; }
.field-points svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--amber); }

.phone {
  position: relative; width: 100%; max-width: 330px; margin-inline: auto;
  border-radius: 38px; padding: 10px; background: #050a14;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 29px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.phone-cap { margin-top: 16px; text-align: center; font-size: 0.88rem; color: var(--on-ink-muted); }

.phones {
  margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 20px;
  grid-auto-flow: column; grid-auto-columns: minmax(230px, 72%);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-color: rgba(159, 176, 200, 0.4) transparent;
}
.phones figure { scroll-snap-align: start; }
.phones figure { margin: 0; }
.phones .phone { max-width: 260px; border-radius: 32px; padding: 8px; }
.phones .phone img { border-radius: 25px; }
.phones figcaption { margin: 18px auto 0; max-width: 300px; text-align: center; font-size: 0.95rem; color: #c2cee0; }
.phones figcaption strong { display: block; color: #fff; font: 600 1.1rem/1.3 var(--display); margin-bottom: 4px; }
.phones-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.phones-pager .pg {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid var(--ink-line); border-radius: 50%;
  transition: border-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.phones-pager .pg svg { width: 20px; height: 20px; }
.phones-pager .pg:hover:not(:disabled) { border-color: var(--on-ink); }
.phones-pager .pg:disabled { opacity: 0.3; cursor: default; }
.phones-dots { display: flex; gap: 2px; }
.phones-dots button { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.phones-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(159, 176, 200, 0.4); transition: width 220ms var(--ease-out), background-color 220ms var(--ease-out); }
.phones-dots button[aria-current="true"]::before { width: 22px; background: var(--amber); }
@media (min-width: 1080px) {
  .phones { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; overflow: visible; margin-inline: 0; padding: 0; }
  .phones-pager { display: none; }
}

/* ---------- Owner's view ---------- */
.band-shot { margin-top: clamp(36px, 5vw, 56px); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid #0b1424; background: var(--ink-deep); }
.band-key { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 20px; list-style: none; padding: 0; }
.band-key li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); font-size: 0.9rem; }
.band-key li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.band-key .g { --c: var(--band-green); }
.band-key .y { --c: var(--band-yellow); }
.band-key .o { --c: var(--band-orange); }
.band-key .r { --c: var(--band-red); }
.owner-list { margin: clamp(40px, 6vw, 64px) 0 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.owner-list > div { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.owner-list dt { font: 700 1.25rem/1.2 var(--display); }
.owner-list dd { margin: 0; color: var(--muted); max-width: 36em; }
@media (min-width: 760px) {
  .owner-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .owner-list > div { grid-template-columns: 1fr; }
}
.owner-foot { display: grid; gap: 32px; margin-top: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .owner-foot { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }

/* ---------- Reports: tabs ---------- */
.tabs { margin-top: clamp(36px, 5vw, 56px); }
.tablist { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; border-bottom: 1px solid var(--rule); }
.tab {
  flex: none; appearance: none; background: transparent; border: 0; border-bottom: 3px solid transparent;
  padding: 12px 14px 11px; margin-bottom: -1px; cursor: pointer;
  font: 600 1.02rem/1.2 var(--display); color: var(--muted); border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--text); background: var(--concrete); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--amber); }
.tabpanels { display: grid; }
.tabpanel { grid-area: 1 / 1; display: grid; gap: 24px; padding-top: 28px; }
.tabpanel[hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; }
.tabpanel:not([hidden]) { animation: fadein 320ms var(--ease-out); }
.tabpanel h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.tabpanel p { color: var(--muted); max-width: 32em; margin-top: 10px; }
.tabpanel .shot { aspect-ratio: 1184 / 1022; }
@media (min-width: 960px) { .tabpanel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; } }
/* Phones: four report names as a 2 x 2 choice instead of a strip that scrolls off the edge */
@media (max-width: 639px) {
  .tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; border-bottom: 0; padding: 0; }
  .tab { display: grid; place-items: center; min-height: 54px; margin: 0; padding: 10px; text-align: center; font-size: 0.98rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
  .tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
  .tabpanel { padding-top: 22px; }
}
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.exports { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 32px; align-items: center; }
.exports h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.exports p { margin-top: 12px; color: var(--muted); max-width: 32em; }
.pdfs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pdfs .shot { aspect-ratio: 1287 / 910; }
@media (min-width: 640px) { .pdfs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .exports { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }

/* ---------- Setup ---------- */
.setup { display: grid; gap: 40px; align-items: center; }
.setup-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.setup-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.setup-list strong { display: block; font: 700 1.15rem/1.3 var(--display); }
.setup-list span { color: var(--muted); }
@media (min-width: 960px) { .setup { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }

/* ---------- Privacy ---------- */
.vault { display: grid; gap: 40px; }
.vault-copies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.copy {
  position: relative; border: 1px solid var(--ink-line); border-radius: 10px; padding: 14px 12px 12px;
  background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 14px;
}
.copy div { display: grid; gap: 3px; }
.copy b { font: 600 clamp(0.88rem, 0.8rem + 0.3vw, 1rem)/1.2 var(--display); color: #fff; }
.copy span { font-size: 0.82rem; line-height: 1.3; color: var(--on-ink-muted); }
.copy svg { width: 22px; height: 22px; flex: none; color: var(--amber); }
/* Phones: three narrow boxes become three readable rows */
@media (max-width: 559px) {
  .vault-copies { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
  .copy { flex-direction: row; align-items: center; padding: 14px 16px; }
  .copy div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .copy b { font-size: 1.05rem; }
  .copy span { font-size: 0.92rem; }
}
.copy.you { border-color: var(--amber); background: rgba(245, 164, 0, 0.08); }
.vault-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.vault-facts li { padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.vault-facts strong { display: block; font: 700 1.2rem/1.3 var(--display); color: #fff; }
.vault-facts span { display: block; margin-top: 4px; color: #c2cee0; }
@media (min-width: 960px) { .vault { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }

/* ---------- First customer + founding price ---------- */
.proof { display: grid; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); box-shadow: var(--shadow-md); }
.proof > div { padding: clamp(28px, 4vw, 48px); }
.proof h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
.proof p { margin-top: 16px; color: var(--muted); max-width: 32em; }
.proof .price { background: var(--amber-soft); border-top: 1px solid #f2dca0; }
.proof .price h2 { color: var(--amber-ink); }
.proof .price p { color: #5a4300; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(58, 39, 0, 0.18); }
.timeline time { font: 700 1.05rem/1.3 var(--display); color: var(--amber-ink); }
.timeline span { color: #5a4300; }
.proof .btn { margin-top: 26px; }
@media (min-width: 960px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof .price { border-top: 0; border-left: 1px solid #f2dca0; }
}
@media (max-width: 420px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(32px, 5vw, 48px); border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; font: 600 1.2rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform 220ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--text); }
.faq summary:hover { color: #000; }
.faq .answer { padding: 0 2px 22px; color: var(--muted); max-width: 44em; }
.faq .answer p + p { margin-top: 0.8em; }

/* ---------- Enquiry forms ---------- */
.enquire-grid { display: grid; gap: 24px; margin-top: clamp(36px, 5vw, 56px); align-items: start; }
@media (min-width: 1000px) { .enquire-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; } }
.form-card { position: relative; background: var(--paper); color: var(--text); border-radius: 14px; padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-lg); --focus: var(--ink); }
.form-card.alt { background: var(--concrete); }
.form-card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-card form { margin-top: 22px; }
.fields { display: grid; gap: 4px 18px; }
@media (min-width: 640px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.4 var(--body); color: var(--text);
  background: #fff; border: 1px solid #a9b3c1; border-radius: 8px;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2313213a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7686; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #7d899b; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--band-red); box-shadow: 0 0 0 1px var(--band-red); }
.err { display: flex; align-items: flex-start; gap: 6px; min-height: 1.5rem; padding-top: 4px; font-size: 0.88rem; line-height: 1.35; color: var(--band-red); }
.err:empty::before { content: ""; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 10px; }
.form-actions small { color: var(--muted); font-size: 0.85rem; max-width: 30em; }
.form-status { min-height: 1.5rem; margin-top: 14px; font-size: 0.95rem; }
.form-status.is-error { color: var(--band-red); }
.form-status.is-fallback { color: var(--text); background: var(--amber-soft); border: 1px solid #f2dca0; border-radius: 8px; padding: 12px 14px; }
.form-status a { font-weight: 600; }
.form-done {
  position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 12px;
  padding: clamp(22px, 3.5vw, 40px); background: inherit; border-radius: 14px;
}
.form-card.is-done .form-done { display: flex; animation: fadein 360ms var(--ease-out); }
.form-card.is-done > :not(.form-done) { visibility: hidden; }
.form-done svg { width: 44px; height: 44px; color: var(--band-green); }
.form-done h3 { font-size: 1.9rem; }
.form-done p { color: var(--muted); max-width: 30em; }
.direct { margin-top: 28px; color: #c2cee0; }
.direct a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #091120; color: var(--on-ink-muted); padding: 48px 0 40px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid .brand { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #dbe4f1; }
.footer-small { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.85rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: auto 1fr; align-items: center; } .footer-links { justify-content: flex-end; } }

/* ---------- Simple pages (privacy, 404) ---------- */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem); }
.doc .meta { margin-top: 14px; color: var(--muted); }
.doc .notice { margin-top: 24px; padding: 16px 18px; background: var(--amber-soft); border: 1px solid #f2dca0; border-radius: 10px; color: #4a3600; }
.doc h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); margin-top: 44px; max-width: none; }
.doc p, .doc li { color: #2f3a4b; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.lost { min-height: calc(100vh - 68px - 160px); display: grid; align-items: center; }
.lost .big { font: 700 clamp(5rem, 3rem + 10vw, 9rem)/0.9 var(--display); color: var(--band-red); letter-spacing: -0.03em; }
.lost p { margin-top: 18px; color: var(--muted); max-width: 32em; }
.lost .hero-actions .btn-ghost { color: var(--text); border-color: #a9b3c1; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
