/* Kijestic public site design system (launch 2026-09, preview).
   Restrained, product-forward: warm graphite ground, ivory type, brass used only
   as a signal (primary action, focus, approval states). No glass, no neon.
   Tokens first; components below. Record: businesses/kijestic/launch-2026-09/. */

:root {
  --ground: #0b0a09;
  --surface: #13110f;
  --surface-2: #1b1815;
  --line: #2a251f;
  --line-strong: #3a332a;
  --ivory: #f4f0e8;
  --text: #e6dfd4;
  --text-2: #b9afa2;
  --text-3: #958a7d;
  --brass: #c79a3c;
  --brass-light: #e3c079;
  --brass-deep: #b0812a;
  --on-brass: #1a1206;
  --sage: #8fb59a;
  --sage-bg: rgba(143, 181, 154, 0.12);
  --brass-bg: rgba(199, 154, 60, 0.12);
  --danger: #e59a8c;

  --paper: #f4f0e8;
  --paper-ink: #1a1714;
  --paper-2: #5b5349;
  --paper-line: #d9d1c4;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --wrap: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; }
[id] { scroll-margin-top: 88px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass-light); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brass); color: var(--on-brass); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brass);
  color: var(--on-brass); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 760px; }

/* Type */
h1, h2, h3, h4 { color: var(--ivory); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.05rem, 4.3vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 var(--s4); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 40em; }
.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-light); margin: 0 0 var(--s4); }
.muted { color: var(--text-2); }
.fine { font-size: 0.86rem; color: var(--text-3); line-height: 1.5; }
.mono { font-family: var(--mono); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 9, 0.9);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none;
  font-weight: 700; letter-spacing: 0.16em; font-size: 0.95rem; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a { color: var(--text-2); text-decoration: none; font-size: 0.94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-brass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ivory);
  border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s3) var(--s5) var(--s5); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: var(--s4); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.btn-primary { background: var(--brass); color: var(--on-brass); }
.btn-primary:hover { background: var(--brass-light); color: var(--on-brass); }
.btn-secondary { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brass); color: var(--ivory); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 1.08rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.text-link { color: var(--text-2); font-size: 1rem; text-underline-offset: 4px; }
.text-link:hover { color: var(--ivory); }

/* Sections */
section { padding: var(--s9) 0; border-top: 1px solid var(--line); }
section.first { border-top: 0; }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head p { color: var(--text-2); font-size: 1.1rem; margin-top: var(--s4); }
@media (max-width: 700px) { section { padding: var(--s8) 0; } }

/* Hero */
.hero { padding: var(--s8) 0 var(--s8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s8); align-items: start; }
.hero-grid > div:first-child { padding-top: var(--s7); }
.hero h1 { margin-bottom: var(--s5); }
.hero .lede { margin-bottom: var(--s6); }
.hero .btn-row { margin-bottom: var(--s5); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } .hero-grid > div:first-child { padding-top: 0; } .hero { padding-top: var(--s7); } }

/* Hero chips: audience and the live offer, above the headline */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); }
.chip { font-size: 0.86rem; line-height: 1.2; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface); }
.chip-offer { border-color: rgba(199, 154, 60, 0.55); color: var(--brass-light); background: var(--brass-bg); }

/* Offer strip (content filled from /api/assessment) */
.offer-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--brass); border-radius: var(--r-sm);
  background: var(--surface); font-size: 0.93rem; color: var(--text-2); max-width: 44em; }
.offer-strip strong { color: var(--ivory); font-weight: 600; }
.offer-strip a { font-size: 0.9rem; }

/* Signature workflow visual */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5);
  position: relative; }
.flow-label { display: flex; justify-content: space-between; gap: var(--s3); align-items: center; margin-bottom: var(--s4);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); flex-wrap: wrap; }
.flow-tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; color: var(--text-2); white-space: nowrap; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--ground); transition: border-color .4s var(--ease), background-color .4s var(--ease), opacity .4s var(--ease); }
.flow .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono);
  font-size: 0.8rem; color: var(--text-2); border: 1px solid var(--line-strong); }
.flow .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.flow .t { color: var(--ivory); font-size: 0.98rem; line-height: 1.45; }
.flow .d { color: var(--text-2); font-size: 0.86rem; margin-top: 4px; }
.flow .sms { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 8px; padding: 6px 10px; border-radius: 10px 10px 10px 2px;
  background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 0.86rem; color: var(--text); }
.flow .sms.reply { border-radius: 10px 10px 2px 10px; background: var(--brass-bg); border-color: rgba(199,154,60,.4); }
.flow li.gate .n { border-color: var(--brass); color: var(--brass-light); }
.flow li.done .n { border-color: var(--sage); color: var(--sage); }
.flow.animate li { opacity: 0.5; }
.flow.animate li.on { opacity: 1; border-color: var(--line-strong); }
.flow.animate li.gate.on { border-color: rgba(199,154,60,.55); background: linear-gradient(0deg, var(--brass-bg), var(--brass-bg)), var(--ground); }
.flow.animate li.done.on { border-color: rgba(143,181,154,.5); background: linear-gradient(0deg, var(--sage-bg), var(--sage-bg)), var(--ground); }
.flow-foot { margin-top: var(--s4); font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
.flow-controls { position: absolute; top: 14px; right: 14px; }
@media (prefers-reduced-motion: reduce) { .flow.animate li { opacity: 1; transition: none; } }

/* Problem list (editorial, not a card grid) */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.problem { padding: var(--s6) var(--s6) var(--s6) 0; border-bottom: 1px solid var(--line); }
.problem:nth-child(odd) { border-right: 1px solid var(--line); }
.problem:nth-child(even) { padding-left: var(--s6); }
.problem .idx { font-family: var(--mono); font-size: 0.78rem; color: var(--brass-light); margin-bottom: var(--s3); }
.problem h3 { margin-bottom: var(--s3); }
.problem p { color: var(--text-2); margin-bottom: var(--s3); }
.problem .ex { font-size: 0.9rem; color: var(--text-3); border-left: 2px solid var(--line-strong); padding-left: 12px; margin: 0; }
@media (max-width: 760px) {
  .problems { grid-template-columns: 1fr; }
  .problem, .problem:nth-child(even) { padding: var(--s5) 0; border-right: 0; }
  .problem:nth-child(odd) { border-right: 0; }
}

/* Layered architecture */
.layers { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.layer { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) var(--s6); background: var(--surface); }
.layer + .layer { border-top: 1px solid var(--line); }
.layer.core { background: var(--surface-2); }
.layer .who { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.layer h3 { margin-bottom: 6px; }
.layer p { color: var(--text-2); margin: 0; font-size: 0.98rem; }
.layer .status { display: inline-block; margin-top: 10px; font-size: 0.8rem; color: var(--text-3); }
@media (max-width: 760px) { .layer { grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s5); } }

/* Engagement phases */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: phase; }
.phase { padding: var(--s5) var(--s5) var(--s5) 0; border-top: 2px solid var(--line-strong); position: relative; }
.phase + .phase { padding-left: var(--s5); }
.phase.lead { border-top-color: var(--brass); }
.phase .step { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: var(--s3) 0; }
.phase h3 { margin-bottom: var(--s3); }
.phase p, .phase li { color: var(--text-2); font-size: 0.97rem; }
.phase ul { margin: 0; padding-left: 18px; }
.phase li { margin-bottom: 4px; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } .phase, .phase + .phase { padding: var(--s5) 0; } }

/* Paper band (the assessment deliverables) */
.paper { background: var(--paper); color: var(--paper-ink); border-top: 0; color-scheme: light; }
.paper h2, .paper h3 { color: var(--paper-ink); }
.paper .eyebrow { color: #8a6516; }
.paper .section-head p, .paper p { color: var(--paper-2); }
.paper a { color: #7a5812; }
.paper a:hover { color: var(--paper-ink); }
.paper .btn-primary { background: var(--paper-ink); color: var(--paper); }
.paper .btn-primary:hover { background: #33302b; color: var(--paper); }
.paper .btn-secondary { color: var(--paper-ink); border-color: #b9ae9c; }
.paper :focus-visible { outline-color: #7a5812; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--paper-line); color: var(--paper-ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px;
  border-left: 2px solid #8a6516; border-bottom: 2px solid #8a6516; transform: rotate(-45deg); }
.checklist.dark li { border-bottom-color: var(--line); color: var(--text); }
.checklist.dark li::before { border-color: var(--brass-light); }
.checklist.x li::before { width: 12px; height: 2px; border: 0; background: #9a8f80; transform: none; top: 24px; }
.doc-preview { background: #fffdf8; border: 1px solid var(--paper-line); border-radius: var(--r); padding: var(--s6);
  box-shadow: 0 24px 60px -30px rgba(26, 23, 20, 0.35); font-size: 0.92rem; color: var(--paper-ink); }
.doc-preview .doc-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; color: #8a6516; }
.doc-preview h3 { font-size: 1.1rem; margin: 6px 0 14px; }
.doc-preview table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 10px 0 16px; }
.doc-preview th, .doc-preview td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.doc-preview th { font-weight: 600; color: var(--paper-2); font-size: 0.76rem; text-transform: uppercase; letter-spacing: .05em; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }

/* Proof rows */
.proof { display: grid; gap: 0; border-top: 1px solid var(--line); }
.proof-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.proof-row .kind { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.proof-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.proof-row p { color: var(--text-2); margin: 0; }
@media (max-width: 760px) { .proof-row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }

/* Proof cards: link-cards to the case-study pages, above the shorter proof rows */
.proof-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); margin-bottom: var(--s7); }
.proof-card { display: block; text-decoration: none; padding: var(--s6); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); background: var(--surface); transition: border-color .2s var(--ease); }
.proof-card:hover { border-color: var(--brass); }
.proof-card .kind { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: var(--s3); }
.proof-card h3 { color: var(--ivory); margin-bottom: var(--s3); font-size: 1.3rem; }
.proof-card p { color: var(--text-2); margin: 0 0 var(--s4); }
.proof-card .case-link { color: var(--ivory); font-weight: 600; font-size: 0.95rem; }
.proof-card:hover .case-link { color: var(--brass-light); }
@media (max-width: 760px) { .proof-cards { grid-template-columns: 1fr; } }

/* Case-study pages: before/after workflow visualization */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s6); }
.compare .flow { margin: 0; }
.compare-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3); font-family: var(--mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; padding-top: var(--s8); }
.compare-arrow svg { width: 26px; height: 26px; }
.flow li.stuck .n { border-color: var(--danger); color: var(--danger); }
@media (max-width: 900px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-arrow { flex-direction: row; padding: var(--s3) 0; }
  .compare-arrow svg { transform: rotate(90deg); }
}

/* Case-study pages: PROBLEM -> SYSTEM CHANGE -> NEW WORKFLOW rows */
.change-list { border-top: 1px solid var(--line); margin-top: var(--s6); }
.change-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.change-row .lbl { font-family: var(--mono); font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: var(--text-3); }
.change-row .lbl.problem { color: var(--danger); }
.change-row .lbl.change { color: var(--brass-light); }
.change-row .lbl.workflow { color: var(--sage); }
.change-row p { color: var(--text-2); margin: 0; font-size: 0.96rem; }
@media (max-width: 860px) { .change-row { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; color: var(--ivory);
  font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--brass-light); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; color: var(--text-2); max-width: 46em; }
.faq .a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .inner { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--s8) var(--s7);
  background: radial-gradient(120% 140% at 100% 0%, rgba(199,154,60,.10), transparent 55%), var(--surface); }
.cta-band h2 { margin-bottom: var(--s4); max-width: 18em; }
.cta-band p { color: var(--text-2); max-width: 38em; margin-bottom: var(--s6); }
@media (max-width: 700px) { .cta-band .inner { padding: var(--s7) var(--s5); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s8); font-size: 0.92rem; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.site-footer h4 { font-size: 0.78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s3); font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer .tag { color: var(--ivory); font-weight: 600; margin: var(--s3) 0 var(--s2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: var(--s6); }
@media (max-width: 600px) { .form-card { padding: var(--s5); } }
.field { margin-bottom: var(--s5); }
.field label, .field legend { display: block; font-weight: 600; color: var(--ivory); font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-size: 0.85rem; color: var(--text-3); margin: -2px 0 8px; }
.field .opt { font-weight: 400; color: var(--text-3); font-size: 0.86rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--ground); color: var(--ivory); font: inherit; font-size: 1rem; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { border-color: var(--brass); outline: 2px solid rgba(199,154,60,.35); outline-offset: 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.88rem; margin-top: 6px; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.93rem; color: var(--text-2); margin-bottom: var(--s4); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brass); }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 var(--s5); }
.segmented label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-size: 0.93rem; color: var(--text-2); }
.segmented input { accent-color: var(--brass); margin: 0; }
.segmented label:has(input:checked) { border-color: var(--brass); color: var(--ivory); background: var(--brass-bg); }
.more { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 0 var(--s4); margin-bottom: var(--s5); }
.more summary { cursor: pointer; padding: 14px 0; color: var(--ivory); font-weight: 600; font-size: 0.95rem; }
.more[open] { padding-bottom: var(--s2); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--r); padding: var(--s5); margin-top: var(--s5); border: 1px solid var(--line-strong); background: var(--surface-2); }
.notice h3 { margin-bottom: var(--s2); }
.notice.ok { border-color: rgba(143,181,154,.5); background: var(--sage-bg); }
.notice.warn { border-color: rgba(229,154,140,.5); background: rgba(229,154,140,.08); }
.notice p:last-child { margin-bottom: 0; }
.notice ol { margin: var(--s3) 0; padding-left: 20px; color: var(--text-2); }

/* Long-form pages (terms, privacy, sample) */
.doc { padding: var(--s8) 0 var(--s9); }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--s4); }
.doc h2 { font-size: 1.45rem; margin: var(--s7) 0 var(--s3); }
.doc h3 { margin: var(--s5) 0 var(--s2); }
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: var(--s4) 0 var(--s5); font-size: 0.93rem; }
.doc th, .doc td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--ivory); font-weight: 600; font-size: 0.85rem; }
.banner { border: 1px solid rgba(199,154,60,.5); background: var(--brass-bg); color: var(--text); border-radius: var(--r);
  padding: 14px 16px; font-size: 0.93rem; margin: var(--s5) 0; }
.banner strong { color: var(--ivory); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Worksheet */
.ws-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.ws-table th, .ws-table td { border: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: 0.88rem; }
.ws-table th { background: var(--surface-2); color: var(--ivory); text-align: left; font-weight: 600; }
.ws-table input, .ws-table select { min-height: 38px; padding: 6px 8px; font-size: 0.9rem; }
.ws-table td.calc { font-family: var(--mono); color: var(--brass-light); white-space: nowrap; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  .doc p, .doc li, .doc td, .doc th, h1, h2, h3 { color: #000 !important; }
  .ws-table th { background: #eee; color: #000; }
  .ws-table th, .ws-table td { border-color: #999; }
  .ws-table input, .ws-table select { border: 0; background: transparent; color: #000; }
  section, .doc { padding: 12pt 0; border: 0; }
  a { color: #000; }
}
