:root {
  --ink: #141712;
  --ink-light: #2c3328;
  --muted: #5e6657;
  --paper: #f4efe4;
  --sheet: #fbf9f4;
  --line: #d8cfbe;
  --line-subtle: #e8e1d4;
  --stamp: #9e4318;
  --cash: #1b533b;
  --cash-bg: #eaf3ee;
  --deficit: #942b2b;
  --deficit-bg: #f9ebeb;
  --warn: #8f5d13;
  --warn-bg: #fbf5e8;
  --primary: #184635;
  --primary-hover: #123326;
  --font-serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  --font-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ==========================================================================
   Typography & Layout
   ========================================================================== */
h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.container {
  width: min(76rem, 100% - 2.5rem);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow, .section-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.section-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #eae2d1;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.2rem;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0;
  text-align: center;
  line-height: 1.55;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--sheet);
  border: 1px solid var(--ink);
}

.btn-primary:hover {
  background: var(--ink-light);
  border-color: var(--ink-light);
}

.btn-secondary {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-large {
  padding: 0.75rem 1.4rem;
  font-size: 0.98rem;
}

.btn-small {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================================
   Header Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 228, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}

.nav-container {
  width: min(76rem, 100% - 2.5rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  font-size: 1rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.badge-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--stamp);
  color: var(--stamp);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.phase-indicator {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  background: var(--sheet);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 4px;
  cursor: pointer;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
  gap: 0.8rem;
}

.mobile-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  color: var(--ink);
}

.mobile-nav-link[aria-current="location"],
.nav-links a[aria-current="location"] {
  color: var(--ink);
}

.nav-links a[aria-current="location"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.mobile-nav-cta {
  margin-top: 0.4rem;
  width: 100%;
}

/* ==========================================================================
   Hero Section (Centered)
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, #faf6ec 0%, var(--paper) 100%);
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 58rem;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cash);
  font-weight: 600;
  margin-bottom: 1.2rem;
  background: var(--cash-bg);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(27, 83, 59, 0.2);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cash);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(27, 83, 59, 0.2);
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1.4rem;
}

.hero-line {
  display: block;
}

.hero-lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46rem;
  text-align: center;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-mode-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* Onboarding panel for an account with no connected data */
.onboarding {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 46rem;
}

.onboarding-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cash);
  font-weight: 600;
}

.onboarding-title {
  font-size: 1.6rem;
  line-height: 1.15;
}

.onboarding-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.onboarding-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.onboarding-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.1rem 0.7rem;
  align-items: baseline;
}

.onboarding-steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--stamp);
  line-height: 1.2;
}

.onboarding-steps strong {
  font-size: 0.92rem;
  font-weight: 600;
}

.onboarding-steps span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Precision band */.scale-band {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.scale-cell {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--line);
}

.scale-cell:last-child {
  border-right: none;
}

.scale-cell dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.scale-cell dd {
  margin: 0.5rem 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.scale-cell dd span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cash);
}

.scale-cell p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Institutional trust ribbon under the hero */
.trust-ribbon {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-subtle);
  text-align: left;
}

.trust-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-list strong {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.trust-list span {
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-stats-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
  text-align: left;
}

.stat-card {
  padding: 1.4rem 1.3rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.stat-card:last-child {
  border-right: none;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0.35rem 0 0.25rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-value.cash {
  color: var(--cash);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ==========================================================================
   Interactive Calculator Section
   ========================================================================== */
.calc-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 2.2rem;
}

.calc-grid > *,
.calc-controls,
.input-group {
  min-width: 0;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.input-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.input-header label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.input-readout {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: var(--cash);
  font-weight: 600;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--sheet);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--cash);
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0.35rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}

.calc-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--line-subtle);
  padding-top: 1.2rem;
}

.calc-results {
  background: #f4ede0;
  border: 1px solid var(--line);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.result-banner {
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}

.result-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-hero {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--cash);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 0.3rem 0 0.2rem;
}

.result-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 0.2rem;
}

/* Timeline Visualizer */
.timeline-visualizer {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1rem;
}

.timeline-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
}

.timeline-track {
  height: 28px;
  display: flex;
  border: 1px solid var(--line);
  overflow: hidden;
}

.timeline-segment.grace {
  background: var(--cash-bg);
  border-right: 2px dashed var(--cash);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: flex 0.15s ease;
}

.timeline-segment.settlement {
  background: var(--warn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seg-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 0.3rem;
}

.timeline-segment.grace .seg-label { color: var(--cash); }
.timeline-segment.settlement .seg-label { color: var(--warn); }

.timeline-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.marker-target {
  font-weight: 600;
  color: var(--stamp);
}

/* Comparison */
.comparison-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1rem;
}

.comp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comp-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.comp-tag.off { color: var(--muted); }
.comp-tag.on { color: var(--cash); }

.comp-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  margin: 0.15rem 0;
}

.comp-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.comp-divider {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Mechanics & Steps Section
   ========================================================================== */
.mechanics-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.step-card.highlight-step {
  border-top: 3px solid var(--cash);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--cash);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

.step-list {
  margin: auto 0 0 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Worked example under the three-step pipeline. */
.worked-example {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cash);
  padding: 1.1rem 1.3rem;
}

.worked-tag {
  flex: 0 0 auto;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cash);
}

.worked-example p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.worked-example strong {
  color: var(--ink);
}

/* ==========================================================================
   Architecture & Security
   ========================================================================== */
.arch-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.arch-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.arch-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.arch-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.arch-card code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: #ede6d8;
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--line);
}

.security-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.security-box {
  background: #141712;
  color: var(--sheet);
  border: 1px solid #141712;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.security-badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}

.security-content h2 {
  font-size: 2rem;
  color: #f7f3ea;
  margin-bottom: 0.8rem;
}

.security-content p {
  font-size: 1rem;
  color: #a3ab9a;
  max-width: 44rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.security-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.security-pills span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #d1d8cb;
  letter-spacing: 0.04em;
}

.security-box .btn-primary {
  background: #efe8da;
  color: #141712;
  border-color: #efe8da;
}

.security-box .btn-primary:hover {
  background: #ffffff;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.faq-intro .section-title,
.faq-intro .section-desc {
  text-align: left;
}

.faq-intro .section-desc {
  margin-bottom: 1.4rem;
}

.faq-intro .btn-secondary {
  align-self: flex-start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--sheet);
  border: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--cash);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "−";
}

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

.faq-item p {
  padding: 0.9rem 1.2rem 1.2rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48rem;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta-section {
  padding: 4.5rem 0;
}

.cta-box {
  background: var(--primary);
  color: var(--sheet);
  border: 1px solid var(--primary);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7fd3a6;
  margin-bottom: 0.7rem;
}

.cta-content h2 {
  font-size: 2.1rem;
  line-height: 1.15;
  color: #f7f3ea;
  margin-bottom: 0.7rem;
}

.cta-content p {
  font-size: 1rem;
  line-height: 1.55;
  color: #c6cec1;
  max-width: 40rem;
  margin: 0;
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.cta-box .btn-primary {
  background: #efe8da;
  color: #141712;
  border-color: #efe8da;
}

.cta-box .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.cta-box .btn-secondary {
  background: transparent;
  color: #f7f3ea;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0;
  background: #e9e2d3;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  color: var(--muted);
  max-width: 26rem;
}

.footer-meta {
  text-align: right;
  color: var(--muted);
}

.footer-links {
  margin-top: 0.4rem;
}

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

/* ==========================================================================
   Gate / Auth Modal (Centered Dialog)
   ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 23, 18, 0.65);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.gate-card {
  width: min(29rem, 100%);
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 2.2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: auto;
}

.gate-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 0.8rem;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.close-btn:hover {
  color: var(--ink);
}

.gate-title-group {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gate-title-group .eyebrow {
  margin-bottom: 0.3rem;
}

.gate-title-group h2 {
  font-size: 1.6rem;
  margin: 0.2rem 0 0.4rem;
}

.gate-title-group .lede {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 24rem;
  margin: 0 auto;
}

.form-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 500;
}

.form-field input, .form-field select {
  background: #fffdf9;
  border: 1px solid var(--line);
  padding: 0.6rem 0.7rem;
  width: 100%;
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Consent block: two independent checkboxes, never bundled. */
.consent-group {
  display: grid;
  gap: 0.6rem;
  margin: 0.4rem 0 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.consent-row {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-light);
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.consent-row a {
  color: var(--ink);
  text-decoration: underline;
}

.error {
  color: var(--deficit);
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin: 0.2rem 0;
  text-align: center;
}

.gate-demo-box {
  margin-top: 1.6rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  background: #f4ede1;
  text-align: center;
}

.demo-title {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.demo-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* ==========================================================================
   Float Desk App Shell (Authenticated)
   ========================================================================== */
#shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.8rem;
  background: #e6dfcf;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.mast-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mast-sep {
  color: var(--line);
  font-size: 1.2rem;
}

.mast-title {
  font-size: 1.4rem;
  font-weight: 500;
}

.mast-status {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.stamp {
  border: 1px solid var(--stamp);
  color: var(--stamp);
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(158, 67, 24, 0.06);
}

.who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.who-email {
  font-size: 0.88rem;
  font-weight: 500;
}

.state {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid;
  font-weight: 600;
}

.state.ok {
  color: var(--cash);
  border-color: var(--cash);
  background: var(--cash-bg);
}

.state.deficit {
  color: var(--deficit);
  border-color: var(--deficit);
  background: var(--deficit-bg);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 1.8rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--stamp);
  font-weight: 600;
}

.tab-link {
  margin-left: auto;
  color: var(--muted);
}

.count {
  display: inline-block;
  min-width: 1.2rem;
  background: var(--deficit);
  color: #fffdf8;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  margin-left: 0.25rem;
  border-radius: 2px;
}

/* Main Desk View */
.app-main {
  padding: 1.8rem;
  width: min(76rem, 100% - 2.5rem);
  margin-inline: auto;
  flex: 1;
}

/* Overview Metrics Grid */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--sheet);
  margin-bottom: 1.6rem;
}

.metric {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.metric:nth-child(4n) {
  border-right: none;
}

.metric .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric .value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  margin-top: 0.3rem;
  color: var(--ink);
}

.metric .value.cash { color: var(--cash); }
.metric .value.deficit { color: var(--deficit); }
.metric .value.time { font-size: 1.05rem; padding-top: 0.4rem; color: var(--muted); }

/* Overview Comparative Waterfall Card */
.overview-waterfall-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
}

.card-heading {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.dual-track-group {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0;
}

.track-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  align-items: center;
  gap: 1.2rem;
}

.track-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 22px;
  background: #ede6d8;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  transition: width 0.35s ease;
}

.progress-fill.cash { background: var(--cash); }
.progress-fill.liability { background: var(--stamp); }

.waterfall-legend {
  display: flex;
  gap: 1.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--line-subtle);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-color {
  width: 11px;
  height: 11px;
  display: inline-block;
}

.legend-color.cash { background: var(--cash); }
.legend-color.liability { background: var(--stamp); }

.desk-actions-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--sheet);
  margin-top: 0.8rem;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  border: none;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.9rem;
}

th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #ede7d9;
}

th.num, td.num {
  text-align: right;
}

th.center, td.center {
  text-align: center;
}

tr:hover td {
  background: #f5efe2;
}

/* Status & Risk Pills */
.pill {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.12rem 0.45rem;
  font-weight: 600;
  text-align: center;
}

.pill.LOW, .pill.HEALTHY, .pill.ACTIVE, .pill.PROJECTED, .pill.RECONCILED {
  color: var(--cash);
  border-color: var(--cash);
  background: var(--cash-bg);
}

.pill.MEDIUM, .pill.HIGH, .pill.DEFICIT_WARNING {
  color: var(--warn);
  border-color: var(--warn);
  background: var(--warn-bg);
}

.pill.CRITICAL, .pill.DEFICIT_ALERT, .pill.NEEDS_REAUTH {
  color: var(--deficit);
  border-color: var(--deficit);
  background: var(--deficit-bg);
}

.pill.SIMULATED_SUCCESS, .pill.SENT {
  color: var(--muted);
  background: #ede7d8;
}

/* Account & Item Lists */
.list {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
}

.account-card, .note-card, .item-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 1.3rem 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.account-card header, .note-card header, .item-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.account-card .balances {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.controls {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-subtle);
}

.controls label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.controls input, .controls select {
  padding: 0.35rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--line);
}

.note-card.read {
  opacity: 0.6;
}

.empty {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 2.5rem 1.8rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--ink);
  color: var(--sheet);
  padding: 0.75rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  max-width: 28rem;
  font-size: 0.9rem;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Polish Utilities
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

/* Keyboard-only skip link, pinned above the sticky header. */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sheet);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Anchored sections clear the sticky header. */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Shared small-text utility used by desk views and card copy. */
.muted {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Announced by screen readers, invisible on screen. */
.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;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.comp-col.highlight {
  background: var(--cash-bg);
  border: 1px solid rgba(27, 83, 59, 0.25);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.footer-brand-col {
  flex: 1 1 18rem;
}

.security-action {
  flex: 0 0 auto;
}

.footer-disclaimer {
  font-size: 0.76rem;
  line-height: 1.45;
  max-width: 34rem;
  margin-bottom: 0.7rem;
  margin-left: auto;
  color: var(--muted);
}

/* Loading state while a desk view fetches. */
.app-main.is-loading {
  opacity: 0.55;
  transition: opacity 0.12s ease;
}

.app-main.is-loading::after {
  content: "";
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  margin: 2rem auto;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Additional lifecycle states surfaced by the API. */
.pill.SHADOW_SIMULATED,
.pill.PENDING,
.pill.PROCESSING,
.pill.PROJECTED {
  color: var(--muted);
  border-color: var(--line);
  background: #ede7d8;
}

.pill.SETTLED,
.pill.PAID,
.pill.LINKED {
  color: var(--cash);
  border-color: var(--cash);
  background: var(--cash-bg);
}

.pill.CANCELLED,
.pill.FAILED,
.pill.REVOKED,
.pill.DISCONNECTED,
.pill.CRITICAL {
  color: var(--deficit);
  border-color: var(--deficit);
  background: var(--deficit-bg);
}

/* Respect reduced-motion preferences across every animated surface. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Keep the desktop nav from wrapping once its five links plus the CTA
   no longer fit on one line. */
@media (max-width: 1199px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .phase-indicator { display: none; }
}

@media (max-width: 900px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--line); }

  .calc-grid { grid-template-columns: 1fr; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .scale-cell:nth-child(2n) { border-right: none; }
  .scale-cell:nth-child(1), .scale-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2n) { border-right: none; }

  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .faq-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .faq-intro { position: static; }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 2.4rem 2rem;
  }
  .cta-actions { width: 100%; justify-content: flex-start; }

  .security-box {
    flex-direction: column;
    text-align: center;
    padding: 2.2rem 1.5rem;
  }
  .security-pills { justify-content: center; }
  .security-action { width: 100%; display: flex; justify-content: center; }

  .track-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .hero-stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat-card:last-child { border-bottom: none; }

  .trust-ribbon { flex-direction: column; gap: 0.8rem; text-align: center; }
  .trust-list { gap: 1.2rem; }

  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none !important; }

  .scale-grid { grid-template-columns: 1fr; }
  .scale-cell { border-right: none !important; border-bottom: 1px solid var(--line); }
  .scale-cell:last-child { border-bottom: none; }

  .onboarding { padding: 1.6rem 1.3rem; }
  .onboarding-title { font-size: 1.3rem; }

  .phase-indicator { display: none; }
  .badge-tag { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-monogram { width: 1.6rem; height: 1.6rem; font-size: 0.9rem; }
  .nav-container { gap: 0.6rem; }
  .nav-actions { gap: 0.45rem; }
  #open-gate-btn { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; width: 100%; }
  .footer-disclaimer { margin-inline: auto; }

  .hero-section { padding: 3.5rem 0 3rem; }
  .hero-headline { font-size: clamp(2.05rem, 9.2vw, 2.6rem); }
  .hero-line { display: inline; }
  .calc-section, .mechanics-section, .arch-section, .security-section, .faq-section { padding: 3rem 0; }
  .cta-section { padding: 3rem 0; }
  .worked-example { flex-direction: column; gap: 0.4rem; }
  .cta-box { padding: 2rem 1.4rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .calc-grid { padding: 1.4rem; }
  .security-box { padding: 1.8rem 1.2rem; }
  .gate-card { padding: 1.5rem 1.2rem; }
  .gate-overlay { padding: 1rem 0.65rem; }

  /* Comfortable tap targets on the smallest screens. */
  .btn-large, .btn-block { min-height: 2.75rem; }
  .btn-small { min-height: 2.4rem; }

  .toast-popup {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .comparison-card { grid-template-columns: 1fr; gap: 0.6rem; }
  .comp-divider { padding: 0.2rem 0; }

  .mast {
    padding: 0.8rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .mast-status { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Public Content Pages (Pricing, Privacy, Terms, Support)
   ========================================================================== */
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 4.75rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 15% 0%, #faf6ec 0%, var(--paper) 70%);
}

.page-hero .eyebrow {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  background: #eae2d1;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.page-title {
  max-width: 52rem;
  font-size: clamp(2.3rem, 5vw, 3.65rem);
  line-height: 1.08;
  color: var(--ink);
}

.page-lede {
  max-width: 48rem;
  margin-top: 1.15rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
}

.page-meta {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.page-section-alt {
  background: #efe8da;
}

.page-section .section-header {
  margin-bottom: 2.3rem;
}

.prose-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.page-aside {
  position: sticky;
  top: 6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}

.aside-title {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp);
}

.page-aside nav {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.page-aside nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2.35rem 0 0.7rem;
  font-size: 1.65rem;
  line-height: 1.25;
  scroll-margin-top: 6rem;
}

.prose h3 {
  margin: 1.55rem 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}

.prose p {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--ink-light);
}

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
  color: var(--ink-light);
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.legal-callout {
  padding: 1rem 1.1rem;
  margin: 0 0 1.4rem;
  background: var(--cash-bg);
  border-left: 3px solid var(--cash);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-light);
}

.legal-callout + h2 {
  margin-top: 1.7rem;
}

.legal-address {
  font-style: normal;
  line-height: 1.6;
  margin: 0.8rem 0 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
}

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

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: inset 0 3px 0 var(--primary);
}

.price-kicker {
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-name {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
}

.price-amount {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--ink);
}

.price-amount.price-custom {
  font-size: 2.15rem;
}

.price-period {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}

.price-lede {
  min-height: 4.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-light);
}

.price-list li {
  position: relative;
  padding-left: 1.2rem;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cash);
  font-weight: 700;
}

.price-card .btn-primary,
.price-card .btn-secondary {
  margin-top: auto;
}

.price-note {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}

.pricing-footnote {
  max-width: 52rem;
  margin: 1.7rem auto 0;
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
}

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

.included-card {
  padding: 1.4rem;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.included-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.included-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.prose .faq-item {
  margin-bottom: 0.65rem;
}

.prose .faq-item p {
  margin-bottom: 0;
}

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

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.support-card-primary {
  background: var(--cash-bg);
  border-color: rgba(27, 83, 59, 0.28);
}

.support-kicker {
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cash);
}

.support-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.support-card > p:not(.support-kicker):not(.support-note) {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.support-email {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  overflow-wrap: anywhere;
}

.support-note {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

.support-warning {
  margin-top: 1.15rem;
  padding: 1.2rem 1.35rem;
  background: var(--warn-bg);
  border: 1px solid rgba(143, 93, 19, 0.3);
  border-left: 3px solid var(--warn);
}

.support-warning h2 {
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.support-warning p {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-light);
}

.footer-links {
  line-height: 1.9;
}

.footer-links a {
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .prose-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .page-aside {
    position: static;
    padding-left: 0;
    border-left: 0;
  }

  .page-aside nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .pricing-grid,
  .included-grid {
    grid-template-columns: 1fr;
  }

  .price-lede {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 3.25rem 0 2.5rem;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .page-lede {
    font-size: 1rem;
  }

  .page-section {
    padding: 2.8rem 0;
  }

  .price-card {
    padding: 1.3rem;
  }

  .prose h2 {
    font-size: 1.45rem;
  }

  .footer-links a {
    white-space: normal;
  }
}
