/* JobTraveler landing page — brand palette from design/brand-kit/Brand-Guide.txt */

:root {
  --forest: #0F4434;
  --forest-dark: #0A2F24;
  --sage: #779B88;
  --sage-tint: #E3ECE6;
  --gold: #C6A15B;
  --ink: #202B36;
  --ink-soft: #3C4852;
  --muted: #5B6670;
  --ground: #F4F6F8;
  --line: #D9E0E4;
  --line-soft: #E1E6EA;
  --white: #FFFFFF;
  --danger: #9A3B1E;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-dark); }
::selection { background: var(--sage-tint); color: var(--forest-dark); }
html { accent-color: var(--forest); scrollbar-color: var(--sage) transparent; }
.num, .mono, .facts strong, .sheet__meta strong { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--forest); color: var(--white);
  padding: 10px 14px; border-radius: 6px; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--font-mono); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--forest); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow--dash::before {
  content: ""; display: inline-block; width: 28px; height: 3px;
  background: var(--gold); border-radius: 2px;
}
h1, h2, h3 { margin: 0; color: var(--forest); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; text-wrap: balance; }
h1 { text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: 0; color: var(--ink); }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.lead--xl { font-size: 20px; max-width: 560px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.only-narrow { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 6px;
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 120ms, border-color 120ms;
}
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--primary { background: var(--forest); color: var(--white); }
.btn--primary:hover { background: var(--forest-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--sage-tint); color: var(--forest); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: var(--sage-tint); color: var(--forest); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn--demo { background: var(--white); color: var(--forest); border-color: #B9CBC1; font-size: 14px; min-height: 44px; }
.btn--demo:hover { border-color: var(--forest); }
.btn--demo:disabled { color: #8A949C; border-color: var(--line-soft); background: var(--ground); cursor: not-allowed; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); background: var(--white); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; flex: 1 1 320px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 9px; border-radius: 6px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--ground); color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-nav .nav-signin { display: none; }

/* Sections */
.section { padding: 96px 0; }
.section--ground { background: var(--ground); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--forest { background: var(--forest); color: var(--white); }
.section--forest h2 { color: var(--white); }
.section--forest .eyebrow { color: var(--gold); }
.section--forest .lead { color: #C9D6CE; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split__copy { display: flex; flex-direction: column; gap: 18px; }
.split__visual { display: flex; justify-content: center; }

/* Hero */
.hero { background: var(--ground); border-bottom: 1px solid var(--line-soft); padding: 88px 0 80px; }
.hero .split__copy { gap: 24px; flex: 1 1 460px; }
.hero__sub { max-width: 560px; margin-top: -8px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 28px; margin: 8px 0 0; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { color: var(--forest); flex: 0 0 auto; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* Job line card (hero + demo) */
.jobcard { width: 100%; max-width: 520px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(15,68,52,0.35); }
.jobcard__head {
  background: var(--forest); color: var(--white); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.jobcard__label { display: flex; flex-direction: column; gap: 2px; }
.jobcard__label small { font-size: 12px; color: #C9D6CE; letter-spacing: 0.06em; text-transform: uppercase; }
.jobcard__label strong { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }
.jobcard__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.jobcard__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; font-size: 14px; }
.jobcard__meta div { display: flex; flex-direction: column; gap: 2px; }
.jobcard__meta small { color: var(--muted); font-size: 12px; }
.jobcard__meta strong { font-weight: 600; }
.jobcard__section { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 12px;
}
.status--solid { background: var(--forest); color: var(--white); border-color: var(--forest); padding: 8px 14px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fact { background: var(--ground); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.fact small { font-size: 11px; color: var(--ink-soft); }
.fact strong { font-weight: 600; font-size: 15px; color: var(--muted); }
.fact--on { background: var(--sage-tint); }
.fact--on strong { color: var(--forest); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--forest); color: var(--forest); border-radius: 6px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.tag { font-size: 12px; font-weight: 600; color: var(--forest); background: var(--sage-tint); border-radius: 999px; padding: 3px 10px; }

/* Workflow: traveller rail, route sheet, timeline */
.rail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.rail li {
  flex: 1 1 150px; min-width: 0; min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 10px 22px 10px 32px; color: var(--white); background: var(--forest);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
.rail li:first-child { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); padding-left: 22px; }
.rail li:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); }
.rail__meta { font: 500 12px/1 var(--font-mono); opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.rail strong { font-size: 16px; line-height: 1.2; }
.rail .rail--shop { background: #4F7A63; }
.rail .rail--money { background: var(--gold); color: var(--ink); }
.rail-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.rail-legend li { display: inline-flex; align-items: center; gap: 6px; }

.sheet {
  position: relative; width: 100%; max-width: 520px; background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 22px 24px; font-size: 13px; box-shadow: 0 24px 48px -28px rgba(15,68,52,0.45);
}
.sheet__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.sheet__title { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sheet__ref { font: 500 26px/1.1 var(--font-mono); color: var(--ink); }
.sheet__barcode { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 11px var(--font-mono); color: var(--muted); }
.barcode {
  height: 38px; width: 124px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px, var(--ink) 13px 14px, transparent 14px 17px);
}
.sheet__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.sheet__meta small { display: block; color: var(--muted); font-size: 11px; }
.sheet__meta strong { font-weight: 600; }
.sheet__scope { margin: 0 0 12px; padding: 10px 12px; background: var(--ground); border-radius: 4px; color: var(--ink-soft); }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { white-space: nowrap; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--ink); font-weight: 600; }
.sheet td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sheet .num { text-align: right; font-family: var(--font-mono); }
.op { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.op svg { flex: 0 0 auto; }
.op--done { color: #15803D; }
.op--run { color: var(--forest); }
.op--todo { color: var(--muted); }
.sheet__foot { margin-top: 12px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; padding: 0 0 22px 36px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 3px var(--white); }
.timeline .tl--shop::after { background: #4F7A63; }
.timeline .tl--money::after { background: var(--gold); }
.timeline h3 { font-size: 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline h3 .tag { font-size: 12px; }
.timeline p { margin: 4px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ground); color: var(--ink-soft); border: 1px solid var(--line-soft); }
.tl-chip svg { color: var(--forest); }
.tl-chip--status { font-family: var(--font-mono); background: var(--sage-tint); color: var(--forest); border-color: transparent; }

/* Workflow steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--forest); }
.step--sage { border-top-color: var(--sage); }
.step--gold { border-top-color: var(--gold); }
.step__row { display: flex; justify-content: space-between; align-items: baseline; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.step--dark { background: var(--forest); color: var(--white); border-radius: var(--radius); border: 0; justify-content: center; }
.step--dark h3 { color: var(--white); }
.step--dark p { color: #C9D6CE; }

/* Status demo */
.rules {
  margin: 8px 0 0; padding: 18px 20px; background: var(--forest); color: var(--sage-tint);
  border-radius: var(--radius); font-size: 13px; line-height: 1.6; overflow-x: auto; font-family: var(--font-mono);
}
.demo { padding: 24px; display: flex; flex-direction: column; gap: 20px; flex: 1 1 440px; }
.demo__head .jobcard__label small { color: var(--muted); }
.demo__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.trail { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.trail li { font-family: var(--font-mono); font-size: 12px; padding: 5px 9px; border-radius: 4px; background: var(--ground); color: var(--muted); }
.trail li[aria-current="step"] { background: var(--forest); color: var(--white); }
.demo__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.demo__hint { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); min-height: 2.6em; }

/* Charts (sankey) */
.h2--sm { font-size: clamp(26px, 2.6vw, 32px); }
.chart { margin: 0; padding: 0; overflow: hidden; width: 100%; }
.chart__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.chart__title { display: flex; flex-direction: column; gap: 2px; }
.chart__title strong { color: var(--forest); }
.chart__crumb { color: var(--muted); font-size: 13px; }
.chart__legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.chart__plot { padding: 16px 20px 8px; }
.chart__plot svg { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.chart__plot--wide { overflow-x: auto; }
.chart__plot--wide svg { min-width: 760px; }
.chart__plot--money { overflow-x: auto; }
.chart__plot--money svg { min-width: 520px; }
.chart__table { padding: 8px 20px 16px; font-size: 14px; }

/* BOM model: the recording stays at its own 800px so the app's text is readable, with a pause for WCAG 2.2.2 */
.bom > .bom__figure { flex: 2 1 560px; max-width: 802px; }
.bom > .bom__facts { flex: 1 1 280px; grid-template-columns: 1fr; gap: 28px; }
.bom__media img { display: block; width: 100%; height: auto; }
.bom__toggle { gap: 8px; }
.bom__toggle .bom__icon-play, .bom__toggle[aria-pressed="true"] .bom__icon-pause { display: none; }
.bom__toggle[aria-pressed="true"] .bom__icon-play { display: inline; }

/* Price rules: a live simulation of one rule, its matched cell and rows lit */
.price { margin: 0; overflow: hidden; }
.price__body { display: flex; flex-wrap: wrap; }
.price__input { flex: 0 1 400px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--line-soft); }
.price__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.price__fields .field input, .price__fields .field select { min-height: 44px; padding: 8px 12px; }
.price__result { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.price__total { display: flex; flex-direction: column; gap: 2px; }
.price__total strong { font-size: 40px; line-height: 1.1; font-weight: 500; color: var(--forest); font-variant-numeric: tabular-nums; }
.price__total span:last-child { color: var(--muted); font-size: 14px; }
.price__refused { margin: 0; padding: 12px 14px; border-radius: 8px; background: #FBE9E4; color: var(--danger); font-weight: 600; font-size: 14px; line-height: 1.45; }
.price__breakdown { border-collapse: collapse; width: 100%; font-size: 14px; }
.price__breakdown caption { text-align: left; padding-bottom: 6px; }
.price__breakdown th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.price__breakdown td { text-align: right; font-family: var(--font-mono); padding: 7px 0 7px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.price__steps { flex: 1 1 480px; min-width: 0; margin: 0; padding: 24px; list-style: none; display: flex; flex-direction: column; gap: 24px; background: var(--ground); }
.price__step { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.price__step strong { color: var(--ink); }
.price__step .mono { margin-left: auto; font-size: 12px; color: var(--muted); }
.price__num { width: 24px; height: 24px; border-radius: 50%; background: var(--forest); color: var(--white); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.price__note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.price__scroll { margin-top: 10px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.price__grid, .price__rows { border-collapse: collapse; width: 100%; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.price__grid th, .price__grid td, .price__rows th, .price__rows td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.price__grid thead th, .price__rows thead th { font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--ground); }
.price__grid tbody th { color: var(--muted); font-weight: 500; }
.price__grid tbody tr:last-child > *, .price__rows tbody tr:last-child > * { border-bottom: 0; }
.price__grid td, .price__grid thead th + th { text-align: right; }
.price__grid td { color: var(--ink-soft); }
.price__grid td.is-hit { background: var(--forest); color: var(--white); font-weight: 500; }
.price__grid th.is-axis { color: var(--forest); background: var(--sage-tint); }
.price__rows td { color: var(--ink-soft); }
.price__rows th, .price__rows td { padding: 7px 8px; font-size: 12.5px; }
.price__rows td:empty::after { content: "–"; color: #A7B0B6; }
.price__rows .price__out { border-left: 1px solid var(--line-soft); }
.price__rows thead .price__out { color: var(--forest); }
.price__rows tr.is-hit td { background: var(--sage-tint); color: var(--forest-dark); }
.price__rows tr.is-hit td:first-child { box-shadow: inset 3px 0 0 var(--forest); }
.price__rows td:first-child, .price__rows th:first-child { padding-left: 14px; }
.price__calc { margin: 10px 0 0; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink); overflow-x: auto; }
.ruled.ruled--price { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (max-width: 900px) {
  .price__input { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  .price__input, .price__steps { padding: 18px 16px; }
}
.chart__table summary { cursor: pointer; color: var(--forest); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.chart__table table { border-collapse: collapse; width: 100%; max-width: 560px; margin-top: 4px; }
.chart__table th, .chart__table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.chart__table th { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.chart__table .num { text-align: right; font-family: var(--font-mono); }

/* AI */
.tools { display: flex; flex-direction: column; gap: 12px; }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tools__list li { font: 500 13px/1 var(--font-mono); background: var(--sage-tint); color: var(--forest); border-radius: 999px; padding: 9px 14px; }

/* Ruled columns: modules, assistant notes, accounting trio */
.ruled { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.ruled > * { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.ruled h3 { display: flex; align-items: center; gap: 10px; }
.ruled h3 svg { color: var(--forest); flex: 0 0 auto; }
.ruled p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.ruled--ai { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ruled--ai code { font-size: 14px; color: var(--forest); background: var(--sage-tint); padding: 1px 6px; border-radius: 4px; }

/* Kiosk */
.kiosk-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.kiosk-list li { display: flex; gap: 12px; align-items: flex-start; }
.kiosk-list .mono { color: var(--gold); min-width: 84px; white-space: nowrap; }
.kiosk {
  width: 100%; max-width: 440px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.kiosk__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kiosk__top small { font-size: 13px; color: var(--muted); }
.kiosk__who { display: flex; flex-direction: column; gap: 4px; }
.kiosk__who strong { font-size: 26px; font-weight: 700; }
.kiosk__who span { font-size: 14px; color: var(--muted); }
.kiosk__running { background: var(--sage-tint); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kiosk__running .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kiosk__running .row strong { font-size: 13px; color: var(--forest); }
.kiosk__running .row .since { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--forest); }
.kiosk__running .mono { font-size: 22px; font-weight: 500; }
.kiosk__machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kiosk__machines .btn { min-height: 56px; font-size: 15px; }
.kiosk__note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Assistant */
.chat { width: 100%; max-width: 480px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--ground); }
.msg { max-width: 92%; padding: 14px 16px; font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.msg--user { align-self: flex-end; max-width: 85%; background: var(--forest); color: var(--white); border-radius: 14px 14px 4px 14px; padding: 12px 16px; }
.msg--bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
.msg__rows { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.msg__rows div { display: flex; justify-content: space-between; gap: 12px; }
.msg__rows span { color: var(--muted); text-align: right; }
.msg__rows a { white-space: nowrap; }
.msg__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.msg__actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.abilities { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.abilities li { display: flex; gap: 10px; }
.abilities strong { color: var(--forest); min-width: 72px; }
.note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Accounting trio */
.trio { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.trio > * { border-top: 2px solid var(--forest); gap: 14px; }
.trio h3 { display: block; font-size: 24px; line-height: 1.2; color: var(--forest); letter-spacing: -0.01em; text-wrap: balance; }
.trio h3 span { color: var(--ink); }
.trio p { font-size: 16px; }

/* CTA */
.section--cta { padding-top: 0; }
.cta {
  background: var(--forest); border-radius: 16px; padding: 56px 40px; color: var(--white);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta__copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 400px; min-width: 0; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3vw, 36px); }
.cta p { margin: 0; font-size: 17px; line-height: 1.5; color: #C9D6CE; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #C9D6CE; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; flex: 1 1 260px; min-width: 0; }
.site-footer__brand img { height: 36px; width: auto; display: block; align-self: flex-start; }
.site-footer__brand p { margin: 0; font-size: 14px; max-width: 360px; }
.site-footer nav { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer nav div { display: flex; flex-direction: column; gap: 10px; }
.site-footer nav span { font-size: 12px; font-weight: 600; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer nav a { color: #C9D6CE; text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: var(--white); }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer__bar .wrap { padding: 18px 24px; font-size: 13px; color: #8FA89A; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Request a demo form */
.hero--form { padding: 72px 0 96px; }
.h1--md { font-size: clamp(34px, 4vw, 48px); }
.form-card { width: 100%; max-width: 640px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field label, .field legend { font-weight: 600; font-size: 14px; color: var(--ink); padding: 0; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 11px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); outline: 3px solid rgba(15,68,52,0.18); outline-offset: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
/* Scoped under .field so these outrank the generic .field label / .field input rules above. */
.field .check { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px 0 12px; min-height: 44px; cursor: pointer; font-weight: 500; font-size: 14px; line-height: 1.2; }
.field .check:hover { border-color: var(--forest); }
.field .check input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; flex: none; accent-color: var(--forest); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-status--ok { padding: 14px 16px; border-radius: 8px; background: var(--sage-tint); color: var(--forest); font-weight: 600; }
.form-status--err { padding: 14px 16px; border-radius: 8px; background: #FBE9E4; color: var(--danger); font-weight: 600; }

/* Small screens */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0; }
  .split { gap: 40px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 40px 24px; }
  .site-header { position: static; }
  .site-header .wrap { gap: 12px 16px; }
  .site-nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; scrollbar-width: none; }
  .site-nav a { white-space: nowrap; }
  .header-actions { margin-left: auto; }
  .header-signin { display: none; }
  .site-nav .nav-signin { display: inline-flex; }
  .logo img { height: 30px; }
  .header-actions .btn { padding: 0 14px; }
  .ruled { gap: 32px; }
  .sheet { padding: 18px 14px; }
  .sheet th, .sheet td { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 900px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
