/* Forma KP - Landing & Legal Stylesheet (Editorial Architectural Paper / Warm Obsidian) */

[hidden] {
  display: none !important;
}

:root,
[data-theme="light"] {
  color-scheme: light;

  /* Surfaces - Editorial Architectural Paper */
  --bg-canvas: #F7F5F0;
  --bg-surface: #FFFFFF;
  --bg-recessed: #EFECE4;
  --bg-elevated: #FAF9F6;
  --bg-hover: #F2EFE8;
  --field-bg: #FFFFFF;

  /* Borders */
  --border-hairline: #DFDBD0;
  --border-strong: #C2BCAE;
  --border-ui: #858074;

  /* Typography */
  --text-primary: #16181D;
  --text-secondary: #4C5260;
  --text-muted: #606775;

  /* Brand Accent - Prussian Drafting Cobalt */
  --brand-accent: #1E46B8;
  --brand-accent-cta: #1E46B8;
  --brand-accent-hover: #163694;
  --brand-accent-active: #122C7A;
  --brand-accent-text: #1E46B8;
  --brand-accent-on: #FFFFFF;
  --brand-accent-soft: #E9EFFC;
  --brand-accent-border: #B5C7F2;

  /* Semantic Status */
  --status-warm: #9A4D16;
  --status-warm-soft: #F9EFE6;
  --status-warm-border: #E5C8AF;
  --status-success: #166534;
  --status-success-soft: #ECFDF3;
  --status-success-border: #B8E5C8;
  --status-danger: #B42318;
  --status-danger-soft: #FEF3F2;
  --status-danger-border: #F5C2BE;

  /* Document Sheet (KP Folio) */
  --sheet-bg: #FFFFFF;
  --sheet-header-bg: #FAF9F5;
  --sheet-border: #DAD5C9;
  --sheet-divider: #E7E3D9;
  --sheet-top-bar: var(--brand-accent);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(22, 24, 29, 0.05);
  --shadow-sm: 0 4px 12px -4px rgba(22, 24, 29, 0.07), 0 1px 3px rgba(22, 24, 29, 0.04);
  --shadow-sheet: 0 16px 36px -16px rgba(22, 24, 29, 0.14), 0 2px 8px rgba(22, 24, 29, 0.05);
  --shadow-focus: 0 0 0 3px rgba(30, 70, 184, 0.24);

  /* Typography Families */
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spacing & Layout */
  --container-max: 1220px;
  --container-pad: clamp(16px, 3vw, 32px);
  --section-py: clamp(56px, 7vw, 96px);
  --header-h: 64px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-fast: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-med: 260ms;
  --dur-slow: 360ms;
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces - Warm Obsidian & Slate */
  --bg-canvas: #111317;
  --bg-surface: #181B21;
  --bg-recessed: #20242C;
  --bg-elevated: #15181E;
  --bg-hover: #252A34;
  --field-bg: #20242C;

  /* Borders */
  --border-hairline: #2A2F3A;
  --border-strong: #3E4554;
  --border-ui: #6E7688;

  /* Typography */
  --text-primary: #F3F1EC;
  --text-secondary: #A9B0BE;
  --text-muted: #8C94A5;

  /* Brand Accent - Calm Architectural Cobalt */
  --brand-accent: #5B86F5;
  --brand-accent-cta: #2E5CD6;
  --brand-accent-hover: #3A67E0;
  --brand-accent-active: #254CB3;
  --brand-accent-text: #7CA3FF;
  --brand-accent-on: #FFFFFF;
  --brand-accent-soft: #1B2744;
  --brand-accent-border: #334C8A;

  /* Semantic Status */
  --status-warm: #E59A5C;
  --status-warm-soft: #2A2119;
  --status-warm-border: #5C422B;
  --status-success: #52C483;
  --status-success-soft: #14291E;
  --status-success-border: #25543A;
  --status-danger: #F2746B;
  --status-danger-soft: #2E1918;
  --status-danger-border: #66302C;

  /* Document Sheet (Dark Architectural Folio) */
  --sheet-bg: #1D2129;
  --sheet-header-bg: #222731;
  --sheet-border: #343B4A;
  --sheet-divider: #2A303D;
  --sheet-top-bar: var(--brand-accent);

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 14px -4px rgba(0, 0, 0, 0.36);
  --shadow-sheet: 0 20px 44px -18px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-focus: 0 0 0 3px rgba(91, 134, 245, 0.35);
}

/* Base Reset & Global Discipline */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-primary);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Utilities */

.nowrap {
  white-space: nowrap;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.inline-link {
  color: var(--brand-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .inline-link:hover {
    color: var(--brand-accent-hover);
  }
}

/* Buttons & Theme Toggle */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform var(--dur-fast) var(--ease-out-fast),
              background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background-color: var(--brand-accent-cta);
  color: var(--brand-accent-on);
  border-color: transparent;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out-fast);
}

.btn-icon-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out-fast),
              box-shadow var(--dur-fast) ease;
}

.btn-icon-theme svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

:root .btn-icon-theme .icon-sun,
[data-theme="light"] .btn-icon-theme .icon-sun {
  display: none;
}

:root .btn-icon-theme .icon-moon,
[data-theme="light"] .btn-icon-theme .icon-moon {
  display: block;
}

[data-theme="dark"] .btn-icon-theme .icon-sun {
  display: block;
}

[data-theme="dark"] .btn-icon-theme .icon-moon {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) {
    background-color: var(--brand-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }

  .btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: var(--text-muted);
    transform: translateY(-1px);
  }

  .btn-ghost-sm:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
  }

  .btn-icon-theme:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
  }
}

.btn-primary:active:not(:disabled) {
  background-color: var(--brand-accent-active);
  transform: scale(0.985);
}

.btn-secondary:active:not(:disabled),
.btn-ghost-sm:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-icon-theme:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:focus-visible,
.btn-icon-theme:focus-visible,
.btn-ghost-sm:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  min-height: 44px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-subnav {
  display: none;
}

/* Section 1: Hero & Estimate Workbench */

.hero-section {
  padding: 0 0 var(--section-py);
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: 28px;
  align-items: start;
  padding: 20px 0 16px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hero-title {
  font-size: clamp(1.625rem, 2.75vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  max-width: 24ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.05vw, 1.03125rem);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 62ch;
}

.hero-actions-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-top: 4px;
  min-width: 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
}

.hero-facts > span,
.hero-fact {
  display: inline-block;
  white-space: nowrap;
}

.hero-facts > span:not(:last-child)::after,
.hero-fact:not(:last-child)::after {
  content: "\00B7";
  margin-left: 12px;
  color: var(--border-strong);
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-replaces {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Workbench Shell */

.calc-workbench {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.calc-workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-hairline);
  background-color: var(--bg-recessed);
}

.tab-label-full {
  display: inline;
}

.tab-label-short {
  display: none;
}

.niche-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.niche-tabs::-webkit-scrollbar {
  display: none;
}

.niche-tab-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: calc(var(--radius-sm) - 2px);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-xs);
  transition: transform 240ms var(--ease-out-expo), width 240ms var(--ease-out-expo);
  pointer-events: none;
  z-index: 0;
}

.niche-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-fast);
}

@media (hover: hover) and (pointer: fine) {
  .niche-tab:hover {
    color: var(--text-primary);
  }
}

.niche-tab:active {
  transform: scale(0.985);
}

.niche-tab:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.niche-tab[aria-selected="true"],
.niche-tab.is-active {
  color: var(--text-primary);
  font-weight: 600;
}

.calc-formula-caption {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: right;
  max-width: 40ch;
}

.calc-workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.calc-controls-pane {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.qty-display {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-accent-text);
  white-space: nowrap;
}

/* Custom Range Input (40px touch zone, 6px architectural rail) */

.range-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.range-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.range-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    var(--brand-accent) var(--range-pct, 32%),
    var(--border-hairline) var(--range-pct, 32%)
  );
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2.5px solid var(--brand-accent);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-out-fast), box-shadow var(--dur-fast) ease;
}

.range-input::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--border-hairline);
}

.range-input::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-accent);
}

.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2.5px solid var(--brand-accent);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-out-fast), box-shadow var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .range-input:hover:not(:disabled)::-webkit-slider-thumb {
    transform: scale(1.08);
  }

  .range-input:hover:not(:disabled)::-moz-range-thumb {
    transform: scale(1.08);
  }
}

.range-input:active:not(:disabled)::-webkit-slider-thumb {
  transform: scale(1.14);
}

.range-input:active:not(:disabled)::-moz-range-thumb {
  transform: scale(1.14);
}

.range-input:focus-visible {
  outline: none;
}

.range-input:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--shadow-focus);
}

.range-input:focus-visible::-moz-range-thumb {
  box-shadow: var(--shadow-focus);
}

.qty-ticks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Tier Cards & Option Cards */

.tier-list,
.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-card,
.option-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out-fast),
              box-shadow var(--dur-fast) ease;
}

.tier-card {
  min-height: 46px;
  padding: 10px 12px;
}

.option-card {
  min-height: 44px;
  padding: 10px 12px;
}

@media (hover: hover) and (pointer: fine) {
  .tier-card:hover,
  .option-card:hover {
    border-color: var(--border-strong);
    background-color: var(--bg-hover);
  }
}

.tier-card:active,
.option-card:active {
  transform: scale(0.985);
}

.tier-card:focus-visible,
.option-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.tier-card.is-selected,
.tier-card[aria-pressed="true"] {
  background-color: var(--brand-accent-soft);
  border-color: var(--brand-accent);
}

.option-card.is-selected,
.option-card[aria-pressed="true"] {
  background-color: var(--brand-accent-soft);
  border-color: var(--brand-accent-border);
}

.choice-radio {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-ui);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease;
}

.choice-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: var(--brand-accent);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-out-fast);
}

.tier-card.is-selected .choice-radio,
.tier-card[aria-pressed="true"] .choice-radio {
  border-color: var(--brand-accent);
}

.tier-card.is-selected .choice-radio::after,
.tier-card[aria-pressed="true"] .choice-radio::after {
  transform: scale(1);
}

.choice-check {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-ui);
  background-color: var(--bg-surface);
  flex-shrink: 0;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.choice-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--brand-accent-on);
  border-bottom: 2px solid var(--brand-accent-on);
  transform: rotate(42deg) scale(0);
  opacity: 0;
  transition: transform var(--dur-fast) var(--ease-out-fast), opacity var(--dur-fast) ease;
}

.option-card.is-selected .choice-check,
.option-card[aria-pressed="true"] .choice-check {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.option-card.is-selected .choice-check::after,
.option-card[aria-pressed="true"] .choice-check::after {
  transform: rotate(42deg) scale(1);
  opacity: 1;
}

.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.choice-desc {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.choice-price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.tier-card.is-selected .choice-price,
.tier-card[aria-pressed="true"] .choice-price,
.option-card.is-selected .choice-price,
.option-card[aria-pressed="true"] .choice-price {
  color: var(--brand-accent-text);
}

/* Right Column: Physical KP Document Sheet & CRM Deal Card */

.calc-sheet-stage {
  background-color: var(--bg-recessed);
  border-left: 1px solid var(--border-hairline);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.kp-sheet {
  position: relative;
  overflow: hidden;
  background-color: var(--sheet-bg);
  border: 1px solid var(--sheet-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sheet);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kp-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--sheet-top-bar);
}

.kp-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sheet-divider);
}

.kp-sheet-issuer {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sheet-divider);
}

.kp-sheet-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kp-sheet-kicker {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.kp-sheet-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kp-sheet-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.kp-sheet-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kp-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kp-breakdown {
  display: flex;
  flex-direction: column;
}

.kp-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--sheet-divider);
  font-size: 0.875rem;
}

.kp-line:last-child {
  border-bottom: none;
}

.kp-line-title {
  color: var(--text-secondary);
  min-width: 0;
  overflow-wrap: anywhere;
}

.kp-line-amount {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.kp-line.is-discount .kp-line-title,
.kp-line.is-discount .kp-line-amount {
  color: var(--status-success);
}

.kp-total-row {
  border-top: 1.5px solid var(--border-strong);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.kp-total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.kp-total {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.kp-delivery-note {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.kp-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kp-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 16px;
  padding-top: 8px;
  border-top: 1px solid var(--sheet-divider);
}

.kp-text-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  background: none;
  border: none;
  color: var(--brand-accent-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .kp-text-action:hover {
    color: var(--brand-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* CRM Deal Card */

.crm-deal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.crm-deal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.crm-deal-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.crm-deal-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.crm-deal-fields {
  min-width: 0;
}

.crm-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
}

.crm-dl-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  gap: 6px 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.8125rem;
  align-items: baseline;
}

.crm-dl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.crm-dl-row dt {
  color: var(--text-muted);
  font-weight: 500;
}

.crm-dl-row dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Common Section Scaffolding */

.section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-hairline);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section--tinted {
  background-color: var(--bg-elevated);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-head h2,
.section-title {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 28ch;
  overflow-wrap: anywhere;
  min-width: 0;
}

.section-lead {
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* Section 2: Comparison Table */

.comparison-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.comparison-table th:nth-child(1) {
  width: 22%;
}

.comparison-table th:nth-child(2) {
  width: 30%;
}

.comparison-table th:nth-child(3) {
  width: 24%;
}

.comparison-table th:nth-child(4) {
  width: 24%;
}

.comparison-table thead th {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--bg-recessed);
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.comparison-table thead th.col-featured {
  background-color: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  box-shadow: inset 0 3px 0 0 var(--brand-accent);
}

.comparison-table tbody td {
  padding: 16px 20px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tbody td.col-featured {
  background-color: var(--brand-accent-soft);
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-featured-cell,
.cell-with-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comparison-featured-cell svg,
.cell-check-icon,
.comparison-table td.col-featured svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--brand-accent-text);
}

.col-criteria {
  font-weight: 600;
}

/* Section 3: ROI Calculator */

.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.roi-inputs-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
}

.roi-inputs-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.roi-inputs-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.roi-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roi-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-out-fast),
              box-shadow var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .roi-preset-btn:hover {
    border-color: var(--border-strong);
    background-color: var(--bg-hover);
    color: var(--text-primary);
  }
}

.roi-preset-btn:active {
  transform: scale(0.985);
}

.roi-preset-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.roi-preset-btn.is-active,
.roi-preset-btn[aria-pressed="true"] {
  background-color: var(--brand-accent-soft);
  border-color: var(--brand-accent);
  color: var(--brand-accent-text);
  font-weight: 600;
}

.roi-val {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-accent-text);
  white-space: nowrap;
}

.roi-results-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.roi-results-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--brand-accent);
}

.roi-hero-metric {
  padding: 24px 28px;
  background-color: var(--brand-accent-soft);
  border-bottom: 1px solid var(--brand-accent-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roi-hero-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roi-payback-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--brand-accent-text);
}

.roi-hero-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.roi-metrics-list {
  padding: 8px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.roi-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.roi-metric-row:last-child {
  border-bottom: none;
}

.roi-metric-copy,
.roi-metric-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.roi-metric-title,
.roi-metric-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.roi-metric-sub,
.roi-metric-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.roi-metric-num {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.roi-formula-box {
  padding: 16px 28px;
  background-color: var(--bg-recessed);
  border-top: 1px solid var(--border-hairline);
}

.roi-formula-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Section 4: 4 Channels Matrix */

.channels-matrix {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.channels-source-bar {
  padding: 14px 24px;
  background-color: var(--bg-recessed);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.channels-source-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.channels-source-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.channel-item {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.channel-item:nth-child(odd) {
  border-right: 1px solid var(--border-hairline);
}

.channel-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.channel-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.channel-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.channel-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-accent-text);
  flex-shrink: 0;
}

.channel-tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.channel-item h3,
.channel-title {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.channel-item p,
.channel-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 52ch;
}

/* Section 5: Pricing & Terms */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.pricing-card--featured {
  border: 1px solid var(--brand-accent);
  box-shadow: inset 0 0 0 0.5px var(--brand-accent), var(--shadow-sheet);
}

.pricing-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--brand-accent);
}

.pricing-card-head {
  flex: 0 0 auto;
  padding: 26px 24px 22px;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card-title-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.pricing-title {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.pricing-badge {
  background-color: var(--brand-accent-soft);
  color: var(--brand-accent-text);
  border: 1px solid var(--brand-accent-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.125rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.pricing-term {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background-color: var(--bg-recessed);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pricing-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  min-height: 76px;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-card-body {
  padding: 20px 24px 26px;
  background-color: var(--bg-recessed);
  border-top: 1px solid var(--border-hairline);
  flex: 1;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.pricing-features svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--brand-accent-text);
}

.pricing-terms {
  margin-top: 24px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-terms-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}

.term-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.term-item strong,
.term-title {
  font-weight: 600;
  color: var(--text-primary);
}

/* Section 6: FAQ Accordion */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: start;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  min-height: 60px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-fast) ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .faq-summary:hover {
    background-color: var(--bg-hover);
  }
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: var(--text-muted);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-med) var(--ease-out-expo),
              opacity var(--dur-fast) ease,
              background-color var(--dur-fast) ease;
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
}

.faq-item[open] .faq-icon::before {
  background-color: var(--brand-accent-text);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.faq-icon:has(svg)::before,
.faq-icon:has(svg)::after {
  display: none;
}

.faq-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--dur-med) var(--ease-out-expo), color var(--dur-fast) ease;
}

.faq-item[open] .faq-icon svg {
  transform: rotate(45deg);
  color: var(--brand-accent-text);
}

.faq-body {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 65ch;
}

/* Section 7: Contact Form & Footer */

.section--contact {
  background-color: var(--bg-elevated);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 36px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-direct-item,
.contact-direct-row {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.9375rem;
}

.contact-direct-item:last-child,
.contact-direct-row:last-child {
  border-bottom: none;
}

.contact-direct-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.contact-direct-value {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
  a.contact-direct-value:hover {
    color: var(--brand-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.contact-steps {
  margin-top: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-steps-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-steps-list {
  list-style: none;
  counter-reset: launch-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-steps-list li {
  counter-increment: launch-step;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.contact-steps-list li::before {
  content: "0" counter(launch-step);
  flex: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-accent-text);
}

.contact-step-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.contact-form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notice-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  font-size: 0.8125rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-banner--warm {
  background-color: var(--status-warm-soft);
  border-color: var(--status-warm-border);
  color: var(--status-warm);
}

.notice-banner--danger {
  background-color: var(--status-danger-soft);
  border-color: var(--status-danger-border);
  color: var(--status-danger);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label,
.field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.field-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background-color: var(--field-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.field-input::placeholder {
  color: var(--text-muted);
  opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .field-input:hover:not(:focus) {
    border-color: var(--text-muted);
  }
}

.field-input:focus {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.field-input.is-error,
.field-input[aria-invalid="true"] {
  border-color: var(--status-danger);
}

.field-textarea {
  min-height: 92px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent-checkbox {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: var(--brand-accent);
  cursor: pointer;
}

.consent-checkbox:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.demo-footnote {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.form-status:empty {
  display: none;
}

.form-status.is-ok,
.form-status.is-success,
.form-status[data-state="success"] {
  color: var(--status-success);
  font-weight: 500;
}

.form-status.is-error,
.form-status.is-danger,
.form-status[data-state="error"] {
  color: var(--status-danger);
  font-weight: 500;
}

.form-status.is-warn,
.form-status.is-warm,
.form-status[data-state="demo"] {
  color: var(--status-warm);
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 32px 0;
  background-color: var(--bg-canvas);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--brand-accent-text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* Privacy Policy Document Page (landing/privacy.html) */

.legal-main {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.legal-sheet {
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--sheet-bg);
  border: 1px solid var(--sheet-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sheet);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--brand-accent);
}

.legal-sheet h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  overflow-wrap: anywhere;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sheet-divider);
}

.legal-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sheet h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
}

.legal-sheet p,
.legal-sheet li {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-sheet code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--bg-recessed);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
}

.legal-sheet ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Safe Progressive Scroll Reveal (visible by default without JS) */

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive Breakpoints */

@media (max-width: 959px) {
  .site-nav {
    display: none;
  }

  .mobile-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px var(--container-pad);
    border-top: 1px solid var(--border-hairline);
    background-color: var(--bg-canvas);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-subnav::-webkit-scrollbar {
    display: none;
  }

  .mobile-subnav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 auto;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
  }

  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0 16px;
  }

  .hero-actions-col {
    padding-top: 0;
  }

  .calc-workbench-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .calc-formula-caption {
    text-align: left;
    max-width: none;
  }

  .calc-workbench-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-controls-pane {
    padding: 18px 16px;
  }

  .calc-sheet-stage {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding: 16px;
  }

  .roi-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pricing-desc {
    min-height: 0;
  }

  .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .btn-sm,
  .btn-icon-theme,
  .niche-tab,
  .kp-text-action,
  .roi-preset-btn,
  .range-input {
    min-height: 44px;
  }

  .niche-tabs {
    width: 100%;
  }

  .niche-tab {
    height: 44px;
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .kp-sheet {
    padding: 18px 16px;
  }

  .crm-deal-card {
    padding: 16px;
  }

  .crm-dl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  /* Mobile Vertical Comparison Cards (Zero Horizontal Scroll) */
  .comparison-table-wrap {
    overflow-x: visible;
  }

  .comparison-table {
    table-layout: auto;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tbody tr {
    padding: 16px;
    border-bottom: 1px solid var(--border-hairline);
  }

  .comparison-table tbody tr:last-child {
    border-bottom: none;
  }

  .comparison-table tbody td {
    padding: 8px 0;
    border-bottom: none;
    font-size: 0.875rem;
  }

  .comparison-table tbody td:first-child {
    padding: 0 0 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-hairline);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
  }

  .comparison-table tbody td:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .comparison-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .comparison-table tbody td.col-featured {
    padding: 12px 14px;
    margin: 6px 0;
    background-color: var(--brand-accent-soft);
    border: 1px solid var(--brand-accent-border);
    border-radius: var(--radius-sm);
  }

  .comparison-table tbody td.col-featured::before {
    color: var(--brand-accent-text);
  }

  .roi-inputs-card,
  .contact-form-card,
  .pricing-terms {
    padding: 20px 16px;
  }

  .roi-hero-metric,
  .roi-formula-box {
    padding: 18px 16px;
  }

  .roi-metrics-list {
    padding: 6px 16px;
  }

  .channels-source-bar {
    padding: 14px 16px;
  }

  .channels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-item {
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }

  .channel-item:nth-child(odd) {
    border-right: none;
  }

  .channel-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border-hairline);
  }

  .channel-item:last-child {
    border-bottom: none;
  }

  .pricing-card-head {
    padding: 20px 18px 18px;
  }

  .pricing-card-body {
    padding: 18px;
  }

  .faq-summary {
    padding: 16px 18px;
  }

  .faq-body {
    padding: 0 18px 18px;
  }

  .contact-direct-item,
  .contact-direct-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 16px;
  }

  .contact-direct-value {
    text-align: left;
  }
}

@media (max-width: 559px) {
  .terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-cta-row .btn {
    width: 100%;
    min-height: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 56px;
  }

  .hero-intro {
    padding: 12px 0 10px;
    gap: 10px;
  }

  .hero-copy {
    gap: 6px;
  }

  .hero-title {
    font-size: 1.4375rem;
    line-height: 1.14;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    line-height: 1.42;
  }

  .hero-facts {
    gap: 6px;
    font-size: 0.75rem;
  }

  .hero-facts > span,
  .hero-fact {
    background-color: var(--bg-recessed);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-pill);
    padding: 3px 9px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-secondary);
  }

  .hero-facts > span:not(:last-child)::after,
  .hero-fact:not(:last-child)::after {
    display: none;
    content: none;
  }

  .hero-actions-col {
    gap: 8px;
  }

  .hero-cta-row {
    gap: 8px;
  }

  .hero-replaces {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .calc-workbench-head {
    padding: 10px 12px;
    gap: 6px;
  }

  .calc-formula-caption {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .niche-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: visible;
  }

  .niche-tab {
    width: 100%;
    height: 42px;
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.8125rem;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  .calc-controls-pane {
    padding: 14px 12px 16px;
    gap: 14px;
  }

  .control-group {
    gap: 6px;
  }
}

@media (max-width: 479px) {
  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-toggle-label {
    display: none;
  }

  .btn-icon-theme {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  .header-cta {
    padding: 0 12px;
    font-size: 0.8125rem;
  }
}

/* Reduced Motion Floor */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
