/* ==========================================================================
   PIXEL BUDGET TRACKER — LANDING PAGE
   Seed-color theme engine: pick a color, the whole page retunes around it.
   The cash-flow signals (income green, expense red, transfer blue, warning
   amber) deliberately do NOT retune — same rule the app follows.
   ========================================================================== */

:root {
  --nav-height: 72px;
  --container-width: 1120px;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.55;

  /* Needed on html *and* body to contain the off-canvas mobile drawer.
     `clip`, not `hidden`: it doesn't turn either element into a scroll
     container, so the sticky header keeps working. Nothing on the page is
     meant to overflow sideways. */
  overflow-x: clip;

  /* Carries the theme crossfade, so the canvas underneath can switch
     instantly without a stale edge. Same colour, painted on top. */
  background: var(--bg);
  transition: background-color 0.45s var(--ease-standard);
}

/* The palette lives on the root element, not on <body>, so that <html> can
   paint the page background itself. A transparent root leaves the canvas
   colour to background propagation from <body>, and the browser falls back to
   its white base for a frame whenever it re-resolves that — while the theme
   transition runs, or while <body> is pinned for the drawer's scroll lock —
   which flashes a white border around the page. */
:root {
  --seed-h: 123;
  --seed-s: 46%;
  --seed-l: 34%;

  --primary: hsl(var(--seed-h), var(--seed-s), var(--seed-l));
  --on-primary: #ffffff;
  --primary-container: hsl(var(--seed-h), var(--seed-s), 90%);
  --on-primary-container: hsl(var(--seed-h), var(--seed-s), 20%);
  --secondary-container: hsl(calc(var(--seed-h) + 30), calc(var(--seed-s) * 0.8), 92%);
  --on-secondary-container: hsl(calc(var(--seed-h) + 30), calc(var(--seed-s) * 0.8), 24%);
  --tertiary-container: hsl(calc(var(--seed-h) - 40), calc(var(--seed-s) * 0.7), 90%);
  --on-tertiary-container: hsl(calc(var(--seed-h) - 40), calc(var(--seed-s) * 0.7), 15%);

  --bg: #f6f8fa;
  --surface: #ffffff;
  --sc-low: #f4f6f8;
  --sc: #eaedf1;
  --sc-high: #e2e6eb;
  --outline: #e1e4e8;
  --on-surface: #17242b;
  --muted: #5c6c75;

  /* ---- Cash-flow signals ----------------------------------------------
     Fixed on purpose. These are the only colours in the app the seed does
     not touch, because "green" and "red" here are meaning, not decoration:
     re-tinting them toward a rose or amber seed would make money in and
     money out the same colour on the same row. */
  --income: #2e7d32;
  --expense: #c62828;
  --transfer: #1565c0;
  --warning: #b06d00;
  --income-container: #e3f0e4;
  --expense-container: #f8e3e3;
  --transfer-container: #e1ecf9;
  --warning-container: #f7ecd6;

  --scrim: rgba(246, 248, 250, 0.72);

  background: var(--bg);
  color: var(--on-surface);

  /* This background is the page canvas, and it is deliberately NOT animated.
     While a transition on the canvas colour is running the browser keeps the
     frame's base colour at its previous value, which shows up as a stale band
     around the edges of the page for as long as the transition lasts. The
     canvas therefore switches instantly and <body> fades on top of it. */
  transition: color 0.45s var(--ease-standard);
}

:root[data-theme="dark"] {
  --bg: #0d0e0f;
  --surface: #16181a;
  --sc-low: #1d1f22;
  --sc: #24272b;
  --sc-high: #2c2f34;
  --outline: #2c2f33;
  --on-surface: #e5e7e8;
  --muted: #8d9fa9;

  --primary-container: hsl(var(--seed-h), calc(var(--seed-s) * 0.4), 18%);
  --on-primary-container: hsl(var(--seed-h), var(--seed-s), 84%);
  --secondary-container: hsl(calc(var(--seed-h) + 30), calc(var(--seed-s) * 0.4), 18%);
  --on-secondary-container: hsl(calc(var(--seed-h) + 30), calc(var(--seed-s) * 0.8), 84%);
  --tertiary-container: hsl(calc(var(--seed-h) - 40), calc(var(--seed-s) * 0.4), 17%);
  --on-tertiary-container: hsl(calc(var(--seed-h) - 40), calc(var(--seed-s) * 0.7), 82%);

  /* Same hues, lifted until they clear AA on a near-black card — the app
     solves for this per scheme; here the two schemes are known up front. */
  --income: #6bbf70;
  --expense: #f0776b;
  --transfer: #6fb2f2;
  --warning: #e0a63c;
  --income-container: #1b2a1c;
  --expense-container: #2e1c1b;
  --transfer-container: #16232f;
  --warning-container: #2c2416;

  --scrim: rgba(13, 14, 15, 0.72);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--on-primary-container);
}

img {
  max-width: 100%;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p {
  margin: 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.85rem, 4.2vw, 2.4rem);
}

.section-desc {
  font-size: 1.08rem;
  color: var(--muted);
}
.section-desc.small {
  font-size: 0.98rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1080;
  min-height: var(--nav-height);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--scrim);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline);
  transition: background-color 0.45s var(--ease-standard), border-color 0.45s var(--ease-standard);
}

.nav-container {
  width: 92%;
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo:hover {
  color: var(--on-surface);
}
.logo-icon img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-link:hover {
  color: var(--primary);
}

.nav-link.mobile-download-link {
  display: none;
}

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

.mode-toggle-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
  background: var(--sc-low);
  color: var(--muted);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.mode-toggle-btn:hover {
  background: var(--sc);
}
.mode-toggle-btn svg {
  /* Inline SVGs sit on the text baseline, so the line box reserves descender
     space below the icon and centring the wrapper leaves the glyph high. */
  display: block;
}

.btn-header {
  padding: 10px 20px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 100px;
  transition: transform 0.2s var(--ease-spring);
}
.btn-header:hover {
  transform: translateY(-2px);
  color: var(--on-primary-container);
}

.hamburger-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--outline);
  background: var(--sc-low);
  color: var(--on-surface);
  border-radius: 100px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1070;
}

.hamburger-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 13px;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.4px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}
.hamburger-menu.active .hamburger-bar:nth-child(1) {
  transform: translateY(5.3px) rotate(45deg);
}
.hamburger-menu.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-bar:nth-child(3) {
  transform: translateY(-5.3px) rotate(-45deg);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1050;
}
.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   SHARED SECTION / GRID LAYOUT
   ========================================================================== */
.section {
  display: flex;
  justify-content: center;
  padding: 96px 0;
}
.section.alt {
  background-color: var(--sc-low);
  transition: background-color 0.45s var(--ease-standard);
}

.section-inner {
  width: 92%;
  max-width: var(--container-width);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 48px 80px;
  align-items: center;
}

.split-grid.tight {
  gap: 56px 72px;
}

.col-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.col-text.hero {
  gap: 28px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#top {
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-title {
  font-size: clamp(2.1rem, 6vw, 4rem);
  text-wrap: balance;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 30em;
  text-wrap: pretty;
}

.seed-picker-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seed-picker-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.seed-picker-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.seed-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}
.seed-swatch:hover {
  transform: scale(1.1);
}
.seed-swatch.active {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--on-surface);
}

.hero-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-badge-link {
  display: block;
  transition: transform 0.2s var(--ease-spring);
}
.hero-badge-link:hover {
  transform: translateY(-3px);
}
.hero-badge-link img {
  height: 56px;
  display: block;
}
.hero-fineprint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 16em;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.hero-phone-frame {
  width: 100%;
  max-width: 320px;
  background: var(--on-surface);
  border: 10px solid var(--on-surface);
  border-radius: 46px;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.22);
}
.hero-phone-frame img {
  width: 100%;
  display: block;
  border-radius: 36px;
}

/* ==========================================================================
   THEME ROLE SWATCHES
   ========================================================================== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.role-card {
  border-radius: 24px;
  padding: 20px 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-color 0.45s var(--ease-standard), color 0.45s var(--ease-standard);
}
.role-card.outlined {
  border: 1px solid var(--outline);
}
.role-name {
  font-size: 1rem;
  font-weight: 600;
}
.role-desc {
  font-size: 0.82rem;
  opacity: 0.8;
}
.role-card.outlined .role-desc {
  opacity: 1;
  color: var(--muted);
}

.role-accent { background: var(--primary); color: var(--on-primary); }
.role-primary { background: var(--primary-container); color: var(--on-primary-container); }
.role-secondary { background: var(--secondary-container); color: var(--on-secondary-container); }
.role-tertiary { background: var(--tertiary-container); color: var(--on-tertiary-container); }
.role-surface { background: var(--sc-high); color: var(--on-surface); }
.role-bg { background: var(--sc-low); color: var(--on-surface); }

/* ==========================================================================
   MONEY SIGNALS — the three colours the seed picker cannot move
   ========================================================================== */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
}

.signal-card {
  border-radius: 24px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--outline);
  transition: background-color 0.45s var(--ease-standard), border-color 0.45s var(--ease-standard);
}
.signal-amount {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signal-name {
  font-size: 0.94rem;
  font-weight: 600;
}
.signal-desc {
  font-size: 0.84rem;
  color: var(--muted);
}

.signal-income .signal-amount { color: var(--income); }
.signal-expense .signal-amount { color: var(--expense); }
.signal-transfer .signal-amount { color: var(--transfer); }

/* ==========================================================================
   BUDGET CARD — a live mock of the app's budget screen. The bars follow the
   seed; the amber and red states override it, exactly as the app does.
   ========================================================================== */
.budget-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  transition: background-color 0.45s var(--ease-standard), border-color 0.45s var(--ease-standard);
}
.budget-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.budget-card-header strong {
  font-weight: 600;
  font-size: 1.05rem;
}
.budget-card-header span {
  font-size: 0.82rem;
  color: var(--muted);
}

.budget-total {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.budget-total-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.budget-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.budget-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.budget-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}
.budget-row-name {
  font-weight: 600;
}
.budget-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.budget-bar {
  height: 12px;
  border-radius: 100px;
  background: var(--sc);
  overflow: hidden;
  transition: background-color 0.45s var(--ease-standard);
}
.budget-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--primary);
  transition: background-color 0.45s var(--ease-standard), width 0.6s var(--ease-standard);
}
.budget-row-note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* The two states that ignore the seed. */
.budget-row.warn .budget-bar-fill { background: var(--warning); }
.budget-row.warn .budget-pill {
  background: var(--warning-container);
  color: var(--warning);
}
.budget-row.over .budget-bar-fill { background: var(--expense); }
.budget-row.over .budget-pill {
  background: var(--expense-container);
  color: var(--expense);
}
.budget-row.ok .budget-pill {
  background: var(--income-container);
  color: var(--income);
}

.budget-visual {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* The real screen, cropped to its top so the card stays a card rather than a
   full phone's worth of height next to the mock above it. */
.budget-showcase-img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--outline);
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   DESIGN / FEATURE LIST
   ========================================================================== */
.sticky-col {
  position: sticky;
  top: 120px;
}

/* Once .split-grid stacks, the pinned heading and the feature list share one
   column and the list scrolls underneath it, so drop the pinning there.

   The grid needs 2x330px + 80px of gap inside a 92%-wide container, i.e. a
   ~805px content box. The cutoff sits well above that on purpose: this media
   query resolves against the viewport *including* the scrollbar, while the
   grid resolves against the content box *excluding* it, and matching the two
   exactly would let the overlap reappear in the scrollbar-wide band between
   them. Erring high only costs the pin in a band where it is unnoticeable. */
@media (max-width: 840px) {
  .sticky-col {
    position: static;
  }
}

.feature-list {
  background: var(--sc-high);
  border-radius: 28px;
  padding: 6px clamp(16px, 3vw, 24px);
  transition: background-color 0.45s var(--ease-standard);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--outline);
}
.feature-row:last-child {
  border-bottom: none;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.feature-copy strong {
  font-size: 1.05rem;
  font-weight: 600;
}
.feature-copy span {
  font-size: 0.94rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   SCREENS GRID (analytics, goals, recurring)
   ========================================================================== */
.screens-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34em;
  margin-bottom: 44px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.screen-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-visual-box {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  border: 1px solid var(--outline);
  background: var(--sc-low);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 0;
  overflow: hidden;
  transition: background-color 0.45s var(--ease-standard), border-color 0.45s var(--ease-standard);
}
.screen-visual-box img {
  width: 78%;
  display: block;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.screen-name {
  font-size: 0.94rem;
  font-weight: 600;
}
.screen-desc {
  font-size: 0.9rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   PRICING COMPARISON
   ========================================================================== */
.pricing-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34em;
  margin-bottom: 36px;
}
.pricing-section .section-inner {
  max-width: 960px;
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px clamp(14px, 3vw, 24px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pricing-head-row .pro-col {
  color: var(--primary);
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px clamp(14px, 3vw, 24px);
  background: var(--sc-high);
  transition: background-color 0.45s var(--ease-standard);
}
.pricing-row:first-of-type {
  border-radius: 28px 28px 4px 4px;
}
.pricing-row:last-of-type {
  border-radius: 4px 4px 28px 28px;
}

.pricing-row .name {
  font-weight: 600;
  font-size: 0.98rem;
}
.pricing-row .free {
  font-size: 0.94rem;
  color: var(--muted);
}
.pricing-row .pro {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--primary);
}

.pricing-footnote {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 44em;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section .section-inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: var(--sc-high);
  border-radius: 4px;
  overflow: hidden;
  transition: background-color 0.45s var(--ease-standard);
}
.faq-item:first-child {
  border-radius: 28px 28px 4px 4px;
}
.faq-item:last-child {
  border-radius: 4px 4px 28px 28px;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px clamp(18px, 3vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--on-surface);
}

.faq-icon {
  flex: none;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-standard);
}
.faq-panel p {
  padding: 0 clamp(18px, 3vw, 26px) 24px;
  font-size: 0.98rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-section {
  display: flex;
  justify-content: center;
  padding: 0 0 110px;
}
.cta-banner {
  width: 92%;
  max-width: var(--container-width);
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  transition: background-color 0.45s var(--ease-standard);
}
.cta-banner h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--on-primary-container);
  max-width: 16em;
}
.cta-banner p {
  font-size: 1.08rem;
  max-width: 34em;
  opacity: 0.85;
  text-wrap: pretty;
}
.cta-banner .hero-badge-link {
  margin-top: 8px;
}
.cta-banner .hero-badge-link img {
  height: 58px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 56px 0 72px;
  border-top: 1px solid var(--outline);
}
.footer-inner {
  width: 92%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 40px 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.footer-brand-name img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
}
.footer-brand p {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 30em;
  text-wrap: pretty;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a {
  font-size: 0.94rem;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sc);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.footer-social-btn:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--outline);
  padding-top: 24px;
}
.footer-bottom a {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE / MOBILE NAV
   ========================================================================== */
@media (max-width: 900px) {
  .btn-header {
    display: none;
  }
  .nav-link.mobile-download-link {
    display: block;
    color: var(--primary) !important;
    font-weight: 700;
  }
  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 96px 32px 32px;
    gap: 4px;
    flex: 0 0 auto;
    box-shadow: -10px 0 34px rgba(0, 0, 0, 0.14);
    /* Parked with a transform rather than `right: -100%`: an offset that far
       off-screen widens the page and gives mobile a horizontal scrollbar.
       visibility keeps the closed drawer out of the tab order. */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease-standard), visibility 0s linear 0.35s;
    z-index: 1060;
    overflow-y: auto;
  }
  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease-standard), visibility 0s linear 0s;
  }
  .nav-links .nav-link {
    width: 100%;
    font-size: 1.08rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--outline);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  #top {
    padding-top: 56px;
    padding-bottom: 64px;
  }
}

/* Honour a reduced-motion preference: the reveal animation is decoration. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The "· Pro" tag on a screen tile: same weight as the name, quieter colour,
   so it reads as a note on the label rather than a second heading. */
.screen-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}
