/* ============================================================
   FREEHOLD SOFTWARE — "Architectural / calm premium"
   Developed from the contest-winning Codex-2 direction.
   Cormorant Garamond (display) + Inter (text).
   Warm paper, ink, clay accent, olive. Hairlines, whitespace,
   an architect's measurement motif, and the work-order card.
   ============================================================ */

:root {
  --paper: #fbfaf6;
  --paper-deep: #f2eee7;
  --ink: #1c1b19;
  --soft-ink: #34312d;
  --muted: #686159;
  --line: #d5cec3;
  --line-strong: #b6ab9f;
  --clay: #9a3f30;
  --clay-dark: #743126;
  --olive: #59624d;
  --olive-tint: #eceee6;
  --white: #fffdf9;
  --shadow: 0 24px 70px rgba(45, 38, 31, 0.13);
  --shadow-soft: 0 14px 40px rgba(45, 38, 31, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
::selection { background: var(--clay); color: var(--white); }

h1, h2, .price-value, .closing-title, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.skip-link {
  position: absolute; left: 24px; top: -80px; z-index: 60;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 18px; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ============ BUTTONS / LINKS ============ */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  background: var(--clay); color: var(--white);
  border: 1px solid var(--clay); border-radius: 2px;
  font-size: 0.8rem; font-weight: 800; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.02em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--clay-dark); border-color: var(--clay-dark); transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plain-link { color: var(--muted); font-size: 0.92rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.section-label { color: var(--clay); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ HEADER ============ */
.site-header {
  width: min(1180px, calc(100% - 48px)); margin: 0 auto;
  padding: 28px 0 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.9); backdrop-filter: blur(6px);
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; gap: 1px; min-width: 172px; }
.brand strong { font-family: var(--serif); font-size: 1.7rem; line-height: 1; font-weight: 600; text-transform: uppercase; }
.brand span { color: var(--muted); font-size: 0.71rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; color: var(--soft-ink); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.nav a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 4px; }
.nav a:hover, .nav a:focus-visible { border-color: var(--clay); }
.nav .button { min-height: 0; padding: 9px 16px; }

/* ============ HERO ============ */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.86fr);
  gap: 68px; align-items: center; padding-top: 54px; padding-bottom: 46px;
}
.hero-copy { max-width: 590px; }
h1 { font-size: 5.4rem; line-height: 0.92; max-width: 600px; }
.accent-rule { width: 64px; height: 2px; margin: 30px 0 28px; background: var(--clay); }
.hero-subhead { color: var(--soft-ink); font-family: var(--serif); font-size: 1.7rem; line-height: 1.16; max-width: 510px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.price-lockup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; max-width: 560px; margin-top: 40px; padding-left: 24px; border-left: 1px solid var(--line-strong); }
.price-value { color: var(--clay); font-size: 3.5rem; line-height: 0.88; white-space: nowrap; }
.price-value span { display: block; margin-top: 9px; color: var(--clay-dark); font-family: var(--sans); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.price-copy { color: var(--muted); font-size: 0.95rem; max-width: 290px; }

.hero-visual { position: relative; min-height: 520px; }
.measurement { position: absolute; color: var(--muted); font-size: 0.68rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.measurement.top { left: 80px; right: 24px; top: 2px; display: flex; align-items: center; gap: 10px; }
.measurement.side { right: -12px; top: 86px; writing-mode: vertical-rl; }
.measure-line { height: 1px; flex: 1; background: var(--line-strong); position: relative; }
.measure-line::before, .measure-line::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--line-strong); }
.measure-line::before { left: 0; }
.measure-line::after { right: 0; }

/* ============ WORK ORDER CARD (hero static + interview live) ============ */
.work-order, .workorder {
  position: relative; z-index: 2; width: min(420px, 100%);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 34px 36px 32px;
}
.hero-visual .work-order { margin: 36px 28px 0 auto; }
.work-order header, .workorder-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 22px;
  padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line-strong);
}
.work-order h2, .workorder-brand { font-family: var(--serif); font-size: 1.55rem; line-height: 1; text-transform: uppercase; font-weight: 600; }
.work-order small, .workorder-no { color: var(--muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 24px; font-size: 0.82rem; }
.field-label { display: block; color: var(--muted); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; line-height: 1.3; margin-bottom: 2px; }
.order-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft-ink); font-size: 0.82rem; line-height: 1.45; }
.order-table { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 0.74rem; }
.order-table th, .order-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
.order-table th { color: var(--muted); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.order-table td:last-child, .order-table th:last-child { text-align: right; }
.signature { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 22px; color: var(--muted); font-size: 0.7rem; }
.signature strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1; }

.ownership-card { width: min(340px, 84%); margin: 26px 26px 0 auto; border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr 0.86fr; background: rgba(251, 250, 246, 0.86); }
.ownership-card div { padding: 18px; }
.ownership-card div + div { border-left: 1px solid var(--line-strong); }
.ownership-card h3 { color: var(--soft-ink); font-size: 0.72rem; line-height: 1.2; text-transform: uppercase; }
.ownership-card p, .ownership-card li { color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.ownership-card p { margin-top: 8px; }
.ownership-card ul { margin: 8px 0 0; padding-left: 16px; }

/* ============ PRICE BAND ============ */
.price-band { padding: 30px 0 54px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 0.74fr 1.26fr; gap: 56px; align-items: start; }
.price-band h2 { font-size: 3.2rem; line-height: 0.98; margin-top: 8px; }
.price-band p { color: var(--soft-ink); font-family: var(--serif); font-size: 1.6rem; line-height: 1.24; }

/* ============ SECTION HEADING (ruled) ============ */
.block { padding: 54px 0 64px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-bottom: 14px; }
.section-heading::before, .section-heading::after { content: ""; height: 1px; background: var(--line-strong); }
.section-heading h2 { font-size: 1.15rem; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.block-lede { text-align: center; max-width: 64ch; margin: 0 auto 40px; color: var(--muted); font-size: 1.05rem; }

/* ============ THE INTERVIEW (signature) ============ */
.interview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.interview-panel { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: 28px; min-height: 500px; display: flex; flex-direction: column; }
.interview-thread { flex: 1; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; max-height: 430px; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.msg { max-width: 92%; padding: 13px 17px; font-size: 0.95rem; line-height: 1.5; animation: msgIn 0.3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-q { background: var(--paper); color: var(--ink); align-self: flex-start; border-left: 3px solid var(--clay); }
.msg-a { background: var(--olive-tint); border: 1px solid var(--line); color: var(--soft-ink); align-self: flex-end; }
.msg-typing { color: var(--muted); font-style: italic; }
.msg-typing .dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.interview-input { display: flex; flex-direction: column; gap: 12px; }
.interview-input form { display: flex; gap: 10px; }
.interview-input input[type="text"] { flex: 1; font-family: var(--sans); font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); min-width: 0; border-radius: 2px; }
.interview-input input[type="text"]:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.interview-send { font-family: var(--sans); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--clay); color: var(--white); border: 1px solid var(--clay); padding: 0 22px; cursor: pointer; border-radius: 2px; }
.interview-send:hover { background: var(--clay-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; background: var(--paper); color: var(--soft-ink); border: 1px solid var(--line-strong); padding: 9px 16px; cursor: pointer; border-radius: 2px; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.chip:hover { border-color: var(--clay); color: var(--ink); }
.chip.is-picked { background: var(--clay); color: var(--white); border-color: var(--clay); }
.chips-done { font-family: var(--sans); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--clay); color: var(--white); border: 1px solid var(--clay); padding: 10px 18px; cursor: pointer; border-radius: 2px; align-self: flex-start; }
.chips-done:disabled { opacity: 0.4; cursor: not-allowed; }
.input-hint { font-size: 0.8rem; color: var(--muted); }
.interview-restart { margin-top: 14px; align-self: flex-start; background: none; border: none; color: var(--muted); font-family: var(--sans); font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.interview-restart:hover { color: var(--clay); }

.workorder-wrap { position: sticky; top: 110px; }
#workorder { width: 100%; min-height: 500px; margin: 0; }
.workorder-body { font-size: 0.86rem; }
.workorder-body p { margin-bottom: 13px; line-height: 1.5; }
.workorder-body h4 { font-family: var(--sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 20px 0 10px; }
.workorder-body ul { list-style: none; margin: 0 0 13px; padding: 0; }
.workorder-body li { padding-left: 16px; position: relative; margin-bottom: 6px; color: var(--soft-ink); }
.workorder-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--clay); }
.wo-label { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); margin-bottom: 3px; }
.wo-waiting { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.wo-quote { color: var(--olive); font-style: italic; }
.workorder-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* The stamp: tasteful clay, not a loud red */
.stamp { position: absolute; right: 22px; bottom: 22px; border: 2.5px solid var(--clay); color: var(--clay); font-family: var(--sans); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.1em; padding: 8px 15px; transform: rotate(-7deg); opacity: 0.9; border-radius: 3px; background: rgba(154, 63, 48, 0.05); pointer-events: none; }
.stamp-in { animation: stampIn 0.45s cubic-bezier(0.2, 2.2, 0.4, 1) both; }
@keyframes stampIn { 0% { transform: rotate(-7deg) scale(2.4); opacity: 0; } 60% { transform: rotate(-7deg) scale(0.95); opacity: 1; } 100% { transform: rotate(-7deg) scale(1); opacity: 0.9; } }

/* ============ HOW IT WORKS (steps) ============ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.step { min-width: 0; padding: 0 36px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step-number { display: block; color: var(--clay); font-family: var(--serif); font-size: 2.85rem; line-height: 0.9; }
.step h3 { margin-top: 14px; font-family: var(--serif); color: var(--ink); font-size: 1.45rem; font-weight: 500; line-height: 1.1; }
.step p { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* ============ EXAMPLE TOOLS (interactive) ============ */
.demo-tabs { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.demo-tab { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 14px 26px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.demo-tab.is-active { color: var(--clay); border-bottom-color: var(--clay); }
.demo-stage { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.demo-pane { display: none; }
.demo-pane.is-active { display: block; }
.demo-chrome { display: flex; align-items: center; gap: 7px; background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 12px 18px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-strong); }
.demo-title { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-left: 10px; }
.demo-body { padding: 26px 28px 30px; }
.demo-hint { font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; max-width: 70ch; }
.demo-hint em { font-style: italic; color: var(--soft-ink); }
.demo-replaces { border-top: 1px solid var(--line); background: var(--paper-deep); padding: 14px 28px; font-size: 0.85rem; color: var(--muted); }

.demo-stats { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 24px; border: 1px solid var(--line); }
.dstat { flex: 1; min-width: 140px; padding: 14px 18px; border-left: 1px solid var(--line); }
.dstat:first-child { border-left: 0; }
.dstat-num { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.05; color: var(--olive); }
.dstat-num.is-bad { color: var(--clay); }
.dstat-label { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.demo-btn { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; background: var(--clay); color: var(--white); border: 1px solid var(--clay); padding: 8px 15px; cursor: pointer; border-radius: 2px; }
.demo-btn:hover { background: var(--clay-dark); }
.demo-btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* med spa dashboard */
.medspa-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 20px; align-items: start; }
.medspa-list { display: flex; flex-direction: column; gap: 8px; }
.client-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font-family: var(--sans); font-size: 0.92rem; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; border-radius: 2px; }
.client-row:hover { border-color: var(--line-strong); }
.client-row.is-selected { background: var(--olive); color: var(--white); border-color: var(--olive); }
.client-row.is-selected .client-sub { color: rgba(255, 253, 249, 0.72); }
.client-name { font-weight: 700; display: block; }
.client-sub { font-size: 0.76rem; color: var(--muted); display: block; }
.client-flag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; color: var(--clay); border: 1px solid var(--clay); padding: 2px 8px; white-space: nowrap; border-radius: 2px; }
.client-row.is-selected .client-flag { color: #f4d8d0; border-color: #f4d8d0; }
.medspa-card { background: var(--paper); border: 1px solid var(--line-strong); padding: 22px 24px; }
.medspa-card h4 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.medspa-card .pkg-name { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.session-dots { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sdot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--olive); display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--white); }
.sdot.is-used { background: var(--olive); }
.sdot.is-next { border-style: dashed; border-color: var(--muted); }
.session-count { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.medspa-card .demo-btn { width: 100%; padding: 12px; font-size: 0.9rem; }
.rebook-banner { margin-top: 14px; border: 1px solid var(--clay); background: rgba(154, 63, 48, 0.06); color: var(--clay-dark); font-size: 0.82rem; font-weight: 600; padding: 11px 14px; border-radius: 2px; }
.rebook-banner.is-good { border-color: var(--olive); background: var(--olive-tint); color: var(--olive); }
.card-meta { font-size: 0.76rem; color: var(--muted); margin-top: 14px; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.kcol { background: var(--paper); border: 1px solid var(--line); padding: 10px; min-height: 220px; }
.kcol-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--line-strong); padding: 2px 4px 8px; margin-bottom: 10px; }
.kcol-name { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft-ink); }
.kcol-total { font-family: var(--sans); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.kcard { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--olive); padding: 10px 12px; margin-bottom: 10px; animation: kIn 0.25s ease both; }
@keyframes kIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.kcard.is-paid { border-left-color: var(--muted); opacity: 0.62; }
.kcard.is-overdue { border-left-color: var(--clay); }
.kcard-name { font-weight: 700; font-size: 0.82rem; line-height: 1.3; margin-bottom: 2px; }
.kcard-value { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); }
.kcard-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.kbadge { font-size: 0.64rem; font-weight: 700; padding: 2px 7px; border: 1px solid var(--olive); color: var(--olive); border-radius: 2px; }
.kbadge-alert { border-color: var(--clay); color: var(--clay); background: rgba(154, 63, 48, 0.05); }
.kbadge-paid { border-color: var(--olive); color: var(--olive); }
.kcard-actions { display: flex; gap: 6px; margin-top: 9px; }
.kbtn { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; padding: 5px 10px; background: var(--clay); color: var(--white); border: 1px solid var(--clay); cursor: pointer; border-radius: 2px; }
.kbtn:hover { background: var(--clay-dark); }
.kbtn-ghost { background: transparent; color: var(--soft-ink); border-color: var(--line-strong); }
.kbtn-ghost:hover { background: var(--paper-deep); }

/* clinic worklist */
.recall-progress { height: 8px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; }
.recall-progress-bar { height: 100%; width: 0%; background: var(--olive); transition: width 0.35s ease; }
.calllist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; }
.call-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--olive); padding: 13px 15px; flex-wrap: wrap; }
.call-row.is-overdue { border-left-color: var(--clay); }
.call-row.is-done { border-left-color: var(--line-strong); opacity: 0.7; }
.call-who { flex: 1; min-width: 180px; }
.call-name { font-weight: 700; font-size: 0.95rem; display: block; }
.call-why { font-size: 0.78rem; color: var(--muted); }
.call-due { font-size: 0.74rem; font-weight: 700; white-space: nowrap; color: var(--muted); }
.call-due.is-overdue { color: var(--clay); }
.call-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.call-btn { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; padding: 6px 10px; background: transparent; border: 1px solid var(--olive); color: var(--olive); cursor: pointer; border-radius: 2px; }
.call-btn:hover { background: var(--olive); color: var(--white); }
.call-btn-soft { border-color: var(--line-strong); color: var(--muted); }
.call-btn-soft:hover { background: var(--paper-deep); color: var(--ink); border-color: var(--line-strong); }
.call-outcome { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; padding: 4px 10px; border: 1px solid var(--olive); color: var(--olive); border-radius: 2px; }
.call-outcome.is-soft { border-color: var(--line-strong); color: var(--muted); }
.call-undo { background: none; border: none; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.recall-upcoming { font-size: 0.82rem; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.recall-upcoming strong { color: var(--ink); }
.demo-footnote { margin-top: 22px; text-align: center; font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ============ THE MATHS ============ */
.maths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.maths-copy p { margin-bottom: 18px; max-width: 56ch; color: var(--soft-ink); }
.maths-slider { margin: 26px 0 14px; }
.maths-slider label { display: block; font-weight: 600; margin-bottom: 10px; }
.maths-slider input[type="range"] { width: 100%; accent-color: var(--clay); cursor: pointer; }
.maths-result { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; border-left: 2px solid var(--clay); padding-left: 18px; min-height: 60px; color: var(--soft-ink); }
.maths-result strong { color: var(--clay-dark); }
.maths-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 0.92rem; }
.maths-table th, .maths-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.maths-table thead th { border-bottom: 1px solid var(--line-strong); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.th-soft { display: block; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.maths-table td:first-child { font-weight: 600; }
.maths-table td:nth-child(2) { color: var(--clay); }
.maths-table td:nth-child(3) { color: var(--olive); font-weight: 600; }
.maths-note { font-size: 0.78rem; color: var(--muted); margin-top: 12px; font-style: italic; }

/* ============ TRUST / PROMISE ============ */
.trust-panel { margin-top: 18px; border: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 253, 249, 0.42); }
.trust-item { padding: 32px 30px 34px; min-height: 220px; border-left: 1px solid var(--line); text-align: center; }
.trust-item:first-child { border-left: 0; }
.trust-num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--clay); line-height: 1; margin-bottom: 14px; }
.trust-item h3 { color: var(--ink); font-size: 1rem; line-height: 1.22; text-transform: uppercase; letter-spacing: 0.02em; }
.trust-item p { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

/* ============ STRAIGHT ANSWERS (Q&A) ============ */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; margin-top: 8px; }
.qa h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.qa p { color: var(--muted); font-size: 0.95rem; max-width: 56ch; }
.qa em { font-style: italic; color: var(--soft-ink); }

/* ============ FOUNDER NOTE ============ */
.founder { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.founder-note p { color: var(--soft-ink); font-size: 1.05rem; margin-bottom: 16px; max-width: 62ch; }
.founder-note .display { font-size: 1.6rem; color: var(--ink); line-height: 1.25; margin-bottom: 20px; }
.founder-sig { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--ink); margin-top: 8px; }
.founder-soft { display: block; font-family: var(--sans); font-size: 0.8rem; font-style: normal; color: var(--muted); margin-top: 4px; }
.founder-aside { border: 1px solid var(--line-strong); padding: 24px; background: var(--white); }
.founder-aside h3 { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--clay); margin-bottom: 12px; }
.founder-aside ul { list-style: none; margin: 0; padding: 0; }
.founder-aside li { font-size: 0.9rem; color: var(--soft-ink); padding: 9px 0; border-top: 1px solid var(--line); }
.founder-aside li:first-child { border-top: 0; }

/* ============ CLOSING ============ */
.closing { padding: 54px 0 48px; border-top: 1px solid var(--line); }
.closing-panel { border: 1px solid var(--line-strong); background: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; padding: 42px 52px; box-shadow: var(--shadow-soft); }
.closing-title { font-size: 3rem; line-height: 1.02; }
.closing p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.closing-actions { display: grid; gap: 18px; justify-items: end; }
.email-link { color: var(--soft-ink); font-size: 0.94rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ============ FOOTER ============ */
.site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1px 1fr auto; gap: 28px; align-items: center; color: var(--muted); font-size: 0.86rem; }
.footer-brand { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1; text-transform: uppercase; }
.footer-line { width: 1px; height: 30px; background: var(--line); }
.footer-domain { justify-self: end; color: var(--soft-ink); font-family: var(--serif); font-size: 1.25rem; }

/* ============ SVG line art ============ */
svg { overflow: visible; }
.line-art { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.line-art.soft { opacity: 0.55; }
.sketch { height: 112px; margin-bottom: 22px; color: var(--line-strong); }
.sketch svg { width: 100%; height: 100%; display: block; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .button, .recall-progress-bar { transition: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .site-header { align-items: center; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 40px; }
  .hero-copy { max-width: 760px; }
  h1 { font-size: 4.8rem; max-width: 760px; }
  .hero-visual { min-height: 0; }
  .hero-visual .work-order { margin-left: 0; margin-right: auto; }
  .ownership-card { margin-left: 100px; margin-right: auto; }
  .measurement.side { right: auto; left: 446px; }
  .price-band { grid-template-columns: 1fr; gap: 18px; }
  .interview-grid, .maths-grid, .founder { grid-template-columns: 1fr; gap: 32px; }
  .workorder-wrap { position: static; }
  .trust-panel { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--line); }
  .qa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header, .section, .site-footer { width: min(100% - 32px, 1180px); }
  .site-header { padding-top: 18px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .nav { justify-content: flex-start; gap: 16px; font-size: 0.72rem; flex-wrap: wrap; }
  .hero { padding-top: 30px; padding-bottom: 30px; }
  h1 { font-size: 3.7rem; line-height: 0.94; }
  .hero-subhead { font-size: 1.4rem; }
  .price-lockup { grid-template-columns: 1fr; gap: 12px; }
  .price-value { font-size: 3rem; }
  .hero-visual .work-order { width: 100%; margin-top: 24px; padding: 28px 24px 26px; }
  .measurement.top, .measurement.side { display: none; }
  .ownership-card { width: 100%; margin-left: 0; grid-template-columns: 1fr; }
  .ownership-card div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .price-band h2, .closing-title { font-size: 2.5rem; }
  .price-band p { font-size: 1.3rem; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .section-heading::after { display: none; }
  .section-heading h2 { white-space: normal; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { padding-top: 0; border-top: 0; }
  .medspa-split { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .kcol { min-height: 0; }
  .trust-panel { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(3), .trust-item:nth-child(4) { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .founder { grid-template-columns: 1fr; }
  .closing-panel { grid-template-columns: 1fr; padding: 32px 26px; }
  .closing-actions { justify-items: start; }
  .demo-body { padding: 20px 16px 24px; }
  .demo-stats { flex-direction: column; }
  .dstat { border-left: 0; border-top: 1px solid var(--line); }
  .dstat:first-child { border-top: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-line { display: none; }
  .footer-domain { justify-self: start; }
}
@media (max-width: 430px) {
  body { font-size: 15px; }
  h1 { font-size: 3.1rem; }
  .hero-subhead { font-size: 1.22rem; }
  .button { width: 100%; }
  .hero-actions { gap: 14px; }
  .price-value { font-size: 2.7rem; }
  .demo-tab { padding: 12px 16px; font-size: 0.76rem; }
}

/* ----------------------------------------------------------
   LEAD FORM (closing section + interview work-order capture)
   ---------------------------------------------------------- */
.closing-actions { justify-items: stretch; }
.lead-form { display: grid; gap: 14px; width: 100%; min-width: 320px; text-align: left; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-field { display: grid; gap: 6px; }
.lead-field > span { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.lead-field input, .lead-field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: 2px; width: 100%; box-sizing: border-box;
}
.lead-field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.lead-field input:focus, .lead-field textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.lead-form .button { width: 100%; margin-top: 2px; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-status { font-family: var(--sans); font-size: 0.9rem; line-height: 1.45; color: var(--olive); margin: 2px 0 0; }
.lead-status.is-error { color: var(--clay-dark); }

.wo-capture { display: grid; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .lead-form { min-width: 0; }
  .lead-row { grid-template-columns: 1fr; }
}
