/* CitySoft Mainline landing page - tokens from CITYSOFT_BRAND.md v1.0 */

:root {
  --cs-charcoal-50: #F2F2F2;
  --cs-charcoal-100: #E4E4E5;
  --cs-charcoal-200: #CACACB;
  --cs-charcoal-300: #A8A9AA;
  --cs-charcoal-400: #808182;
  --cs-charcoal-500: #58595B;
  --cs-charcoal-600: #4B4C4D;
  --cs-charcoal-700: #3C3D3E;
  --cs-charcoal-800: #2E2E2F;
  --cs-charcoal-900: #202021;
  --cs-orange-50: #FEF8ED;
  --cs-orange-100: #FDF1DC;
  --cs-orange-500: #F5A623;
  --cs-orange-600: #D08D1E;
  --cs-orange-800: #7F5612;

  --cs-bg: #FFFFFF;
  --cs-surface: #FFFFFF;
  --cs-surface-alt: var(--cs-charcoal-50);
  --cs-border: var(--cs-charcoal-200);
  --cs-text: var(--cs-charcoal-800);
  --cs-text-muted: var(--cs-charcoal-500);
  --cs-heading: var(--cs-charcoal-500);
  --cs-accent: var(--cs-orange-500);
  --cs-accent-hover: var(--cs-orange-600);
  --cs-accent-text: var(--cs-orange-800);
  --cs-accent-tint: var(--cs-orange-50);
  --cs-text-on-accent: #212121;
  --cs-header-bg: var(--cs-charcoal-500);
  --cs-focus: var(--cs-charcoal-800);
  --cs-shadow-md: 0 4px 12px rgba(33, 33, 33, 0.10);

  --cs-font-sans: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cs-font-mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, "Liberation Mono", monospace;

  --gutter: 16px;
  --max: 1200px;
  color-scheme: light dark;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cs-bg: #202021;
    --cs-surface: #2E2E2F;
    --cs-surface-alt: #2A2A2B;
    --cs-border: #4B4C4D;
    --cs-text: #F2F2F2;
    --cs-text-muted: #A8A9AA;
    --cs-heading: #F2F2F2;
    --cs-accent-text: #F7BB58;
    --cs-accent-tint: #3A3226;
    --cs-header-bg: #2E2E2F;
    --cs-focus: #F5A623;
    --cs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --cs-bg: #202021;
  --cs-surface: #2E2E2F;
  --cs-surface-alt: #2A2A2B;
  --cs-border: #4B4C4D;
  --cs-text: #F2F2F2;
  --cs-text-muted: #A8A9AA;
  --cs-heading: #F2F2F2;
  --cs-accent-text: #F7BB58;
  --cs-accent-tint: #3A3226;
  --cs-header-bg: #2E2E2F;
  --cs-focus: #F5A623;
  --cs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-text);
  font-family: var(--cs-font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cs-focus); outline-offset: 2px; }

h1, h2, h3 { color: var(--cs-heading); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--cs-accent); color: var(--cs-text-on-accent); padding: 8px 12px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* White in both themes: the logo file is for light backgrounds (brand guide 4.3) */
  background: #FFFFFF;
  border-bottom: 3px solid var(--cs-accent);
  --cs-focus: #2E2E2F;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: #2E2E2F; text-decoration: none; font-size: 1rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: #F5A623; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 4px;
  font: 700 1rem/1 var(--cs-font-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-sm { min-height: 36px; padding: 0 14px; }
.btn-primary { background: var(--cs-accent); color: var(--cs-text-on-accent); }
.btn-primary:hover { background: var(--cs-accent-hover); }
.btn-outline { background: transparent; color: var(--cs-text); border-color: var(--cs-charcoal-300); }
.btn-outline:hover { background: var(--cs-surface-alt); }

/* Section scaffolding */
section { padding: 72px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }
.alt { background: var(--cs-surface-alt); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2::before {
  content: ""; display: block; width: 32px; height: 5px; border-radius: 3px; background: var(--cs-accent); margin-bottom: 16px;
}
.section-head p { margin-top: 14px; color: var(--cs-text-muted); font-size: 1.125rem; max-width: 62ch; }

.eyebrow {
  font-size: 0.9375rem; font-weight: 700; color: var(--cs-accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--cs-accent); }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 1024px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 20px; font-size: 1.25rem; color: var(--cs-text-muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.shot {
  background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 8px;
  box-shadow: var(--cs-shadow-md); overflow: hidden;
}
.shot img { width: 100%; }
.hero-visual { position: relative; }
.hero-visual .shot-main { border-top: 4px solid var(--cs-accent); }
.hero-visual figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--cs-text-muted); }

/* Proof strip */
.proof { border-top: 1px solid var(--cs-border); border-bottom: 1px solid var(--cs-border); padding: 0; }
.proof-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-item { padding: 28px 24px 28px 0; }
@media (min-width: 640px) { .proof-item { padding: 32px 24px; border-left: 1px solid var(--cs-border); } .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (min-width: 1024px) { .proof-item:nth-child(odd) { border-left: 1px solid var(--cs-border); padding-left: 24px; } .proof-item:first-child { border-left: 0; padding-left: 0; } }
.proof-item + .proof-item { border-top: 1px solid var(--cs-border); }
@media (min-width: 640px) { .proof-item + .proof-item { border-top: 0; } .proof-item:nth-child(n+3) { border-top: 1px solid var(--cs-border); } }
@media (min-width: 1024px) { .proof-item:nth-child(n+3) { border-top: 0; } }
.proof-item strong { display: block; font-size: 1.25rem; color: var(--cs-heading); }
.proof-item .big { font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.proof-item span { color: var(--cs-text-muted); }

/* Compare usual vs mainline */
.compare { display: grid; gap: 16px; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { padding: 28px; border-radius: 6px; border: 1px solid var(--cs-border); background: var(--cs-surface); }
.compare-card.ours { border-top: 4px solid var(--cs-accent); background: var(--cs-accent-tint); border-color: transparent; }
.compare-card h3 { margin-bottom: 14px; }
.compare-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare-card li { display: flex; gap: 12px; align-items: baseline; }
.compare-card li::before { content: ""; flex: 0 0 auto; width: 12px; height: 2px; background: var(--cs-charcoal-300); transform: translateY(-4px); }
.compare-card.ours li::before { width: 10px; height: 10px; border-radius: 2px; background: var(--cs-accent); transform: translateY(0); }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 24px; background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 6px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px;
  background: var(--cs-accent); color: var(--cs-text-on-accent); font-weight: 700; margin-bottom: 16px;
}
.steps p { margin-top: 6px; color: var(--cs-text-muted); }

/* What we build */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 48px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 6px; background: var(--cs-surface-alt); border: 1px solid var(--cs-border); font-weight: 700; line-height: 1.25; }
.alt .tile { background: var(--cs-surface); }
.icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: var(--cs-accent-tint); color: var(--cs-accent-text); }
.icon svg { width: 20px; height: 20px; }

.gallery { display: grid; gap: 24px; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1fr 1.4fr; } }
.gallery figure { margin: 0; }
.gallery .row2 { display: grid; gap: 24px; }
@media (min-width: 900px) { .gallery .row2 { grid-column: 1 / -1; } .patterns { grid-template-columns: 1fr 1fr; gap: 32px; } }
.gallery .shot { padding: 16px; display: grid; place-items: center; }
.gallery .shot img { width: auto; max-width: 100%; }
.patterns { display: grid; gap: 20px; padding-top: 8px; }
.patterns h3 { font-size: 1.125rem; }
.patterns p { margin-top: 4px; color: var(--cs-text-muted); }
.gallery figcaption { margin-top: 12px; color: var(--cs-text-muted); font-size: 0.9375rem; }
.gallery figcaption strong { color: var(--cs-text); }
.gallery-note { margin-top: 20px; font-size: 0.875rem; color: var(--cs-text-muted); }

/* Comparison table */
.table-scroll { overflow-x: auto; border-radius: 6px; border: 1px solid var(--cs-border); }
.vs table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--cs-surface); }
.vs th, .vs td { text-align: left; padding: 16px 20px; vertical-align: top; }
.vs thead th { background: var(--cs-charcoal-500); color: #FFFFFF; font-size: 1rem; }
.vs thead th.ours { border-left: 4px solid var(--cs-accent); }
.vs tbody tr + tr th, .vs tbody tr + tr td { border-top: 1px solid var(--cs-border); }
.vs tbody th { font-weight: 700; color: var(--cs-heading); width: 22%; }
.vs tbody td { color: var(--cs-text-muted); }
.vs tbody td.ours { color: var(--cs-text); background: var(--cs-accent-tint); border-left: 4px solid var(--cs-accent); }
.callout {
  margin-top: 24px; padding: 22px 24px; border-radius: 6px; background: var(--cs-charcoal-500); color: #FFFFFF;
  font-size: 1.3125rem; font-weight: 700; line-height: 1.35;
}
.callout .ai { color: var(--cs-orange-500); }

/* Feature cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 24px; background: var(--cs-surface); border: 1px solid var(--cs-border); border-top: 3px solid var(--cs-accent); border-radius: 6px; }
.card .icon { margin-bottom: 16px; }
.card p { margin-top: 6px; color: var(--cs-text-muted); }

.paths { margin-top: 56px; display: grid; gap: 32px; }
@media (min-width: 1024px) { .paths { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; } }
.paths h3 { font-size: 1.375rem; }
.paths .intro p { margin-top: 12px; color: var(--cs-text-muted); }
.path-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cs-border); }
.path-list li { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--cs-border); }
.tag {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--cs-heading);
}
.tag::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; background: var(--cs-accent); }
@media (max-width: 479px) { .path-list li { grid-template-columns: 1fr; gap: 6px; } }
.path-list p { color: var(--cs-text-muted); }
.path-list strong { color: var(--cs-text); }

/* Delivery path */
.delivery { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .delivery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .delivery { grid-template-columns: repeat(4, 1fr); } }
.stage { padding-top: 16px; border-top: 2px solid var(--cs-border); }
.stage.has-gate { border-top-color: var(--cs-orange-500); }
.stage .num { font-size: 0.9375rem; font-weight: 700; color: var(--cs-text-muted); font-variant-numeric: tabular-nums; }
.stage h3 { margin-top: 4px; font-size: 1.125rem; }
.stage p { margin-top: 6px; color: var(--cs-text-muted); }
.stage .gate {
  display: block; margin-top: 12px;
  font-size: 0.9375rem; font-weight: 700; color: var(--cs-accent-text);
}
.stage .gate::before { content: ""; display: inline-block; margin-right: 8px; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent);  }
.stage .gate b { font-weight: 700; }
.stage .gate b::after { content: ": "; }
.delivery-note { margin-top: 24px; color: var(--cs-text-muted); max-width: 70ch; }

/* ERPs */
.erps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 24px; border: 1px solid var(--cs-border); border-radius: 6px; background: var(--cs-surface); }
.erps .label { font-size: 0.875rem; font-weight: 700; color: var(--cs-text-muted); margin-right: 8px; text-transform: uppercase; letter-spacing: 0.12em; }
.erp { padding: 8px 14px; border-radius: 4px; background: var(--cs-surface-alt); font-weight: 700; }
.erp.soon { background: transparent; border: 1px dashed var(--cs-charcoal-300); font-weight: 400; color: var(--cs-text-muted); }
.principles { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles h3 { font-size: 1.0625rem; }
.principles p { margin-top: 6px; color: var(--cs-text-muted); }

/* CTA */
.cta { background: var(--cs-charcoal-500); color: #FFFFFF; }
:root[data-theme="dark"] .cta { background: #2E2E2F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: #2E2E2F; } }
.cta-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr 1fr; } }
.cta h2 { color: #FFFFFF; }
.cta p { margin-top: 14px; color: var(--cs-charcoal-100); font-size: 1.125rem; max-width: 56ch; }
.contact { display: grid; gap: 12px; }
.contact a.line {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); color: #FFFFFF; text-decoration: none;
}
.contact a.line:hover { background: rgba(255, 255, 255, 0.12); }
.contact .line div span { display: block; font-size: 0.875rem; color: var(--cs-charcoal-200); }
.contact .line strong { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.contact .icon { background: var(--cs-orange-500); color: #212121; }

/* Footer */
.site-footer { background: #FFFFFF; border-top: 3px solid #F5A623; color: #58595B; padding: 40px 0; font-size: 0.9375rem; --cs-focus: #2E2E2F; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.site-footer img { height: 30px; width: auto; }
.site-footer a { color: #2E2E2F; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Comparison table stacks on phones */
@media (max-width: 639px) {
  .vs table { min-width: 0; }
  .vs thead { display: none; }
  .vs tbody tr { display: block; padding: 4px 0; }
  .vs tbody tr + tr { border-top: 1px solid var(--cs-border); }
  .vs tbody th, .vs tbody td { display: block; width: auto; border-top: 0 !important; padding: 8px 16px; }
  .vs tbody th { padding-top: 14px; }
  .vs tbody td::before { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--cs-text-muted); }
  .vs tbody td:not(.ours)::before { content: "AI chat tool app"; }
  .vs tbody td.ours::before { content: "CitySoft Mainline"; color: var(--cs-accent-text); }
  .vs tbody td.ours { margin: 0 16px 12px; border-left-width: 4px; border-radius: 0 4px 4px 0; }
}

/* Unslop pass: orange marks sign-off and the main action only */
.section-head h2::before, .eyebrow::before { content: none; }
.eyebrow { color: var(--cs-text-muted); }
.hero-visual .shot-main { border-top: 1px solid var(--cs-border); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 0.85fr 1.25fr; gap: 64px; } }

/* Steps match the delivery path; step 3 is the sign-off */
.steps { gap: 32px 24px; }
.steps li { padding: 16px 0 0; background: none; border: 0; border-radius: 0; border-top: 2px solid var(--cs-border); }
.steps li:nth-child(3) { border-top-color: var(--cs-orange-500); }
.steps li::before {
  display: block; width: auto; height: auto; margin-bottom: 4px; border-radius: 0; background: none;
  color: var(--cs-text-muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.125rem; }

/* Capabilities: one quiet row, no boxes */
.tiles { gap: 0 24px; border-top: 1px solid var(--cs-border); border-bottom: 1px solid var(--cs-border); }
.tile { padding: 16px 0; background: none; border: 0; border-radius: 0; gap: 10px; }
.tile .icon { width: auto; height: auto; background: none; color: var(--cs-text-muted); }

/* Security cards and data paths: neutral markers */
.card { border-top: 1px solid var(--cs-border); }
.card p { margin-top: 8px; }
.tag::before { content: none; }
.erps .label { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--cs-text-muted); }
.tiles .tile { background: none; }
.compare-card.ours { border-top-width: 1px; }
.compare-card.ours li::before { border-radius: 50%; width: 8px; height: 8px; transform: translateY(-1px); }

/* Moment 1: charcoal hero with a coded product view rising from the bottom edge */
.hero { background: var(--cs-charcoal-800); color: #F2F2F2; padding: 64px 0 0; overflow: hidden; }
.hero h1 { color: #FFFFFF; }
.hero .eyebrow { color: var(--cs-orange-500); }
.hero .lead { color: var(--cs-charcoal-200); }
.hero .btn-outline { color: #FFFFFF; border-color: var(--cs-charcoal-400); }
.hero .btn-outline:hover { background: var(--cs-charcoal-700); }
.hero-note { margin-top: 20px; font-size: 0.875rem; color: var(--cs-charcoal-300); }
.hero-copy { padding-bottom: 48px; }
.hero-grid { gap: 0; }
@media (min-width: 1024px) {
  .hero { padding-top: 88px; }
  .hero-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
  .hero-copy { padding-bottom: 88px; }
  .hero-visual { align-self: end; }
  .mock { width: 860px; }
}

.mock {
  background: #FFFFFF; color: #2E2E2F; border-radius: 10px 10px 0 0; overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 1.35;
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #E9E9EA; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9C9CB; }
.mock-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 4px; background: #FFFFFF; color: #808182; font-size: 11px; }
.mock-nav { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 20px; background: #1F4D2E; color: #CFE3D4; font-size: 12px; }
.mock-nav b { color: #FFFFFF; font-size: 15px; margin-right: 16px; }
.mock-nav em { font-style: normal; color: #E8B341; }
.mock-nav .on { color: #FFFFFF; box-shadow: inset 0 -2px 0 #E8B341; padding: 15px 0; }
.mock-nav .me { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mock-nav .me i { font-style: normal; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E8B341; color: #1F2A1F; font-size: 10px; font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 1fr 220px; gap: 16px; padding: 20px; background: #F4F5F3; }
.mock-main, .mock-side .panel { background: #FFFFFF; border: 1px solid #E2E4E0; border-radius: 6px; }
.mock-main { padding: 16px 16px 12px; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mock-head strong { display: block; font-size: 15px; }
.mock small { display: block; color: #808182; font-size: 11px; }
.live { flex: 0 0 auto; padding: 4px 10px; border-radius: 12px; background: #E6F2E9; color: #1F6B3A; font-size: 11px; font-weight: 700; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2E9E57; margin-right: 6px; vertical-align: 1px; }
.mock table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock th { text-align: left; font-size: 11px; font-weight: 400; color: #808182; padding: 6px 8px 6px 0; border-bottom: 1px solid #E2E4E0; }
.mock td { padding: 9px 8px 9px 0; border-bottom: 1px solid #EEF0EC; vertical-align: top; }
.mock .n { text-align: right; }
.mock td.ok { color: #1F6B3A; font-weight: 700; }
.mock td.low { color: #9A6510; font-weight: 700; }
.mock-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.mock-foot span:first-child { margin-right: auto; color: #808182; }
.mock-foot b { color: #2E2E2F; font-size: 15px; margin-left: 6px; }
.mock-foot .b1, .mock-foot .b2 { padding: 7px 12px; border-radius: 4px; font-weight: 700; font-size: 12px; }
.mock-foot .b1 { background: #1F4D2E; color: #FFFFFF; }
.mock-foot .b2 { border: 1px solid #C9CCC6; }
.mock-side { display: grid; gap: 16px; align-content: start; }
.mock-side .panel { padding: 14px; }
.mock-side strong { font-size: 13px; }
.credit { height: 6px; border-radius: 3px; background: #E2E4E0; margin: 10px 0 4px; }
.credit span { display: block; height: 100%; border-radius: 3px; background: #2E9E57; }
.mock dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; margin: 10px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.mock dt { color: #808182; }
.mock dd { margin: 0; text-align: right; font-weight: 700; }
.st { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: #FDF1DC; color: #7F5612; }
.st.d { background: #E6F2E9; color: #1F6B3A; }
@media (max-width: 1023px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } }
@media (max-width: 639px) {
  .mock { font-size: 12px; } .mock .hide-sm { display: none; } .mock-nav span:not(.on):not(.me) { display: none; }
  .mock-head { flex-direction: column; } .mock-body { padding: 12px; } .mock-foot .b2 { display: none; }
}

/* Moment 2: delivery path as a track, sign-off gates as orange nodes */
.delivery { gap: 16px; counter-reset: none; }
@media (min-width: 640px) { .delivery { gap: 20px; } }
.stage {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 20px 20px; border: 1px solid var(--cs-border); border-top: 4px solid var(--cs-charcoal-200);
  border-radius: 8px; background: var(--cs-surface);
}
.stage::before { content: none; }
.stage.has-gate { border-top-color: var(--cs-accent); background: var(--cs-accent-tint); border-color: var(--cs-orange-100); border-top-color: var(--cs-accent); }
.stage .num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--cs-surface-alt); border: 2px solid var(--cs-charcoal-300, var(--cs-border)); color: var(--cs-heading);
  font-size: 1rem;
}
.stage.has-gate .num { background: var(--cs-accent); border-color: var(--cs-accent); color: var(--cs-text-on-accent); }
.stage h3 { margin-top: 0; }
.stage .gate::before { content: none; }
.stage .gate {
  display: block; align-self: stretch; margin-top: auto; padding: 8px 12px; border-radius: 6px;
  background: var(--cs-surface); border: 1px solid var(--cs-orange-100); font-size: 0.875rem;
}
.stage p { margin-bottom: 16px; }
.stage .gate b { display: block; font-size: 0.75rem; letter-spacing: 0.02em; }
.stage .gate b::after { content: none; }
.stage:not(.has-gate) p { margin-bottom: 0; }
@media (min-width: 1024px) {
  .mock { font-size: 14px; }
  .mock td { padding: 13px 8px 13px 0; }
  .mock-body { padding: 24px; }
  .hero-visual { margin-bottom: -48px; }
}
@media (min-width: 1024px) { .hero-visual { align-self: center; margin: 0; } .hero-copy { padding-bottom: 0; } .hero { padding-bottom: 88px; } .mock { border-radius: 10px; } }

/* How it works: before/after cards and numbered step cards */
.compare { gap: 20px; }
.compare-card {
  padding: 32px; border-radius: 12px; border: 1px solid var(--cs-border);
  background: var(--cs-surface-alt);
}
.compare-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.compare-card:not(.ours) h3, .compare-card:not(.ours) li { color: var(--cs-text-muted); }
.compare-card ul { gap: 14px; }
.compare-card li { align-items: flex-start; gap: 14px; line-height: 1.45; }
.compare-card li::before {
  width: 22px; height: 22px; border-radius: 50%; transform: none; margin-top: 1px;
  background: var(--cs-charcoal-100) center / 10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23808182' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 2l6 6M8 2l-6 6'/%3E%3C/svg%3E");
}
.compare-card.ours {
  background: var(--cs-accent-tint); border: 1px solid var(--cs-orange-100);
  border-top: 4px solid var(--cs-accent); box-shadow: var(--cs-shadow-md);
}
.compare-card.ours li::before {
  width: 22px; height: 22px; border-radius: 50%; transform: none; background-color: var(--cs-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23212121' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.2l2.1 2.1L8 3'/%3E%3C/svg%3E");
}

.steps { margin-top: 40px; gap: 20px; }
.steps li, .steps li:nth-child(3) {
  position: relative; padding: 24px 20px 22px; background: var(--cs-surface);
  border: 1px solid var(--cs-border); border-top: 4px solid var(--cs-charcoal-200); border-radius: 12px;
}
.steps li:nth-child(3) { border-top-color: var(--cs-accent); background: var(--cs-accent-tint); border-color: var(--cs-orange-100); border-top-color: var(--cs-accent); }
.steps li::before {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--cs-surface-alt); border: 2px solid var(--cs-charcoal-300); color: var(--cs-heading);
  font-size: 1rem; font-weight: 700;
}
.steps li:nth-child(3)::before { background: var(--cs-accent); border-color: var(--cs-accent); color: var(--cs-text-on-accent); }
.steps h3 { font-size: 1.125rem; }
.steps p { margin-top: 8px; }

/* Site-wide polish: one card language (12px radius, soft border, orange for sign-off only) */
.section-head h2 + p { margin-top: 16px; }

/* Hero mockup fits its column instead of being clipped */
@media (min-width: 1024px) {
  .mock { width: 100%; }
  .mock-body { grid-template-columns: 1fr 190px; padding: 18px; gap: 14px; }
  .mock-nav { gap: 14px; padding: 0 16px; }
  .mock .hide-sm { display: table-cell; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .mock .hide-sm { display: none; } }

/* What we build */
.tiles { border-radius: 0; margin-bottom: 40px; }
.gallery { gap: 28px; align-items: start; }
.gallery .shot { border-radius: 12px; padding: 20px; background: var(--cs-surface); }
.gallery figcaption { margin-top: 14px; line-height: 1.5; }
.patterns { gap: 24px; padding: 28px; background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 12px; }
.patterns h3::before { content: ""; display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--cs-charcoal-300); margin-bottom: 12px; }

/* Comparison table */
.table-scroll { border-radius: 12px; }
.vs thead th { padding-top: 18px; padding-bottom: 18px; }
.vs tbody td.ours { font-weight: 700; }
.callout { border-radius: 12px; padding: 26px 28px; border-left: 4px solid var(--cs-accent); }

/* Security cards */
.cards { gap: 20px; }
.card { padding: 28px 24px; border: 1px solid var(--cs-border); border-radius: 12px; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1875rem; }
.paths { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--cs-border); }
@media (min-width: 1024px) { .paths .intro { position: sticky; top: 96px; } }
.path-list { border-top: 0; display: grid; gap: 12px; }
.path-list li { padding: 18px 22px; background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 12px; align-items: start; }
.tag { align-self: start; padding-top: 1px; }

/* Delivery: stages are equal height, gate text reads clearly */
.delivery-note { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--cs-accent); }

/* ERPs */
.erps { border-radius: 12px; padding: 22px 24px; }
.erp { border-radius: 6px; padding: 9px 16px; }
.principles { gap: 20px; margin-top: 32px; }
.principles > div { padding: 24px; background: var(--cs-surface); border: 1px solid var(--cs-border); border-radius: 12px; }
.principles h3 { font-size: 1.1875rem; }

/* CTA */
.cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.contact a.line { padding: 20px 22px; border-radius: 12px; }
.contact .icon { border-radius: 50%; width: 44px; height: 44px; }
.contact a.line:hover { border-color: var(--cs-orange-500); }
@media (min-width: 1024px) {
  .mock { font-size: 12px; }
  .mock-body { grid-template-columns: 1fr 150px; padding: 14px; gap: 12px; }
  .mock-side { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock td { padding: 11px 10px 11px 0; }
  .mock td.ok, .mock td.low { white-space: nowrap; }
  .mock-head strong { font-size: 14px; }
}
