/* Epic Accounting — Design Tokens */

:root {
  /* Epic Accounting palette — matches brand: deep teal-green + amber gold on white */
  --bg: #ffffff;            /* clean white base */
  --bg-2: #f5f7f5;          /* very subtle green-tinted off-white */
  --bg-3: #0f3530;          /* deep brand teal */
  --ink: #14201b;           /* near-black with green undertone */
  --ink-2: #2d3a33;
  --muted: #6a7d72;
  --line: #e3e6e2;
  --line-2: #cdd2cc;

  --primary: #0f3530;       /* deep teal-green from logo background */
  --primary-2: #1a4a42;     /* slightly lifted teal */
  --primary-soft: #d9e3df;  /* pale teal wash */

  --accent: #f5b400;        /* warm amber gold from logo bars */
  --accent-2: #e0a000;      /* deeper amber for hover/secondary */
  --accent-soft: #fef0c7;   /* pale amber wash */

  --ok: #4a7c59;
  --warn: #c89b3c;

  /* Typography */
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale — anchored at 17px body, 48px H2, premium editorial.
     Mobile-friendly: minimum body floor 17px, minimum label floor 12px.
     Display headings clamp() so they breathe on big screens but don't wrap awkwardly on small. */
  --text-xs:    12px;                          /* mono labels only — tiny badges, meta */
  --text-sm:    14px;                          /* secondary body, fine print */
  --text-base:  17px;                          /* body floor */
  --text-md:    18px;                          /* slightly larger body */
  --text-lg:    19px;                          /* lede / large body */
  --text-xl:    22px;                          /* small subhead */

  --display-xs: 24px;                          /* card titles */
  --display-sm: 28px;                          /* small section title */
  --display-md: clamp(32px, 3.6vw, 40px);      /* mid section title */
  --display-lg: clamp(40px, 5vw, 56px);        /* H2 — primary section title */
  --display-xl: clamp(48px, 6.5vw, 80px);      /* H1 — hero */

  /* Spacing scale */
  --pad-x: clamp(20px, 5vw, 80px);
  --section: clamp(64px, 7.5vw, 110px);
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS Safari renders <button> text in its system blue unless an explicit color is set.
   Inherit color from the parent so cards/links/etc. read correctly across all browsers. */
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Type utilities — uppercase mono labels.
   12px is the floor; below this, tracked + uppercase reads as "noise" rather than text. */
.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
}

/* Layout */
.shell {
  min-height: 100vh;
  background: var(--bg);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--section) 0;
}
/* When two .section blocks share the same background and sit adjacent, the doubled
   padding creates a dead band of empty space. Mark the second one .section-merge-top
   to zero its top padding (or .section-merge-bottom for the section above). */
.section.section-merge-top { padding-top: 0; }
.section.section-merge-bottom { padding-bottom: 0; }
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover {
  background: var(--accent-2);
  color: var(--ink);
  transform: translateY(-1px);
}
/* Tighter CTA inside the nav bar */
.nav-cta .btn {
  padding: 13px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-2);
}
.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.18s ease;
}
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, #ffffff 92%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 80%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  max-width: 1320px;
  margin: 0 auto;
  gap: 24px;
}
/* Desktop only: switch to a 3-column grid so the nav links sit dead-center on the page,
   independent of the logo or right-side CTA cluster widths. Below 960px the hamburger
   takes over and the simple flex above keeps logo + hamburger flanking the bar. */
@media (min-width: 881px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: initial;
  }
  .nav-inner > :first-child { justify-self: start; }
  .nav-inner > .nav-links   { justify-self: center; }
  .nav-inner > .nav-cta     { justify-self: end; }
}
/* Below the desktop nav breakpoint, force a clean flex row that won't wrap
   or get clipped — logo on the left, hamburger flush right. */
@media (max-width: 1080px) {
  .nav-inner {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .nav-cta { flex-shrink: 0; }
}
/* Transparent nav (over photos) gets a smaller padding so the big light logo doesn't push everything down */
.nav-transparent .nav-inner {
  padding: 8px var(--pad-x);
}
/* Light wordmark sits in the same nav row as the dark variant — kept large
   for brand presence (matches inner-page hero size). The wordmark's own
   aspect ratio (~2.6:1) means at 80px tall it's ~210px wide — that fits
   alongside 6 nav links + CTA on desktop without crowding. Step down on
   narrower viewports so it doesn't push the link cluster off-screen. */
.nav-transparent .nav-logo-light img { height: 80px !important; }
@media (max-width: 1280px) {
  .nav-transparent .nav-logo-light img { height: 64px !important; }
}
@media (max-width: 1060px) {
  .nav-transparent .nav-logo-light img { height: 52px !important; }
}
@media (max-width: 820px) {
  .nav-transparent .nav-logo-light img { height: 44px !important; }
}
@media (max-width: 560px) {
  .nav-transparent .nav-logo-light img { height: 38px !important; }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: #4a4a4a;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}
.nav-link:hover {
  color: var(--ink);
  background: rgba(245, 180, 0, 0.08);
  border-color: rgba(245, 180, 0, 0.32);
  transform: translateY(-1px);
}
.nav-link.active {
  background: #0e1410;
  color: #ffffff;
  border-color: #0e1410;
}
.nav-link.active:hover {
  background: #0e1410;
  border-color: #0e1410;
  transform: translateY(-1px);
}
.nav-cta {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-phone {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 14px 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}
.nav-phone:hover {
  background: rgba(245, 180, 0, 0.08);
  border-color: rgba(245, 180, 0, 0.32);
  color: var(--ink);
  transform: translateY(-1px);
}
.nav-phone:hover .nav-phone-icon {
  animation: navPhoneShake 0.45s ease-in-out;
}
.nav-phone-icon {
  display: inline-flex;
  color: var(--accent);
  flex-shrink: 0;
  /* Quiet pulse-ring: catches the eye without spinning constantly */
  position: relative;
  border-radius: 50%;
  padding: 4px;
  background: rgba(245, 180, 0, 0.12);
  width: 22px !important;
  height: 22px !important;
  animation: navPhoneRing 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.nav-phone-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.nav-phone-mini {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.nav-phone-num {
  font-size: 14px;
  font-weight: 600;
}

@keyframes navPhoneRing {
  0%, 88%, 100% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0); }
  91% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.55); }
  96% { box-shadow: 0 0 0 8px rgba(245, 180, 0, 0); }
}
@keyframes navPhoneShake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-phone-icon { animation: none; }
  .nav-phone:hover .nav-phone-icon { animation: none; }
}
/* Tighter CTA inside the nav bar — match link rhythm */
.nav-cta .btn {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

/* ───────── Welcome Intro section ───────── */
.welcome-intro {
  background: var(--bg);
  padding: clamp(80px, 10vw, 130px) 0;
  border-bottom: 1px solid var(--line);
}
.welcome-intro-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .welcome-intro-inner { grid-template-columns: 1fr; }
}
.welcome-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.welcome-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 28px;
  text-wrap: balance;
}
.welcome-rule {
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 32px;
}
.welcome-sub {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 36px;
}
.welcome-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
@media (max-width: 600px) {
  .welcome-checks { grid-template-columns: 1fr; }
}
.welcome-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
}
.welcome-check svg {
  flex-shrink: 0;
  color: var(--accent);
}
.welcome-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.welcome-intro-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.welcome-stat-card {
  background: var(--primary);
  color: var(--bg);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.welcome-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, color-mix(in oklab, var(--accent) 15%, transparent) 100%);
  pointer-events: none;
}
.welcome-stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 8px;
  position: relative;
}
.welcome-stat-label {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  position: relative;
}

/* ───────── Transparent nav (overlays hero photo on home page) ───────── */
.nav-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  z-index: 50;
}
.nav-transparent .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.nav-transparent .nav-link:hover {
  color: #ffffff;
  background: rgba(245, 180, 0, 0.12);
  border-color: rgba(245, 180, 0, 0.45);
  transform: translateY(-1px);
}
.nav-transparent .nav-link.active {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
}
.nav-transparent .nav-link.active:hover {
  background: rgba(245, 180, 0, 0.12);
  border-color: rgba(245, 180, 0, 0.45);
  color: var(--accent);
}
.nav-transparent .nav-phone {
  color: #ffffff;
  font-weight: 500;
}
.nav-transparent .nav-phone:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 180, 0, 0.5);
  color: #fff;
}
.nav-transparent .nav-phone-mini {
  color: rgba(255, 255, 255, 0.6);
}
.nav-transparent .nav-phone-icon {
  color: var(--accent);
  background: rgba(245, 180, 0, 0.18);
}
/* The hero needs to start under the absolute nav */
.nav-transparent + main .photo-hero,
.nav-transparent + main .hero {
  margin-top: 0;
}

/* Photo-rotating hero
   --------------------
   Full-bleed background photos crossfade slowly. A dark gradient scrim
   weights the bottom-left where the headline sits so white text stays readable
   no matter what's in the photo. A subtle scale animation (Ken Burns) gives
   each slide a sense of motion without being distracting. */
.photo-hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -1px; /* tuck under the nav border */
  background: var(--ink);
}
.photo-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.photo-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1500ms ease-in-out, transform 8000ms linear;
  will-change: opacity, transform;
}
.photo-hero-slide.is-active {
  opacity: 1;
  transform: scale(1.12); /* slow zoom while visible */
}
/* Single static hero — slow continuous ken-burns loop */
.photo-hero-kenburns {
  animation: photo-hero-kenburns 30s ease-in-out infinite alternate;
}
@keyframes photo-hero-kenburns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
.photo-hero-scrim {
  position: absolute;
  inset: 0;
  /* Smooth, monotonic darkening from top — keeps text legible without a directional
     reverse that would create a visible band. */
  background:
    linear-gradient(to bottom, rgba(15, 28, 23, 0.62) 0%, rgba(15, 28, 23, 0.42) 35%, rgba(15, 28, 23, 0.28) 70%, rgba(15, 28, 23, 0.30) 100%),
    linear-gradient(115deg, rgba(15, 28, 23, 0.30) 0%, rgba(15, 28, 23, 0.10) 70%, rgba(15, 28, 23, 0.0) 100%);
  pointer-events: none;
}
.photo-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
  color: var(--bg);
  max-width: var(--max);
  width: 100%;
}
.photo-hero-content .hero-eyebrow { margin-bottom: 32px; }
.photo-hero .photo-hero-title {
  color: var(--bg);
  max-width: 18ch;
  margin: 0 0 28px;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 1.02;
}
.photo-hero .photo-hero-title em { color: var(--accent-2); font-style: italic; }
.photo-hero .photo-hero-title .accent-underline {
  color: var(--accent);
}
.photo-hero .photo-hero-sub {
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin: 0 0 36px;
}
/* Ghost button needs to read as bright on dark photos */
.photo-hero-ghost {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.32);
}
.photo-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--bg);
}
/* Slide dots */
.photo-hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 48px;
}
.photo-hero-dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 300ms ease, width 400ms ease;
}
.photo-hero-dot.is-active {
  background: var(--accent);
  width: 44px;
}
.photo-hero-dot:hover { background: rgba(255, 255, 255, 0.6); }

/* Inner-page heroes: the big light wordmark gets oppressive on shorter
   heroes — cap its height so it doesn't crowd the title. */
/* ───────── Shader hero ───────── */
.shader-hero {
  background: #050a0a; /* fallback before shader paints */
}
.shader-hero-stage {
  /* Subtle CSS-gradient fallback in case WebGL is unavailable */
  background:
    radial-gradient(120% 80% at 80% 50%, color-mix(in oklab, var(--accent) 35%, transparent) 0%, transparent 55%),
    radial-gradient(120% 100% at 20% 60%, color-mix(in oklab, var(--primary) 70%, transparent) 0%, transparent 60%),
    #050a0a;
}
.shader-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.shader-hero-scrim {
  /* The shader is already moody; scrim just deepens text contrast on the left */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.30) 100%),
    linear-gradient(105deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.0) 100%);
}

/* ───────── Photo hero — mobile ───────── */
@media (max-width: 760px) {
  .photo-hero {
    min-height: clamp(520px, 88vh, 680px);
  }
  .photo-hero-content {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .photo-hero-content .hero-eyebrow {
    margin-bottom: 20px;
  }
  /* Mobile eyebrow: lighter weight, tighter size, readable wrap rhythm.
     Beats the unscoped override at line ~1994 via more specific selector. */
  .photo-hero.page-hero-photo .photo-hero-content .hero-eyebrow .mono,
  .photo-hero .photo-hero-content .hero-eyebrow .mono {
    font-size: 12px;
    letter-spacing: 0.14em;
    font-weight: 500;
    line-height: 1.55;
  }
  .photo-hero-content .hero-eyebrow-dot {
    width: 8px;
    height: 8px;
  }
  .photo-hero .photo-hero-title {
    font-size: 40px;
    line-height: 1.05;
    margin: 0 0 20px;
    max-width: 14ch;
  }
  .photo-hero .photo-hero-sub {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 28px;
  }
  .photo-hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .photo-hero .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .photo-hero-dots {
    margin-top: 32px;
  }
}
@media (max-width: 420px) {
  .photo-hero .photo-hero-title {
    font-size: 38px;
  }
  .photo-hero.page-hero-photo .photo-hero-title {
    font-size: 36px !important;
  }
}

/* ───────── Product-mockup hero ───────── */
.product-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: clamp(80px, 11vw, 140px) 0 clamp(80px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}
.product-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.product-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 30%, transparent 75%);
}
.product-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.product-hero-glow-1 {
  width: 540px; height: 540px;
  background: color-mix(in oklab, var(--accent) 30%, transparent);
  top: -120px; right: -120px;
}
.product-hero-glow-2 {
  width: 420px; height: 420px;
  background: color-mix(in oklab, var(--primary) 25%, transparent);
  bottom: -100px; left: 30%;
  opacity: 0.35;
}
.product-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 980px) {
  .product-hero-inner { grid-template-columns: 1fr; }
}
.product-hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust-item .trust-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
}
.trust-item .trust-num .accent { color: var(--accent); }
.trust-item .trust-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

/* ───────── Return Summary Mockup ───────── */
.product-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.rsm-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.rsm-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 35, 30, 0.04),
    0 16px 40px -12px rgba(15, 35, 30, 0.18),
    0 30px 80px -20px rgba(15, 35, 30, 0.12);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.rsm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 3%, white), white);
}
.rsm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  font-size: 15px;
}
.rsm-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
}
.rsm-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rsm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
.rsm-headline {
  padding: 28px 22px 24px;
  background:
    radial-gradient(ellipse at top right, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    white;
  border-bottom: 1px solid var(--line);
}
.rsm-headline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.rsm-headline-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rsm-cents {
  font-size: 32px;
  color: var(--muted);
}
.rsm-headline-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 10px;
  background: color-mix(in oklab, #16a34a 12%, white);
  color: #15803d;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.rsm-rows {
  padding: 8px 0;
}
.rsm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.rsm-row:last-child { border-bottom: 0; }
.rsm-row-label {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rsm-row-tag {
  display: inline-block;
  padding: 2px 8px;
  background: color-mix(in oklab, var(--accent) 15%, white);
  color: color-mix(in oklab, var(--accent) 70%, var(--primary));
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rsm-row-val {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rsm-row-neg { color: var(--accent); }
.rsm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--primary) 2%, white);
}
.rsm-foot-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.rsm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rsm-avatar-sm { width: 22px; height: 22px; font-size: 9px; }
.rsm-foot-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Floating cards behind the main */
.rsm-float {
  position: absolute;
  z-index: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px -10px rgba(15, 35, 30, 0.18);
  font-size: 12px;
  min-width: 220px;
}
.rsm-float-xero {
  top: -32px;
  right: -28px;
  transform: rotate(3deg);
}
.rsm-float-msg {
  bottom: -36px;
  left: -32px;
  transform: rotate(-3deg);
}
.rsm-float-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rsm-float-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 2px;
}
.rsm-float-sub {
  color: var(--muted);
  font-size: 11px;
}
.rsm-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: auto;
  box-shadow: 0 0 0 0 rgba(34,197,94, 0.7);
  animation: rsm-pulse 2s infinite;
}
@keyframes rsm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); }
}

@media (max-width: 980px) {
  .rsm-wrap { max-width: 420px; margin: 0 auto; }
  .rsm-float-xero { top: -24px; right: -8px; }
  .rsm-float-msg { bottom: -24px; left: -8px; }
}

/* Hero */
.hero {
  position: relative;
  padding: 32px 0 var(--section);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 32px 0;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  color: var(--primary);
}
.hero-title .accent-underline {
  position: relative;
  display: inline-block;
}
.hero-title .accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.18em;
  background: var(--accent);
  z-index: -1;
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 0 32px 0;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Marquee for partner logos */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  overflow: hidden;
  background: var(--bg-2);
}
.marquee-inner {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: scroll 32s linear infinite;
  white-space: nowrap;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.marquee-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.marquee-review {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  max-width: 540px;
  gap: 10px;
}
.marquee-stars {
  color: var(--accent);
  font-size: var(--text-sm);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.marquee-review-text {
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}
.marquee-review-author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.marquee-header-item strong {
  color: var(--ink);
  font-weight: 500;
}

/* ───────── Services grid (Our Services tiles) ───────── */
.sv-grid-section {
  background: var(--bg-2);
  padding: clamp(72px, 9vw, 110px) 0 clamp(80px, 10vw, 130px);
}
/* When the process section sits directly above the services grid, both share
   the same bg-2 surface — collapse the doubled padding into a single section gap. */
.section + .sv-grid-section {
  padding-top: 0;
}
.sv-grid-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.sv-grid-lede {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 18px;
  text-wrap: pretty;
}
.sv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .sv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .sv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .sv-grid { grid-template-columns: 1fr; } }

.sv-tile {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 26px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
}
.sv-tile::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 240ms ease;
}
.sv-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 25%, var(--line));
  box-shadow: 0 14px 36px -22px rgba(15, 53, 48, 0.28);
}
.sv-tile:hover::before { transform: scaleY(1); }

.sv-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-3);
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  position: relative;
  flex-shrink: 0;
}
.sv-icon-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, transparent 55%, color-mix(in oklab, var(--accent) 22%, transparent) 100%);
  pointer-events: none;
}
.sv-icon-badge svg {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.sv-tile-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.sv-tile-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(20, 32, 27, 0.18);
}

/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}
/* About story: zero out default <p> margins so only the parent flex gap controls spacing */
.about-story-prose p { margin: 0; }

@media (max-width: 560px) {
  /* Tighter section rhythm on phones — the desktop scale leaves giant gaps in 390px viewports */
  .section { padding: 36px 0; }
  .sec-head { margin-bottom: 24px; gap: 16px; }
  /* Sections that opt out of `.section` and set their own padding */
  .sv-grid-section { padding: 40px 0 44px; }
  /* Hero on home (centered layout) — the inline `paddingBottom: var(--section)` tries to use the desktop value */
  .hero { padding: 28px 0 36px; }
}
.sec-title {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 400;
}
.sec-lede {
  font-size: var(--text-base);
  color: var(--ink-2);
  max-width: 56ch;
}

/* Footer */
.footer {
  background: var(--bg-3);
  color: var(--bg);
  padding: 64px 0 28px;
}
.footer .container { color: inherit; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
}
@media (max-width: 560px) {
  .footer-grid {
    /* Brand spans the full width on its own row; Site + Contact share a 2-col row below */
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    margin-bottom: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .footer-logo {
    /* The PNG has heavy transparent padding (596x596 with the wordmark in the middle ~40%);
       sizing it smaller here trims the visible empty space around it on phones */
    width: 132px !important;
    /* Optical crop: pull the image up/down/sides to neutralize most of the transparent padding */
    margin: -28px -10px -28px -18px;
  }
}
@media (max-width: 560px) {
  /* Tighten the footer's outer rhythm on phones — the desktop padding leaves a giant green band */
  .footer { padding: 36px 0 24px; }
  .footer-grid { margin-bottom: 24px !important; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px 0;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  transition: color 0.18s ease;
  text-decoration: none;
}
.footer a:hover { color: var(--bg); }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 42ch;
}
.footer-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: -8px; /* optical: the wordmark has a tiny left bearing */
}
.footer-tagline {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}
.footer-since {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.footer-since span[aria-hidden="true"] { color: var(--accent); opacity: 0.7; }
@media (max-width: 800px) {
  .footer-logo { width: 170px; }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}
.footer-bottom > * { flex: 0 0 auto; }
.footer-bottom > .footer-bottom-center { flex: 1 1 auto; text-align: center; }
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom > .footer-bottom-center { text-align: center; }
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-2);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Density variations */
.density-spacious .section { padding: calc(var(--section) * 1.25) 0; }
.density-compact .section { padding: calc(var(--section) * 0.75) 0; }

/* Page transition — fade + subtle slide up + scale */
.page-enter {
  animation: pageEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: pageEnterReduced 0.2s ease forwards; }
  @keyframes pageEnterReduced { from { opacity: 0; } to { opacity: 1; } }
}

/* Service finder */
.service-finder {
  background: var(--bg-3);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.service-finder-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(184, 137, 58, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(45, 80, 67, 0.4), transparent 40%);
  pointer-events: none;
}

/* Testimonials */
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* No fixed height — let CSS grid stretch and contents define rhythm.
     The quote is line-clamped so cards stay roughly equal. */
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  /* Hard clamp: max ~6 lines of 19px@1.45 = ~165px */
  max-height: 168px;
  overflow: hidden;
  position: relative;
}
/* Fade-out mask on the bottom of the clamped quote */
.testimonial-quote::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary);
}

/* Stat blocks */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
}
@media (max-width: 800px) {
  .stat-cell {
    padding: 24px 12px;
  }
  .stat-num {
    font-size: 36px;
  }
}
.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-cell:last-child { border-right: 0; }
@media (max-width: 800px) {
  /* 2-column grid on phones: cells in the right column lose their right border;
     cells in the bottom row lose their bottom border (handled by border-top on next sibling) */
  .stat-cell:nth-child(2n) { border-right: 0; }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stat-num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-num .small {
  font-size: 0.5em;
  color: var(--accent-2);
  margin-left: 4px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg);
  /* iOS Safari renders <button> text in its system blue unless explicitly colored.
     Set the ink color and reset button defaults so all child text inherits correctly. */
  color: var(--ink);
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: var(--bg-3);
  color: var(--bg);
  border-color: var(--bg-3);
}
.service-card:hover .service-num,
.service-card:hover .service-bullet,
.service-card:hover .mono { color: var(--accent) !important; }
.service-card:hover .service-desc { color: rgba(255,255,255,0.75); }
.service-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--accent-2);
  transition: color 0.25s ease;
}
.service-title {
  font-family: var(--font-display);
  font-size: var(--display-xs);
  line-height: 1.1;
  color: inherit;
  margin: 0;
  font-weight: 400;
}
.service-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  transition: color 0.25s ease;
}
.service-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
}
.service-bullet {
  color: var(--accent-2);
  font-family: var(--font-mono);
  margin-right: 8px;
  transition: color 0.25s ease;
}

/* Process timeline */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
}
.process-step {
  padding: 32px 24px;
  border-left: 1px solid var(--line);
  position: relative;
}
.process-step:first-child { border-left: 1px solid var(--ink); }
.process-step::before {
  content: '';
  position: absolute;
  top: 32px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.process-step:first-child::before {
  background: var(--ink);
  border-color: var(--ink);
}
.process-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-2);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.process-title {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  line-height: 1.1;
  margin: 0 0 12px 0;
  font-weight: 400;
}
.process-desc {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Why-us comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) {
  .compare { grid-template-columns: 1fr; }
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg);
}
.compare-col.them {
  background: var(--bg-2);
}
.compare-col.us {
  background: var(--bg-3);
  color: var(--bg);
  border-color: var(--bg-3);
}
.compare-col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  font-weight: 500;
  opacity: 0.6;
}
.compare-col h2 {
  font-family: var(--font-display);
  font-size: var(--display-md);
  line-height: 1.05;
  margin: 0 0 24px 0;
  font-weight: 400;
}
.compare-col.us h3 { color: var(--accent); opacity: 1; }
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: var(--text-base);
  align-items: start;
}
.compare-list .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  margin-top: 3px;
  flex-shrink: 0;
}
.compare-col.them .icon { background: var(--line-2); color: var(--ink); }
.compare-col.us .icon { background: var(--accent); color: var(--ink); }

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: var(--display-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  font-weight: 400;
  max-width: 16ch;
}
.page-hero-sub {
  font-size: var(--text-lg);
  color: var(--ink-2);
  max-width: 60ch;
}

/* Image placeholder */
.placeholder-img {
  background:
    repeating-linear-gradient(135deg,
      var(--primary-soft) 0,
      var(--primary-soft) 12px,
      var(--bg-2) 12px,
      var(--bg-2) 24px);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.placeholder-img::after {
  content: attr(data-label);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* Service finder interactive */
.sf-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sf-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .sf-options { grid-template-columns: 1fr; }
}
.sf-option {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--bg);
  padding: 18px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sf-option:hover {
  border-color: var(--accent);
  background: rgba(184,137,58,0.1);
}
.sf-option.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.sf-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.sf-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.sf-progress-bar.active {
  background: var(--accent);
}
.sf-result {
  background: rgba(184,137,58,0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 24px;
  margin-top: 16px;
}

/* Tag pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Mobile nav */
.mobile-only { display: none; }
@media (max-width: 760px) {
  .desktop-only { display: none; }
  .mobile-only { display: flex; }
}
/* Hide nav links + in-nav CTAs once hamburger appears.
   Raised from 960 → 1080: between 960 and ~1100, the 6 links + phone +
   "Make appointment" + WhatsApp simply don't fit alongside the logo, so
   the right-side CTAs were getting clipped by the hero's overflow:hidden.
   Hamburger now takes over earlier so the bar always fits. */
/* "Make appointment" CTA is now a floating FAB at all sizes — hide it from the nav globally. */
.nav-cta-btn { display: none !important; }

/* Hamburger takes over below 880px. The nav now only has links + phone, so it fits comfortably. */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
}
/* At intermediate desktop widths (881–1100), tighten link padding so the row breathes. */
@media (min-width: 881px) and (max-width: 1100px) {
  .nav-link { padding: 11px 12px !important; font-size: 14px !important; }
  .nav-links { gap: 2px !important; }
  .nav-cta { gap: 10px !important; }
  .nav-phone { padding: 6px 10px !important; }
  .nav-phone-num { font-size: 13px !important; }
}

/* Floating CTA — sticks bottom-right above thumb zone (all screen sizes) */
.mobile-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 12px 28px rgba(15, 53, 48, 0.32),
    0 4px 8px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mobile-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(15, 53, 48, 0.38),
    0 6px 12px rgba(0, 0, 0, 0.22);
}
.mobile-fab:active {
  transform: scale(0.96);
}
.mobile-fab svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .mobile-fab {
    right: 16px;
    bottom: 20px;
    padding: 14px 20px;
  }
}

/* ========================================================== */
/* Pricing tabs                                                */
/* ========================================================== */
.pricing-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.pricing-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}
.pricing-tab {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  border: 0;
}
.pricing-tab.is-active {
  background: var(--bg-3);
  color: var(--bg);
}
.pricing-tab:hover:not(.is-active) {
  color: var(--ink);
}

/* Mobile: tabs become a horizontal-scrolling pill row — clean, no orphan cell. */
@media (max-width: 760px) {
  .pricing-tabs-wrap {
    margin-bottom: 24px;
    width: 100%;
    /* Allow the row to bleed to the edge so users can see there's more to scroll */
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    overflow: hidden;
  }
  .pricing-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }

  .pricing-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--line-2);
    text-align: center;
    white-space: nowrap;
    line-height: 1.25;
    scroll-snap-align: start;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  .pricing-tab:hover:not(.is-active) {
    background: var(--bg-2);
    color: var(--ink);
  }
  .pricing-tab.is-active {
    background: var(--bg-3);
    color: var(--bg);
    border-color: var(--bg-3);
    font-weight: 600;
  }
  /* Reset previous nth-child hack */
  .pricing-tab:nth-child(5) { grid-column: auto; }
}
/* ========================================================== */
/* Mobile final overrides — appended last to win specificity   */
/* ========================================================== */

/* Hard-stop horizontal scroll on phones — only vertical scrolling allowed */
@media (max-width: 760px) {
  html {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
  }
  body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
  }
  /* Prevent any wide table / pre / code blocks from forcing horizontal scroll */
  table, pre, code {
    max-width: 100%;
    overflow-x: auto;
  }
  /* Images never overflow */
  img, video, svg, iframe {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 760px) {

  /* Stat strip: tighten numbers so 3 cells fit */
  .stat-num { font-size: 32px !important; }
  .stat-cell { padding: 20px 8px !important; }
  .stat-label { font-size: 11px !important; }

  /* Inner-page photo hero — sizing handled by the dedicated polish block lower in the file */
  .photo-hero.page-hero-photo .photo-hero-title {
    margin-bottom: 16px !important;
  }
  .photo-hero.page-hero-photo .photo-hero-sub {
    margin-bottom: 20px !important;
  }
  .photo-hero.page-hero-photo .hero-eyebrow {
    margin-bottom: 16px !important;
  }
}

/* ========================================================== */
/* Photo hero eyebrow — pill-style with animated tracking dot. */
/* The label sits to the right of a small gold dot that pulses */
/* gently, with a thin gold rule that draws in beneath it on   */
/* page entry. Replaces the previous mono-+-dot version.       */
/* ========================================================== */
.photo-hero-content .hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 16px;
  border: 1px solid rgba(245, 180, 0, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 180, 0, 0.08), rgba(245, 180, 0, 0.02));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-6px);
  animation: eyebrowFadeIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 200ms forwards;
}
.photo-hero-content .hero-eyebrow .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  white-space: nowrap;
}
.photo-hero-content .hero-eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.55);
  animation: eyebrowPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  flex-shrink: 0;
}

@keyframes eyebrowFadeIn {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes eyebrowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.55); }
  60%  { box-shadow: 0 0 0 8px rgba(245, 180, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 180, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-hero-content .hero-eyebrow {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .photo-hero-content .hero-eyebrow-dot {
    animation: none;
  }
}

@media (max-width: 800px) {
  .photo-hero-content .hero-eyebrow {
    padding: 8px 14px 8px 12px;
    gap: 10px;
    max-width: calc(100vw - 40px);
  }
  .photo-hero-content .hero-eyebrow .mono {
    font-size: 10px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
  /* Show the short eyebrow on mobile, hide the long one */
  .photo-hero-content .hero-eyebrow .eyebrow-full { display: none; }
  .photo-hero-content .hero-eyebrow .eyebrow-short { display: inline; }
}
.photo-hero-content .hero-eyebrow .eyebrow-short { display: none; }
.photo-hero-content .hero-eyebrow .eyebrow-full { display: inline; }

/* ========================================================== */
/* Hamburger menu — appears <960px alongside hidden nav links  */
/* ========================================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
  transform-origin: center;
}
.nav-transparent .nav-hamburger span {
  background: #ffffff;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Show hamburger when nav links are hidden */
@media (max-width: 1080px) {
  .nav-hamburger { display: flex; }
}

/* Slide-down mobile panel */
.nav-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  /* When collapsed (max-height:0) the border + shadow still render as a hairline
     across the bottom of the nav. Apply them only when the panel is open. */
  border-bottom: 0;
  box-shadow: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
.nav-mobile-panel.is-open {
  max-height: 80vh;
  opacity: 1;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.nav-mobile-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  max-width: 1320px;
  margin: 0 auto;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 60ms, opacity 220ms ease 60ms;
}
.nav-mobile-panel.is-open .nav-mobile-panel-inner {
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 14px 12px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease;
}
.nav-mobile-link:hover {
  background: var(--bg-2);
}
.nav-mobile-link.active {
  color: var(--accent-2);
  font-weight: 600;
}
.nav-mobile-divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0 8px;
}
.nav-mobile-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background 150ms ease;
}
.nav-mobile-action:hover {
  background: var(--bg-2);
}
.nav-mobile-action svg {
  flex-shrink: 0;
  color: var(--accent-2);
}
.nav-mobile-action--whatsapp svg {
  color: #25D366;
}
.nav-mobile-cta {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* On transparent nav, the panel still gets a solid background — opens below the hero overlay */
.nav-transparent .nav-mobile-panel {
  /* nav is absolute positioned; panel inherits position from .nav-mobile-panel */
  background: #ffffff;
}

/* Hide hamburger on real desktop */
@media (min-width: 881px) {
  .nav-hamburger { display: none !important; }
  .nav-mobile-panel { display: none; }
}

/* ========================================================== */
/* WhatsApp button — desktop nav + mobile FAB                  */
/* ========================================================== */

/* Desktop: round icon button next to "Make appointment" */
.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.nav-whatsapp svg {
  display: block;
}
/* On the transparent (over-photo) nav, give the WA button a soft white ring so it
   reads on busy photos without changing the brand green */
.nav-transparent .nav-whatsapp {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.nav-transparent .nav-whatsapp:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* WhatsApp FAB — sits ABOVE the booking FAB at all screen sizes */
.nav-whatsapp { display: none !important; } /* In-nav WA button is replaced by floating FAB */
.mobile-fab-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 24px;
  /* Booking FAB is ~50px tall + 24px bottom inset → sit above it with 12px gap */
  bottom: 90px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(37, 211, 102, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mobile-fab-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.45),
    0 5px 12px rgba(0, 0, 0, 0.2);
}
.mobile-fab-whatsapp:active {
  transform: scale(0.96);
}
.mobile-fab-whatsapp svg {
  width: 26px;
  height: 26px;
}
@media (max-width: 760px) {
  .mobile-fab-whatsapp {
    right: 16px;
    bottom: 84px;
  }
}


/* ========================================================== */
/* Tax Strategies — playbook index + deep pages                */
/* ========================================================== */

/* Index — strategy spec cards */
.tax-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .tax-cards-grid { grid-template-columns: 1fr; } }

.tax-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 88px 1fr;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
}
.tax-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--primary) 30%, var(--line));
  box-shadow: 0 24px 48px -28px rgba(15, 53, 48, 0.32);
}
.tax-card:hover .tax-card-cta { color: var(--accent-2); }
.tax-card:hover .tax-card-cta-arrow { transform: translateX(4px); }

.tax-card-rail {
  background: var(--primary);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.tax-card-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 80%, rgba(245,180,0,0.10), transparent 60%);
  pointer-events: none;
}
.tax-card-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.tax-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: flex-start;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {
  .tax-card { grid-template-columns: 64px 1fr; }
  .tax-card-num { font-size: 40px; }
  .tax-card-eyebrow { display: none; }
  .tax-card-rail { padding: 20px 14px; }
}

.tax-card-body {
  padding: 28px 30px 28px;
  display: flex;
  flex-direction: column;
}
.tax-card-audience {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.tax-card-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 400;
}
.tax-card-promise {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 22px;
  text-wrap: pretty;
  max-width: 44ch;
}
.tax-card-savebox {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in oklab, var(--accent-soft) 60%, white));
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 16px;
  row-gap: 4px;
}
.tax-card-save-label {
  grid-column: 1; grid-row: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  align-self: start;
}
.tax-card-save-figure {
  grid-column: 1; grid-row: 2;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.tax-card-save-sub {
  grid-column: 2; grid-row: 2;
  font-size: 13px;
  color: var(--ink-2);
  text-align: right;
  max-width: 18ch;
  line-height: 1.35;
  align-self: end;
  padding-bottom: 4px;
}
.tax-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 4px;
}
.tax-card-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 14px;
  align-items: baseline;
}
.tax-card-meta-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tax-card-meta-val {
  color: var(--ink);
}
.tax-card-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  transition: color 200ms ease;
}
.tax-card-cta-arrow {
  transition: transform 200ms ease;
  color: var(--accent-2);
  font-size: 18px;
}
@media (max-width: 560px) {
  .tax-card-body { padding: 22px 22px 22px; }
}

/* Stat strip — under deep page hero */
.tax-statstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
@media (max-width: 800px) { .tax-statstrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tax-statstrip { grid-template-columns: 1fr; } }

.tax-statstrip-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tax-statstrip-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tax-statstrip-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Deep-page body typography */
.tax-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 20px;
  font-weight: 400;
}
.tax-h2:first-child { margin-top: 0; }

.tax-p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.tax-p-lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

/* Comparison cards */
.tax-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
@media (max-width: 700px) { .tax-compare { grid-template-columns: 1fr; } }

.tax-compare-card {
  border-radius: 14px;
  padding: 28px 26px;
  border: 1px solid;
}
.tax-compare-bad {
  background: #fff7f5;
  border-color: #f5d8d0;
}
.tax-compare-good {
  background: #f3f8f3;
  border-color: #cfe1cf;
}
.tax-compare-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.tax-compare-figure {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 12px;
}
.tax-compare-bad .tax-compare-figure { color: #b8442e; }
.tax-compare-good .tax-compare-figure { color: #2c6845; }
.tax-compare-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Lists */
.tax-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tax-list li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tax-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.tax-list-warn li::before {
  background: #c0392b;
  width: 10px;
}
.tax-list-warn li {
  padding-left: 22px;
}

/* Callout */
.tax-callout {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  padding: 22px 26px 22px 24px;
  margin: 32px 0;
}
.tax-callout-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
}
.tax-callout-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Worked example table */
.tax-we {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin: 28px 0 32px;
}
.tax-we-head {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 400;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tax-we-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  align-items: center;
}
.tax-we-row:last-of-type { border-bottom: none; }
.tax-we-yr {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.12em;
}
.tax-we-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.tax-we-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.tax-we-total {
  margin-top: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tax-we-total-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 32ch;
}
.tax-we-total-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .tax-we-row { grid-template-columns: 60px 1fr; }
  .tax-we-num { grid-column: 1 / -1; text-align: left; padding-left: 76px; font-size: 16px; }
  .tax-we { padding: 22px 20px; }
}

/* ════════════════════════════════════════════════════════════════
   BUCKET 15-YEAR COMPOUNDING — high-earner deep-page components
   ════════════════════════════════════════════════════════════════ */

/* Deep-page body container: wider canvas, but text constrained for readability */
.tax-deep-body {
  max-width: 1320px;
}
.tax-deep-body .tax-h2,
.tax-deep-body .tax-p,
.tax-deep-body .tax-list,
.tax-deep-body .tax-callout,
.tax-deep-body .tax-strat-eyebrow {
  max-width: 70ch;
}
.tax-deep-body .tax-p-lede {
  max-width: 62ch;
}

/* Assumptions block */
.tax-assumptions {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 28px 0;
  background: var(--bg-2);
}
.tax-assumptions-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.tax-assumptions ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.tax-assumptions li::before {
  content: "—  ";
  color: var(--muted);
}
@media (max-width: 700px) { .tax-assumptions ul { grid-template-columns: 1fr; } }

/* Compounding comparison: side-by-side path A vs path B */
.tax-cmp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 24px;
}
@media (max-width: 900px) { .tax-cmp { grid-template-columns: 1fr; } }

.tax-cmp-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
}
.tax-cmp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.tax-cmp-col.is-personal .tax-cmp-eyebrow { color: #b8442e; }
.tax-cmp-col.is-bucket   .tax-cmp-eyebrow { color: var(--accent-2); }

.tax-cmp-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--primary);
}

.tax-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.tax-cmp-table thead th {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.tax-cmp-table thead th:first-child { text-align: left; }
.tax-cmp-table tbody td {
  padding: 6px 0;
  text-align: right;
  color: var(--ink-2);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.tax-cmp-table tbody td:first-child {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-mono);
}
.tax-cmp-table tbody tr:last-child td {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-top: 9px;
  padding-bottom: 9px;
}
.tax-cmp-table tbody tr.is-milestone td {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

/* Mechanism callout inside each column */
.tax-cmp-mech {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg-2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}
.tax-cmp-mech-label {
  display: block;
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tax-cmp-mech ul { margin: 0; padding-left: 18px; }
.tax-cmp-mech li { margin: 3px 0; }

/* Summary block at bottom of each column */
.tax-cmp-summary {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tax-cmp-summary-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 0;
}
.tax-cmp-big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tax-cmp-col.is-personal .tax-cmp-big { color: #b8442e; }
.tax-cmp-col.is-bucket   .tax-cmp-big { color: var(--accent-2); }

.tax-cmp-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.tax-cmp-summary-row strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Headline gap — the "Path B advantage" dark band */
.tax-headline-gap {
  background: var(--primary);
  color: var(--bg);
  border-radius: 6px;
  padding: 36px 36px;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 800px) {
  .tax-headline-gap { grid-template-columns: 1fr; padding: 28px; }
  .tax-headline-gap .tax-headline-gap-plus { display: none; }
}
.tax-headline-gap-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px;
}
.tax-headline-gap-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.tax-headline-gap-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  line-height: 1.45;
}
.tax-headline-gap-plus {
  font-size: 26px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  text-align: center;
}

/* 10-yr / 15-yr compounding callout */
.tax-compounding {
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: center;
}
@media (max-width: 800px) { .tax-compounding { grid-template-columns: 1fr; } }
.tax-compounding-lab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.tax-compounding-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tax-compounding-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 8px;
  line-height: 1.45;
}

/* Drawdown box — per-spouse + couple total */
.tax-drawdown {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 800px) { .tax-drawdown { grid-template-columns: 1fr; padding: 24px; } }

.tax-drawdown h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
  margin: 0 0 16px;
}
.tax-drawdown-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tax-drawdown-line.muted { color: var(--muted); font-style: italic; }
.tax-drawdown-line.refund {
  color: var(--accent-2);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.tax-drawdown-line.total {
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.tax-drawdown-couple {
  background: var(--primary);
  color: var(--bg);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.tax-drawdown-couple-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 14px;
}
.tax-drawdown-couple-figure {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tax-drawdown-couple-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.5;
}

/* "Strategic point" eyebrow heading inside body flow */
.tax-strat-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 56px 0 8px;
}
.tax-strat-eyebrow + h2.tax-h2 { margin-top: 4px; }

/* FAQ accordion */
.tax-faq {
  display: flex;
  flex-direction: column;
}
.tax-faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.tax-faq-item:last-child { border-bottom: 1px solid var(--line); }
.tax-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  gap: 16px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tax-faq-q::-webkit-details-marker { display: none; }
.tax-faq-q-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-weight: 500;
  text-transform: uppercase;
  align-self: center;
}
.tax-faq-q-icon {
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  text-align: right;
  transition: transform 220ms ease;
  align-self: center;
  line-height: 1;
}
.tax-faq-item[open] .tax-faq-q-icon { transform: rotate(45deg); color: var(--accent-2); }
.tax-faq-a {
  padding: 0 0 24px 80px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 65ch;
}
@media (max-width: 600px) {
  .tax-faq-q { grid-template-columns: 1fr 24px; }
  .tax-faq-q-num { grid-column: 1; grid-row: 1; }
  .tax-faq-q span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .tax-faq-a { padding-left: 0; }
}



/* ========================================================== */
/* MOBILE POLISH PASS — typography, rhythm, button sizing,    */
/* tap targets, content density. Applied at <=560px.          */
/* ========================================================== */
@media (max-width: 560px) {
  /* — Page container: tighter side padding so content breathes — */
  :root {
    --pad-x: 20px;
    --section: 48px;
  }

  /* — Body text: slightly smaller, but still ≥16px (no iOS zoom) — */
  html, body { font-size: 16px; line-height: 1.6; }

  /* — Display headings: scale down so they don't wrap awkwardly — */
  .sec-title { font-size: 32px !important; line-height: 1.08 !important; letter-spacing: -0.012em; }
  .hero-title { font-size: 44px !important; line-height: 1.04 !important; }
  .hero-sub { font-size: 16px !important; line-height: 1.55 !important; }
  .hero-eyebrow { margin-bottom: 14px !important; }
  .hero-eyebrow .mono { font-size: 11px !important; letter-spacing: 0.14em !important; }

  /* — Section ledes: tighter, more readable — */
  .sec-lede { font-size: 16px !important; line-height: 1.55 !important; max-width: 42ch !important; }

  /* — Buttons: full-width comfort, ≥48px tap, balanced padding — */
  .btn { padding: 14px 22px !important; font-size: 16px !important; line-height: 1; min-height: 48px; }
  .btn-arrow { padding-right: 22px !important; }
  .hero-actions { gap: 10px !important; flex-direction: column !important; align-items: stretch !important; width: 100% !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; }

  /* — Photo hero: tighten so CTAs sit above-the-fold — */
  .photo-hero:not(.page-hero-photo) { min-height: 600px !important; }
  .photo-hero .photo-hero-title { font-size: 36px !important; line-height: 1.04 !important; letter-spacing: -0.014em; }
  .photo-hero .photo-hero-sub { font-size: 14px !important; line-height: 1.55 !important; }
  .photo-hero:not(.page-hero-photo) .photo-hero-content { padding: 100px 20px 32px !important; }

  /* — Inner page heroes: compress vertical air — */
  .photo-hero.page-hero-photo { min-height: 340px !important; }
  .photo-hero.page-hero-photo .photo-hero-content { padding: 110px 20px 32px !important; }
  .photo-hero.page-hero-photo .photo-hero-title { font-size: 34px !important; line-height: 1.08 !important; }
  .photo-hero.page-hero-photo .photo-hero-sub { font-size: 15px !important; }

  /* — Section header rhythm — */
  .section { padding: 48px 0 !important; }
  .sec-head { margin-bottom: 28px !important; gap: 14px !important; }

  /* — Cards: tighten internal padding so content fills the frame — */
  .service-card, .sv-tile, .pricing-card, .compare-card { padding: 22px 22px !important; }
  .service-card h3, .pricing-card h3 { font-size: 20px !important; }

  /* — Stat strip: 3-up still readable at 390px — */
  .stat-grid { gap: 0 !important; }
  .stat-num { font-size: 28px !important; letter-spacing: -0.01em; }
  .stat-cell { padding: 18px 6px !important; }
  .stat-label { font-size: 10px !important; line-height: 1.35 !important; letter-spacing: 0.1em !important; }

  /* — Welcome / intro section: tighter — */
  .welcome-checks { gap: 10px 16px !important; }

  /* — Testimonial card spacing — */
  .testimonial { padding: 28px 22px !important; font-size: 16px !important; line-height: 1.55 !important; }

  /* — Tax cards: tighten card body, lift the CTA closer to the savings box — */
  .tax-card-body { padding: 22px 22px 22px !important; }
  .tax-card-title { font-size: 24px !important; line-height: 1.1 !important; margin-bottom: 10px !important; }
  .tax-card-promise { font-size: 15px !important; line-height: 1.55 !important; margin-bottom: 16px !important; }
  .tax-card-savebox { padding: 14px 16px !important; margin-bottom: 14px !important; }
  .tax-card-meta { font-size: 11px !important; }

  /* — Tax stat strip on deep pages — */
  .tax-statstrip-cell { padding: 18px 14px !important; }
  .tax-we-row { padding: 16px 0 !important; }

  /* — FAQ — */
  .tax-faq-q { padding: 18px 0 !important; gap: 12px !important; }
  .tax-faq-a { font-size: 15px !important; line-height: 1.6 !important; padding-bottom: 18px !important; }

  /* — Footer: reduce wasted padding around the wordmark, balance columns — */
  .footer { padding: 40px 0 24px !important; }
  .footer h4 { font-size: 11px !important; margin-bottom: 12px !important; }
  .footer ul { gap: 10px !important; }
  .footer a { font-size: 14px !important; }
  .footer-bottom { font-size: 12px !important; }

  /* — Nav: keep logo glyph at its inline size on mobile — */
  .nav { padding: 12px 16px !important; }
  .nav-logo img { height: 32px !important; width: 32px !important; }
  .nav-transparent .nav-logo-light img { height: 36px !important; width: auto !important; }

  /* — Pricing tabs: handled by dedicated mobile pill-row block above — */
  .pricing-card h3 { font-size: 22px !important; }
  .pricing-price { font-size: 36px !important; }

  /* — Block any element from forcing horizontal overflow — */
  .container { padding-left: 20px !important; padding-right: 20px !important; }

  /* — Tap-friendly link spacing in mobile nav panel — */
  .nav-mobile-link { padding: 16px 12px !important; font-size: 17px !important; }
  .nav-mobile-action { padding: 14px 12px !important; }

  /* — Smooth out the FAB stack: a touch larger, better contrast shadow — */
  .mobile-fab { box-shadow: 0 12px 28px rgba(15, 53, 48, 0.32), 0 4px 8px rgba(0,0,0,0.18) !important; }
  .mobile-fab-whatsapp { box-shadow: 0 10px 24px rgba(37,211,102,0.35), 0 3px 8px rgba(0,0,0,0.16) !important; }
}

/* — Reserve scroll space at the bottom of every page so FABs don't overlap content — */
@media (max-width: 760px) {
  /* Booking FAB ~50px tall, 20px from bottom; WhatsApp FAB sits 84px from bottom.
     Total stack ends ~136px from bottom — pad an extra cushion. */
  .shell { padding-bottom: 96px; }
  .footer { padding-bottom: 32px !important; }
}

/* — Small phone polish (≤390px): one more nudge down on display sizes — */
@media (max-width: 390px) {
  .hero-title, .photo-hero .photo-hero-title { font-size: 32px !important; }
  .sec-title { font-size: 28px !important; }
  .stat-num { font-size: 24px !important; }
  .tax-card-num { font-size: 32px !important; }
  .tax-card-rail { padding: 16px 10px !important; }
  .tax-card { grid-template-columns: 56px 1fr !important; }
}


/* ========================================================== */
/* Hero CTA link — highlighter underline that ink-fills left-  */
/* to-right every ~6s, holds, then drains. Visual vocabulary   */
/* matches the "overhead." underline in the headline.          */
/* ========================================================== */
.hero-shimmer-link {
  display: inline;
  font-style: italic;
  font-weight: 700;
  font-size: 1.04em;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  /* Two layered backgrounds:
     1. A faint static gold underline so the link always reads as a link.
     2. The animated bright underline that wipes in left-to-right.        */
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(rgba(245, 180, 0, 0.28), rgba(245, 180, 0, 0.28));
  background-repeat: no-repeat, no-repeat;
  background-size: 0% 2px, 100% 2px;
  background-position: 0 100%, 0 100%;
  padding-bottom: 3px;
  animation: heroInkSweep 6.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  animation-delay: 1.4s;
  transition: transform 220ms ease;
}
.hero-shimmer-link:hover {
  transform: translateY(-1px);
  animation-play-state: paused;
  background-size: 100% 2px, 100% 2px;
}

@keyframes heroInkSweep {
  /* Quiet — only the faint base underline is visible */
  0%   { background-size: 0% 2px, 100% 2px; background-position: 0 100%, 0 100%; }
  /* Wipe in left-to-right (the bright underline grows) */
  18%  { background-size: 100% 2px, 100% 2px; background-position: 0 100%, 0 100%; }
  /* Hold — full bright underline */
  60%  { background-size: 100% 2px, 100% 2px; background-position: 0 100%, 0 100%; }
  /* Drain off to the right (background-position slides; size stays full) */
  82%  { background-size: 100% 2px, 100% 2px; background-position: 110% 100%, 0 100%; }
  /* Snap back to start (invisible because size is 0) for next cycle */
  82.01% { background-size: 0% 2px, 100% 2px; background-position: 0 100%, 0 100%; }
  100% { background-size: 0% 2px, 100% 2px; background-position: 0 100%, 0 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shimmer-link {
    animation: none;
    background-size: 100% 2px, 100% 2px;
  }
}

@media (max-width: 560px) {
  .hero-shimmer-link {
    font-size: 1em;
  }
}


/* ========================================================== */
/* Page-transition cover — fixed-position overlay that fades   */
/* in over the entire page during a nav-driven route change,   */
/* hiding the page remount underneath. Pairs with the          */
/* setTransitioning state in chrome.jsx. Mobile-friendly:      */
/* gives the user a clean cover-and-reveal instead of a flash  */
/* of competing animations on a small screen.                  */
/* ========================================================== */
.nav-page-cover {
  position: fixed;
  inset: 0;
  background: var(--bg-3, #0f3530);
  opacity: 0;
  pointer-events: none;
  z-index: 49; /* just below the nav (50) so hamburger/logo stay visible during the transition */
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-page-cover.is-on {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .nav-page-cover { transition: opacity 80ms ease; }
}


/* ========================================================== */
/* MOBILE EXPERIENCE POLISH — phone-first refinements:         */
/*   - Right-size oversized typography on the Contact page     */
/*   - Stagger the mobile menu link reveal                     */
/*   - Refine the page-transition cover for a softer feel      */
/*   - Add a subtle .page-enter on phones                      */
/*   - Add active/pressed state to buttons + cards             */
/* ========================================================== */

/* Contact direct-line phone block — was 48px even at 390px,
   way too big against tight side-padding. Step down properly
   across the small-screen ladder. */
@media (max-width: 600px) {
  .contact-info-phone { font-size: 26px !important; letter-spacing: -0.01em; }
}
@media (max-width: 480px) {
  .contact-info-phone { font-size: 22px !important; }
  /* The mono "MON-SUN · 24 HOURS" sub-label was overflowing into the
     accent-colored phone block visually — tighten its rhythm too. */
  .contact-info-phone + .mono { font-size: 11px !important; letter-spacing: 0.14em !important; }
}
@media (max-width: 390px) {
  .contact-info-phone { font-size: 20px !important; }
}

/* ---------- Mobile nav panel: stagger link reveal ----------
   When the panel slides down, each item should fade up with a
   tiny per-item delay so it feels alive instead of teleported. */
.nav-mobile-panel .nav-mobile-link,
.nav-mobile-panel .nav-mobile-action {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              background 200ms ease;
}
.nav-mobile-panel.is-open .nav-mobile-link,
.nav-mobile-panel.is-open .nav-mobile-action {
  opacity: 1;
  transform: translateY(0);
}
/* Per-item stagger — links first, then phone + WhatsApp.
   Use child position so the markup order drives the cascade. */
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(1) { transition-delay: 80ms; }
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(2) { transition-delay: 130ms; }
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(3) { transition-delay: 180ms; }
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(4) { transition-delay: 230ms; }
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(5) { transition-delay: 280ms; }
.nav-mobile-panel.is-open .nav-mobile-link:nth-child(6) { transition-delay: 330ms; }
.nav-mobile-panel.is-open .nav-mobile-action { transition-delay: 400ms; }
.nav-mobile-panel.is-open .nav-mobile-action--whatsapp { transition-delay: 450ms; }

/* Mobile link active/press state — gives a satisfying "tap" feel */
.nav-mobile-link:active,
.nav-mobile-action:active {
  background: var(--bg-3) !important;
  color: #fff !important;
  transform: scale(0.985);
}

/* ---------- Page-transition cover: longer, softer ---------- */
/* Match the chrome.jsx 220ms cover-then-swap timing but use a
   gentler curve so the curtain feels heavier and less "flicky". */
.nav-page-cover {
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.nav-page-cover.is-on {
  /* A tiny gold flash at peak feels brand-y and intentional */
  background:
    radial-gradient(ellipse at center, color-mix(in oklab, var(--accent) 22%, var(--bg-3)) 0%, var(--bg-3) 60%);
}

/* ---------- Page enter: smoother on phones ---------- */
/* The desktop animation is 0.42s — extend slightly + a touch more
   slide so the new page glides up under the receding cover. */
@media (max-width: 760px) {
  .page-enter {
    animation: pageEnterMobile 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  }
  @keyframes pageEnterMobile {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.992);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* ---------- Smooth scrolling globally on mobile ---------- */
@media (max-width: 760px) {
  html { scroll-behavior: smooth; }
  /* Native rubber-band scroll on iOS feels best with momentum */
  body { -webkit-overflow-scrolling: touch; }
}

/* ---------- Card press feedback on touch ---------- */
@media (hover: none) {
  .service-card:active,
  .sv-tile:active,
  .pricing-card:active,
  .tax-card:active {
    transform: translateY(1px) scale(0.997);
    transition: transform 120ms ease;
  }
}

/* ---------- Button press feedback ---------- */
@media (hover: none) {
  .btn:active {
    transform: translateY(1px) scale(0.985) !important;
    transition: transform 90ms ease !important;
  }
}

/* ---------- Hamburger button: a touch more refined ---------- */
.nav-hamburger {
  transition: background 200ms ease, transform 200ms ease;
}
.nav-hamburger:active {
  transform: scale(0.92);
}
.nav-hamburger span {
  transition: transform 360ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 220ms ease !important;
}
