/* Specfold landing page. Same tokens as the builder app (Brand/DESIGN.md §2.4, app/app/globals.css):
   warm charcoal, chalk-line red for brand marks only, green for actions, white cards on a warm canvas,
   Barlow Condensed headings over Inter. */
:root {
  --ink: #2b2724;
  --text: #3a3632;
  --text-2: #5e5852;
  --line: #ddd8d0;
  --card: #ffffff;
  --canvas: #eeece7;
  --canvas-2: #f9f8f6;
  --btn-2: #dcdad5;

  --rail: #2b2724;
  --rail-2: #3a3632;
  --on-dark: #ffffff;
  --on-dark-2: #d9d4cc;

  --accent: #b3361f;
  --accent-on-dark: #ee8468;
  --go: #388523;
  --go-hover: #276515;
  --focus: #8a827a;

  --warning: #cdb52d; --warning-bg: #f5f0d1; --warning-fg: #645916;
  --info-bg: #e2f1fd; --info-fg: #225c8c;
  --success-bg: #e7f0e5; --success-fg: #1a430f;
  --source: #49646f; --source-bg: #eef1f2;
  --order: #225c8c; --order-bg: #e2f1fd;
  --packet: #388523; --packet-bg: #e7f0e5;
  --selection: #6b4fcb; --selection-bg: #efeafb;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Inter", sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-low: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 2px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
mark { background: var(--warning-bg); color: var(--warning-fg); border-radius: 3px; padding: 0 3px; }

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

/* Type */
.display, .heading-lg, .heading, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.display { font-size: clamp(56px, 9.5vw, 128px); line-height: 0.92; letter-spacing: 0.002em; }
.heading-lg { font-size: clamp(40px, 5.6vw, 68px); line-height: 0.98; }
.heading { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; }
h3 { font-size: 25px; line-height: 1.1; }
.body-lg { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--text-2); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .1s, border-color .1s, color .1s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary { background: var(--go); color: #fff; }
.btn-primary:hover { background: var(--go-hover); }
.btn-ghost { background: var(--btn-2); color: var(--ink); }
.btn-ghost:hover { background: #cfccc6; }
.on-dark .btn-ghost { background: transparent; border-color: var(--on-dark-2); color: var(--on-dark); }
.on-dark .btn-ghost:hover { background: var(--rail-2); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.on-dark :focus-visible { outline-color: var(--on-dark-2); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--rail); color: var(--on-dark); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: rgba(255, 255, 255, 0.1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark {
  display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase;
}
.wordmark::after { content: ""; width: 38px; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--accent); }
.nav nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.nav nav a { text-decoration: none; color: var(--on-dark-2); }
.nav nav a:hover { color: var(--on-dark); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.sign-in { font-size: 15px; font-weight: 600; color: var(--on-dark); text-decoration: none; }
.sign-in:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Hero (dark, like the app's rail) */
.hero { background: var(--rail); color: var(--on-dark-2); padding: clamp(48px, 8vw, 96px) 0 var(--section); overflow: hidden; }
.hero .display { color: var(--on-dark); }
.hero .eyebrow { color: var(--accent-on-dark); }
/* Hero with the animation on the right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split .display { font-size: clamp(52px, 6.6vw, 100px); }
.hero-split .lede { margin-top: 24px; max-width: 540px; }
.hero-split .cta-row { margin-top: 32px; }

/* Scaled stage */
.hx-fit { position: relative; width: 100%; aspect-ratio: 520 / 560; }
.hx-stage { position: absolute; left: 0; top: 0; width: 520px; height: 560px; transform-origin: 0 0; font-size: 14px; color: var(--text); }
.hx-stage * { box-sizing: border-box; }
.hx-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.hx-reset, .hx-reset * { transition: none !important; }

.fa-drop {
  position: absolute; left: 0; top: 0; width: 520px; height: 300px; padding: 16px 18px; border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .03);
  transition: height .6s cubic-bezier(.65, 0, .35, 1), border-color .3s, background-color .3s;
}
.fa-drop.over { border-color: var(--on-dark-2); background: rgba(255, 255, 255, .07); }
.fa-head { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 700; font-size: 15px; height: 28px; }
.fa-folder { width: 22px; height: 16px; border-radius: 3px; background: var(--on-dark-2); position: relative; }
.fa-folder::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 5px; border-radius: 2px 2px 0 0; background: var(--on-dark-2); }
.fa-status { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--on-dark-2); display: flex; align-items: center; gap: 8px; }
.fa-status.ok { color: #9fd38c; }
.fa-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; transition: opacity .3s; }
.fa-drop.done .fa-files { opacity: 0; }
.fa-drop.done { height: 62px; border-style: solid; border-color: rgba(255, 255, 255, .14); }
.fa-file {
  position: relative; overflow: hidden; height: 104px; padding: 12px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-low);
  display: flex; flex-direction: column; gap: 7px; opacity: 0;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
.fa-file.in { opacity: 1; transform: none !important; }
.fa-file::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(56, 133, 35, .12); transition: width .7s linear; }
.fa-file.reading::after { width: 100%; }
.fa-name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fa-file i { display: block; height: 6px; border-radius: 3px; background: var(--btn-2); }
.fa-file i:last-of-type { width: 62%; }
.fa-file .file-tag { align-self: flex-start; }
.fa-ok { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--go); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); z-index: 1; }
.fa-ok::after, .fa-check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fa-file.read .fa-ok { transform: scale(1); }
.fa-check { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--go); display: none; }
.fa-status.ok .fa-check { display: inline-block; }

.fa-job { position: absolute; left: 0; top: 78px; width: 520px; padding: 18px 20px 8px; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.fa-job.in { opacity: 1; transform: none; }
.fa-job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.fa-job-head strong { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.fa-job-head span { font-size: 13px; color: var(--text-2); }
.fa-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
.fa-stats div { display: grid; gap: 2px; }
.fa-stats strong { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--ink); }
.fa-stats span { font-size: 12px; color: var(--text-2); }
.fa-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.fa-row:last-child { border-bottom: 0; }
.fa-row.in { opacity: 1; transform: none; }
.fa-row .item { font-size: 15px; }
.fa-when { grid-row: span 2; text-align: right; font-size: 12px; color: var(--text-2); line-height: 1.3; }
.fa-when strong { display: block; font-size: 16px; color: var(--ink); }
.fa-when.wait strong { color: var(--warning-fg); }
.fa-cite { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--source); }
.fa-cite::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--source); flex: none; transform: translateY(-1px); }

.file-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 6px;
  border-radius: var(--radius-sm); background: var(--source-bg); color: var(--source); flex: none;
}
.item { font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kind {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--radius-sm); background: var(--canvas); color: var(--text-2);
}
.kind-order { background: var(--order-bg); color: var(--order); }
.kind-sub { background: var(--packet-bg); color: var(--packet); }
.kind-client { background: var(--selection-bg); color: var(--selection); }

/* Sections */
.section { padding: var(--section) 0; }
.band { padding: var(--section) 0; background: var(--card); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { color: var(--text-2); font-size: 18px; line-height: 1.55; }
.prose p + p { margin-top: 16px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-low); }
.sand-card { background: var(--canvas); border-radius: var(--radius-lg); padding: 32px; }

.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps .card { padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--ink); }
.steps .num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent); }
.steps p { font-size: 16px; color: var(--text-2); line-height: 1.5; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy .heading { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; font-size: 16px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 7px;
  border-left: 2.5px solid var(--go); border-bottom: 2.5px solid var(--go); transform: rotate(-45deg);
}

.evidence-card { display: grid; gap: 14px; }
.ev-row { display: grid; gap: 4px; background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-low); }
.ev-label { font-size: 13px; color: var(--text-2); }
.ev-value { font-size: 20px; font-weight: 700; color: var(--ink); }
.ev-source { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-low); }
.ev-file { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.ev-source p { font-size: 15px; line-height: 1.5; }
.ev-conflict { font-size: 14px; line-height: 1.5; color: var(--warning-fg); padding: 14px 18px; background: var(--warning-bg); border-radius: var(--radius); }
.ev-conflict strong { font-weight: 700; margin-right: 6px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.doc { padding: 22px 22px 28px; display: flex; flex-direction: column; gap: 12px; }
.doc p { font-size: 16px; color: var(--text-2); line-height: 1.5; }
.doc-thumb {
  height: 170px; border-radius: var(--radius); background: var(--canvas-2); border: 1px solid var(--line);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px;
}
.doc-thumb i, .doc-thumb b { display: block; height: 8px; border-radius: 4px; background: var(--btn-2); }
.thumb-schedule i { height: 14px; background: linear-gradient(90deg, var(--btn-2) 0 18%, transparent 18% 22%, var(--btn-2) 22% 70%, transparent 70% 82%, var(--order-bg) 82%); }
.thumb-scope i:nth-child(1) { width: 40%; height: 12px; background: var(--text-2); opacity: .5; }
.thumb-scope i:nth-child(2) { width: 92%; }
.thumb-scope i:nth-child(3) { width: 78%; }
.thumb-scope b { width: 34%; margin-top: auto; height: 2px; background: var(--ink); border-radius: 0; }
.thumb-packet { flex-direction: row; gap: 10px; }
.thumb-packet i { flex: 1; height: auto; border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-low); border-top: 4px solid var(--btn-2); }
.thumb-packet i:nth-child(2) { border-top-color: var(--packet); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-top: 2px solid var(--ink); }
.timeline span { font-size: 13px; color: var(--text-2); padding-top: 14px; position: relative; line-height: 1.4; }
.timeline span::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline strong { font-weight: 700; font-size: 17px; color: var(--ink); }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.phase { background: var(--canvas); border-radius: var(--radius); padding: 20px 22px; border-top: 4px solid var(--ink); }
.phase-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin-bottom: 4px; }
.phase p { font-size: 15px; color: var(--text-2); line-height: 1.5; }

.fine { font-size: 14px; color: var(--on-dark-2); margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Client portal phone (animated by animations.js) */
.phone {
  justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 16.5; padding: 10px;
  background: var(--ink); border-radius: 40px; box-shadow: var(--shadow-card);
}
.phone-screen {
  position: relative; height: 100%; background: var(--canvas-2); border-radius: 31px;
  display: flex; flex-direction: column; overflow: hidden;
}
.ph-bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 24px 18px 12px; border-bottom: 1px solid var(--line); background: var(--canvas-2); position: relative; z-index: 1;
}
.ph-brand { font-size: 13px; font-weight: 700; color: var(--ink); }
.ph-job { font-size: 11.5px; color: var(--text-2); }
.ph-view { position: relative; flex: 1; overflow: hidden; }
.ph-feed {
  position: relative; display: grid; gap: 10px; padding: 14px 16px 28px;
  transition: transform 1.1s cubic-bezier(.65, 0, .35, 1), opacity .45s;
}
.ph-feed.fade { opacity: 0; }
.instant, .instant * { transition: none !important; }
.ph-label { font-size: 12px; color: var(--text-2); }
.ph-title { font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.02; color: var(--ink); }
.ph-due { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.ph-update { display: grid; gap: 4px; font-size: 13.5px; line-height: 1.35; padding: 10px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-low); }
.ph-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.ph-photos i { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg, #c9b493, #8f7a5c); }
.ph-photos i:nth-child(2) { background: repeating-linear-gradient(90deg, #d8c4a0 0 7px, #a88f68 7px 9px); }
.ph-photos i:nth-child(3) { background: linear-gradient(180deg, #b8c6cf 0 45%, #cdb791 45%); }
.ph-progress-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.ph-progress { height: 6px; border-radius: 3px; background: var(--btn-2); }
.ph-progress i { display: block; height: 100%; border-radius: 3px; background: var(--go); }
.ph-dec { display: grid; gap: 6px; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.ph-opts { display: grid; gap: 8px; margin-top: 6px; }
.ph-opt, .ph-card {
  position: relative; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 9px 10px; border-radius: var(--radius); background: var(--card); border: 2px solid transparent; box-shadow: var(--shadow-low);
  transition: border-color .2s, transform .15s;
}
.ph-opt.sel, .ph-card.sel { border-color: var(--ink); }
.pressed { transform: scale(0.97); }
.ph-check {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-2); flex: none; position: relative;
  transition: background-color .2s, border-color .2s;
}
.sel .ph-check { background: var(--go); border-color: var(--go); }
.sel .ph-check::after {
  content: ""; position: absolute; left: 4px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sw { width: 34px; height: 34px; border-radius: 6px; flex: none; }
.sw-marble { background: linear-gradient(115deg, transparent 40%, rgba(150, 145, 140, .45) 42%, transparent 46%), repeating-linear-gradient(0deg, #ece9e3 0 10px, #d6d1c8 10px 11px); }
.sw-zellige { background: repeating-linear-gradient(90deg, #f4f1e8 0 8px, #ddd6c5 8px 9px), #f4f1e8; }
.sw-limestone { background: radial-gradient(circle at 30% 30%, #e6dcc6 0 30%, transparent 31%), radial-gradient(circle at 75% 70%, #e6dcc6 0 30%, transparent 31%), #d4c7aa; }
.ph-carousel { overflow: hidden; margin: 6px -16px 0; padding: 2px 16px 4px; }
.ph-track { display: flex; gap: 8px; transition: transform .45s cubic-bezier(.3, 0, .2, 1); }
.ph-card { flex: 0 0 46%; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px 10px; }
.ph-card .ph-check { position: absolute; top: 10px; right: 10px; }
.knob { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset -3px -4px 6px rgba(0, 0, 0, .25), inset 3px 3px 5px rgba(255, 255, 255, .45); }
.k-brass { background: #c39a4d; }
.k-nickel { background: #b9b8b2; }
.k-bronze { background: #6e5038; }
.k-black { background: #2f2d2b; }
.ph-note { font-size: 12px; color: var(--text-2); min-height: 1.4em; }
.ph-note.priced { color: var(--ink); font-weight: 600; }
.ph-btn {
  text-align: center; font-size: 14.5px; font-weight: 700; color: #fff; background: var(--go);
  border-radius: var(--radius); padding: 12px; transition: background-color .2s, color .2s, transform .15s;
}
.ph-btn.idle { background: var(--btn-2); color: var(--text-2); }
.ph-btn.done { background: var(--success-bg); color: var(--success-fg); }
.ph-caught { display: grid; gap: 2px; margin-top: 10px; padding: 14px; font-size: 13px; color: var(--text-2); background: var(--success-bg); border-radius: var(--radius); }
.ph-caught strong { color: var(--success-fg); font-size: 14px; }
.ph-tap {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 2;
  background: rgba(43, 39, 36, .22); border: 2px solid rgba(255, 255, 255, .85); pointer-events: none;
  opacity: 0; transition: transform .5s cubic-bezier(.45, 0, .25, 1), opacity .25s, background-color .12s;
}
.ph-tap.on { opacity: 1; }
.ph-tap.down { background: rgba(43, 39, 36, .45); }
.ph-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--ink);
  transform: translate(-50%, 70px); transition: transform .35s cubic-bezier(.3, 0, .2, 1);
}
.ph-toast.on { transform: translate(-50%, 0); }

/* Assistant chat (animated by animations.js) */
.assistant { align-items: center; }
.assistant .prose { margin-top: 24px; }
.chat {
  display: flex; flex-direction: column; height: 540px; background: var(--canvas);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--rail); color: var(--on-dark); }
.chat-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.chat-scope { font-size: 12px; font-weight: 600; color: var(--on-dark-2); padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.chat-log {
  position: relative; flex: 1; overflow: hidden; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px);
  transition: opacity .45s;
}
.chat-log.fade { opacity: 0; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.45; animation: msg-in .3s ease-out both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg-q { align-self: flex-end; background: var(--rail); color: var(--on-dark); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.msg-a { align-self: flex-start; background: var(--card); color: var(--text); padding: 12px 14px; border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow-low); display: grid; gap: 8px; }
.rv { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.rv.in { opacity: 1; transform: none; }
.a-item { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.a-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
.a-meta { font-size: 13px; color: var(--text-2); }
.a-meta.warn { color: var(--warning-fg); font-weight: 600; }
.a-src { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--source); }
.a-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--source); flex: none; transform: translateY(-1px); }
.job { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--radius-sm); }
.job-lakeview { background: var(--order-bg); color: var(--order); }
.job-hillcrest { background: var(--selection-bg); color: var(--selection); }
.job-oak { background: var(--packet-bg); color: var(--packet); }
.a-draft { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; background: var(--canvas-2); border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.a-btn { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius); background: var(--btn-2); color: var(--ink); }
.a-btn.primary { background: var(--go); color: #fff; }
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border-top: 1px solid var(--line); }
.ci-text { flex: 1; min-height: 24px; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.ci-text:empty::before { content: "Ask about any job…"; color: var(--text-2); }
.ci-text:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ci-send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--go); color: #fff; flex: none; transition: transform .12s; }
.ci-send.press { transform: scale(.88); }

.fit { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.fit-list { display: grid; gap: 0; }
.fit-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-top: 2px solid var(--ink); }
.fit-list > div:last-child { border-bottom: 2px solid var(--ink); }
.fit-list p { color: var(--text-2); font-size: 17px; }

/* Demo (dark) */
.demo { background: var(--rail); color: var(--on-dark-2); }
.demo .heading-lg { color: var(--on-dark); }
.demo .eyebrow { color: var(--accent-on-dark); }
.demo .body-lg { color: var(--on-dark-2); }
.demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.demo-copy .heading-lg { margin-bottom: 20px; }
.demo-form { padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; background: var(--card); border-radius: var(--radius-lg); color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.opt-label { font-weight: 400; color: var(--text-2); }
.demo-form input, .demo-form select, .demo-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text); width: 100%; min-height: 48px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.demo-form textarea { resize: vertical; }
.demo-form input[aria-invalid="true"] { border-color: #b0123a; }
.demo-form .btn { justify-self: start; margin-top: 4px; }
.demo-form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.4em; color: var(--text-2); }
.form-status.ok { color: var(--success-fg); }
.form-status.err { color: #b0123a; }
.form-status .btn { margin-top: 10px; }

/* Pricing */
.pricing-lede { margin-top: 20px; max-width: 640px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 28px; background: var(--canvas-2); border-top: 4px solid var(--ink); }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price strong { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--ink); }
.plan-price span { font-size: 15px; color: var(--text-2); }
.plan-for { font-size: 16px; color: var(--text-2); }
.plan-year { font-size: 14px; color: var(--text-2); }
.plan .btn { margin-top: auto; align-self: start; }
.plan-note { margin-top: 20px; font-size: 15px; color: var(--text-2); }
.terms { margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.terms > div { padding: 18px 0; border-top: 1px solid var(--line); }
.terms dt { font-weight: 700; color: var(--ink); font-size: 16px; }
.terms dd { margin: 6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* Support, Terms and Privacy: one readable column on the canvas */
.doc { padding: clamp(40px, 7vw, 80px) 0 var(--section); }
.doc-inner { max-width: 760px; }
.doc .heading-lg { margin-bottom: 16px; }
.doc-meta { font-size: 15px; color: var(--text-2); }
.doc-lede { margin-top: 20px; }
.doc h2 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 30px; line-height: 1.1; margin: 48px 0 14px; padding-top: 20px; border-top: 2px solid var(--ink); }
.doc h3 { font-size: 21px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--ink); text-underline-offset: 2px; }
.doc .terms { margin-top: 8px; }
.doc .terms dd { font-size: 16px; }
.contact-card { margin-top: 32px; padding: 24px; display: grid; gap: 6px; }
.contact-card .contact-email { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-card .contact-email:hover { text-decoration: underline; }
.contact-card p { font-size: 16px; color: var(--text-2); }
.subprocessors { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.subprocessors th, .subprocessors td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.subprocessors th { font-weight: 700; color: var(--ink); }
.subprocessors td { color: var(--text-2); }

.footer { padding: 36px 0 48px; background: var(--rail); color: var(--on-dark-2); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-inner { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 14px; }
.footer .wordmark { color: var(--on-dark); font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-underline-offset: 3px; }
.footer a:hover { color: var(--on-dark); }

/* Responsive */
@media (max-width: 1020px) {
  .hero-split { grid-template-columns: 1fr; }
  .hx-fit { max-width: 540px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 820px) {
  .nav nav { display: none; }
  .split, .feature, .grid-3, .phases, .demo-inner, .fit { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .fit-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-actions { gap: 12px; }
  .wordmark { font-size: 22px; }
  .steps, .field-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 24px; border-top: 0; }
  .timeline span { border-top: 2px solid var(--ink); }
  .sand-card { padding: 18px; }
  .chat { height: 500px; }
  .chat-log { padding: 14px; }
  .msg { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
