/* ==========================================================================
   Torch Corporate — Site styles
   Layered on top of colors_and_type.css (design tokens).
   Holds page composition + every component's styles in one file.
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  background: var(--tc-paper);
  color: var(--fg);
  scroll-behavior: smooth;
}
/* Page-level safety net: never let content cause horizontal scroll on
   the document. Internal `overflow-x: auto` wrappers still scroll. */
html, body { overflow-x: hidden; }
* { box-sizing: border-box; }

body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232,155,46,0.08) 0%, transparent 40%),
    linear-gradient(180deg, #D2D3D5 0%, #C9CACD 60%, #C3C4C8 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Page-level hairline pattern overlay (default tweak: bgPattern = "hairline") */
.page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(45deg, rgba(31,36,40,0.030) 0 1px, transparent 1px 14px);
}
.page > main, .page > footer { position: relative; z-index: 1; }

/* ---------- container helpers ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ---------- section primitives ---------- */
section { position: relative; }

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--tc-charcoal);
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-title .accent { color: var(--accent); }

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--tc-slate);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- frosted glass primitives ---------- */
.glass-light {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 12px 40px rgba(20, 24, 27, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  border-radius: 16px;
}
.glass-dark {
  background: rgba(31, 36, 40, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  border-radius: 16px;
  color: var(--fg-inverse);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms var(--ease-standard);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232,155,46,0.35);
}
.btn-primary:hover {
  background: var(--tc-orange-deep);
  box-shadow: 0 10px 28px rgba(201,122,24,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--tc-charcoal);
  border: 1px solid rgba(31,36,40,0.10);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(31,36,40,0.18);
}
.btn-dark { background: var(--tc-charcoal); color: #fff; }
.btn-dark:hover { background: var(--tc-charcoal-deep); }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ---------- pill-tabs ---------- */
.pill-tabs {
  display: inline-flex;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(31,36,40,0.06);
  border-radius: 999px;
  padding: 6px;
  gap: 2px;
  box-shadow: 0 6px 20px rgba(20,24,27,0.10);
}
.pill-tab {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--tc-slate);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 200ms var(--ease-standard);
  letter-spacing: -0.005em;
}
.pill-tab:hover { color: var(--tc-charcoal); }
.pill-tab.active { background: var(--tc-charcoal); color: #fff; }

/* ---------- 45° hairline grid overlays ---------- */
.grid-overlay {
  background-image: repeating-linear-gradient(45deg, rgba(31,36,40,0.035) 0 1px, transparent 1px 14px);
}
.grid-overlay-dark {
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
}
.grid-overlay-cross {
  background-image:
    repeating-linear-gradient(45deg,  rgba(31,36,40,0.04) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(135deg, rgba(31,36,40,0.04) 0 1px, transparent 1px 18px);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-emphasized), transform 700ms var(--ease-emphasized);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes flameFlicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%      { opacity: 0.92; filter: brightness(1.08); }
}
.flame-flicker { animation: flameFlicker 2.4s ease-in-out infinite; }

.tnum {
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums lining-nums;
}

/* ==========================================================================
   HEADER — pill variant (default)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 16px 28px 0;
  transition: padding 220ms var(--ease-standard);
}
.site-header.scrolled { padding-top: 10px; }

.nav-pill {
  max-width: 1280px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.22) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 14px 14px 14px 28px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow:
    0 18px 50px rgba(20,24,27,0.18),
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 -1px 0 rgba(255,255,255,0.20) inset;
  transition: background 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
}
/* Scrolled state keeps the same glass tint as the hero zero-state — only
   the shadow deepens slightly so the bar still reads as floating once
   it's no longer over the hero photo.  Avoids the white "frost jump". */
.site-header.scrolled .nav-pill {
  box-shadow:
    0 14px 38px rgba(20,24,27,0.28),
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 -1px 0 rgba(255,255,255,0.20) inset;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--tc-charcoal); text-decoration: none; flex-shrink: 0;
  height: 50px;
  padding: 0 18px 0 8px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20,24,27,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.brand img { height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--tc-charcoal);
  margin-top: 3px;
  letter-spacing: -0.01em;
}

.nav-links-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex; gap: 2px; align-items: center;
  height: 50px;
  padding: 0 8px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20,24,27,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.nav-dd { position: relative; }
.nav-dd + .nav-dd::before {
  content: ""; position: absolute; left: -1px; top: 22%; bottom: 22%;
  width: 1px; background: rgba(31,36,40,0.10);
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: var(--tc-charcoal);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 180ms, color 180ms;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.open { background: rgba(31,36,40,0.06); }
.nav-link .chev { transition: transform 200ms; display: inline-flex; }
.nav-link.open .chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  min-width: 360px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.62) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 18px;
  padding: 10px;
  box-shadow:
    0 24px 60px rgba(20,24,27,0.24),
    0 2px 6px rgba(20,24,27,0.08),
    0 1px 0 rgba(255,255,255,0.85) inset;
  animation: ddIn 200ms var(--ease-emphasized);
  display: none;
}
/* Invisible bridge so cursor can travel from the link to the panel
   without the dropdown closing in the gap. */
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -16px;
  height: 16px;
}
.nav-dd.open .nav-panel { display: block; }
@keyframes ddIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.nav-panel-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  /* The white-glass tile that previously sat behind the icon now wraps
     the whole row, so the icon and text share one continuous card. */
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(31,36,40,0.06);
  color: var(--tc-charcoal);
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-panel-item + .nav-panel-item { margin-top: 4px; }
.nav-panel-item:hover {
  background: rgba(232,155,46,0.14);
  border-color: rgba(232,155,46,0.30);
}

.nav-panel-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav-panel-text {
  display: flex; flex-direction: column;
  min-width: 0;
}
.nav-panel-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--tc-charcoal);
  margin-bottom: 2px;
  transition: color 160ms ease;
}
.nav-panel-arrow {
  display: inline-flex; align-items: center;
  color: rgba(31,36,40,0.35);
  transform: translateX(0);
  transition: transform 180ms ease, color 160ms ease;
}
.nav-panel-item:hover .nav-panel-name { color: var(--accent); }
.nav-panel-item:hover .nav-panel-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.nav-panel-desc {
  font-size: 12px;
  color: var(--tc-slate);
  line-height: 1.45;
}

.nav-cta { display: flex; align-items: center; flex-shrink: 0; padding-left: 4px; gap: 8px; }
.nav-contact {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--tc-charcoal);
  padding: 9px 14px;
  text-decoration: none; border: none;
  border-radius: 999px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 180ms, color 180ms;
}
.nav-contact:hover { background: rgba(31,36,40,0.06); color: var(--accent); }
.nav-signin-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: #fff; background: var(--accent);
  border: none; cursor: pointer;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 18px rgba(232,155,46,0.40);
  transition: background 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard), transform 120ms;
}
.nav-signin-pill:hover {
  background: var(--tc-orange-deep);
  box-shadow: 0 10px 26px rgba(201,122,24,0.50);
}
.nav-signin-pill:active { transform: scale(0.98); }

@media (max-width: 1180px) {
  .brand-eyebrow { display: none; }
  .nav-link { padding: 9px 12px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .nav-contact { display: none; }
}
@media (max-width: 1000px) {
  .brand-text { display: none; }
  .nav-pill { padding: 10px 10px 10px 18px; min-height: 64px; gap: 12px; }
  .brand img { height: 30px; }
  .nav-signin-pill { padding: 0 18px; font-size: 13px; height: 44px; }
  .brand { height: 44px; padding: 0 10px 0 6px; }
  .nav-links { height: 44px; }
}
@media (max-width: 880px) {
  .nav-links-wrap { display: none; }
}

/* ==========================================================================
   MOBILE NAVIGATION — hamburger + drawer
   ========================================================================== */
.nav-mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  color: var(--tc-charcoal);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(20,24,27,0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
  transition: background 180ms;
}
.nav-mobile-toggle:hover { background: rgba(255,255,255,0.92); }
@media (max-width: 880px) {
  .nav-mobile-toggle { display: inline-flex; }
  /* On mobile, the discovery-call CTA is in the drawer; hide the long pill in the bar */
  .nav-signin-pill { display: none; }
}

.nav-mobile-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20,24,27,0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 180ms var(--ease-standard);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav-mobile-panel {
  position: fixed;
  top: 84px; left: 16px; right: 16px;
  z-index: 80;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(31,36,40,0.08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20,24,27,0.30), 0 2px 6px rgba(20,24,27,0.10);
  animation: slideIn 220ms var(--ease-emphasized);
  display: flex; flex-direction: column; gap: 6px;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-group { padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.nav-mobile-group:last-of-type { border-bottom: none; }
.nav-mobile-group-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding: 8px 6px 6px;
}
.nav-mobile-item {
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: var(--tc-charcoal);
  text-decoration: none; border: none;
  transition: background 160ms;
}
.nav-mobile-item:hover, .nav-mobile-item:focus {
  background: var(--tc-orange-tint); color: var(--tc-charcoal);
}
.nav-mobile-cta-row {
  display: flex; gap: 8px;
  margin-top: 12px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile-cta-row .btn { flex: 1; justify-content: center; }
@media (max-width: 480px) {
  .nav-mobile-cta-row { flex-direction: column; }
}

/* ==========================================================================
   HERO — photo variant (default)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh; /* Full viewport on first load — let content breathe */
  min-height: 100svh; /* Small-viewport-height where supported (mobile chrome) */
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  /* Morph driven by JS-set --hero-shrink (0 → 1).  Use transform so
     the browser composites the layer — much smoother during scroll
     than interpolating inset coords (which forces paint each frame).
     At progress 1 the bg pulls into a centred card with rounded
     corners and ~5%/5.4% margins (close to the previous 5vw / 22px). */
  transform:
    scaleX(calc(1 - var(--hero-shrink, 0) * 0.10))
    scaleY(calc(1 - var(--hero-shrink, 0) * 0.054));
  transform-origin: center center;
  border-radius: calc(var(--hero-shrink, 0) * 26px);
  overflow: hidden;
  will-change: transform, border-radius;
}
.hero-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.78) contrast(1.05);
}
.hero-photo-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20,24,27,0.0) 0%, rgba(20,24,27,0.55) 70%),
    linear-gradient(180deg, rgba(20,24,27,0.35) 0%, rgba(20,24,27,0.10) 35%, rgba(20,24,27,0.55) 100%);
}
.hero-photo-grid { position: absolute; inset: 0; opacity: 0.6; }

.hero-photo-inner {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 32px 0;
  text-align: center;
  color: #fff;
  width: 100%;
  /* Take the available space between the header clearance and the
     trust strip; vertically centre the title block within it. */
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}

.hero-trust-wrap {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 24px 32px;
  display: flex; justify-content: center;
}
.hero-photo .hero-photo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  /* Constrain so the title leaves room for the conversation pairs
     flanking it on desktop. 880px keeps both sentences on their own
     line at the 72px max font size. */
  max-width: 880px;
  margin: 0 auto 28px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-photo .hero-photo-title .accent { color: var(--tc-orange-flame); }

/* Rotating word — "accounting." / "bookkeeping." / "taxes."
   The container sets a baseline; the word inside is keyed in React so
   each new word remounts and runs the lift-up + fade-in animation.
   The previous word unmounts (no exit animation needed; the new word
   sliding up reads as the old one being replaced). */
.hero-rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  /* Reserve enough space for the longest word so the line doesn't jump
     width as words rotate. "bookkeeping." is the widest. */
  min-width: 5.4em;
  text-align: left;
  /* min-width is per-em which scales with font size */
}
.hero-rotator-word {
  display: inline-block;
  animation: heroWordIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}
@keyframes heroWordIn {
  0%   { opacity: 0; transform: translateY(0.4em); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-photo .hero-photo-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-photo-cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 80px;
}

.hero-trust {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  max-width: 720px; margin: 0 auto;
}
.hero-trust-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.hero-trust-logos {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
}
.hero-trust-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.78);
}
.hero-trust-logo-img {
  height: 36px;
  max-height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  padding: 4px 10px;
  background: rgba(255,255,255,0.94);
  border-radius: 6px;
  transition: transform 180ms var(--ease-standard);
}
.hero-trust-logo-img:hover { transform: translateY(-1px); }
.hero-trust-logos { align-items: center; }
.hero-trust-link {
  display: inline-flex; align-items: center;
  border: none;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 180ms;
}
.hero-trust-link:hover { opacity: 0.85; border: none; }
.hero-trust-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ==========================================================================
   TEAM BLOCK — used on /the-firm/ for the principal portrait + bio
   ========================================================================== */
.team-block {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.team-photo {
  position: relative;
}
.team-photo img {
  width: 100%; height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40), 0 0 0 1px rgba(232,155,46,0.20);
  display: block;
}
.team-photo-caption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}
.team-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 8px 0 14px; color: #fff;
  text-wrap: balance;
}
.team-content h2 .accent { color: var(--accent); }
.team-content .team-lead {
  color: var(--tc-cloud); font-size: 17px; line-height: 1.55;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.team-content .prose { color: var(--tc-cloud); max-width: 620px; }
.team-content .prose p { color: var(--tc-cloud); }
.team-content .prose strong { color: #fff; }

@media (max-width: 920px) {
  .team-block { grid-template-columns: 1fr; gap: 32px; }
  .team-photo img { max-width: 320px; margin: 0 auto; }
}

/* Xero dashboard figure (used on /services/bookkeeping/) */
.xero-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(20,24,27,0.18), 0 0 0 1px rgba(232,155,46,0.18);
  background: #fff;
}
.xero-figure img {
  width: 100%; height: auto; display: block;
}
.xero-figure figcaption {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.7);
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--tc-slate); line-height: 1.5;
}
.xero-figure .xero-logo {
  height: 28px; width: auto; flex-shrink: 0;
}

/* Footer Xero badge — sits next to the affiliations chips */
.footer-xero {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
}
.footer-xero img { height: 22px; width: auto; }
.footer-xero span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--tc-cloud);
}

.hero-chat {
  /* When inside .hero-chat-pair the cards stack relatively; the pair
     itself is absolutely positioned. Stand-alone use still works. */
  position: relative;
  z-index: 3;
  width: 260px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow:
    0 14px 40px rgba(0,0,0,0.30),
    0 1px 0 rgba(255,255,255,0.7) inset;
  animation: chatFloat 6s ease-in-out infinite;
}

/* Conversation pairs — question card on top, answer card below, indented
   inwards to suggest a thread. Vertical dotted line connects them. */
.hero-chat-pair {
  position: absolute;
  z-index: 3;
  display: flex; flex-direction: column;
  width: 280px;
  pointer-events: none;
  /* Fade out as the bg photo morphs — clears the way for the card form */
  opacity: calc(1 - var(--hero-shrink, 0) * 1.4);
  transform: translateY(calc(var(--hero-shrink, 0) * -12px));
  will-change: opacity, transform;
}
.hero-chat-pair .hero-chat { pointer-events: auto; }

/* Pairs sit in the band between the CTA and the trust strip, inset
   from the page edges so they read closer to centre. Approximate
   visual line: 60–80% of viewport height. */
.hero-chat-pair-left  { top: 62%; left: 12%; width: 260px; }
.hero-chat-pair-right { top: 62%; right: 12%; width: 260px; }
.hero-chat-pair .hero-chat { width: 240px; }

.hero-chat-pair .hero-chat-answer {
  margin-top: 48px; /* leaves visible space for the connector */
  position: relative;
}
.hero-chat-pair .hero-chat-answer::before {
  /* The connector — vertical dotted line between question and answer */
  content: ""; position: absolute;
  top: -42px; height: 38px;
  border-left: 2px dotted rgba(255,255,255,0.55);
  pointer-events: none;
}

/* Left pair: question hugs the left edge, answer indented to the right.
   Connector starts from the bottom-right of the question card area. */
.hero-chat-pair-left .hero-chat-question { align-self: flex-start; }
.hero-chat-pair-left .hero-chat-answer  { align-self: flex-end; }
.hero-chat-pair-left .hero-chat-answer::before { left: 12px; }

/* Right pair: question on the right, answer indented to the left.
   Connector mirrored. */
.hero-chat-pair-right .hero-chat-question { align-self: flex-end; }
.hero-chat-pair-right .hero-chat-answer  { align-self: flex-start; }
.hero-chat-pair-right .hero-chat-answer::before { right: 12px; left: auto; }

/* Stagger the float animation so the four cards don't bob in sync */
.hero-chat-pair-left  .hero-chat-question { animation-delay: 0s; }
.hero-chat-pair-left  .hero-chat-answer   { animation-delay: 1.5s; }
.hero-chat-pair-right .hero-chat-question { animation-delay: 0.8s; }
.hero-chat-pair-right .hero-chat-answer   { animation-delay: 2.3s; }
.hero-chat:nth-of-type(2) { animation-delay: 1.5s; }
.hero-chat:nth-of-type(3) { animation-delay: 3s; }
.hero-chat:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes chatFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero-chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hero-chat-ava {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; font-family: var(--font-display);
}
.hero-chat-ava.dark { background: var(--tc-charcoal); }
.hero-chat-who { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--tc-charcoal); }
.hero-chat-badge {
  margin-left: auto; width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.hero-chat-msg { font-size: 12px; color: var(--tc-slate); line-height: 1.45; }

@media (max-width: 1100px) {
  .hero-chat, .hero-chat-pair { display: none; }
}

/* ==========================================================================
   EXPERTS section (hub-and-spoke with tabs)
   ========================================================================== */
.experts { padding: 120px 24px; position: relative; }
.experts-head { text-align: center; margin-bottom: 64px; }
.experts-head .section-eyebrow { display: inline-flex; }
.experts-head .section-lead { margin: 0 auto; }
.experts-diagram {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  min-height: 380px;
  padding: 20px 0;
}
.experts-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.experts-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.experts-hub-inner {
  width: 84px; height: 84px;
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(20,24,27,0.18), 0 0 0 8px rgba(232,155,46,0.10);
}
.experts-hub-inner img { width: 48px; height: 48px; object-fit: contain; }
.experts-hub-label {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--tc-charcoal); letter-spacing: 0.02em;
}

.role-card {
  position: absolute;
  width: 320px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card-bg, rgba(255,255,255,0.85));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 36px rgba(20,24,27,0.14), 0 1px 0 rgba(255,255,255,0.7) inset;
  animation: roleIn 500ms var(--ease-emphasized) both;
}
@keyframes roleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pos-0 { top: 30px; left: 0; }
.pos-1 { top: 30px; right: 0; }
.pos-2 { bottom: 30px; left: 0; }
.pos-3 { bottom: 30px; right: 0; }

.tone-amber    { --card-bg: rgba(255, 230, 188, 0.78); }
.tone-graphite { --card-bg: rgba(232, 235, 238, 0.85); }
.tone-navy     { --card-bg: rgba(207, 218, 240, 0.78); }
.tone-slate    { --card-bg: rgba(220, 224, 230, 0.82); }

.role-card-inner { display: flex; align-items: center; gap: 14px; }
.role-card-text { flex: 1; min-width: 0; }
.role-card-role { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--tc-charcoal); margin-bottom: 4px; }
.role-card-blurb { font-size: 12px; line-height: 1.45; color: var(--tc-charcoal); opacity: 0.78; }
.role-card-avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.role-card-name { font-size: 10px; font-weight: 600; color: var(--tc-charcoal); white-space: nowrap; }
.role-card-pic {
  width: 48px; height: 48px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid rgba(255,255,255,0.8);
}
.pos-1 .role-card-inner, .pos-3 .role-card-inner { flex-direction: row-reverse; }
.pos-1 .role-card-text, .pos-3 .role-card-text { text-align: right; }

.experts-tabs-wrap { display: flex; justify-content: center; margin-top: 56px; }

@media (max-width: 920px) {
  .experts-diagram { min-height: auto; display: grid; grid-template-columns: 1fr; gap: 12px; }
  .role-card { position: static; width: auto; }
  .experts-connectors, .experts-hub { display: none; }
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band { background: var(--tc-charcoal-deep); color: #fff; padding: 100px 24px; position: relative; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; opacity: 0.6; }
.stats-inner { position: relative; z-index: 2; }
.stats-head { text-align: center; margin-bottom: 48px; }
.stats-head .section-eyebrow { color: var(--accent); }
.stats-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px);
  color: #fff; letter-spacing: -0.025em; margin: 12px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; overflow: hidden; }
.stat-card { background: rgba(20,24,27,0.6); padding: 36px 28px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 56px; color: #fff;
  letter-spacing: -0.03em; line-height: 1; }
.stat-suf { color: var(--accent); font-size: 28px; margin-left: 4px; }
.stat-lbl { font-size: 13px; color: var(--tc-cloud); margin-top: 12px; line-height: 1.45; }
@media (max-width: 920px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 28px 24px; }
  .stat-num { font-size: 48px; }
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.vidsec { padding: 120px 24px; }
.vidsec-head { text-align: center; margin-bottom: 56px; }
.vidsec-head .section-eyebrow { display: inline-flex; }
.vidsec-head .section-lead { margin: 0 auto; }
.vidsec-frame {
  position: relative; max-width: 1080px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(20,24,27,0.30);
  border: 1px solid rgba(255,255,255,0.6);
}
.vidsec-poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.9); }
.vidsec-video { width: 100%; height: 100%; object-fit: cover; background: var(--tc-charcoal-deep); display: block; }
.vidsec-tint { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(20,24,27,0.45) 100%); }
.vidsec-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); box-shadow: 0 12px 36px rgba(232,155,46,0.50);
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
}
.vidsec-play:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--tc-orange-deep); }
.vidsec-meta { position: absolute; left: 24px; bottom: 20px; color: #fff; }
.vidsec-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.vidsec-sub { font-size: 12px; color: rgba(255,255,255,0.72); letter-spacing: 0.05em; }

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services { padding: 120px 24px; }
.services-head { text-align: center; margin-bottom: 64px; }
.services-head .section-eyebrow { display: inline-flex; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  text-decoration: none; color: inherit;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), border-color 220ms;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,24,27,0.14); border-color: rgba(232,155,46,0.40); }
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tc-orange-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--tc-charcoal); margin: 0; letter-spacing: -0.01em; }
.svc-desc { font-size: 14px; color: var(--tc-slate); line-height: 1.55; margin: 0; }
.svc-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--accent); letter-spacing: -0.005em;
}
@media (max-width: 920px) { .services-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SAVINGS CALCULATOR (home page, between Testimonials and CtaBand)
   ========================================================================== */
.calc-section { padding: 100px 24px; }
.calc-head-wrap { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.calc-head-wrap .section-eyebrow { display: inline-flex; }

.calc-card {
  max-width: 1180px; margin: 0 auto;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(20,24,27,0.10);
  padding: 48px;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
@media (max-width: 920px) {
  .calc-card { padding: 32px 24px; }
  /* minmax(0, 1fr) so wide content (the big AUD figure) doesn't stretch
     the grid track past the card's content area */
  .calc-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 480px) {
  .calc-card { padding: 24px 18px; border-radius: 18px; }
  .calc-result { padding: 24px 22px; border-radius: 14px; }
  .calc-amount { font-size: clamp(36px, 12vw, 48px); }
  .calc-breakdown { font-size: 11.5px; gap: 4px 8px; }
  .calc-cta { width: 100%; justify-content: center; }
}

/* Sliders */
.calc-slider { margin-bottom: 32px; }
.calc-slider:last-child { margin-bottom: 0; }
.calc-slider-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.calc-slider-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--tc-charcoal); letter-spacing: -0.005em;
}
.calc-slider-icon { color: var(--tc-slate); display: inline-flex; }
.calc-slider-value {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--tc-charcoal); letter-spacing: -0.02em;
}
.calc-slider-bounds {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--tc-slate);
  margin-top: 6px;
}

/* Range inputs — gradient fill driven by --pct, themed per-slider */
.calc-range {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 6px;
  border-radius: 999px;
  outline: none;
  background: var(--tc-cloud);
  background-image: linear-gradient(to right, var(--track) 0%, var(--track) var(--pct, 0%), transparent var(--pct, 0%));
  cursor: pointer;
}
.calc-range-orange { --track: var(--accent); }
.calc-range-blue   { --track: #3b82f6; }
.calc-range-green  { --track: #10b981; }

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--track);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,24,27,0.25);
  cursor: pointer;
  transition: transform 120ms;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--track);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(20,24,27,0.25);
  cursor: pointer;
}
.calc-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}

/* Result column */
.calc-result {
  padding: 36px 32px;
  background: var(--tc-paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  position: relative;
}
.calc-result-eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; color: var(--tc-charcoal);
  letter-spacing: -0.01em;
}
.calc-result-tag {
  font-style: italic; font-size: 13px;
  color: var(--tc-slate);
  margin: 6px 0 18px;
  line-height: 1.5;
}
.calc-figure {
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.calc-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
  margin: 0;
}
.calc-breakdown {
  display: flex; flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--tc-slate);
  line-height: 1.4;
}
.calc-breakdown-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  cursor: help;
  border-bottom: 1px dotted rgba(104, 112, 119, 0.45);
  transition: color 180ms, border-color 180ms;
}
.calc-breakdown-chip:hover { color: var(--tc-charcoal); border-bottom-color: var(--tc-slate); }
.calc-breakdown-chip strong { font-weight: 600; color: var(--tc-charcoal); }
.calc-breakdown-chip em { font-style: italic; font-weight: 400; }
.calc-breakdown-plus { color: var(--tc-silver); font-weight: 400; }
.calc-cta { display: inline-flex; }
.calc-disclaimer {
  margin: 18px 0 0;
  font-size: 11.5px; line-height: 1.55;
  color: var(--tc-slate);
}

/* ==========================================================================
   CALCULATOR PAGES (resource-hub/calculators/*) — input controls + result
   rows.  Shares the .calc-card / .calc-grid / .calc-result shells used by
   the home savings calculator; adds number/select/pill controls and a
   line-by-line result-rows pattern for itemised outputs.
   ========================================================================== */

/* Per-calculator illustration that sits above the inputs column.
   Renders the same blue WebP icon used on the resource-hub launcher
   tiles inside a tinted square — keeps the visual marker consistent
   between the launcher and the calc page. */
.calc-illus {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 104px; height: 104px;
  margin-bottom: 28px;
  background: rgba(56, 121, 168, 0.07);
  border-radius: 18px;
}
.calc-illus img { width: 76px; height: 76px; }
@media (max-width: 920px) {
  .calc-illus { width: 84px; height: 84px; margin-bottom: 16px; }
  .calc-illus img { width: 60px; height: 60px; }
}

.calcp-input {
  display: flex; flex-direction: column;
  gap: 6px; margin-bottom: 20px;
}
.calcp-input:last-child { margin-bottom: 0; }
.calcp-input-label {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; color: var(--tc-charcoal);
}
.calcp-input-control {
  display: flex; align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 180ms, box-shadow 180ms;
}
.calcp-input-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,155,46,0.18);
}
.calcp-input-prefix, .calcp-input-suffix {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  font-size: 14px; color: var(--tc-slate);
  font-family: var(--font-display); font-weight: 500;
  background: rgba(31,36,40,0.04);
}
.calcp-input-control input,
.calcp-input-control select {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none;
  padding: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px;
  color: var(--tc-charcoal);
  letter-spacing: -0.01em;
  background: transparent;
  width: 100%;
}
/* Hide number-input spinners — they crowd the prefix/suffix layout */
.calcp-input-control input[type="number"]::-webkit-inner-spin-button,
.calcp-input-control input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.calcp-input-control input[type="number"] { -moz-appearance: textfield; }
.calcp-input-help {
  font-size: 12px; color: var(--tc-slate);
  margin-top: 2px; line-height: 1.45;
}

.calcp-pillgroup {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.calcp-pill {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--tc-charcoal);
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.calcp-pill:hover { background: rgba(255,255,255,0.95); }
.calcp-pill.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
}

/* Itemised result rows (label · value pairs under the headline figure) */
.calcp-result-rows {
  margin-top: 16px;
  display: flex; flex-direction: column;
  font-size: 13.5px; color: var(--tc-slate);
}
.calcp-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted rgba(104,112,119,0.25);
  line-height: 1.4;
}
.calcp-result-row:last-child { border-bottom: none; }
.calcp-result-row .calcp-result-row-label { flex: 1 1 auto; min-width: 0; }
.calcp-result-row .calcp-result-row-value {
  font-family: var(--font-display); font-weight: 600;
  color: var(--tc-charcoal);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

/* Eligibility badge (used on instant-asset-write-off result) */
.calcp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 10px;
}
.calcp-badge.eligible { background: rgba(16,185,129,0.12); color: #047857; }
.calcp-badge.not-eligible { background: rgba(217,71,71,0.12); color: #b91c1c; }

/* Related-calculators block on service pages — same visual language
   as the resource-hub calc-index tiles, just rendered in a service
   context.  Horizontal layout: icon left, body right. */
.related-calcs {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 8px;
}
.related-calc-tile {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 12px rgba(20,24,27,0.05);
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard), border-color 200ms;
}
.related-calc-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20,24,27,0.10);
  border-color: rgba(232,155,46,0.30);
}
.related-calc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(56, 121, 168, 0.06);
  border-radius: 12px;
  flex-shrink: 0;
}
.related-calc-icon img { width: 40px; height: 40px; }
.related-calc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.related-calc-tile h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--tc-charcoal);
  margin: 0; letter-spacing: -0.01em;
}
.related-calc-tile p {
  margin: 0;
  font-size: 13px; color: var(--tc-slate);
  line-height: 1.5;
}
.related-calc-tile .related-calc-cta {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 12.5px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}

/* Calculator index grid on the resource hub — vertical layout with
   prominent icon block at the top of each tile. */
.calc-index-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.calc-index-tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard), border-color 200ms;
  box-shadow: 0 4px 12px rgba(20,24,27,0.05);
}
.calc-index-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20,24,27,0.10);
  border-color: rgba(232,155,46,0.30);
}
.calc-index-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  background: rgba(56, 121, 168, 0.07);
  border-radius: 14px;
  margin-bottom: 6px;
}
.calc-index-icon img { width: 52px; height: 52px; }
.calc-index-tile h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--tc-charcoal);
  margin: 0;
  letter-spacing: -0.01em;
}
.calc-index-tile p {
  margin: 0;
  font-size: 13px; color: var(--tc-slate);
  line-height: 1.5;
}
.calc-index-tile .calc-index-cta {
  margin-top: auto; padding-top: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi { padding: 120px 24px; }
.testi-head { text-align: center; margin-bottom: 56px; }
.testi-head .section-eyebrow { display: inline-flex; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  margin: 0; padding: 28px 26px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  display: flex; flex-direction: column; gap: 18px;
}
.testi-quote { width: 28px; height: 22px; color: var(--accent); opacity: 0.9; }
.testi-quote-text { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.45;
  color: var(--tc-charcoal); margin: 0; letter-spacing: -0.01em; }
.testi-cap { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.testi-pic { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; }
.testi-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--tc-charcoal); }
.testi-role { font-size: 12px; color: var(--tc-slate); }
@media (max-width: 920px) { .testi-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.ctaband-wrap { padding: 60px 24px 120px; }
.ctaband {
  position: relative; overflow: hidden;
  background: var(--tc-charcoal-deep); color: #fff;
  border-radius: 24px;
  padding: 80px 56px;
  box-shadow: 0 20px 60px rgba(20,24,27,0.30);
}
.ctaband-bg { position: absolute; inset: 0; opacity: 0.7; }
.ctaband-glow {
  position: absolute; right: -160px; top: -100px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232,155,46,0.22) 0%, transparent 65%);
}
.ctaband-circuit { position: absolute; top: 0; left: 0; width: 200px; height: 200px; opacity: 0.5; }
.ctaband-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.ctaband-left .section-eyebrow { color: var(--accent); }
.ctaband-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px);
  color: #fff; letter-spacing: -0.025em; line-height: 1.1; margin: 14px 0 16px; }
.ctaband-title .accent { color: var(--accent); }
.ctaband-sub { color: var(--tc-cloud); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0; }
.ctaband-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ctaband-meta { font-size: 13px; color: var(--tc-silver); }
@media (max-width: 920px) {
  .ctaband { padding: 56px 28px; }
  .ctaband-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--tc-charcoal-deep); color: var(--tc-silver); padding: 80px 24px 36px; position: relative; }
.footer-accent { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent); opacity: 0.6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { height: 28px; width: auto; }
.footer-tagline { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.footer-about { font-size: 13px; line-height: 1.6; max-width: 320px; margin: 0; color: var(--tc-cloud); }
.footer h5 { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--tc-cloud); font-size: 13.5px; border: none; transition: color 180ms; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tc-slate); }
.footer-pillars {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 10px;
  letter-spacing: 0.18em;
}
.footer-pillars .accent { color: var(--accent); }
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  /* Brand block spans both columns so its long copy doesn't crush
     the link lists into vertical word-wrap. */
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-affiliations { gap: 8px; }
  .footer-affiliations span { padding: 3px 8px; font-size: 10px; }
}

/* ==========================================================================
   FOOTER ADDITIONS — affiliations + legal disclaimer
   ========================================================================== */
.footer-affiliations {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 18px;
  font-size: 11px; color: var(--tc-silver);
  letter-spacing: 0.04em;
}
.footer-affiliations span {
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.footer ul span { color: var(--tc-cloud); font-size: 13.5px; display: block; }
.footer-legal {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: var(--tc-slate); line-height: 1.6;
  max-width: 760px;
}

/* ==========================================================================
   PAGE TEMPLATES — for sub-page content pages
   (services, the-firm, pricing, resource-hub, tax-2026, contact)
   ========================================================================== */

/* Hero variant for content pages — narrower, slightly less heavy than home */
.page-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232,155,46,0.10) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(31,36,40,0.025) 0 1px, transparent 1px 14px);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08; letter-spacing: -0.025em;
  color: var(--tc-charcoal); margin: 0 0 18px;
  text-wrap: balance;
}
.page-hero-title .accent { color: var(--accent); }
.page-hero-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--tc-slate);
  max-width: 680px; margin: 0 auto 30px;
  text-wrap: pretty;
}
.page-hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.page-hero.dark { background: var(--tc-charcoal-deep); padding-bottom: 100px; }
.page-hero.dark .page-hero-title { color: #fff; }
.page-hero.dark .page-hero-lead { color: var(--tc-cloud); }
.page-hero.dark .page-hero-bg {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232,155,46,0.18) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
}

/* Post hero — uses the post's image as background with a darkening overlay */
.post-hero { padding-top: 200px; padding-bottom: 80px; min-height: 480px; }
.post-hero.has-image { background: var(--tc-charcoal-deep); }
.post-hero.has-image .page-hero-title { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.40); }
.post-hero.has-image .page-hero-lead { color: rgba(255,255,255,0.92); text-shadow: 0 1px 10px rgba(0,0,0,0.40); }
.post-hero.has-image .section-eyebrow {
  background: rgba(20,24,27,0.55); padding: 4px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.post-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) brightness(0.55);
}
.post-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20,24,27,0.0) 0%, rgba(20,24,27,0.55) 70%),
    linear-gradient(180deg, rgba(20,24,27,0.30) 0%, rgba(20,24,27,0.10) 35%, rgba(20,24,27,0.65) 100%);
}

/* Generic content section */
.content-section { padding: 80px 24px; }
.content-section.dark { background: var(--tc-charcoal-deep); color: var(--tc-cloud); }
.content-section.dark h2, .content-section.dark h3 { color: #fff; }
.content-section.tinted {
  background: rgba(232,155,46,0.05);
  border-top: 1px solid rgba(232,155,46,0.18);
  border-bottom: 1px solid rgba(232,155,46,0.18);
}

.content-row {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  /* minmax(0, ...) so wide content (tables, code blocks, long urls)
     can scroll within their wrapper instead of stretching the grid track
     past the viewport. Default `1fr` is `minmax(auto, 1fr)` which uses
     the content's intrinsic minimum — fine for prose, breaks for tables. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px; align-items: start;
}
.content-row.single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.content-row .content-head { position: sticky; top: 120px; }
.content-row.single .content-head { position: static; text-align: center; margin: 0 auto 32px; }
.content-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 8px 0 12px; color: var(--tc-charcoal);
  text-wrap: balance;
}
.content-head h2 .accent { color: var(--accent); }
.content-head p {
  color: var(--tc-slate); font-size: 16px; line-height: 1.6;
  max-width: 380px; margin: 0;
}
.content-row.single .content-head p { max-width: none; }

.prose { font-size: 16px; line-height: 1.7; color: var(--tc-charcoal); max-width: 660px; }
.prose p { margin: 0 0 16px; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid transparent; }
.prose a:hover { border-bottom-color: var(--accent); }
.content-section.dark .prose,
.content-section.dark .prose p,
.content-section.dark .prose ul,
.content-section.dark .prose ol,
.content-section.dark .content-head p { color: var(--tc-cloud); }
.content-section.dark .prose strong { color: #fff; }

/* Bullet list with orange dot tick */
.tick-list { list-style: none; padding: 0; margin: 0 0 16px; }
.tick-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-top: 1px solid var(--border);
  font-size: 15px; line-height: 1.55;
  color: var(--tc-charcoal);
}
.tick-list li:first-child { border-top: none; }
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,155,46,0.18);
}
.tick-list li strong { display: block; font-weight: 600; color: var(--tc-charcoal); margin-bottom: 2px; }
.content-section.dark .tick-list li {
  border-color: rgba(255,255,255,0.08);
  color: var(--tc-cloud);
}
.content-section.dark .tick-list li strong { color: #fff; }

/* Frosted callout card */
.callout {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  max-width: 760px; margin: 24px auto;
}
.content-section.dark .callout {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.callout-eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.callout h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.callout p { margin: 0 0 8px; line-height: 1.6; }

/* Three-column card grid for sub-section nav (e.g., service detail tiles) */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1180px; margin: 0 auto;
}
@media (max-width: 920px) {
  .tile-grid { grid-template-columns: 1fr; }
  .content-row { grid-template-columns: 1fr; gap: 32px; }
  .content-row .content-head { position: static; }
}
.tile {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  text-decoration: none; color: inherit;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), border-color 220ms;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20,24,27,0.14);
  border-color: rgba(232,155,46,0.40);
}
.tile-eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.tile-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; color: var(--tc-charcoal); margin: 0;
  letter-spacing: -0.01em;
}
.tile-desc { font-size: 14px; color: var(--tc-slate); line-height: 1.55; margin: 0; }
.tile-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--accent);
}

/* Pricing tier cards */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1180px; margin: 0 auto 56px;
}
@media (max-width: 920px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 36px 32px;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20,24,27,0.10);
  position: relative;
}
.tier-card.featured {
  background: var(--tc-charcoal-deep);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 18px 48px rgba(20,24,27,0.20), 0 0 0 4px rgba(232,155,46,0.15);
}
.tier-card.featured .tier-name,
.tier-card.featured .tier-tag { color: #fff; }
.tier-card.featured .tier-list li { color: var(--tc-cloud); border-color: rgba(255,255,255,0.08); }
.tier-card.featured .tier-list li strong { color: #fff; }
.tier-eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.tier-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; letter-spacing: -0.02em; margin: 0;
}
.tier-tag {
  font-size: 13px; color: var(--tc-slate); font-style: italic;
  margin: -4px 0 0;
}
.tier-card.featured .tier-tag { color: var(--tc-cloud); }
.tier-best {
  margin: 8px 0 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--tc-slate);
}
.tier-card.featured .tier-best {
  border-color: rgba(255,255,255,0.10);
  color: var(--tc-cloud);
}
.tier-list { list-style: none; padding: 0; margin: 0; }
.tier-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  font-size: 14px; line-height: 1.5;
  color: var(--tc-charcoal);
}
.tier-list li:first-child { border-top: none; }
.tier-list li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.tier-cta { margin-top: auto; }

/* Pricing comparison table */
.compare-table {
  max-width: 1080px; margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Right-edge fade as a "more content this way" affordance on narrow
     viewports. Hidden on wide screens where the whole table fits. */
  position: relative;
}
.compare-table::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 36px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 100%);
  border-radius: 0 16px 16px 0;
  opacity: 0;
  transition: opacity 200ms;
}
@media (max-width: 720px) {
  .compare-table::after { opacity: 1; }
}
.compare-table table { min-width: 540px; }
.compare-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table thead th {
  background: var(--tc-charcoal-deep); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  text-align: left; padding: 16px 18px;
  letter-spacing: -0.005em;
  position: sticky; top: 0;
}
.compare-table thead th:first-child { width: 40%; }
.compare-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tbody tr:hover { background: rgba(232,155,46,0.05); }
.compare-table tbody td:first-child {
  font-weight: 600; color: var(--tc-charcoal);
}
.compare-yes { color: var(--tc-success); font-weight: 700; }
.compare-no  { color: var(--tc-silver); }

/* Tier "from $X/mo" price line */
.tier-price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin: -4px 0 0;
}
.tier-price-from { font-size: 14px; color: var(--tc-slate); }
.tier-price-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: 34px; letter-spacing: -0.02em; color: var(--tc-charcoal);
}
.tier-price-unit { font-size: 13px; color: var(--tc-slate); }
.tier-card.featured .tier-price-from,
.tier-card.featured .tier-price-unit { color: var(--tc-cloud); }
.tier-card.featured .tier-price-amount { color: #fff; }

/* "Payday Super ready" confidence badge on tier cards */
.tier-pds {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; padding: 6px 12px;
  border: 1px solid rgba(232,155,46,0.35);
  border-radius: 999px;
  background: rgba(232,155,46,0.08);
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.01em;
  color: var(--tc-charcoal);
}
.tier-pds-check { color: var(--accent); font-weight: 700; }
.tier-card.featured .tier-pds {
  color: #fff;
  border-color: rgba(232,155,46,0.5);
  background: rgba(232,155,46,0.15);
}

/* Compare "Starting from" price row */
.compare-price-row td { background: rgba(232,155,46,0.06); }
.compare-price-row td:first-child { font-weight: 700; }
.compare-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: var(--accent);
}

/* Add-ons grid (secondary cards — lighter than tier cards) */
.addon-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
@media (max-width: 860px) { .addon-grid { grid-template-columns: 1fr; } }
.addon-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.addon-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,24,27,0.08); }
.addon-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; color: var(--tc-charcoal); margin: 0;
}
.addon-desc { font-size: 13.5px; line-height: 1.5; color: var(--tc-slate); margin: 0; flex: 1; }
.addon-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--accent); margin: 4px 0 0;
}

/* Tax calendar table */
.cal-table {
  max-width: 980px; margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
}
.cal-table table { min-width: 480px; }
.cal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cal-table thead th {
  background: var(--tc-charcoal-deep); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  text-align: left; padding: 14px 18px;
  letter-spacing: -0.005em;
}
.cal-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--tc-charcoal);
}
.cal-table tbody td:first-child {
  font-family: var(--font-display); font-weight: 600;
  color: var(--accent); white-space: nowrap; width: 30%;
}
.cal-table tbody tr:hover { background: rgba(232,155,46,0.05); }

/* Time-awareness: mute past rows so upcoming dates dominate the eye */
.cal-table tbody tr.passed td { opacity: 0.42; }
.cal-table tbody tr.passed:hover td { opacity: 0.55; }
.cal-table tbody tr.upcoming-next td {
  background: rgba(232,155,46,0.10);
}
.cal-table tbody tr.upcoming-next td:first-child {
  position: relative; padding-right: 56px;
}
.cal-table tbody tr.upcoming-next td:first-child::after {
  content: "NEXT";
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
  color: #fff; background: var(--accent);
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--font-display);
}

/* Resource hub post listing */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 1240px; margin: 0 auto;
}
@media (max-width: 920px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  text-decoration: none; color: inherit;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,24,27,0.14); }
.post-thumb {
  aspect-ratio: 16/9;
  background: var(--grad-flame) center/cover;
  position: relative;
  overflow: hidden;
}
.post-thumb::after {
  /* Subtle dark gradient at the bottom for legibility of the eyebrow chip
     and to unify mixed photo + flame backgrounds */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,27,0.10) 0%, rgba(20,24,27,0) 30%, rgba(20,24,27,0) 60%, rgba(20,24,27,0.35) 100%);
  pointer-events: none;
}
.post-thumb-eyebrow {
  position: absolute; top: 16px; left: 16px;
  padding: 4px 10px;
  background: rgba(20,24,27,0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 10px; font-weight: 700; color: #fff;
  letter-spacing: 0.18em; text-transform: uppercase;
  z-index: 1;
}
.post-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 11px; color: var(--tc-slate); letter-spacing: 0.05em; text-transform: uppercase; }
.post-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--tc-charcoal); margin: 0;
}
.post-excerpt { font-size: 14px; color: var(--tc-slate); line-height: 1.55; margin: 0; }
.post-more {
  margin-top: auto;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Single post body */
.post-article {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.7; color: var(--tc-charcoal);
}
.post-article h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.post-article h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.post-article p { margin: 0 0 18px; }
.post-article ul, .post-article ol { padding-left: 24px; margin: 0 0 18px; }
.post-article li { margin-bottom: 8px; }
.post-article blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: var(--tc-orange-tint);
  font-style: italic;
}

/* Form */
.form-card {
  max-width: 640px; margin: 0 auto;
  padding: 36px 38px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(20,24,27,0.10);
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; color: var(--tc-charcoal);
  letter-spacing: -0.005em;
}
.form-row input, .form-row textarea, .form-row select {
  font: inherit; font-size: 15px;
  width: 100%; min-width: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--tc-charcoal);
  transition: border-color 180ms, box-shadow 180ms;
}
.form-grid-2 > .form-row { min-width: 0; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,155,46,0.18);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* HubSpot embed target — give the form room while it loads. */
.hs-form-frame { min-height: 220px; }

/* ---- Prev/next post navigation (foot of an article) ---- */
.post-nav-head {
  text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tc-slate);
  margin-bottom: 22px;
}
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 980px; margin: 0 auto;
}
.post-nav-cell { display: flex; }
.post-nav-card {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20,24,27,0.08);
  text-decoration: none; color: inherit;
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
}
.post-nav-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,24,27,0.14); }
.post-nav-card.next { flex-direction: row-reverse; text-align: right; }
.post-nav-thumb {
  flex: 0 0 92px; width: 92px; aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--grad-flame) center/cover;
  background-size: cover; background-position: center;
}
.post-nav-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-nav-dir {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em; color: var(--accent);
}
.post-nav-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; line-height: 1.3; color: var(--tc-charcoal);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 700px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-card.next { flex-direction: row; text-align: left; }
}

