/* DealFooting Static Website Stylesheet
 * Calm UK fintech / RevOps workbench palette.
 * Zero external requests, zero inline styles required (strict CSP friendly).
 */

:root {
  --bg: #F8FAFC;
  --bg-alt: #F5F7FA;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --surface-muted: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --ink: #0F172A;
  --ink-secondary: #334155;
  --muted: #475569;
  --muted-light: #64748B;

  --brand-slate: #33475B;
  --accent: #0F766E;
  --accent-hover: #115E59;
  --accent-soft: #F0FDFA;
  --accent-border: #99F6E4;

  --green-bg: #ECFDF5;
  --green-border: #A7F3D0;
  --green-ink: #065F46;
  --green-solid: #059669;

  --amber-bg: #FFFBEB;
  --amber-border: #FDE68A;
  --amber-ink: #92400E;
  --amber-solid: #D97706;

  --red-bg: #FEF2F2;
  --red-border: #FECACA;
  --red-ink: #991B1B;
  --red-solid: #DC2626;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);

  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface-muted);
  color: var(--ink);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow-wrap: break-word;
  word-break: normal;
}

.code-nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

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

.mono {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.is-hidden,
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container--wide {
  max-width: 1220px;
}

.container--narrow {
  max-width: 860px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-link:hover {
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-slate);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-top-left-radius: 4px;
}

.brand-mark--sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 10.5px;
}

.brand-mark--sm::after {
  width: 7px;
  height: 7px;
}

.brand-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.beta-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.nav-link--active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-muted);
}

.nav-toggle-icon {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 24px 20px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-xs);
}

.mobile-nav-link:hover,
.mobile-nav-link--active {
  background: var(--surface-muted);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  background: var(--surface-muted);
  border-color: #94A3B8;
  color: var(--ink);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.btn--full {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.btn--approve {
  background: var(--green-solid);
  color: #FFFFFF;
  border-color: var(--green-solid);
}

.btn--approve:hover {
  background: #047857;
  border-color: #047857;
  color: #FFFFFF;
}

.btn:disabled,
.btn--disabled {
  background: var(--surface-muted);
  color: var(--muted-light);
  border-color: var(--border);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--disabled-danger {
  background: var(--red-bg);
  color: var(--red-ink);
  border-color: var(--red-border);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.9;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.badge--verified {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-ink);
}

.badge--amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-ink);
}

.badge--danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-ink);
}

.badge--teal {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.badge--neutral {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--ink-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.status-dot--verified {
  background: var(--green-solid);
}

.status-dot--amber {
  background: var(--amber-solid);
}

.status-dot--danger {
  background: var(--red-solid);
}

/* Sections */
.section {
  padding-block: 76px;
}

.section--compact {
  padding-block: 56px;
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--canvas {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.62;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding-top: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-slate);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.3vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--ink);
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: 710px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.62;
  color: var(--ink-secondary);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-proof {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.email-inline-row {
  margin-top: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.email-inline-row--left {
  justify-content: flex-start;
  margin-top: 10px;
}

.copy-email-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-email-btn:hover {
  background: var(--surface-muted);
  border-color: #94A3B8;
  color: var(--ink);
}

.copy-email-btn.is-copied {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-ink);
}

/* Interactive Product Preview Switcher */
.preview-section {
  padding-top: 56px;
  padding-bottom: 76px;
  background: var(--bg-alt);
}

.preview-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.preview-framing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.preview-framing-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.preview-tablist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.preview-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  padding: 13px 15px;
  text-align: left;
  font-family: var(--sans);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.preview-tab:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.preview-tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-xs);
}

.preview-tab__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.preview-panel {
  padding: 20px;
  background: var(--bg-alt);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

/* Left Pane: PDF Excerpt Viewer */
.pdf-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes targetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
    border-color: var(--red-solid);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.18);
    border-color: var(--red-solid);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
    border-color: var(--red-border);
  }
}

.pdf-pane:target,
.pdf-pane.is-highlighted {
  border-color: var(--red-solid);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18);
  animation: targetPulse 0.9s ease-out 1;
}

.pane-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}

.pane-chrome__title {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pane-chrome__tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.pdf-well {
  padding: 16px;
  background: #EDF2F7;
}

.pdf-sheet {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  color: var(--ink);
}

.pdf-masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--brand-slate);
}

.pdf-doc-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--brand-slate);
}

.pdf-doc-ref {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.pdf-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 12px;
}

.pdf-meta-item dt {
  color: var(--muted-light);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdf-meta-item dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 500;
}

.pdf-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.pdf-row {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-subtle);
}

.pdf-row--error {
  background: var(--red-bg);
  border-color: var(--red-border);
  box-shadow: inset 3px 0 0 var(--red-solid);
}

.pdf-row-top {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 3px;
}

.pdf-row-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 12.5px;
}

.pdf-row-sku {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand-slate);
  font-weight: 600;
  margin-right: 6px;
}

.pdf-row-total {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pdf-row-calc {
  font-size: 11.8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pdf-row-flag {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}

.pdf-summary {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.2px;
}

.pdf-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.pdf-summary-row--grand {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border-strong);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
}

.pdf-clause {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.pdf-clause strong {
  color: var(--ink);
}

.pdf-injection-reveal {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 6px;
  background: var(--red-bg);
  border: 1.5px dashed var(--red-solid);
}

.pdf-injection-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-ink);
  margin-bottom: 5px;
}

.pdf-injection-text {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--red-ink);
  overflow-wrap: anywhere;
}

/* Right Pane: DealFooting HubSpot Card Preview */
.card-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.hs-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hs-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.hs-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verdict-banner {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.verdict-banner--verified {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-ink);
}

.verdict-banner--danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-ink);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.recon-cell {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.recon-cell--diff-ok {
  background: var(--green-bg);
  border-color: var(--green-border);
}

.recon-cell--diff-err {
  background: var(--red-bg);
  border-color: var(--red-border);
}

.recon-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}

.recon-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.recon-cell--diff-ok .recon-value {
  color: var(--green-ink);
}

.recon-cell--diff-err .recon-value {
  color: var(--red-ink);
}

.recon-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-subhead {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.line-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-item-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.line-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.line-item-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.line-item-total {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.line-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.sku-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green-ink);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Renewal Radar Mini-Card */
.radar-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
}

.radar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.radar-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-ink);
}

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

.radar-metric-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--amber-ink);
  opacity: 0.85;
}

.radar-metric-val {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Opt-in checkboxes */
.optin-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.optin-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.8px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.optin-check input[type="checkbox"] {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.optin-tag {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.sim-receipt {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  font-size: 12.8px;
  color: var(--green-ink);
  line-height: 1.5;
}

.sim-receipt strong {
  display: block;
  margin-bottom: 2px;
}

/* Tab 2 Root-Cause Cascade Card */
.cascade-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--red-border);
  border-left: 4px solid var(--red-solid);
}

.cascade-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cascade-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cascade-eq {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red-ink);
  font-variant-numeric: tabular-nums;
}

.cascade-desc {
  margin: 0 0 10px;
  font-size: 12.8px;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.tech-disclosure {
  border-top: 1px solid var(--border);
  padding-top: 9px;
}

.tech-disclosure summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.tech-disclosure summary::before {
  content: "▸";
  font-size: 11px;
  transition: transform 0.15s ease;
}

.tech-disclosure[open] summary::before {
  transform: rotate(90deg);
}

.tech-code-list {
  margin: 10px 0 0;
  padding: 10px;
  list-style: none;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-code-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Override Drawer (Tab 2) */
.override-drawer {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
}

.override-title {
  margin: 0 0 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--amber-ink);
}

.override-copy {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.cause-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.cause-option {
  padding: 8px 9px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--amber-border);
  font-size: 11.8px;
  line-height: 1.4;
}

.cause-option__label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.cause-option__desc {
  color: var(--muted);
}

.override-note {
  margin: 0;
  font-size: 11.8px;
  color: var(--amber-ink);
}

/* Tab 3 Security Focus Mode */
.security-focus-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 4px solid var(--red-solid);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-focus-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--red-ink);
  line-height: 1.3;
}

.security-focus-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.sync-lock-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--red-border);
  font-size: 13px;
  color: var(--ink-secondary);
}

.sync-lock-box strong {
  color: var(--red-ink);
}

.security-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.trace-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* Card Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.card--subtle {
  background: var(--surface-subtle);
}

.card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.card-badge-top {
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.card-body {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

/* Pricing */
.pricing-group-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 14px;
}

.pricing-now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 6px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-amount--sm {
  font-size: 1.55rem;
}

.price-period {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.price-allowance {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.pricing-cta {
  margin-top: auto;
  padding-top: 18px;
}

.pricing-planned-wrap {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
  margin-bottom: 24px;
}

.pricing-planned-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 18px;
}

.pricing-planned-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pricing-planned-sub {
  font-size: 13px;
  color: var(--muted);
}

.pricing-terms-bar {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.pricing-footnotes {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.pricing-footnotes p {
  margin: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-summary {
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item[open] .faq-summary {
  border-bottom: 1px solid var(--border);
}

.faq-body {
  padding: 16px 22px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.faq-body p {
  margin: 0;
}

/* Closing CTA Band */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.cta-band-copy {
  max-width: 620px;
}

.cta-band-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cta-band-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cta-band .nav-actions {
  flex-wrap: wrap;
}

/* Subpages (Security, Support, Privacy, Terms, Refunds) */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 48px 40px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.page-lead {
  margin: 0;
  max-width: 740px;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.doc-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.doc-content {
  padding-block: 44px 72px;
}

.doc-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-xs);
}

.doc-card h2 {
  margin: 0 0 14px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc-card h3 {
  margin: 22px 0 8px;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink);
}

.doc-card p {
  margin: 0 0 13px;
  color: var(--ink-secondary);
  font-size: 15.2px;
  line-height: 1.68;
}

.doc-card p:last-child,
.doc-card ul:last-child,
.doc-card ol:last-child {
  margin-bottom: 0;
}

.doc-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.66;
}

.doc-list li {
  margin-bottom: 9px;
}

.doc-list li:last-child {
  margin-bottom: 0;
}

/* Callouts & Summary Boxes */
.callout {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin-top: 16px;
}

.callout--amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  border-left: 4px solid var(--amber-solid);
  color: var(--ink-secondary);
}

.callout--amber strong {
  color: var(--amber-ink);
}

.callout--teal {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-left: 4px solid var(--accent);
}

.callout--slate {
  background: var(--surface-muted);
  border-color: var(--border-strong);
  border-left: 4px solid var(--brand-slate);
}

.blockquote-plain {
  margin: 0 0 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.summary-box {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
}

.summary-box-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-slate);
}

/* Responsive Data Tables */
.table-scroll-hint {
  display: none;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-block: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

.data-table thead th {
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

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

.data-table td {
  color: var(--ink-secondary);
}

.data-table td strong {
  color: var(--ink);
}

/* Onboarding Step Cards on Support Page */
.onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.onboarding-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-slate);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.onboarding-step-title {
  margin: 2px 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.onboarding-step p {
  margin: 0;
  font-size: 14.6px;
}

.troubleshoot-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.troubleshoot-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.troubleshoot-q {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Support Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.contact-tile {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.contact-tile-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-tile-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* 404 Page */
.error-page-wrap {
  padding-block: 84px 96px;
}

.error-page-card {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  box-shadow: var(--shadow-sm);
}

.error-code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 40px 44px;
  font-size: 14px;
  color: var(--muted);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer-summary {
  margin: 0;
  color: var(--ink-secondary);
}

.footer-summary strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.8px;
  color: var(--muted-light);
  line-height: 1.55;
}

/* Utility Spacing */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .workbench-grid {
    grid-template-columns: 1fr;
  }

  .preview-tablist {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .pricing-now-grid,
  .pricing-footnotes,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 16px;
  }

  .section {
    padding-block: 52px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .preview-section {
    padding-top: 40px;
    padding-bottom: 52px;
  }

  .preview-tablist,
  .preview-panel {
    padding: 14px;
  }

  .pdf-well {
    padding: 10px;
  }

  .pdf-sheet {
    padding: 14px;
  }

  .pdf-meta-grid,
  .grid-2,
  .cause-grid {
    grid-template-columns: 1fr;
  }

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

  .doc-card {
    padding: 20px 18px;
  }

  .cta-band {
    padding: 24px 20px;
  }

  .cta-band .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .nav-actions .btn {
    width: 100%;
  }

  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .badge {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.35;
  }

  .table-scroll-hint {
    display: block;
  }

  .onboarding-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}
