/* Tokens: tokens-tile-c.json (tile C, Warm). Generated by build.py. */
:root {
  --c-brand-300: #E5BC5A;
  --c-brand-400: #DF9F3B;
  --c-brand-600: #B57C1A;
  --c-brand-700-text: #8A5A0B;
  --c-surface-base: #FBF6EC;
  --c-surface-raised: #FFFFFF;
  --c-surface-card: #F3E7CF;
  --c-surface-inverse: #1F1A14;
  --c-surface-danger: #FFF7F5;
  --c-surface-brand-tint-inverse: rgba(229, 188, 90, 0.16);
  --c-text-default: #1F1A14;
  --c-text-brand: #8A5A0B;
  --c-text-on-brand: #1F1A14;
  --c-text-inverse: #F2EDE4;
  --c-text-muted-inverse: #CFC6B6;
  --c-muted: #5E554A;
  --c-border-subtle: #E6D9C0;
  --c-border-strong: #857865;
  --c-border-brand: #DF9F3B;
  --c-focus: #8A5A0B;
  --c-danger: #B42318;
  --c-success: #2F7D4A;
  --c-review-bg: #FFE8E3;
  --c-review-fg: #9F1D12;
  --c-review-border: #9F1D12;
  --c-review-tag-fg: #FFFFFF;
  --c-review-bg-inverse: #3A1A14;
  --c-review-fg-inverse: #FFB4A6;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-display: 700;
  --lh-tight: 1.02;
  --lh-snug: 1.2;
  --lh-body: 1.6;
  --tr-eyebrow: 0.08em;
  --tr-display: -0.03em;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1.062rem, 1.008rem + 0.2247vw, 1.188rem);
  --fs-lg: clamp(1.188rem, 1.105rem + 0.3371vw, 1.375rem);
  --fs-xl: clamp(1.375rem, 1.211rem + 0.6742vw, 1.75rem);
  --fs-2xl: clamp(1.625rem, 1.351rem + 1.124vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.562rem + 1.798vw, 3rem);
  --fs-4xl: clamp(2.5rem, 1.733rem + 3.146vw, 4.25rem);
  --fs-display: clamp(3.25rem, 1.607rem + 6.742vw, 7rem);
  --sp-0: 0;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  --r-none: 0;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow-none: none;
  --shadow-soft: 0 1px 2px rgba(31, 26, 20, 0.06), 0 16px 40px -20px rgba(31, 26, 20, 0.28);
  --shadow-ring: 0 0 0 1px rgba(31, 26, 20, 0.08);
  --shadow-button: 0 8px 20px -10px rgba(181, 124, 26, 0.9);
  --dur-instant: 0ms;
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 480ms;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 0.7022rem + 2.247vw, 2.5rem);
  --section-y: clamp(4rem, 2.466rem + 6.292vw, 7.5rem);
}

/* Reinvented back office portal, v2. Style tile C (Warm).
   The :root token block above this file is generated by build.py from tokens-tile-c.json.
   This file holds the layout and components. Phone width first. */

:root {
  color-scheme: light;
  /* Names the moved content already uses, pointed at tile C tokens */
  --bg: var(--c-surface-base);
  --surface: var(--c-surface-raised);
  --surface-2: var(--c-surface-card);
  --text: var(--c-text-default);
  --muted: var(--c-muted);
  --line: var(--c-border-subtle);
  --line-strong: #D8C7A6;
  --border-input: var(--c-border-strong);
  --accent: var(--c-brand-700-text);
  --accent-soft: #FBEFD3;
  --on-accent: #FFFFFF;
  --ok: var(--c-success);
  --warn: #8A5A0B;
  --crit: var(--c-danger);
  --p-noshow: #B42318;
  --p-early: #C9861C;
  --p-stayed: #3D5A80;
  --p-bought: #2F7D4A;
  --font-ui: var(--font-body);
  --font-num: var(--font-body);
  --radius: var(--r-md);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--c-surface-base);
  color: var(--c-text-default);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-text-brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--tr-display); line-height: var(--lh-snug); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); line-height: 1.08; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-base); letter-spacing: 0; }
p { margin: 0; max-width: 64ch; }
p + p { margin-top: var(--sp-4); }
ul, ol { max-width: 70ch; }
.muted { color: var(--c-muted); }
.meta { color: var(--c-muted); font-size: var(--fs-xs); }
.num, td.n { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--sp-4); top: -100px; background: var(--c-surface-inverse); color: var(--c-text-inverse); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill); z-index: 20; }
.skip:focus { top: var(--sp-4); }

/* Site header and the one nav */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 236, 0.94); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--c-border-subtle); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-3); }
.brand { display: inline-flex; align-items: center; background: var(--c-surface-inverse); color: var(--c-text-inverse); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: -0.01em; padding: 6px 14px; border-radius: var(--r-pill); text-decoration: none; }
.brand b { color: var(--c-brand-300); font-weight: 700; margin-left: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-pill); color: var(--c-text-default); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.nav a:hover { background: var(--c-surface-card); }
.nav a[aria-current="page"] { background: var(--c-brand-400); color: var(--c-text-on-brand); }
@media (max-width: 480px) {
  .site-head { position: static; }
  html { scroll-padding-top: 16px; }
  .nav { width: 100%; }
  .nav a { padding: 0 10px; }
}

/* Page intro */
.page-intro { padding-block: var(--sp-8) var(--sp-6); display: grid; gap: var(--sp-4); }
.kicker { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-brand); letter-spacing: var(--tr-eyebrow); text-transform: uppercase; }
.page-intro .lede, .hero .lede { color: var(--c-muted); font-size: var(--fs-lg); line-height: 1.5; max-width: 60ch; }
.hero { padding-block: var(--sp-8) var(--sp-6); display: grid; gap: var(--sp-5); }
.hero .lede { font-size: var(--fs-base); }
.hero .lede:first-of-type { font-size: var(--fs-lg); }
.hero .lede b { color: var(--c-text-default); }
.hero .lede + .lede { margin-top: 0; }

/* On this page */
.toc { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--sp-3); border: 1px solid var(--c-border-subtle); background: var(--c-surface-raised); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-default); text-decoration: none; }
.toc a:hover { border-color: var(--c-border-brand); }

/* Sections */
main.wrap section { padding-block: var(--sp-8); border-top: 1px solid var(--c-border-subtle); display: grid; gap: var(--sp-5); min-width: 0; }
main.wrap section > * { min-width: 0; }
.head { display: grid; gap: var(--sp-3); }
.head .muted { font-size: var(--fs-base); }
.draft { display: inline-block; font-size: var(--fs-xs); color: var(--warn); border: 1px solid var(--warn); border-radius: var(--r-pill); padding: 1px 10px; margin-left: 8px; vertical-align: middle; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

/* Cards that the moved content uses */
.goals, .findings, .qform, .wf, .fnlist, .fgroups, .pieces, .stats, .tally { border-radius: var(--r-md); overflow: hidden; }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4); }
.goal { background: var(--surface); padding: var(--sp-5); display: grid; gap: var(--sp-2); align-content: start; border-radius: var(--r-md); box-shadow: var(--shadow-ring); }
.goal q { color: var(--muted); font-style: italic; quotes: "\201C" "\201D"; }

/* Tables, stacked under 640px */
.table-scroll { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th { text-align: left; font-weight: 600; font-size: var(--fs-xs); color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); letter-spacing: 0.02em; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: 0; }
th.n, td.n { text-align: right; white-space: nowrap; }
td.tbd { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sp-3); padding: 6px 0; border: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; padding-top: 2px; }
  td[data-label=""]::before { content: none; }
  td[data-label=""] { grid-template-columns: 1fr; }
  th.n, td.n { text-align: left; white-space: normal; }
  td:first-child { font-weight: 600; }
}

.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: none; }
.findings li { background: var(--surface); padding: var(--sp-4) var(--sp-5) var(--sp-4) 44px; position: relative; }
.findings li::before { content: ""; position: absolute; left: 18px; top: 24px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--warn); }
.findings li.crit::before { border-color: var(--crit); background: var(--crit); }
.findings li.good::before { border: 0; background: var(--ok); }
.findings b { font-weight: 700; }
.findings .meta { display: block; margin-top: 4px; }

/* Pool simulator */
.sim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); display: grid; overflow: hidden; }
.sim-controls { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-6); padding: var(--sp-5); border-bottom: 1px solid var(--line); align-items: end; }
.ctl { display: grid; gap: 6px; min-width: 0; }
.ctl label { font-size: var(--fs-sm); font-weight: 600; }
.ctl output { font-size: var(--fs-sm); color: var(--muted); }
input[type="range"] { width: 220px; max-width: 100%; accent-color: var(--c-brand-600); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border-input); border-radius: var(--r-pill); overflow: hidden; }
.seg button { font: 600 var(--fs-xs) var(--font-body); background: var(--surface); color: var(--text); border: 0; padding: 10px 14px; min-height: 40px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border-input); }
.seg button[aria-pressed="true"] { background: var(--c-surface-inverse); color: var(--c-text-inverse); }
.timeline { padding: var(--sp-5); display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 110px 1fr 150px; gap: 12px; align-items: center; }
.row .who { font-size: var(--fs-xs); }
.bar { position: relative; height: 18px; background: var(--surface-2); border-radius: 4px; }
.bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.bar .pitch { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .55; }
.pool { font-size: var(--fs-xs); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pool i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.axis { display: grid; grid-template-columns: 110px 1fr 150px; gap: 12px; }
.axis .scale { position: relative; height: 16px; font-size: 12px; color: var(--muted); }
.axis .scale span { position: absolute; transform: translateX(-50%); }
.axis .scale span:first-child { transform: none; }
.axis .scale span:last-child { transform: translateX(-100%); }
@media (max-width: 640px) {
  .row, .axis { grid-template-columns: 76px 1fr; }
  .row .pool { grid-column: 2; }
  .axis > :last-child { display: none; }
}
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-radius: 0; }
.tally div { background: var(--surface); padding: var(--sp-3) var(--sp-5); display: grid; gap: 2px; }
.tally .k { font-size: var(--fs-xs); display: flex; align-items: center; gap: 6px; }
.tally .k i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tally .v { font: 700 var(--fs-xl) var(--font-display); }
.tally .d { font-size: var(--fs-xs); color: var(--muted); }
.sim-note { padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

/* Plan steps */
.phases { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); max-width: none; overflow: hidden; }
.phases li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.phases li:last-child { border-bottom: 0; }
.phases .when { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--sp-2); align-items: baseline; }
.phases .when b { color: var(--text); font-weight: 700; font-size: var(--fs-sm); font-family: var(--font-display); }
.phases .status { font-size: var(--fs-xs); font-weight: 600; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.phases .status.done { color: var(--ok); }
.phases .status.next { color: var(--accent); background: var(--accent-soft); }
@media (min-width: 720px) { .phases li { grid-template-columns: 150px 1fr; gap: var(--sp-4); } .phases .when { display: block; } .phases .when b { display: block; } }
.tonight { margin-top: var(--sp-5); padding: var(--sp-5); border-radius: var(--r-md); background: var(--c-surface-inverse); color: var(--c-text-inverse); }
.tonight h3 { margin: 0 0 var(--sp-2); color: var(--c-brand-300); }
.tonight h3 + p, .tonight h3 + ul { margin-top: 0; }
.tonight p { margin: 0 0 var(--sp-4); color: var(--c-text-muted-inverse); }
.tonight ul { margin: 0 0 var(--sp-5); padding-left: 20px; }
.tonight li { margin: 0 0 var(--sp-3); line-height: 1.55; color: var(--c-text-muted-inverse); }
.tonight li b { color: var(--c-text-inverse); }
.tonight a { color: var(--c-brand-300); }

.asks { margin: 0; padding-left: 22px; display: grid; gap: var(--sp-3); max-width: 70ch; }

/* Questionnaire */
.qform { display: grid; gap: var(--sp-4); background: transparent; border: 0; }
.qgroup { background: var(--surface); padding: var(--sp-5); display: grid; gap: var(--sp-5); border-radius: var(--r-md); box-shadow: var(--shadow-ring); min-width: 0; }
.qgroup h3 { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.q { display: grid; gap: var(--sp-2); max-width: 70ch; min-width: 0; }
.q > label, .q > .ql { font-weight: 600; }
.q .hint, .qgroup .hint { font-size: var(--fs-xs); color: var(--muted); }
.q input[type="text"], .q textarea { font: 400 var(--fs-sm)/1.4 var(--font-body); color: var(--text); background: var(--c-surface-base); border: 1px solid var(--border-input); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px; width: 100%; max-width: 56ch; }
.q input[type="text"]:focus, .q textarea:focus { border-color: var(--c-brand-600); }
.q textarea { min-height: 120px; resize: vertical; }
.opts { display: grid; gap: var(--sp-2); }
.opts label { display: flex; gap: 12px; align-items: baseline; font-weight: 400; cursor: pointer; padding: 6px 0; }
.opts input { accent-color: var(--c-brand-600); flex: none; width: 18px; height: 18px; transform: translateY(3px); }
.qactions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding: var(--sp-5); background: var(--c-surface-card); border-radius: var(--r-md); position: relative; }
.qactions .meta { flex-basis: 100%; }
.qactions textarea { width: 100%; min-height: 160px; font: 400 var(--fs-xs)/1.4 var(--font-body); border-radius: var(--r-sm); border: 1px solid var(--border-input); padding: 10px; }
.agitem { display: grid; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.agitem .q { overflow-wrap: anywhere; }
.agnote > label { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.agtopic { font-size: var(--fs-lg); margin: var(--sp-4) 0 0; color: var(--c-text-brand); }
.told { display: grid; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); background: var(--surface-2); border-radius: var(--r-sm); }
.told .ql { font-weight: 600; }
.told ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: var(--fs-sm); }

/* Buttons, tile C */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  font: var(--fw-semibold) var(--fs-sm)/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  border-radius: var(--r-pill); border: 2px solid var(--c-brand-400);
  background: var(--c-brand-400); color: var(--c-text-on-brand); box-shadow: var(--shadow-button);
  transition: background-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.btn:hover { background: var(--c-brand-300); border-color: var(--c-brand-300); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--c-text-default); border-color: var(--c-text-default); box-shadow: none; }
.btn.secondary:hover { background: var(--c-surface-inverse); color: var(--c-text-inverse); }
.btn:disabled { background: var(--c-surface-card); color: var(--c-muted); border-color: var(--c-border-subtle); box-shadow: none; transform: none; cursor: not-allowed; }

/* The new setup */
.flowlist { list-style: none; margin: 0; padding: 0; display: grid; max-width: 720px; }
.fstep { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--sp-4); display: grid; gap: 4px; }
.fstep.key { background: var(--accent-soft); border-color: var(--c-brand-400); }
.fstep b { font-weight: 700; font-family: var(--font-display); }
.fstep .tool, .piece .tool { font-size: var(--fs-xs); color: var(--c-text-brand); font-weight: 600; }
.fstep > span:last-child { font-size: var(--fs-sm); }
.flowlist > li + li { margin-top: 26px; position: relative; }
.flowlist > li + li::before { content: ""; position: absolute; left: 28px; top: -26px; height: 26px; border-left: 2px solid var(--line-strong); }
.flowlist > li + li::after { content: ""; position: absolute; left: 24px; top: -8px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--line-strong); }
.fbranch { display: grid; gap: var(--sp-3); }
@media (min-width: 720px) { .flowlist { max-width: none; } .fbranch { grid-template-columns: repeat(3, 1fr); } }

/* Workflow map and accounts */
.wf { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); max-width: none; overflow: visible; }
.wf > li { background: var(--surface); padding: var(--sp-5); display: grid; gap: var(--sp-3); border-radius: var(--r-md); box-shadow: var(--shadow-ring); min-width: 0; }
.wf .wfhead { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.wf dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 0; font-size: var(--fs-sm); max-width: 76ch; }
.wf dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.wf dd { margin: 0 0 var(--sp-2); }
@media (min-width: 641px) { .wf dl { grid-template-columns: 110px 1fr; gap: var(--sp-2) var(--sp-4); } .wf dd { margin: 0; } .acct dl { grid-template-columns: 130px 1fr; } }
.blanks { display: grid; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); background: var(--surface-2); border-radius: var(--r-sm); }
.blanks .bl { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.wf .held { color: var(--warn); font-size: var(--fs-xs); font-weight: 600; }
.tofill { margin: 0; }
.wfblanks { display: grid; gap: var(--sp-5); }
.wfblank { display: grid; gap: var(--sp-3); }
.wfblank h3 .back { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0; margin-left: var(--sp-2); }

/* Enhancements, content */
.sample { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-ring); padding: var(--sp-5); display: grid; gap: var(--sp-3); max-width: 72ch; }
.sample .stitle { font-weight: 700; font-family: var(--font-display); }
.sample ul { margin: 0; padding-left: 20px; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.sample .meta { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--sp-4); overflow: visible; }
.piece { background: var(--surface); padding: var(--sp-5); display: grid; gap: 6px; align-content: start; border-radius: var(--r-md); box-shadow: var(--shadow-ring); font-size: var(--fs-sm); }
.piece b { font-weight: 700; font-family: var(--font-display); font-size: var(--fs-base); }
.means { margin: 0; padding-left: 22px; display: grid; gap: var(--sp-3); max-width: 70ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); overflow: visible; }
.stats div { background: var(--c-surface-inverse); color: var(--c-text-inverse); padding: var(--sp-4) var(--sp-5); display: grid; gap: 2px; border-radius: var(--r-md); }
.stats .v { font: 700 var(--fs-2xl)/1.1 var(--font-display); color: var(--c-brand-300); letter-spacing: var(--tr-display); }
.stats .k { font-size: var(--fs-xs); color: var(--c-text-muted-inverse); }

/* Page by page */
.pintro { display: grid; gap: var(--sp-3); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 1px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; overflow-wrap: anywhere; }
.chip.live, .chip.rebuilt { color: var(--ok); }
.chip.off, .chip.retired { color: var(--muted); }
.chip.dead { color: var(--crit); }
.chip.torebuild { color: var(--accent); }
.chip.held { color: var(--warn); }
.chip.mixed { color: var(--text); }
.chip.rebuilt, .chip.torebuild, .chip.held, .chip.retired, .chip.mixed { background: var(--surface-2); border-color: transparent; }
.chip.have { color: var(--ok); }
.chip.need { color: var(--crit); }
.chip.ifused { color: var(--muted); }
.chip.have, .chip.need, .chip.ifused { background: var(--surface-2); border-color: transparent; }
.acct dd { overflow-wrap: anywhere; }
.acct .num { font-size: var(--fs-xs); background: var(--surface-2); padding: 0 6px; border-radius: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.fnlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fn { background: var(--surface); }
.fn > summary { list-style: none; cursor: pointer; padding: var(--sp-4) var(--sp-4) var(--sp-4) 44px; position: relative; display: grid; gap: 6px; min-height: 48px; }
.fn > summary::-webkit-details-marker { display: none; }
.fn > summary::before { content: ""; position: absolute; left: 19px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.fn[open] > summary::before { transform: rotate(45deg); top: 21px; }
.fn > summary:hover .fname { color: var(--accent); }
.fname { font-weight: 700; font-family: var(--font-display); font-size: var(--fs-base); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips .pc { font-size: var(--fs-xs); color: var(--muted); }
.fbody { padding: 0 var(--sp-4) var(--sp-5); display: grid; gap: var(--sp-3); }
.fblurb { font-size: var(--fs-sm); color: var(--muted); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: var(--sp-3); font-size: var(--fs-sm); line-height: 1.5; }
.steps li { overflow-wrap: anywhere; }
.steps li::marker { color: var(--muted); font-size: var(--fs-xs); }
.steps .l1, .steps .l2, .steps .l3 { display: block; }
.steps .l2, .steps .l3 { color: var(--muted); font-size: var(--fs-xs); }
.steps i { font-style: normal; font-weight: 600; color: var(--text); }
.steps .l1 .chip { margin-left: 4px; vertical-align: 1px; }
.fgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fg { background: var(--surface); padding: var(--sp-4) var(--sp-5); display: grid; gap: 6px; align-content: start; }
.fg > b { font-weight: 700; }
.fg .tool { font-size: var(--fs-xs); color: var(--muted); }
.flist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.flist li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.flist li > span:first-child { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.flist .fnote { font-size: var(--fs-xs); color: var(--muted); }
.flist li.private { border-left: 3px solid var(--warn); padding-left: 10px; }
.flist li.private .fnote { color: var(--warn); font-weight: 600; }

/* Overview page links */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--sp-4); }
.card { display: grid; gap: var(--sp-2); align-content: start; padding: var(--sp-5); background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-ring); color: var(--text); text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.card b { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -0.01em; }
.card span { color: var(--muted); font-size: var(--fs-sm); }
.card .go { color: var(--c-text-brand); font-weight: 600; }
.card.dark { background: var(--c-surface-inverse); color: var(--c-text-inverse); box-shadow: none; }
.card.dark span { color: var(--c-text-muted-inverse); }
.card.dark .go { color: var(--c-brand-300); }
.note { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-review-bg); color: var(--c-text-default); border-left: 4px solid var(--c-review-border); }

/* Pricing */
.plans { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan-card { display: grid; gap: var(--sp-4); padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-ring); min-width: 0; }
.plan-card.yours { background: var(--c-surface-inverse); color: var(--c-text-inverse); box-shadow: var(--shadow-soft); }
.plan-card .who { font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--c-text-brand); }
.plan-card.yours .who { color: var(--c-brand-300); }
.plan-card h3 { font-size: var(--fs-xl); }
.price { display: grid; gap: 2px; }
.price .amt { font: 700 var(--fs-3xl)/1 var(--font-display); letter-spacing: var(--tr-display); }
.price .per { font-size: var(--fs-sm); color: var(--muted); }
.plan-card.yours .price .per, .plan-card.yours .fine { color: var(--c-text-muted-inverse); }
.price s { color: var(--muted); font-weight: 500; font-size: var(--fs-lg); margin-left: 6px; }
.plan-card.yours .price s { color: var(--c-text-muted-inverse); }
.off { display: inline-block; font-size: var(--fs-xs); font-weight: 700; background: var(--c-brand-400); color: var(--c-text-on-brand); padding: 2px 10px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: 4px; letter-spacing: 0; font-family: var(--font-body); }
.plan-card ul { margin: 0; padding-left: 20px; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.plan-card.yours li { color: var(--c-text-muted-inverse); }
.plan-card .fine { font-size: var(--fs-xs); color: var(--muted); }
.savings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--sp-3); }
.savings div { background: var(--c-surface-card); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); display: grid; gap: 2px; }
.savings .v { font: 700 var(--fs-2xl)/1.1 var(--font-display); letter-spacing: var(--tr-display); color: var(--c-text-brand); }
.savings .k { font-size: var(--fs-xs); color: var(--muted); }
.twocol { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.twocol > div { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-ring); padding: var(--sp-5); display: grid; gap: var(--sp-3); align-content: start; }
.twocol ul { margin: 0; padding-left: 20px; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }

/* Package, workflows and funnel pages */
div.card:hover { transform: none; box-shadow: var(--shadow-ring); }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); max-width: 72ch; }
.check li { position: relative; padding: var(--sp-4) var(--sp-5) var(--sp-4) 52px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-ring); }
.check li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 16px; height: 16px; border: 2px solid var(--c-brand-600); border-radius: 4px; }
.check b { font-weight: 700; }
.golive, .counsel { margin: 0; padding-left: 26px; display: grid; gap: var(--sp-3); max-width: 72ch; }
.golive li::marker { font-weight: 700; color: var(--c-text-brand); }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); max-width: 72ch; }
.dl li { display: grid; gap: 2px; }
.dl a { font-weight: 600; }
.wf > li > p { font-size: var(--fs-base); max-width: 76ch; }
.wf > li > p.previews, .wf > li > p.nodiagram { font-size: var(--fs-xs); }
.diagram { margin: 0; display: grid; gap: var(--sp-2); min-width: 0; }
.diagram img { width: 100%; max-width: 100%; height: auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-2); }
.diagram figcaption { font-size: var(--fs-xs); color: var(--muted); }
.diagram figcaption a { font-weight: 600; }
.nodiagram { margin: 0; font-style: italic; }
.previews { margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.previews a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--sp-3); border: 1px solid var(--c-border-subtle); background: var(--c-surface-base); border-radius: var(--r-pill); font-weight: var(--fw-semibold); color: var(--c-text-default); text-decoration: none; }
.previews a:hover { border-color: var(--c-border-brand); }

/* Nine nav items: on a phone they wrap to two even rows instead of three ragged ones */
@media (max-width: 480px) {
  .site-head .wrap { padding-block: var(--sp-2); }
  .nav { gap: 2px; justify-content: flex-start; }
  .nav a { min-height: 36px; padding: 0 7px; font-size: 13px; }
}

@media print {
  .site-head, .skip, .toc, footer.site-foot { display: none; }
  body { background: #FFFFFF; }
  .card, .check li, .twocol > div, .wf > li { box-shadow: none; border: 1px solid #CCCCCC; break-inside: avoid; }
  a { color: inherit; }
}

footer.site-foot { border-top: 1px solid var(--c-border-subtle); margin-top: var(--sp-6); padding-block: var(--sp-6); display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; color: var(--c-muted); font-size: var(--fs-xs); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover { transform: none; }
}
