/* Landing pages — shared layout; the look comes from the theme in data-theme (assets/themes.css). No external fonts or images. */

/* ---------- tokens ----------
 * The design tokens (colours, radii, shadows, fonts, heading style) come from the page's theme: the build writes
 * assets/themes.css from the theme data (T-211, T-212), one [data-theme='<key>'] block per theme, and every page loads it before this file.
 * Only rules that are not tokens stay here, including the structural rules the clipboard theme adds. */

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem);
}
h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
[data-theme='clipboard'] :focus-visible {
  outline-color: #1c1917;
  box-shadow: 0 0 0 6px #ffcc00;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ---------- header / footer ---------- */
.site-header {
  border-bottom: var(--line-w) solid var(--line);
  background: var(--bg);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
a.brand {
  color: inherit;
  text-decoration: none;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bar-signin {
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
}
.btn-sm {
  padding: 6px 14px;
  min-height: 36px;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 599px) {
  .bar {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .bar-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--brand);
  flex: none;
}
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  border: var(--line-w) solid transparent;
}
[data-theme='clipboard'] .pill {
  border-color: var(--line);
  border-radius: 2px;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
}
.site-footer {
  border-top: var(--line-w) solid var(--line);
  padding: 28px 0 40px;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer p {
  max-width: 760px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: var(--line-w) solid transparent;
  transition:
    transform 0.08s ease,
    background 0.15s ease,
    box-shadow 0.08s ease;
}
.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.08rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--ink);
  color: var(--bg);
}
[data-theme='clipboard'] .btn {
  border-color: var(--line);
}
[data-theme='clipboard'] .btn-primary:active,
[data-theme='clipboard'] .btn-secondary:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
[data-theme='clipboard'] .btn-secondary {
  box-shadow: var(--shadow-btn);
  background: #fffdf7;
  color: var(--ink);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 44px;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    padding: 64px 0 72px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
[data-theme='clipboard'] .eyebrow {
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  font-size: 0.78rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 26px;
}
[data-theme='clean'] .hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 100%);
}
[data-theme='clipboard'] .hero {
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 35px,
    rgba(28, 25, 23, 0.06) 35px 36px
  );
}
[data-theme='clipboard'] h1 {
  text-transform: var(--head-transform);
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: var(--line-w) solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}
.card-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
[data-theme='clipboard'] .card-kicker {
  font-family: var(--font-label);
  color: var(--ink);
  background: var(--accent);
  display: inline-block;
  padding: 2px 8px;
}
[data-theme='clipboard'] .glance::before,
[data-theme='clipboard'] .form-card::before,
[data-theme='clipboard'] .preview::before,
[data-theme='clipboard'] .workspace::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 20px;
  margin-left: -42px;
  background: #57534e;
  border: 2px solid #1c1917;
  border-radius: 6px 6px 3px 3px;
}
[data-theme='clipboard'] .glance,
[data-theme='clipboard'] .form-card,
[data-theme='clipboard'] .preview,
[data-theme='clipboard'] .workspace {
  padding-top: 28px;
}

/* hero visual: facts */
.glance dl {
  margin: 0;
}
.glance-row {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: var(--line-w) solid var(--line);
}
[data-theme='clean'] .glance-row {
  border-top-color: var(--line);
}
[data-theme='clipboard'] .glance-row {
  border-top: 1px dashed #1c1917;
}
.glance-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.glance dt {
  font-size: 0.85rem;
  color: var(--muted);
}
.glance dd {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* hero visual: workspace */
.workspace-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -6px;
}
.workspace-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.workspace-list li {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: var(--line-w) solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
[data-theme='clean'] .workspace-list li {
  background: var(--surface);
  border-color: transparent;
}
.doc {
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: 0.8;
}
.doc::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow:
    0 4px 0 currentColor,
    0 8px 0 currentColor;
}
.qr {
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor 0 0) 0 0/8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 100% 0/8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 0 100%/8px 8px no-repeat,
    linear-gradient(currentColor 0 0) 70% 70%/5px 5px no-repeat;
  opacity: 0.75;
}

/* hero visual: phone */
.phone {
  width: min(310px, 100%);
  margin: 0 auto;
  border: 10px solid #111;
  border-radius: 36px;
  background: #111;
  box-shadow: var(--shadow);
}
[data-theme='clipboard'] .phone {
  border-color: #1c1917;
  box-shadow: 8px 8px 0 #1c1917;
}
.phone-screen {
  background: #fff;
  color: #0f172a;
  border-radius: 26px;
  overflow: hidden;
}
.phone-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 18px 16px 12px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.25;
  border-bottom: 1px solid #e2e8f0;
}
.phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
[data-theme='clipboard'] .phone-dot {
  background: #1c1917;
  box-shadow: 0 0 0 3px #ffcc00;
}
.phone-list {
  list-style: none;
  margin: 0;
  padding: 6px 12px;
}
.phone-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 10px 4px;
  font-size: 0.84rem;
  line-height: 1.35;
  border-bottom: 1px solid #f1f5f9;
}
.tick {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  margin-top: 1px;
}
.phone-list li.done .tick {
  background: #15803d;
  border-color: #15803d;
  position: relative;
}
.phone-list li.done .tick::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.phone-foot {
  padding: 12px 16px 18px;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 700;
}

/* ---------- trust strip ---------- */
.trust {
  border-block: var(--line-w) solid var(--line);
  background: var(--surface);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: grid;
  gap: 8px 24px;
  grid-template-columns: 1fr;
  font-weight: 650;
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .trust ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .trust ul {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}
.trust li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
}
.trust li::before {
  content: '✓';
  font-weight: 900;
  color: var(--accent);
  flex: none;
}
[data-theme='clipboard'] .trust {
  background: var(--ink);
  color: #f3eee3;
  border-color: var(--ink);
}
[data-theme='clipboard'] .trust li::before {
  color: var(--accent);
}

/* ---------- sections ---------- */
.section {
  padding: 52px 0;
}
@media (min-width: 900px) {
  .section {
    padding: 72px 0;
  }
}
.section-intro {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 30px;
}
[data-theme='clean'] .section:nth-of-type(odd) {
  background: var(--surface);
}
[data-theme='clipboard'] .section + .section {
  border-top: var(--line-w) dashed rgba(28, 25, 23, 0.35);
}

/* reasons */
.reason-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.reason {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--card);
  border: var(--line-w) solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.reason h2 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  margin-bottom: 8px;
}
.reason p {
  margin: 0;
  color: var(--muted);
}
.reason-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font: 900 1.4rem/1 var(--font-head);
}
[data-theme='clipboard'] .reason-num {
  border-radius: 3px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-family: var(--font-label);
}
@media (max-width: 480px) {
  .reason {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .reason-num {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* compliance */
.rule-name {
  font-weight: 800;
  font-size: 1.1rem;
}
.sources {
  font-size: 0.92rem;
  color: var(--muted);
}
.sources span {
  font-weight: 700;
}
.sources a {
  color: var(--ink);
}
.checks {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 34px;
  line-height: 1.45;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
[data-theme='clipboard'] .checks li::before {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fffdf7;
}
[data-theme='clipboard'] .checks li::after {
  border-color: var(--ink);
}
.checks.tight {
  gap: 6px;
  font-size: 0.95rem;
}
.step-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: var(--line-w) solid var(--line);
}
[data-theme='clean'] .step {
  border-top-color: var(--line);
}
.step:first-child {
  border-top: 0;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 900 1.1rem/1 var(--font-head);
}
[data-theme='clipboard'] .step::before {
  border-radius: 3px;
  border: 2px solid var(--ink);
  font-family: var(--font-label);
}
.step h3 {
  margin-bottom: 6px;
}
.step p {
  margin: 0 0 8px;
  color: var(--muted);
}
.chip {
  display: inline-block;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  margin: 0;
}
.chip span {
  font-weight: 700;
}
[data-theme='clipboard'] .chip {
  border-radius: 2px;
  border: 1px solid var(--ink);
  font-family: var(--font-label);
  font-size: 0.78rem;
  background: #fffdf7;
}

.record-card {
  margin: 0;
}
.example-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}
.record-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
  padding-right: 80px;
}
.record-meta {
  color: var(--muted);
  font-size: 0.88rem;
}
[data-theme='clipboard'] .record-meta {
  font-family: var(--font-label);
  font-size: 0.8rem;
}
.record-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ri {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(100, 116, 139, 0.25);
  align-items: baseline;
}
.ri-status {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  text-align: center;
}
.ri-ok .ri-status {
  background: var(--ok-soft);
  color: var(--ok);
}
.ri-issue .ri-status {
  background: var(--issue-soft);
  color: var(--issue);
}
.ri-fixed .ri-status {
  background: var(--fixed-soft);
  color: var(--fixed);
}
.ri-label {
  font-weight: 600;
}
.ri-note {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--muted);
}
.record-card figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.faq details {
  border-top: var(--line-w) solid var(--line);
  padding: 16px 0;
}
[data-theme='clean'] .faq details {
  border-top-color: var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-weight: 900;
  color: var(--accent);
}
[data-theme='clipboard'] .faq summary::after {
  color: var(--ink);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* template */
.tpl-grid {
  display: grid;
  gap: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  .tpl-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}
.source-note {
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
[data-theme='clipboard'] .source-note {
  border-left-color: var(--ink);
}
.pv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pv {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(100, 116, 139, 0.22);
}
.pv:first-child {
  border-top: 0;
}
@media (min-width: 560px) {
  .pv {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }
}
.pv-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.pv-hint {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.pv-seg {
  display: inline-flex;
  border: var(--line-w) solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-wrap: nowrap;
}
[data-theme='clean'] .pv-seg {
  border-color: #cbd5e1;
}
.pv-seg.wrap-seg {
  flex-wrap: wrap;
}
.seg {
  min-height: 40px;
  min-width: 64px;
  padding: 6px 12px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font: 650 0.88rem/1.2 var(--font);
  cursor: pointer;
}
.seg + .seg {
  border-left: var(--line-w) solid var(--line);
}
[data-theme='clean'] .seg + .seg {
  border-left-color: #cbd5e1;
}
.seg[aria-pressed='true'][data-val='ok'] {
  background: var(--ok);
  color: #fff;
}
.seg[aria-pressed='true'][data-val='issue'] {
  background: var(--issue);
  color: #fff;
}
.seg[aria-pressed='true']:not([data-val='ok']):not([data-val='issue']) {
  background: var(--ink);
  color: var(--card);
}
.pv-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pv-num input {
  width: 100px;
}
.pv-num .unit {
  font-weight: 700;
  color: var(--muted);
}
.pv-num input.flagged {
  border-color: var(--issue);
  background: var(--issue-soft);
  color: var(--issue);
}
.pv-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: var(--line-w) dashed var(--muted);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 650 0.88rem var(--font);
  cursor: pointer;
}
.pv-photo.added {
  border-style: solid;
  border-color: var(--ok);
  color: var(--ok);
}
.pv-text {
  width: 100%;
  min-width: 180px;
}
.pv-on-issue {
  background: var(--issue-soft);
  margin: 0 -22px;
  padding-left: 22px;
  padding-right: 22px;
}
.pv-more {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 16px;
}
.pv-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: var(--line-w) solid var(--line);
  padding-top: 16px;
}
[data-theme='clean'] .pv-foot {
  border-top-color: var(--line);
}
.pv-count {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- forms ---------- */
.get {
  scroll-margin-top: 12px;
}
.form-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}
.list-label {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 18px 0 10px;
}
[data-theme='clean'] .get {
  background: var(--accent-soft) !important;
}
[data-theme='clipboard'] .get {
  background: var(--accent);
  border-block: 2px solid var(--ink);
}
[data-theme='clipboard'] .get .form-copy .checks li::before {
  background: #fffdf7;
}
.lp-form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field > span,
.field legend {
  font-weight: 700;
  font-size: 0.92rem;
}
.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: 16px/1.3 var(--font);
  color: var(--ink);
  background: #fff;
  border: var(--line-w) solid var(--line);
  border-radius: var(--radius-sm);
}
[data-theme='clean'] input,
[data-theme='clean'] select,
[data-theme='clean'] textarea {
  border-color: #cbd5e1;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--issue);
  box-shadow: 0 0 0 3px var(--issue-soft);
}
.two {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
}
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.radios legend {
  margin-bottom: 6px;
  width: 100%;
}
.radios label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.95rem;
  min-height: 32px;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.check-field input,
.radios input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}
.micro {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.form-error {
  color: var(--issue);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}
.form-success {
  text-align: center;
  padding: 12px 0;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}
.upsell-msg {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ok);
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- First-visit cookie notice (T-181), injected by assets/lp.js ---------- */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--muted);
}
.cookie-notice p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.9rem;
}
.cookie-notice a {
  color: var(--accent);
}
.cookie-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-notice button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
/* "Only what's necessary" is a real, equally reachable choice (NFR-4): same size, just not the accent. */
.cookie-notice button.cookie-notice__secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--muted);
}

/* PDF-only template page: the download button replaces the left-hand copy */
.dl-copy .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.dl-meta {
  margin: 12px 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* "Related" links, put in by the server (T-201); kept out of the page's approval. */
.related ul {
  margin: 0;
  padding-left: 1.2em;
}
.related li {
  margin: 6px 0;
}
