/* Ensemble Software — marketing site
   Visual system adapted from the MORP console (morp/static/morp/css/morp.css):
   warm paper surfaces, cool ink, one petrol-teal accent, IBM Plex Sans + Mono.
   Type and spacing are scaled up for a marketing surface; tokens are the same.
   ============================================================================ */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Surfaces (warm off-white scale) — identical to MORP */
  --surface-0: oklch(0.985 0.005 90);
  --surface-1: oklch(0.997 0.003 90);
  --surface-2: oklch(0.965 0.005 90);
  --surface-3: oklch(0.945 0.006 90);
  --surface-inverse: oklch(0.18 0.01 240);
  --ink-inverse: oklch(0.96 0.005 90);
  --ink-inverse-2: oklch(0.72 0.006 90);

  --ink-1: oklch(0.18 0.01 240);
  --ink-2: oklch(0.38 0.008 240);
  --ink-3: oklch(0.55 0.008 240);
  --ink-4: oklch(0.72 0.006 240);

  --line-1: oklch(0.91 0.006 90);
  --line-2: oklch(0.86 0.008 90);
  --line-strong: oklch(0.75 0.008 90);

  --accent: oklch(0.42 0.07 195);
  --accent-ink: oklch(0.32 0.07 195);
  --accent-soft: oklch(0.94 0.02 195);
  --accent-fg: #ffffff;

  --st-booked: oklch(0.62 0.13 75);       --st-booked-soft: oklch(0.95 0.04 75);
  --st-scheduled: oklch(0.5 0.13 245);    --st-scheduled-soft: oklch(0.95 0.03 245);
  --st-completed: oklch(0.52 0.12 150);   --st-completed-soft: oklch(0.95 0.03 150);
  --st-invoice-generated: oklch(0.5 0.13 172); --st-invoice-generated-soft: oklch(0.95 0.03 172);
  --st-invoiced: oklch(0.5 0.14 295);     --st-invoiced-soft: oklch(0.95 0.03 295);
  --st-paid: oklch(0.48 0.09 195);        --st-paid-soft: oklch(0.95 0.02 195);
  --st-closed: oklch(0.5 0.005 240);      --st-closed-soft: oklch(0.94 0.003 240);

  --warn: oklch(0.62 0.16 60);   --warn-soft: oklch(0.95 0.04 60);
  --danger: oklch(0.55 0.19 25); --danger-soft: oklch(0.95 0.05 25);

  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);

  --wrap: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: oklch(0.16 0.008 240);
    --surface-1: oklch(0.2 0.008 240);
    --surface-2: oklch(0.23 0.008 240);
    --surface-3: oklch(0.26 0.008 240);
    --surface-inverse: oklch(0.12 0.008 240);
    --ink-1: oklch(0.96 0.005 90);
    --ink-2: oklch(0.78 0.006 90);
    --ink-3: oklch(0.62 0.006 90);
    --ink-4: oklch(0.48 0.006 90);
    --line-1: oklch(0.3 0.01 240);
    --line-2: oklch(0.36 0.01 240);
    --line-strong: oklch(0.48 0.01 240);
    --accent: oklch(0.7 0.1 195);
    --accent-ink: oklch(0.8 0.1 195);
    --accent-soft: oklch(0.3 0.05 195);
    --accent-fg: oklch(0.16 0.008 240);
    --st-booked: oklch(0.78 0.13 75);       --st-booked-soft: oklch(0.3 0.06 75);
    --st-scheduled: oklch(0.75 0.12 245);   --st-scheduled-soft: oklch(0.3 0.06 245);
    --st-completed: oklch(0.75 0.12 150);   --st-completed-soft: oklch(0.3 0.06 150);
    --st-invoice-generated: oklch(0.75 0.12 172); --st-invoice-generated-soft: oklch(0.3 0.06 172);
    --st-invoiced: oklch(0.75 0.12 295);    --st-invoiced-soft: oklch(0.3 0.06 295);
    --st-paid: oklch(0.75 0.09 195);        --st-paid-soft: oklch(0.3 0.04 195);
    --st-closed: oklch(0.7 0.005 240);      --st-closed-soft: oklch(0.3 0.01 240);
    --danger: oklch(0.72 0.16 25); --danger-soft: oklch(0.3 0.08 25);
    --warn: oklch(0.78 0.14 60);   --warn-soft: oklch(0.3 0.06 60);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--surface-0);
  color: var(--ink-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--accent-ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface-1); padding: 8px 12px; }

/* Micro-label: MORP's signature mono uppercase label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-1);
  color: var(--ink-1);
  font: 500 14.5px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink-1); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent-fg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--surface-1) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-1);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-1); }
.brand:hover { color: var(--ink-1); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); position: relative; flex: 0 0 26px;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 0; background: var(--accent-fg);
  -webkit-mask: url("../img/thumb-mark.svg") center / 68% no-repeat;
          mask: url("../img/thumb-mark.svg") center / 68% no-repeat;
}
.brand-word { font-family: var(--mono); font-weight: 600; letter-spacing: 0.04em; font-size: 14px; }
.brand-word span { color: var(--ink-3); font-weight: 500; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  padding: 6px 10px; border-radius: 5px; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink-1); }
.site-head .btn { white-space: nowrap; }
.site-head .btn .short { display: none; }
.brand-word { white-space: nowrap; }
@media (max-width: 940px) { .site-nav { display: none; } .site-head .btn { margin-left: auto; } }
@media (max-width: 480px) {
  .site-head .btn .long { display: none; }
  .site-head .btn .short { display: inline; }
  .console-foot .sep, .console-foot span:last-child { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line-1); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero .eyebrow { font-weight: 600; line-height: 1.6; text-wrap: balance; }
.hero .eyebrow::before { content: none; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .fine { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Product mock — a scaled-up rendition of MORP's cases sheet */
.console {
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  box-shadow: 0 24px 60px oklch(0.18 0.01 240 / 0.12);
  overflow: hidden;
  font-size: 12.5px;
}
.console-bar {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px;
  border-bottom: 1px solid var(--line-1);
}
.console-bar .brand-mark { width: 18px; height: 18px; flex-basis: 18px; border-radius: 4px; }
.console-bar .crumbs { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.console-bar .crumbs b { color: var(--ink-1); font-weight: 500; }
.console-bar .env {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line-1); border-radius: 999px; padding: 2px 8px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--st-completed); display: inline-block; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-1); }
.kpi { padding: 10px 14px; border-right: 1px solid var(--line-1); }
.kpi:last-child { border-right: 0; }
.kpi .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { font-family: var(--mono); font-size: 20px; font-weight: 500; margin-top: 2px; }
.kpi .d { font-family: var(--mono); font-size: 10.5px; color: var(--st-completed); }
.sheet-scroll { overflow-x: auto; }
.sheet { width: 100%; border-collapse: collapse; white-space: nowrap; }
.sheet th {
  text-align: left; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); background: var(--surface-2); height: 30px; padding: 0 12px;
  border-bottom: 1px solid var(--line-1);
}
.sheet td { height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line-1); color: var(--ink-2); }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td.id { font-family: var(--mono); color: var(--accent-ink); }
.sheet td.num { font-family: var(--mono); text-align: right; color: var(--ink-1); }
.sheet tr:nth-child(even) td { background: color-mix(in oklch, var(--surface-2) 45%, transparent); }

/* Status pill — same recipe as MORP's .pill */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 20px; padding: 0 8px 0 6px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; font-weight: 500;
  white-space: nowrap;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill[data-s="booked"]    { color: var(--st-booked);    background: var(--st-booked-soft); }
.pill[data-s="scheduled"] { color: var(--st-scheduled); background: var(--st-scheduled-soft); }
.pill[data-s="completed"] { color: var(--st-completed); background: var(--st-completed-soft); }
.pill[data-s="generated"] { color: var(--st-invoice-generated); background: var(--st-invoice-generated-soft); }
.pill[data-s="invoiced"]  { color: var(--st-invoiced);  background: var(--st-invoiced-soft); }
.pill[data-s="paid"]      { color: var(--st-paid);      background: var(--st-paid-soft); }
.pill[data-s="closed"]    { color: var(--st-closed);    background: var(--st-closed-soft); }
.console-foot {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--line-1);
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
}
.console-foot .sep { color: var(--ink-4); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line-1); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 14px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* Workflow timeline */
.flow { border: 1px solid var(--line-1); border-radius: 10px; background: var(--surface-1); overflow: hidden; }
.flow-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 14px 22px; border-bottom: 1px solid var(--line-1); background: var(--surface-2); }
.flow-head .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lg.std { background: var(--ink-3); }
.lg.cus { background: var(--surface-1); border: 2px dashed var(--accent); }
.flow-track { list-style: none; margin: 0; padding: 30px 22px 26px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fs { position: relative; padding: 26px 14px 0 0; }
.fs::after { content: ""; position: absolute; top: 6px; left: 20px; right: 6px; height: 1px; background: var(--line-strong); }
.fs:last-child::after { display: none; }
.fs .node { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--surface-1); }
.fs .n { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-4); margin-bottom: 6px; }
.fs .pill { height: auto; min-height: 20px; padding: 3px 8px 3px 6px; white-space: normal; line-height: 1.25; }
.fs p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.fs[data-s="booked"] { --c: var(--st-booked); }
.fs[data-s="scheduled"] { --c: var(--st-scheduled); }
.fs[data-s="completed"] { --c: var(--st-completed); }
.fs[data-s="generated"] { --c: var(--st-invoice-generated); }
.fs[data-s="invoiced"] { --c: var(--st-invoiced); }
.fs[data-s="paid"] { --c: var(--st-paid); }
.fs[data-s="closed"] { --c: var(--st-closed); }
.fs.custom .node { background: var(--surface-1); border: 2px dashed var(--accent); }
.fs.custom .n { color: var(--accent-ink); }
.pill[data-s="custom"] { color: var(--accent-ink); background: var(--accent-soft); outline: 1px dashed var(--accent); outline-offset: -1px; }
.flow-foot { padding: 14px 22px; border-top: 1px solid var(--line-1); font-size: 14px; color: var(--ink-2); }
.flow-foot b { color: var(--ink-1); font-weight: 600; }
@media (max-width: 900px) {
  .flow-track { grid-template-columns: 1fr; padding: 24px 22px 8px; }
  .fs { padding: 0 0 22px 34px; }
  .fs .node { top: 4px; }
  .fs::after { top: 24px; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .fs .n { display: inline-block; margin: 0 8px 0 0; }
  .fs p { margin-top: 6px; }
}

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 22px 22px 24px;
}
.card .icon {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .icon svg { width: 18px; height: 18px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line-1);
  border-radius: 4px; padding: 1px 6px;
}

/* Compliance: inverse stage panel, like MORP's login left pane */
.stage-panel {
  background: var(--surface-inverse);
  border: 1px solid var(--line-1);
  color: var(--ink-inverse);
  border-radius: 12px;
  padding: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px;
}
.stage-panel .eyebrow { color: oklch(0.8 0.1 195); }
.stage-panel h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 14px; }
.stage-panel p.lead { color: var(--ink-inverse-2); margin-top: 14px; }
.stage-panel .note { color: var(--ink-inverse-2); font-size: 13px; margin-top: 20px; }
.audit {
  background: oklch(0.22 0.01 240);
  border: 1px solid oklch(0.32 0.01 240);
  border-radius: 8px;
  font-family: var(--mono); font-size: 12px;
  overflow: hidden;
}
.audit-head { padding: 10px 14px; border-bottom: 1px solid oklch(0.32 0.01 240); color: oklch(0.72 0.006 90); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; justify-content: space-between; }
.audit-row { padding: 10px 14px; border-bottom: 1px solid oklch(0.28 0.01 240); display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.audit-row:last-child { border-bottom: 0; }
.audit-row .t { color: oklch(0.62 0.006 90); }
.audit-row .w { color: oklch(0.96 0.005 90); }
.audit-row .chg { color: oklch(0.72 0.006 90); display: block; margin-top: 2px; }
.audit-row del { color: oklch(0.72 0.12 25); text-decoration: line-through; }
.audit-row ins { color: oklch(0.78 0.12 150); text-decoration: none; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-inverse); font-size: 15px; }
.checks li svg { width: 18px; height: 18px; color: oklch(0.78 0.12 150); margin-top: 3px; }
.checks li span { color: var(--ink-inverse-2); }
@media (max-width: 900px) { .stage-panel { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }
@media (max-width: 480px) { .audit-row { grid-template-columns: 1fr; gap: 2px; } }

/* Comparison table */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line-1); border-radius: 8px; background: var(--surface-1); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-1); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-weight: 500; font-size: 12px; background: var(--surface-2); color: var(--ink-2); }
.compare thead th .k { display: block; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; margin-bottom: 2px; }
.compare thead th.us { background: var(--accent-soft); color: var(--accent-ink); }
.compare thead th.us .k { color: var(--accent-ink); }
.compare td.us { background: color-mix(in oklch, var(--accent-soft) 45%, transparent); color: var(--ink-1); font-weight: 500; }
.compare tbody th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; width: 170px; }
.compare td { color: var(--ink-2); }

/* Model / steps */
.steps { counter-reset: s; display: grid; gap: 0; border: 1px solid var(--line-1); border-radius: 8px; background: var(--surface-1); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 22px; border-bottom: 1px solid var(--line-1); }
.step:last-child { border-bottom: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); padding-top: 2px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: 14.5px; }

/* Testimonial */
.quote {
  border: 1px solid var(--line-1); border-radius: 12px; background: var(--surface-1);
  padding: 44px 48px; position: relative;
}
.quote blockquote { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; letter-spacing: -0.01em; font-weight: 500; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 64px; line-height: .6; color: var(--accent); margin-bottom: 14px; font-family: Georgia, serif; }
.quote figcaption { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.quote .who b { display: block; font-weight: 600; }
.quote .who span { color: var(--ink-3); font-size: 14px; }
.draft-flag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 3px 10px;
}
@media (max-width: 620px) { .quote { padding: 52px 22px 28px; } }

/* Contact form */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact ul { padding-left: 18px; color: var(--ink-2); margin: 20px 0 0; }
.contact li { margin: 6px 0; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; gap: 32px; } }
.form { background: var(--surface-1); border: 1px solid var(--line-1); border-radius: 10px; padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form { padding: 20px; } .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--ink-4); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 15px/1.4 var(--sans);
  color: var(--ink-1);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.form .consent { font-size: 12.5px; color: var(--ink-3); }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 6px; font-size: 14px; display: none; }
.form-status.ok { display: block; color: var(--st-completed); background: var(--st-completed-soft); }
.form-status.err { display: block; color: var(--danger); background: var(--danger-soft); }

/* Footer */
.site-foot { border-top: 1px solid var(--line-1); padding: 36px 0 44px; background: var(--surface-1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot .meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.03em; }
.site-foot nav { display: flex; gap: 18px; font-size: 14px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink-1); }

/* Hero quick facts */
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-3); }
.facts li { display: flex; align-items: baseline; gap: 8px; line-height: 1.4; }
.facts li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); align-self: center; }
.facts b { color: var(--ink-1); font-weight: 500; }

/* Before / after */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ba-scroll { overflow-x: auto; border: 1px solid var(--line-1); border-radius: 8px; background: var(--surface-1); }
.ba { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.ba th, .ba td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-1); }
.ba tr:last-child th, .ba tr:last-child td { border-bottom: 0; }
.ba thead th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding-block: 12px; }
.ba thead th.us { color: var(--accent-ink); background: var(--accent-soft); }
.ba tbody th { font-weight: 600; width: 190px; color: var(--ink-1); }
.ba td { color: var(--ink-3); width: 36%; }
.ba td.us { color: var(--ink-1); background: color-mix(in oklch, var(--accent-soft) 45%, transparent); width: auto; }
.aside { margin-top: 22px; color: var(--ink-2); font-size: 15px; max-width: 60em; }

/* Pricing + onboarding */
.price-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface-1); border: 1px solid var(--accent); border-radius: 10px; padding: 28px; display: grid; gap: 18px; justify-items: start; }
.price-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.price { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.price .from { display: block; font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-bottom: 4px; }
.price .per { font-size: 16px; color: var(--ink-3); letter-spacing: 0; }
.price .setup { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.45; letter-spacing: 0; color: var(--ink-2); }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.incl li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; }
.incl li::before { content: ""; width: 10px; height: 6px; margin-top: 7px; border-left: 2px solid var(--st-completed); border-bottom: 2px solid var(--st-completed); transform: rotate(-45deg); }
.price-card .note { font-size: 14px; color: var(--ink-3); }
.onboard { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line-1); border-radius: 10px; background: var(--surface-1); }
.onboard li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line-1); }
.onboard li:last-child { border-bottom: 0; }
.onboard .d { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); padding-top: 3px; }
.onboard h3 { font-size: 16px; margin-bottom: 4px; }
.onboard p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 480px) { .onboard li { grid-template-columns: 1fr; gap: 4px; } }
.stage-panel .more { margin-top: 24px; }
.stage-panel .more a { color: oklch(0.8 0.1 195); }

/* Prose pages (privacy, compliance) */
.prose { max-width: 720px; padding: 64px 0 88px; }
.prose h1 { font-size: 36px; margin: 14px 0 10px; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose .updated { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

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

/* Before/after stacks into one card per task on phones */
@media (max-width: 640px) {
  .ba-scroll { overflow: visible; border: 0; background: none; }
  .ba, .ba tbody, .ba tr, .ba th, .ba td { display: block; width: auto; min-width: 0; }
  .ba thead { display: none; }
  .ba tr { border: 1px solid var(--line-1); border-radius: 8px; background: var(--surface-1); overflow: hidden; }
  .ba tr + tr { margin-top: 12px; }
  .ba tbody th, .ba td { border-bottom: 1px solid var(--line-1); padding: 12px 16px; width: auto; }
  .ba td.us, .ba tr:last-child td.us { border-bottom: 0; }
  .ba tr:last-child th, .ba tr:last-child td { border-bottom: 1px solid var(--line-1); }
  .ba td::before { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; color: var(--ink-3); content: "Today"; }
  .ba td.us::before { content: "With MORP"; color: var(--accent-ink); }
}
