:root {
  --bg: #2b2216;
  --surface: #382d1e;
  --ink: #e4e2da;
  --muted: #b7ad9d;
  --accent: #bda38b;
  --accent-ink: #1c150d;
  --field-1: #bda38b;
  --field-1-ink: #1c150d;
  --paper: #e4e2da;
  --paper-ink: #1c150d;
  --paper-muted: #524637;

  --font-display: "General Sans", "Segoe UI", system-ui, sans-serif;
  --font-text: "General Sans", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.84rem + 0.14vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.08rem + 0.65vw, 1.5625rem);
  --step-head: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --step-display: clamp(2.5rem, 1.2rem + 5.2vw, 5.25rem);

  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 8vw, 8.5rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 750ms;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
  background: var(--surface);
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

:target {
  scroll-margin-top: 4rem;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  hyphens: none;
}

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

.wrap {
  width: 100%;
  padding-inline: var(--margin);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.button:hover {
  background: var(--paper);
  color: var(--paper-ink);
}

.button:active {
  transform: scale(0.98);
}

.button-dark {
  background: var(--bg);
  color: var(--ink);
}

.button-dark:hover {
  background: var(--surface);
  color: var(--ink);
}

.button-surface {
  background: var(--surface);
  color: var(--ink);
}

.button-surface:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-color var(--t-hover) ease;
}

.link:hover {
  text-decoration-color: currentColor;
}

/* Curtain main layer over sticky footer */
.page-main {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

/* ---------- Top Navigation ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--margin);
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  justify-self: start;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: var(--step-small);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.lang-switch:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Hero: Invitation card, cropped ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 5.5rem);
  overflow: hidden;
  padding-inline: var(--margin);
  padding-top: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: var(--bg);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) contrast(1.05);
}

.ledger-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  background: var(--field-1);
  color: var(--field-1-ink);
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 3.75rem) clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  clip-path: polygon(
    20px 0%, calc(100% - 20px) 0%,
    100% 20px, 100% 100%,
    0% 100%, 0% 20px
  );
}

.hero-meta-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--step-small);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--field-1-ink);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--step-display);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: var(--step-lead);
  line-height: 1.38;
  max-width: 38ch;
  color: var(--field-1-ink);
  margin-bottom: 1.5rem;
}

.hero-preview-strip {
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 1.25rem 1.5rem;
}

.hero-stat-label {
  display: block;
  font-size: var(--step-small);
  color: var(--paper-muted);
}

.hero-stat-value {
  display: block;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Section 1: Showcase + Live Calculator Workspace ---------- */
.showcase {
  padding-block: var(--section);
  background: var(--surface);
  color: var(--ink);
}

.showcase-grid {
  align-items: start;
  row-gap: 3rem;
}

.showcase-left {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 62.01em) {
  .showcase-left {
    position: sticky;
    top: 2rem;
  }
}

.showcase-heading {
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.showcase-sub {
  font-size: var(--step-body);
  color: var(--ink);
  max-width: 38ch;
}

.plate-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate-caption {
  font-size: var(--step-small);
  color: var(--muted);
  margin-top: 0.75rem;
}

.showcase-right {
  grid-column: 6 / 13;
}

/* Data-UI interactive calculator panel */
.calc-panel {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.calc-tab {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  background: #d3cec2;
  color: var(--paper-ink);
  font-size: var(--step-small);
  font-weight: 600;
  text-align: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.calc-tab:hover {
  background: var(--accent);
}

.calc-tab.is-active {
  background: var(--bg);
  color: var(--ink);
}

.calc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  background: #d3cec2;
}

.mode-btn {
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--paper-ink);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.mode-btn.is-active {
  background: var(--bg);
  color: var(--ink);
}

.tier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier-label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--paper-muted);
}

.tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tier-btn {
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  background: #d6cfc2;
  color: var(--paper-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.tier-btn:hover {
  background: var(--accent);
}

.tier-btn.is-active {
  background: var(--surface);
  color: var(--ink);
}

.tier-reset {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--paper-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tier-reset:hover {
  color: var(--paper-ink);
}

.currency-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step-small);
  font-weight: 600;
}

.currency-select {
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: 0;
  color: var(--paper-ink);
  font-weight: 600;
}

.preset-note {
  font-size: var(--step-small);
  color: var(--paper-muted);
  margin-bottom: 1.5rem;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--paper-ink);
}

.field-group input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 0;
  color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
}

.field-group-wide {
  grid-column: 1 / -1;
}

.field-group.is-emphasized input {
  background: #f3ebde;
}

.calc-results {
  background: var(--bg);
  color: var(--ink);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

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

.kpi-label {
  display: block;
  font-size: var(--step-small);
  color: var(--muted);
}

.kpi-value {
  display: block;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

.kpi-secondary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
}

.kpi-roas-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
  background: var(--surface);
}

.kpi-roas-row.is-emphasized {
  background: #473927;
}

.kpi-sub-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.breakdown-bar {
  display: flex;
  width: 100%;
  height: 14px;
  background: var(--surface);
  overflow: hidden;
  margin-top: 1.25rem;
}

.bar-cogs { background: #6b5842; }
.bar-fees { background: #8f775d; }
.bar-ads  { background: #bda38b; }
.bar-net  { background: #e4e2da; }

.status-line {
  margin-top: 1rem;
  font-size: var(--step-small);
  font-weight: 500;
}

.status-line.is-healthy { color: #e4e2da; }
.status-line.is-tight { color: #bda38b; }
.status-line.is-loss { color: #f2a08f; }

.compare-panel {
  background: #d6cfc2;
  color: var(--paper-ink);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.compare-title {
  font-size: var(--step-small);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-small);
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(28, 21, 13, 0.14);
  white-space: nowrap;
}

.compare-table tr.is-current {
  background: rgba(28, 21, 13, 0.08);
  font-weight: 700;
}

.compare-pick {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

.calc-action-cell {
  min-height: 3.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.template-slot {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #d6cfc2;
  color: var(--paper-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--step-small);
}

.template-slot-btn {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.template-slot-btn:hover {
  color: var(--bg);
}

/* ---------- Section 2: How-it-works — Itinerary on a slip ---------- */
.how-it-works {
  padding-block: var(--section);
  background: var(--bg);
  color: var(--ink);
}

.slip-intro {
  grid-column: 1 / 6;
  align-self: start;
}

.slip-heading {
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.slip-lead {
  font-size: var(--step-lead);
  color: var(--ink);
  max-width: 30ch;
}

.slip-col {
  grid-column: 7 / 13;
}

.receipt-slip {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 2.5rem 2rem 3.5rem;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% calc(100% - 14px),
    95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px),
    75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px),
    55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px),
    35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px),
    15% 100%, 10% calc(100% - 14px), 5% 100%, 0% calc(100% - 14px)
  );
}

.slip-group-title {
  font-size: var(--step-body);
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.slip-group-title:first-child {
  margin-top: 0;
}

.slip-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.4rem;
  font-size: var(--step-body);
}

.slip-dots {
  flex: 1;
  height: 4px;
  border-bottom: 4px dotted var(--paper-muted);
  transform: translateY(-3px);
}

.slip-total {
  margin-top: 2rem;
  background: var(--bg);
  color: var(--ink);
  min-height: 3rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
}

/* ---------- Section 3: Features — Stacking colour sheets ---------- */
.features-section {
  padding-top: var(--section);
  padding-bottom: 4rem;
  background: var(--bg);
}

.features-heading {
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  max-width: 16ch;
}

.sheets-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sheet-card {
  position: relative;
  padding: clamp(2.5rem, 4.5vw, 4rem) var(--margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  align-items: center;
}

.sheet-1 {
  background: var(--field-1);
  color: var(--field-1-ink);
}

.sheet-2 {
  background: var(--paper);
  color: var(--paper-ink);
}

.sheet-3 {
  background: var(--surface);
  color: var(--ink);
}

.sheet-copy {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.sheet-title {
  font-size: var(--step-head);
  line-height: 1.04;
  max-width: 15ch;
}

.sheet-body {
  font-size: var(--step-body);
  max-width: 40ch;
}

.sheet-media {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sheet-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.sheet-caption {
  font-size: var(--step-small);
  margin-top: 0.65rem;
}

/* ---------- Section 4: FAQ — Questions beside a tall photograph ---------- */
.faq-section {
  padding-block: var(--section);
  background: var(--paper);
  color: var(--paper-ink);
}

.faq-left {
  grid-column: 1 / 6;
}

.faq-heading {
  font-size: var(--step-head);
  line-height: 1.04;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.faq-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--step-body);
  font-weight: 500;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.25;
}

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

.faq-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  transition: transform 200ms var(--ease-out);
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 2px;
  background: currentColor;
}

.faq-chevron::before {
  left: 0;
  transform: translateY(-50%) rotate(40deg);
}

.faq-chevron::after {
  right: 0;
  transform: translateY(-50%) rotate(-40deg);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 0.75rem;
  color: var(--paper-ink);
  font-size: var(--step-body);
  max-width: 46ch;
}

.faq-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.faq-right {
  grid-column: 7 / 13;
  position: relative;
  align-self: start;
}

.faq-tall-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.faq-inset-img {
  position: absolute;
  left: -40px;
  bottom: 48px;
  width: 38%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Section 5: CTA — Question at both edges ---------- */
.cta-band {
  min-height: 92svh;
  background: var(--bg);
  color: var(--ink);
  padding: 3rem var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.cta-display {
  font-size: clamp(3.5rem, 9.5vw, 9rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.cta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-block: 3rem;
}

.cta-choices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 6vw, 5rem);
}

.cta-btn {
  min-width: 200px;
  min-height: 56px;
}

.cta-or {
  font-size: var(--step-body);
  color: var(--muted);
}

.cta-note {
  font-size: var(--step-small);
  color: var(--muted);
  max-width: 44ch;
}

/* ---------- Section 6: Curtain Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--field-1);
  color: var(--field-1-ink);
  padding: 2.5rem var(--margin) 2.5rem;
  min-height: 75svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 15.5vw, 13.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  width: 100%;
  overflow: hidden;
}

.footer-columns {
  margin-top: 3.5rem;
  row-gap: 2.5rem;
}

.footer-places {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-places a {
  font-size: var(--step-lead);
  font-weight: 600;
  text-decoration: none;
}

.footer-places a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-links-grid {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col-title {
  font-size: var(--step-small);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--step-small);
}

.footer-col-list a {
  text-decoration: none;
}

.footer-col-list a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  font-size: var(--step-small);
}

.footer-credits {
  max-width: 58ch;
  font-size: var(--step-small);
}

.footer-credits a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Motion helpers (always readable without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(18px);
    animation: ml-rise var(--t-reveal) var(--ease-expo) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-reveal) var(--ease-expo), transform var(--t-reveal) var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes ml-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive (Tablet 768 & Phone 390) ---------- */
@media (max-width: 62em) {
  .showcase-left,
  .showcase-right,
  .slip-intro,
  .slip-col,
  .sheet-copy,
  .sheet-media,
  .faq-left,
  .faq-right,
  .footer-places,
  .footer-links-grid {
    grid-column: 1 / -1;
  }

  .sheet-card {
    position: relative;
    top: auto !important;
    min-height: auto;
    row-gap: 1.5rem;
  }

  .faq-inset-img {
    left: auto;
    right: 0;
    bottom: -24px;
    width: 40%;
  }

  .site-footer {
    position: relative;
    min-height: auto;
  }
}

@media (max-width: 42em) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

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

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

  .calc-inputs,
  .kpi-grid,
  .kpi-secondary,
  .kpi-roas-row,
  .calc-actions,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .cta-choices {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    width: 75%;
  }
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--margin);
  background: var(--bg);
}
