/* DeadPoetLabs shared design system. No external resources. */
:root {
  --paper: #faf6ef;
  --card: #ffffff;
  --ink: #1d2733;
  --ink-soft: #4a5563;
  --line: #d9d0c1;
  --accent: #1f5f5b;
  --accent-dark: #164643;
  --accent-tint: #e4efed;
  --warn-tint: #fbf0d9;
  --radius: 10px;
  --measure: 68ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  min-height: 44px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--measure); }

header.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 0.5rem; }

.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section.hero { border-top: 0; padding: 3rem 0 2.5rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0.6rem 1.25rem;
  border-radius: var(--radius); font: inherit; font-weight: 700;
  text-decoration: none; border: 2px solid var(--accent);
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-dark); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .label { display: inline-block; margin-top: 0.25rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--warn-tint); color: #5c4306; font-size: 0.85rem; font-weight: 700; }
.card .card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.steps { max-width: var(--measure); padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1rem 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0.5rem 0; font-weight: 700; }
.faq details p { padding-bottom: 0.5rem; }

/* Static picture of a product screen */
.illustration { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; max-width: 44rem; }
.illustration .ill-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.illustration .ill-head strong { font-size: 1.1rem; }
.ill-change { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.9rem; margin: 0 0 0.75rem; }
.ill-change .kind { font-weight: 700; }
.ill-change .cite { color: var(--ink-soft); font-size: 0.95rem; }
.ill-note { background: var(--accent-tint); border-radius: 8px; padding: 0.75rem 0.9rem; margin: 0 0 0.75rem; }
.fake-btn { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 1.1rem; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--ink-soft); font-weight: 700; cursor: default; user-select: none; }
.caption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.6rem; max-width: var(--measure); }

footer.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
footer.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-secondary { transition: background-color 0.15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Demo pages. Generic demo- classes, reusable by demos for other ideas. */
.demo-banner { background: var(--ink); color: #fff; padding: 0.6rem 0; font-size: 0.95rem; font-weight: 700; }
.demo-banner p { margin: 0; }
.demo-step { padding: 2rem 0; border-top: 1px solid var(--line); }
.demo-step h2:focus { outline: none; }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1rem; max-width: 44rem; }
.demo-card h3 { margin-bottom: 0.4rem; }
.demo-meta { margin: 0 0 0.25rem; color: var(--ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.demo-meta strong { color: var(--ink); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 1rem; padding: 0; list-style: none; }
.demo-chip { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.95rem; }
.demo-log { max-width: 44rem; margin: 0 0 1rem; padding: 0; list-style: none; min-height: 3rem; }
.demo-log li { padding: 0.45rem 0 0.45rem 2rem; position: relative; border-bottom: 1px solid var(--line); }
.demo-log li::before { content: "\2713"; position: absolute; left: 0.4rem; top: 0.45rem; color: var(--accent); font-weight: 700; }
.demo-sum { font-weight: 700; margin: 0 0 1rem; }
.demo-before-after { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; font-size: 1.1rem; margin: 0 0 0.5rem; }
.demo-before-after .demo-old { color: var(--ink-soft); text-decoration: line-through; }
.demo-before-after .demo-new { font-weight: 700; }
.demo-cites { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.demo-cite { min-height: 44px; min-width: 44px; padding: 0.4rem 0.9rem; border: 2px solid var(--accent); border-radius: var(--radius); background: transparent; color: var(--accent-dark); font: inherit; font-weight: 700; cursor: pointer; }
.demo-cite:hover, .demo-cite[aria-expanded="true"] { background: var(--accent-tint); }
.demo-tag { display: inline-block; margin: 0 0 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--warn-tint); color: #5c4306; font-size: 0.85rem; font-weight: 700; }
.demo-source { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.demo-source-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 0.5rem; }
.demo-source-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.demo-excerpt { white-space: pre-wrap; min-width: 0; margin: 0; padding: 0.75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.demo-excerpt strong { display: block; font-family: var(--font); font-size: 0.85rem; margin-bottom: 0.25rem; }
.demo-question { background: var(--warn-tint); border-color: #e3cf9c; }
.demo-answer { margin: 0 0 0.5rem; font-weight: 700; }
.demo-note-label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.demo-textarea { display: block; width: 100%; min-height: 12rem; padding: 0.75rem; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; line-height: 1.5; color: var(--ink); background: #fff; resize: vertical; }
.demo-hint { font-size: 0.95rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1rem 0 0; }
.demo-actions button.btn, .demo-actions button.btn-secondary, .demo-card button.btn, .demo-card button.btn-secondary { cursor: pointer; }
button.btn:disabled { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; }
.demo-what { margin: 0.5rem 0 0.75rem; }
.demo-reply:empty { display: none; }
.demo-confirm:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.demo-confirm { background: var(--accent-tint); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0 0; max-width: 44rem; }
.demo-confirm p { margin: 0 0 0.75rem; font-weight: 700; }
.demo-asks { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.demo-reply { margin-top: 0.75rem; padding: 0.75rem 1rem; background: var(--paper); border-left: 4px solid var(--accent); border-radius: 4px; max-width: 44rem; }
.demo-reply p { margin: 0; }
.demo-details { max-width: 44rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin: 0 0 1rem; padding: 0 1rem; }
.demo-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; padding: 0.5rem 0; }
.demo-details ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.demo-code { max-width: 100%; overflow-x: auto; margin: 0 0 1rem; padding: 0.75rem; background: var(--ink); color: #f3efe6; border-radius: 8px; font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }
.demo-code code { font-family: inherit; white-space: pre; }
.demo-noscript { max-width: 44rem; padding: 1rem 1.25rem; margin: 1rem 0; background: var(--warn-tint); border-radius: var(--radius); }
@media (min-width: 40rem) {
  .demo-source-grid { grid-template-columns: 1fr 1fr; }
}
.sr-only-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== v2 landing design (opt in with <body class="v2">). Inspired by warm, rounded, product-first pages. ===== */
body.v2 { --paper: #fbf8f3; --accent: #1f5f5b; --accent-2: #b5601f; --accent-3: #5b4bb0; --soft: #f1ebe0; --radius: 22px; --surface: #fff; --hero-grad: radial-gradient(120% 80% at 50% 0%, #f3e3c4 0%, #fbf8f3 62%); --tile-a: #f6e6c8; --tile-b: #dcebe8; --tile-c: #e6e1f5; --on-ink: #fff; --heading-font: inherit; background: var(--paper); color: var(--ink); }
.v2 h1, .v2 h2, .v2 h3, .v2 .brand { font-family: var(--heading-font); }
.v2 .site-header { border-bottom: 0; padding: 0.5rem 0; }
.v2 .brand { font-size: 1.15rem; letter-spacing: -0.01em; }
.v2 .pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.v2 .pill-link:hover { background: var(--accent-dark); color: #fff; }
.v2 .wrap { max-width: 70rem; }
.v2 .band { padding: 3.5rem 0; }
.v2 .band + .band { border-top: 0; }
.v2 h1, .v2 h2 { letter-spacing: -0.025em; }
.v2 h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.12; }
.v2 .center { text-align: center; margin-left: auto; margin-right: auto; }
.v2 .hl-teal { color: var(--accent); }
.v2 .hl-amber { color: var(--accent-2); }
.v2 .hl-violet { color: var(--accent-3); }

.v2 .hero2 { padding: 3rem 0 2rem; text-align: center; background: var(--hero-grad); }
.v2 .hero2 .eyebrow { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; letter-spacing: 0.04em; text-transform: none; font-size: 0.9rem; }
.v2 .hero2 h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); line-height: 1.05; max-width: 16ch; margin: 0.75rem auto 1rem; letter-spacing: -0.035em; }
.v2 .hero2 .lead { max-width: 40rem; margin: 0 auto 1.25rem; }
.v2 .hero2 .btn-row { justify-content: center; }
.v2 .btn, .v2 .btn-secondary { border-radius: 999px; padding: 0.65rem 1.5rem; }
.v2 .fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; }

/* product window in the hero */
.v2 .window { max-width: 46rem; margin: 2.5rem auto 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(29,39,51,0.35); overflow: hidden; }
.v2 .window-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }
.v2 .dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #d9cdb6; display: inline-block; }
.v2 .window-bar .wtitle { margin-left: 0.5rem; }
.v2 .window-body { padding: 1.25rem; display: grid; gap: 0.75rem; }
.v2 .chg { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 0.75rem 0.9rem; background: var(--paper); }
.v2 .chg .rank { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.v2 .chg .what { font-weight: 700; line-height: 1.3; }
.v2 .chg .what small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.v2 .chg .page { font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.v2 .note-box { border-radius: 16px; background: var(--accent-tint); padding: 0.9rem 1rem; }
.v2 .note-box p { margin: 0.25rem 0 0; }
.v2 .window-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.v2 .tag-sample { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--warn-tint); color: #5c4306; }

/* alternating rows */
.v2 .row { display: grid; gap: 1.5rem; align-items: center; margin: 0 0 3rem; }
.v2 .row .tile { border-radius: var(--radius); padding: 1.5rem; min-height: 14rem; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; }
.v2 .tile.t-warm { background: var(--tile-a); }
.v2 .tile.t-teal { background: var(--tile-b); }
.v2 .tile.t-violet { background: var(--tile-c); }
.v2 .mini { background: var(--surface); border-radius: 14px; padding: 0.7rem 0.9rem; font-size: 0.95rem; box-shadow: 0 8px 20px -14px rgba(29,39,51,0.5); }
.v2 .mini b { display: block; }
.v2 .mini span { color: var(--ink-soft); font-size: 0.88rem; }
@media (min-width: 52rem) {
  .v2 .row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .v2 .row.flip .tile { order: 2; }
}

/* examples */
.v2 .grid .card { border-radius: 20px; border-color: transparent; background: var(--surface); box-shadow: 0 10px 30px -22px rgba(29,39,51,0.5); }

/* flow */
.v2 .flow { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: f; }
.v2 .flow li { counter-increment: f; background: var(--surface); border-radius: 20px; padding: 1.25rem; border: 1px solid var(--line); }
.v2 .flow li::before { content: counter(f); display: flex; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 0.75rem; }

/* honest band */
.v2 .honest { background: var(--soft); border-radius: 28px; padding: 2rem 1.25rem; }
.v2 .honest ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.v2 .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 0.6rem; padding: 0 1.1rem; }
.v2 .faq summary { min-height: 52px; }

/* closing */
.v2 .closing { background: var(--ink); color: #fff; border-radius: 32px; padding: 3rem 1.25rem; text-align: center; margin: 1rem 0 3rem; }
.v2 .closing h2 { color: #fff; max-width: 20ch; margin: 0 auto 0.75rem; }
.v2 .closing p { color: #d7dde5; max-width: 34rem; margin: 0 auto 1rem; }
.v2 .closing .btn-row { justify-content: center; }
.v2 .closing .btn { background: #fff; color: var(--ink); border-color: #fff; }
.v2 .closing .btn:hover { background: var(--accent-tint); color: var(--ink); }
.v2 .closing .btn-secondary { color: #fff; border-color: #fff; }
.v2 .closing .btn-secondary:hover { background: rgba(255,255,255,0.14); color: #fff; }
.v2 .closing a:focus-visible, .v2 .closing .btn:focus-visible { outline-color: #fff; }
.v2 .closing p a { color: #fff; text-decoration: underline; }
@media (max-width: 30rem) { .v2 .chg { grid-template-columns: auto 1fr; } .v2 .chg .page { grid-column: 2; justify-self: start; } }

/* ===== v2 themes: set on body with v2, e.g. <body class="v2 th-coral"> ===== */
/* warm serif, coral (premium audit) */
body.v2.th-coral { --paper: #fff9f4; --accent: #b83a22; --accent-dark: #8f2b17; --accent-tint: #fde6dd; --accent-2: #1f5f5b; --accent-3: #5b4bb0; --soft: #f7eadf; --heading-font: Georgia, "Times New Roman", serif; --hero-grad: radial-gradient(120% 80% at 50% 0%, #fcd9c8 0%, #fff9f4 64%); --tile-a: #fbe0d2; --tile-b: #f6ead2; --tile-c: #e2ecdf; }
.th-coral .btn { background: var(--accent); border-color: var(--accent); }
.th-coral .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
/* clean white and blue (pharmacy) */
body.v2.th-blue { --paper: #ffffff; --accent: #1650c9; --accent-dark: #0f3a96; --accent-tint: #e4edff; --accent-2: #0b7a6b; --accent-3: #5b4bb0; --soft: #eef3fb; --hero-grad: radial-gradient(110% 80% at 50% 0%, #dbe8ff 0%, #ffffff 66%); --tile-a: #e4edff; --tile-b: #dff3ee; --tile-c: #eceafb; }
.th-blue .btn { background: var(--accent); border-color: var(--accent); }
.th-blue .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
/* dark, high contrast (suspension packets) */
body.v2.th-dark { --card: #161c25; --paper: #0d1117; --ink: #f2f5f9; --ink-soft: #b4bdc9; --line: #2a323d; --surface: #161c25; --soft: #151b24; --accent: #6ee7b7; --accent-dark: #a7f3d0; --accent-tint: #123329; --accent-2: #fbbf24; --accent-3: #a5b4fc; --warn-tint: #3a2f0f; --on-ink: #0d1117; --hero-grad: radial-gradient(110% 80% at 50% 0%, #153a30 0%, #0d1117 66%); --tile-a: #1b2430; --tile-b: #122a24; --tile-c: #1d1f3a; }
.th-dark .btn { background: var(--accent); border-color: var(--accent); color: #05281c; }
.th-dark .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #05281c; }
.th-dark .btn-secondary { color: var(--ink); border-color: var(--ink-soft); }
.th-dark .btn-secondary:hover { background: #1b2430; color: var(--ink); }
.th-dark .pill-link { background: var(--accent); color: #05281c; }
.th-dark .pill-link:hover { background: var(--accent-dark); color: #05281c; }
.th-dark .site-header, .th-dark .site-footer { background: transparent; }
.th-dark a { color: var(--accent); }
.th-dark .closing { background: #161c25; border: 1px solid var(--line); color: var(--ink); }
.th-dark .closing h2 { color: var(--ink); }
.th-dark .closing p { color: var(--ink-soft); }
.th-dark .closing .btn { background: var(--accent); color: #05281c; border-color: var(--accent); }
.th-dark .closing .btn-secondary { color: var(--ink); border-color: var(--ink-soft); }
.th-dark .dot { background: #3a4452; }
.th-dark .tag-sample, .th-dark .card .label { background: #fde68a; color: #3b2a04; }
.th-dark .flow li::before { background: var(--accent); color: #05281c; }
/* calm serif, sage green (AuditDesk) */
body.v2.th-sage { --paper: #fbfaf5; --accent: #2f5d46; --accent-dark: #204331; --accent-tint: #e3eee6; --accent-2: #8a5a1b; --accent-3: #3f5a8a; --soft: #eef0e4; --heading-font: Georgia, "Times New Roman", serif; --hero-grad: radial-gradient(120% 80% at 50% 0%, #dfe9d6 0%, #fbfaf5 64%); --tile-a: #e6ecd8; --tile-b: #e3eee6; --tile-c: #efe6d4; }
.th-sage .btn { background: var(--accent); border-color: var(--accent); }
.th-sage .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* email signup box (v2) */
.v2 .signup { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 30rem; margin: 1rem auto 0; justify-content: center; }
.v2 .signup input[type="email"] { flex: 1 1 14rem; min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.v2 .signup input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.v2 .signup button { min-height: 48px; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 1.4rem; }
.v2 .signup button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.v2 .signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.th-dark .signup button { color: #05281c; }
.v2 .closing .signup input[type="email"] { background: #fff; color: #1d2733; border-color: #fff; }
.v2 .closing .signup button { background: #fff; color: #1d2733; border-color: #fff; }
.v2 .closing .signup button:hover { background: var(--accent-tint); }
.v2 .signup-note { font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== PolicyCheck demo, v2 look ===== */
.demo-page.v2 { background: var(--paper); }
.demo-page.v2 main .wrap { max-width: 52rem; }
.demo-page.v2 .demo-hero { text-align: center; padding: 2.25rem 0 1rem; }
.demo-page.v2 .demo-hero .eyebrow { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; }
.demo-page.v2 .demo-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0.75rem auto 0.75rem; max-width: 18ch; }
.demo-page.v2 .demo-hero .lead { max-width: 36rem; margin: 0 auto; }
.demo-progress { display: flex; justify-content: center; gap: 0.5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: p; flex-wrap: wrap; }
.demo-progress li { counter-increment: p; display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.9rem 0.35rem 0.4rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }
.demo-progress li::before { content: counter(p); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.demo-progress .p1 { color: var(--ink); border-color: var(--accent); }
.demo-progress .p1::before { background: var(--accent); color: #fff; }
body:has(#step-2:not([hidden])) .demo-progress .p2, body:has(#step-3:not([hidden])) .demo-progress .p2 { color: var(--ink); border-color: var(--accent); }
body:has(#step-2:not([hidden])) .demo-progress .p2::before, body:has(#step-3:not([hidden])) .demo-progress .p2::before { background: var(--accent); color: #fff; }
body:has(#step-3:not([hidden])) .demo-progress .p3 { color: var(--ink); border-color: var(--accent); }
body:has(#step-3:not([hidden])) .demo-progress .p3::before { background: var(--accent); color: #fff; }

.demo-page.v2 .demo-step { border-top: 0; padding: 1rem 0; }
.demo-page.v2 .demo-step > h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 0 0 0.75rem; color: var(--ink-soft); font-weight: 700; }
.demo-page.v2 .demo-card { max-width: none; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 24px 50px -34px rgba(29,39,51,0.45); padding: 1.4rem; }
.demo-page.v2 .demo-card h3 { font-size: 1.15rem; }
.demo-page.v2 .demo-chip { background: var(--soft); border-color: transparent; border-radius: 12px; padding: 0.5rem 0.85rem; font-weight: 600; }
.demo-page.v2 .demo-chip::before { content: "PDF"; font-size: 0.7rem; font-weight: 800; background: #c4472b; color: #fff; border-radius: 4px; padding: 0.1rem 0.35rem; margin-right: 0.5rem; }
.demo-page.v2 .demo-log { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 0.5rem 1.25rem; }
.demo-page.v2 .demo-log li:last-child { border-bottom: 0; }
.demo-page.v2 .demo-log li::before { background: var(--accent-tint); width: 1.4rem; height: 1.4rem; border-radius: 50%; text-align: center; line-height: 1.4rem; font-size: 0.8rem; left: 0; top: 0.5rem; }
.demo-page.v2 .demo-log li { padding-left: 2.2rem; }
.demo-page.v2 .demo-sum { font-size: 1.25rem; }
.demo-page.v2 .demo-question { background: var(--warn-tint); border-color: #e9d9aa; }
.demo-page.v2 .demo-before-after { font-size: 1.35rem; }
.demo-page.v2 .demo-before-after .demo-new { color: var(--accent-dark); background: var(--accent-tint); border-radius: 10px; padding: 0 0.5rem; }
.demo-page.v2 .demo-cite { border-radius: 999px; border-width: 1px; background: var(--soft); border-color: var(--line); }
.demo-page.v2 .demo-cite:hover, .demo-page.v2 .demo-cite[aria-expanded="true"] { background: var(--accent-tint); border-color: var(--accent); }
.demo-page.v2 .demo-excerpt { border-radius: 14px; background: var(--soft); }
.demo-page.v2 .demo-details { max-width: none; border-radius: 18px; }
.demo-page.v2 .demo-textarea { border-radius: 16px; border-width: 1px; background: var(--paper); }
.demo-page.v2 .demo-reply { border-radius: 14px; }
.demo-page.v2 .demo-confirm { max-width: none; border-radius: 18px; }
.demo-page.v2 button.btn, .demo-page.v2 button.btn-secondary { border-radius: 999px; }
.demo-page.v2 button.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.demo-page.v2 #start-btn { margin-top: 0.25rem; }
.demo-page.v2 .site-footer { margin-top: 2rem; }
