/* ============================================================================
   OnRecord Title — "A Modern Spin on Title"
   Design system: Modern Fintech. Deep navy → teal, big confident display type,
   a "record / ledger" motif (mono numerals, recording dot, security-paper
   guilloché texture, ledger underlines). Built to feel like the Stripe of title.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
/* Bricolage Grotesque = display (characterful, current). Hanken Grotesk = body
   (warm, legible). JetBrains Mono = kickers + record numbers (ledger feel). */

:root {
  /* ── OnRecord Title brand system — ONE coherent family ─────────────────────
     Deep navy + notary teal + slate, matched to the Flight Deck and the
     Calculator ("Premium Design System v1") for true cross-property parity.
     Notary teal #2a8f89 / #37b3ab is the signal color; navy carries authority.
     Two-tone accent discipline: teal-600 (deep) on light, teal-300 (bright) on
     dark — never the reverse. (Replaces the prior muddy steel-blue + sage-green
     remap, which clashed with the bright-teal component code and the blue
     gradient — three families fighting on every screen.) ──────────────────── */
  /* OnRecord brand blue = #41748D (Spencer, 2026-07-31). The whole blue family
     is now deep-to-mid shades of that one hue — darkest surfaces stay dark
     enough for white text; #41748D itself is the signature steel-blue accent. */
  --brand-blue: #41748D;
  --navy-950: #37627a;   /* deepest — footer + gradient end (shade of brand blue) */
  --navy-900: #41748D;   /* OnRecord BRAND BLUE — the primary blue surface (hero, dark sections) */
  --navy-850: #3d6c83;
  --navy-800: #3a6580;   /* CTA gradient start */
  --navy-700: #4c8098;   /* navy 700 */
  --navy-600: #5f92a8;
  --navy-500: #79a3b6;   /* light steel — muted labels / borders only */

  --teal-300: #62d3c6;   /* bright notary teal — accent on DARK */
  --teal-400: #37b3ab;   /* brand teal (bright) */
  --teal-500: #2a8f89;   /* BRAND CORE notary teal — icons, marks */
  --teal-600: #1d726c;   /* deep teal — text/links on LIGHT (contrast-safe) */
  --cyan: #37b3ab;       /* gradient bright end */
  --slate: #475a6b;      /* body slate */
  --gold: #C7A356;       /* restrained premium micro-accent (sparingly) */

  --paper: #f4f7f7;      /* clean cool off-white */
  --paper-2: #e8f0ef;
  --ink-900: #0e2233;    /* heading ink — navy-tinted near-black */
  --ink-700: #3f5365;    /* body */
  --ink-500: #6a7d8d;    /* muted */

  --mist-100: #e9f4f2;   /* near-white text on dark */
  --mist-300: #a3c2c2;   /* muted text on dark */
  --mist-500: #6e9296;   /* faint text on dark */

  --line-dark: rgba(255, 255, 255, 0.10);
  --line-light: rgba(16, 44, 73, 0.12);

  /* Typography — Premium Design System v1 (calculator parity) */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Gradients — notary-teal signal gradient + brand display gradient */
  --grad-teal: linear-gradient(135deg, #45c4ba, #2a8f89);
  --grad-brand: linear-gradient(118deg, #4cc8be 0%, #2a8f89 48%, #1d726c 100%);

  /* Shape & motion */
  --radius: 1.1rem;       /* rounded-2xl, calculator parity */
  --radius-sm: 0.8rem;
  --radius-lg: 1.5rem;    /* rounded-3xl */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Layered depth — navy-tinted shadow scale (never pure black) */
  --shadow-soft: 0 1px 2px rgba(8,24,43,0.05), 0 4px 12px -4px rgba(8,24,43,0.10);
  --shadow-card: 0 1px 2px rgba(8,24,43,0.05), 0 18px 44px -18px rgba(8,24,43,0.24);
  --shadow-glow: 0 0 0 1px rgba(42,143,137,0.28), 0 20px 50px -24px rgba(42,143,137,0.42);

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  /* Layered ambient backdrop so paper sections never read as a flat white void
     (calculator parity) — fixed teal + navy radials over the paper base. */
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 100% -8%, rgba(39, 199, 184, 0.10), transparent 58%),
    radial-gradient(1000px 520px at -10% 2%, rgba(16, 46, 80, 0.10), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fixed grain overlay — subtle paper tooth over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--ink-700); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* Kicker — eyebrow pill (calculator parity): teal-tinted, uppercase, dot */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: rgba(17, 168, 156, 0.08);
  border: 1px solid rgba(17, 168, 156, 0.20);
  padding: 0.34rem 0.7rem 0.34rem 0.62rem;
  border-radius: 100px;
  line-height: 1;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(17, 168, 156, 0.5);
  animation: rec 2.6s var(--ease) infinite;
  flex-shrink: 0;
}
.kicker.on-dark {
  color: var(--teal-300);
  background: rgba(39, 199, 184, 0.10);
  border-color: rgba(39, 199, 184, 0.25);
}
.kicker.on-dark::before { background: var(--teal-400); }
@keyframes rec {
  0% { box-shadow: 0 0 0 0 rgba(39, 199, 184, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(39, 199, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 199, 184, 0); }
}

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-700); }
.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad-teal);
  color: var(--navy-950);
  box-shadow: 0 14px 30px -14px rgba(17, 168, 156, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(17, 168, 156, 0.7); }
/* Navy primary — calculator parity, for strong contrast on light sections */
.btn-navy {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(11, 36, 64, 0.55);
}
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-800); box-shadow: 0 18px 36px -14px rgba(11, 36, 64, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line-light);
}
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--mist-100);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
/* transparent so the body's ambient radials show through (never a flat void) */
.section-light { background: transparent; }
.section-paper2 { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(234,240,248,0.75)); }
/* white card-like band when we want a crisp surface */
.section-white { background: #fff; }

.section-dark {
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(69, 196, 186, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(42, 143, 137, 0.16), transparent 55%),
    var(--navy-900);
  color: var(--mist-100);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--mist-300); }

/* Guilloché / security-paper line texture — engraved-deed feel for dark blocks */
.security-lines { position: relative; }
.security-lines::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(65deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(1000px 700px at 70% 30%, #000, transparent 75%);
}

.section-header { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header .kicker { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.9rem; }
.section-header p { font-size: 1.12rem; }

/* ============================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid from the very top so the dark nav text is always legible — even over
     the dark hero (fixes the prior dark-on-dark nav). Intensifies on scroll. */
  background: rgba(244, 247, 247, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 1rem, not 1.5rem: the desktop nav carries 7 items + phone + the Order
     Title button, and the hamburger does not take over until 1260px. Every
     spare pixel between those two points keeps the CTA on screen. */
  gap: 1rem;
  height: 76px;
}
.header.scrolled {
  background: rgba(244, 247, 247, 0.94);
  box-shadow: 0 1px 0 var(--line-light), 0 12px 30px -24px rgba(8, 20, 40, 0.5);
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Real OnRecord wordmark logo (record-rings mark + "onrecord title") */
.brand-logo { height: 30px; width: auto; flex: 0 0 auto; object-fit: contain; display: block; }
.footer .brand-logo { height: 30px; width: auto; object-fit: contain; margin-bottom: 0.25rem; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }
/* Prominent "Rate Calculators" nav chip */
.nav-link-calc {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: rgba(42, 143, 137, 0.10); color: var(--teal-600) !important;
  font-weight: 700; border: 1px solid rgba(42, 143, 137, 0.28);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link-calc svg { width: 15px; height: 15px; }
.nav-link-calc:hover { background: rgba(42, 143, 137, 0.18); border-color: var(--teal-600); }
.brand .rec {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(42, 143, 137,0.5);
  animation: rec 2.4s var(--ease) infinite;
}
.brand b { color: var(--teal-600); font-weight: 800; }

.nav-list { display: flex; align-items: center; gap: 0.1rem; list-style: none; flex-wrap: nowrap; }
.nav-link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease);
  display: inline-flex; align-items: center;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.32rem;
  height: 2px;
  background: var(--grad-teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
  border-radius: 2px;
}
.nav-link:hover { color: var(--navy-900); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem); left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
  list-style: none;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.24s var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: background 0.18s, color 0.18s;
}
.nav-dropdown-menu a:hover { background: var(--paper-2); color: var(--teal-600); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex: 0 0 auto; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-700);
  letter-spacing: -0.02em;
}
.nav-phone:hover { color: var(--teal-600); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 720px at 78% -8%, rgba(69, 196, 186, 0.22), transparent 58%),
    radial-gradient(1000px 620px at -5% 108%, rgba(42, 143, 137, 0.20), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--mist-100);
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero::before { /* guilloché lines */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(65deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 10px);
  mask-image: radial-gradient(900px 600px at 75% 25%, #000, transparent 78%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero h1 .text-grad { display: inline; }
.hero .subheadline { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--mist-300); max-width: 36ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; color: var(--mist-300); font-weight: 500;
}
.hero-trust span::before {
  content: ""; width: 1.05rem; height: 1.05rem; flex-shrink: 0;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362d3c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* Hero visual — image in a glass "record card" with a ledger header strip */
.hero-visual { position: relative; }
.record-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(4px);
}
.record-card .ledger-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mist-300);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(7,17,31,0.4);
}
.record-card .ledger-strip .dots { display: inline-flex; gap: 5px; }
.record-card .ledger-strip .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); display: inline-block; }
.record-card .ledger-strip .dots i:first-child { background: var(--teal-400); }
.record-card img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.record-card .stamp {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--teal-300);
  border: 1px solid rgba(55, 179, 171,0.5);
  border-radius: 6px; padding: 0.3rem 0.55rem;
  text-transform: uppercase;
  background: rgba(7,17,31,0.55);
  backdrop-filter: blur(4px);
}
.hero-float {
  position: absolute;
  left: -22px; bottom: 38px;
  background: #fff;
  color: var(--navy-900);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 0.7rem;
  animation: float 5s ease-in-out infinite;
}
.hero-float .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-teal); display: grid; place-items: center; color: var(--navy-950); }
.hero-float b { font-family: var(--font-display); font-size: 1.05rem; display: block; line-height: 1; }
.hero-float small { font-size: 0.72rem; color: var(--ink-500); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---- Stats bar ---------------------------------------------------------- */
.stats-bar { background: var(--navy-850); color: var(--mist-100); border-block: 1px solid var(--line-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(1.75rem, 3vw, 2.5rem) 1.5rem; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; letter-spacing: -0.03em; line-height: 1; }
.stat .lab { font-weight: 600; color: var(--teal-300); margin-top: 0.4rem; font-size: 0.95rem; }
.stat .sub { font-size: 0.82rem; color: var(--mist-500); margin-top: 0.3rem; }

/* ---- Underwriter marquee ------------------------------------------------ */
.partners { padding: 2.5rem 0; background: var(--paper); border-bottom: 1px solid var(--line-light); }
.partners-title { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 1.4rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.partner-item { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy-600); opacity: 0.5; letter-spacing: -0.02em; white-space: nowrap; transition: opacity 0.2s; }
.partner-item:hover { opacity: 1; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================================
   CARDS & GRIDS
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--grad-teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(42, 143, 137,0.14), rgba(69, 196, 186,0.10));
  color: var(--teal-600);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; color: var(--ink-500); }
.card .card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-weight: 600; font-size: 0.92rem; color: var(--teal-600); }
.card .card-link svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }
.card.on-dark { background: rgba(255,255,255,0.04); border-color: var(--line-dark); }
.card.on-dark h3 { color: #fff; }
.card.on-dark p { color: var(--mist-300); }
.card.on-dark .card-icon { background: rgba(55, 179, 171,0.12); color: var(--teal-300); }

/* Numbered step card */
.step-num { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--teal-400); letter-spacing: 0.05em; margin-bottom: 1rem; display: inline-block; }

/* "Who we serve" image cards */
.serve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.serve-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; border: 1px solid var(--line-light);
  /* navy base so white text holds even before/if the image paints */
  background: var(--navy-900, #0c2440);
  box-shadow: var(--shadow-card);
}
.serve-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.serve-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,48,0.10) 0%, rgba(8,26,48,0.38) 24%, rgba(8,26,48,0.80) 44%, rgba(8,26,48,0.94) 72%, rgba(8,26,48,0.99) 100%); }
.serve-card:hover img { transform: scale(1.06); }
.serve-card .serve-body { position: relative; z-index: 2; padding: 1.6rem; }
.serve-card h3 { color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 18px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.5); }
.serve-card p { color: rgba(255,255,255,0.94); font-size: 0.95rem; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.serve-card .serve-tag { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-300); font-weight: 600; }
.serve-card .serve-tag svg { width: 0.9em; height: 0.9em; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 0.25s var(--ease); }
.serve-card:hover .serve-tag svg { transform: translateX(3px); }
.serve-card .serve-icon { position: absolute; z-index: 2; top: 1.2rem; left: 1.2rem; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); display: grid; place-items: center; }
.serve-card .serve-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.6; }

/* ---- Comparison table --------------------------------------------------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-light); background: #fff; box-shadow: var(--shadow-card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1.05rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line-light); }
.compare thead th { font-family: var(--font-display); font-size: 0.98rem; color: var(--ink-500); font-weight: 600; }
.compare thead th.col-us { color: var(--navy-900); }
.compare tbody td:first-child, .compare thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-700); }
.compare .col-us { background: linear-gradient(180deg, rgba(42, 143, 137,0.07), rgba(69, 196, 186,0.04)); position: relative; }
.compare thead .col-us { border-top: 3px solid var(--teal-500); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--teal-600); font-size: 1.15rem; font-weight: 700; }
.compare .no { color: #c0ccd9; font-size: 1.05rem; }

/* ---- Team --------------------------------------------------------------- */
/* Team — photo-forward grid of the real OnRecord people */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.team-card { margin: 0; background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.team-photo-wrap { aspect-ratio: 60 / 65; overflow: hidden; background: var(--paper-2); position: relative; }
.team-photo-wrap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -48px 48px -36px rgba(12,28,36,0.28); pointer-events: none; }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; transition: transform 0.5s var(--ease); }
.team-card:hover .team-photo { transform: scale(1.045); }
.team-card figcaption { padding: 0.95rem 0.85rem 1.15rem; }
.team-card h3 { font-size: 1.02rem; margin: 0 0 0.18rem; letter-spacing: -0.01em; }
.team-title { font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.35; letter-spacing: 0.05em; color: var(--navy-500); text-transform: uppercase; }
.team-foot { text-align: center; margin-top: 1.7rem; color: var(--ink-500); font-size: 0.95rem; }
.team-foot a { color: var(--navy-500); font-weight: 600; }
.team-foot a:hover { color: var(--navy-700); }

/* Credential strip (replaces the fabricated underwriter marquee) */
.creds { padding: 1.6rem 0; background: var(--paper); border-bottom: 1px solid var(--line-light); }
.creds-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; }
.creds-row li { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 600; color: var(--ink-700); }
.creds-ico { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: rgba(65,116,141,0.10); color: var(--navy-600); }
.creds-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (max-width: 640px) { .creds-row { gap: 0.7rem 1.2rem; } .creds-row li { font-size: 0.84rem; } }

/* ---- Reviews ------------------------------------------------------------ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.review {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.9rem;
  position: relative;
}
.review .quote-mark { font-family: var(--font-display); font-size: 3.5rem; line-height: 0.6; color: var(--teal-400); opacity: 0.5; }
.review p { color: var(--mist-100); font-size: 1.05rem; margin: 0.6rem 0 1.3rem; }
.review .who { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-500); }
.review .who b { color: var(--teal-300); font-weight: 600; }

/* ---- Process ------------------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; position: relative; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.faq-item[open] { border-color: rgba(42, 143, 137,0.4); box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.5rem; color: var(--teal-600); transition: transform 0.3s var(--ease); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { color: var(--ink-500); }
.faq-answer a { color: var(--teal-600); font-weight: 600; }

/* ---- Forms -------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.75rem); box-shadow: var(--shadow-card); max-width: 720px; margin-inline: auto; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; min-width: 0; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-light); border-radius: 10px;
  background: var(--paper); color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 143, 137,0.15);
}

/* ============================================================================
   CTA band
   ========================================================================== */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(69, 196, 186,0.22), transparent 55%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  color: #fff;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 0.8rem; }
.cta p { color: var(--mist-300); max-width: 52ch; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* ============================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 82% -20%, rgba(69, 196, 186,0.16), transparent 58%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: var(--mist-100);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 8px);
  mask-image: radial-gradient(800px 500px at 78% 30%, #000, transparent 80%);
}
.page-hero .container { position: relative; }
.page-hero .kicker { margin-bottom: 1.1rem; }
.page-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 1.1rem; }
.page-hero p { font-size: 1.18rem; color: var(--mist-300); max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-500); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--teal-300); }

/* Prose for content pages */
.prose { max-width: 760px; }
.prose p { margin-bottom: 1.1rem; font-size: 1.08rem; color: var(--ink-700); }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 0.7rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; color: var(--ink-700); }
.prose li::marker { color: var(--teal-500); }

/* Interior two-column layout (service / about / contact) */
.inner-grid { display: grid; grid-template-columns: 1.6fr 0.92fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.inner-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); }
.sidebar-card h3 { margin-bottom: 1.1rem; }
.sidebar-list { list-style: none; }
.sidebar-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.92rem; color: var(--ink-700); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); flex-shrink: 0; }
.sidebar-list.meta li { display: block; padding: 0.7rem 0; }
.sidebar-list.meta li::before { display: none; }
.sidebar-list.meta li b { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 0.2rem; font-weight: 600; }
.sidebar-list.meta li a { color: var(--teal-600); font-weight: 600; }

/* Areas grid */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.area-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.area-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.area-card p { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); }

@media (max-width: 860px) {
  .inner-grid { grid-template-columns: 1fr; }
  .inner-sidebar { position: static; }
}

/* Feature list with checks (SVG marks — no emoji) */
.check-list { list-style: none; display: grid; gap: 0.8rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-700); }
.check-list li::before {
  content: ""; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; flex-shrink: 0;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d726c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.section-dark .check-list li { color: var(--mist-300); }
.section-dark .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362d3c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-950); color: var(--mist-300); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer h4, .footer .footer-h { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: inherit; }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-desc { font-size: 0.95rem; color: var(--mist-500); max-width: 36ch; }
.footer-license { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--mist-500); letter-spacing: 0.02em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-links li { font-size: 0.94rem; color: var(--mist-300); }
.footer-links a:hover { color: var(--teal-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.84rem; color: var(--mist-500); }
.footer-bottom a { color: var(--mist-300); }
.footer-bottom a:hover { color: var(--teal-300); }

/* ============================================================================
   SCROLL REVEAL
   ========================================================================== */
/* Reveal only when JS is active — content is visible by default (no-JS,
   crawlers, and pre-hydration all see full content; never a blank section). */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
.js [data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Text FIRST on mobile — the pitch and CTA stay above the fold; the photo
     card follows. (Was order:-1, which buried the headline a screen down.) */
  .hero-visual { order: 1; max-width: 480px; margin-top: 1.5rem; }
  .hero .subheadline { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Hamburger takes over at 1380px (was 1260): the language switch added ~100px to the
   action cluster, and 1366px laptops had only 4px of slack even before it. */
@media (max-width: 1380px) {
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0;
    background: rgba(247,250,253,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-light);
    padding: 1rem var(--pad) 1.5rem;
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-card);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav-link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-light); }
  .nav-link::after { display: none; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
}
/* Spanish nav labels run longer, so Spanish pages collapse to the hamburger earlier (≤1560px). */
@media (max-width: 1560px) {
  html[lang="es"] .nav-menu {
    position: fixed; inset: 76px 0 auto 0;
    background: rgba(247,250,253,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-light);
    padding: 1rem var(--pad) 1.5rem;
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-card);
  }
  html[lang="es"] .nav-menu.open { transform: translateY(0); }
  html[lang="es"] .nav-list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  html[lang="es"] .nav-link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-light); }
  html[lang="es"] .nav-link::after { display: none; }
  html[lang="es"] .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  html[lang="es"] .nav-toggle { display: flex; }
  html[lang="es"] .nav-phone { display: none; }
}
/* Keep the header from overflowing between the hamburger breakpoint and full desktop */
/* The phone number is the first thing to go when the bar gets tight — it is
   repeated in the footer and on /contact. Hiding it below 1640px (1800px on Spanish pages, whose labels run longer) is what keeps
   the Order Title CTA from being clipped on 1366/1440/1512 laptops. */
@media (max-width: 1640px) { .nav-phone { display: none; } }
@media (max-width: 1800px) { html[lang="es"] .nav-phone { display: none; } }
/* On phones the bottom bar carries "Send an Order" — drop the redundant header button so the top bar (logo + menu) never overflows */
@media (max-width: 560px) { .nav-actions .btn { display: none; } }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-float { left: 8px; }
}

/* ============================================================================
   ACCESSIBILITY + BRAND MARK (appended)
   ========================================================================== */

/* Screen-reader-only text */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip-to-content link — visible on focus */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 600; font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; outline: 2px solid var(--teal-400); outline-offset: 2px; }

/* Visible keyboard focus indicator (WCAG 2.4.7) */
a:focus-visible, .btn:focus-visible, button:focus-visible,
summary:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal-500); outline-offset: 3px; border-radius: 6px;
}
.section-dark a:focus-visible, .hero a:focus-visible, .cta a:focus-visible,
.page-hero a:focus-visible, .footer a:focus-visible { outline-color: var(--teal-300); }

/* Brand lockup — teal-gradient rounded square + white check (calculator parity) */
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  box-shadow: 0 4px 14px -4px rgba(17, 168, 156, 0.7);
}
.brand-mark svg { width: 19px; height: 19px; stroke: var(--navy-950); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand b { color: var(--teal-600); font-weight: 800; }
.footer .brand b { color: var(--teal-300); }

/* Comparison "no" glyph — lift contrast (decorative dash, but visible) */
.compare .no { color: #8a97a6; }

/* Tools callout band — links to the title-quote / net-sheet calculators */
.tools-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  background-color: #0c2440;   /* solid navy fallback so the band is never washed */
  background-image:
    radial-gradient(700px 360px at 92% -10%, rgba(42,143,137,0.22), transparent 60%),
    linear-gradient(120deg, #102c49, #07182b);
  border: 1px solid rgba(42,143,137,0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.tools-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px);
  mask-image: radial-gradient(700px 360px at 80% 20%, #000, transparent 78%);
}
.tools-band .tb-text { position: relative; }
.tools-band .tb-text .kicker { margin-bottom: 0.9rem; }
.tools-band .tb-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 0.55rem; color: #fff; }
.tools-band .tb-text p { color: var(--mist-300); max-width: 48ch; }
.tools-band .btn { position: relative; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 1.6rem; }
.tb-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 600; color: var(--mist-100);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 0.4rem 0.8rem; border-radius: 100px;
}
.tb-chip svg { width: 15px; height: 15px; stroke: var(--teal-300); fill: none; stroke-width: 1.7; }
.tools-band .btn-navy { background: var(--grad-teal); color: var(--navy-950); }
.tools-band .btn-navy:hover { background: var(--grad-teal); }
/* Receipt preview — mirrors the calculator's net-sheet panel */
.tb-preview { position: relative; }
.tb-receipt {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 1rem; padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-glow);
  font-variant-numeric: tabular-nums;
}
.tbr-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.7rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line-light); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.tbr-head .dots { display: inline-flex; gap: 4px; }
.tbr-head .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(15,30,46,0.16); }
.tbr-head .dots i:first-child { background: var(--teal-400); }
.tbr-row { display: flex; align-items: center; justify-content: space-between; padding: 0.42rem 0; font-size: 0.9rem; color: var(--ink-700); }
.tbr-row b { font-weight: 600; color: var(--ink-900); }
.tbr-total { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; padding-top: 0.7rem; border-top: 1px solid var(--line-light); }
.tbr-total span { font-weight: 700; color: var(--navy-900); }
.tbr-total b { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--teal-600); }
@media (max-width: 720px) {
  .tools-band { grid-template-columns: 1fr; }
  .tb-preview { max-width: 360px; }
}
@media (max-width: 560px) { .tools-band .btn { width: 100%; } }

.footer-wire{display:flex;align-items:flex-start;gap:.5rem;max-width:none;margin:0 0 1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12);font-size:.8rem;line-height:1.45;color:var(--mist-300)}
.footer-wire .wire-ico{width:16px;height:16px;flex-shrink:0;margin-top:.1rem;color:var(--teal-300)}
.footer-wire strong{color:var(--mist-100);font-weight:700}

/* ============================================================================
   PREMIUM POLISH LAYER (appended) — glyph sizing for the new SVG marks + a
   pass that lifts type, eyebrows and numerals to the Capital Wealth bar while
   keeping OnRecord's own navy + notary-teal identity. No emoji anywhere.
   ========================================================================== */

/* SVG check inside the comparison table (replaces the old check glyph) */
.compare .yes { display: inline-flex; align-items: center; justify-content: center; }
.compare .yes svg { width: 1.15rem; height: 1.15rem; stroke: var(--teal-600); }
.compare .col-us .yes svg { stroke: var(--teal-600); }

/* Hero "record" dot (replaces the ● glyph) */
.record-card .stamp { display: inline-flex; align-items: center; gap: 0.4rem; }
.stamp .rec-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-300);
  box-shadow: 0 0 0 3px rgba(98, 211, 198, 0.18);
}

/* — Eyebrow / kicker: tighter, more editorial tracking (CW discipline) — */
.kicker { letter-spacing: 0.18em; font-size: 0.7rem; }

/* — Display type: a touch larger + tighter for confident, premium headlines — */
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.85rem); line-height: 1.0; }
.hero .subheadline { line-height: 1.55; }

/* — Numerals in mono with tabular figures: signals precision (the "ledger") — */
.stat .num, .hero-float b, .nav-phone, .tbr-row b, .tbr-total b {
  font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums;
}

/* — Buttons: slightly crisper press feel; primary keeps navy text on teal — */
.btn-primary { color: var(--navy-950); font-weight: 700; }
.btn:active { transform: translateY(0) scale(0.99); }

/* — Section rhythm: a hair more breathing room on large screens — */
@media (min-width: 1024px) { .section { padding: clamp(4.5rem, 7vw, 6.75rem) 0; } }

/* — Stats label in brighter teal for legibility on the navy band — */
.stat .lab { color: var(--teal-300); }

/* — Card accent rule + icon tile: lock to the teal signal gradient — */
.card-icon { background: linear-gradient(135deg, rgba(42,143,137,0.16), rgba(98,211,198,0.10)); color: var(--teal-600); }

/* — Reduced-motion safety net: the animated record dots hold still — */
@media (prefers-reduced-motion: reduce) {
  .kicker::before, .brand .rec, .stamp .rec-dot { animation: none !important; }
}

/* — Mobile headline fit: the big display clamp was overflowing the right edge
   on ~390px phones (clipping "…companies"). Cap sizes + allow wrap. — */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.02em; }
  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.8rem; }
  .hero .subheadline { font-size: 1.02rem; }
  .stat .num { font-size: 1.7rem; }
  .cta h2 { font-size: 1.7rem; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.95rem; }
}

/* ============================================================================
   FACETED HERO BACKGROUND — drifting translucent color-planes over the navy→
   teal gradient (the churchofjesuschrist.org effect, in OnRecord's brand).
   Sits above the gradient, below the content. Honors reduced-motion.
   ========================================================================== */
.hero-facets { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-facets span {
  position: absolute; inset: -25% -12%; display: block;
  opacity: 0.5; mix-blend-mode: soft-light; transform-origin: center;
  animation: facet-drift 26s ease-in-out infinite;
}
.hero-facets .f1 { background: rgba(98, 211, 198, 0.55); clip-path: polygon(0 12%, 100% 0, 100% 38%, 0 60%); animation-delay: -2s; }
.hero-facets .f2 { background: rgba(7, 24, 43, 0.60); clip-path: polygon(0 55%, 100% 28%, 100% 100%, 0 100%); animation-delay: -9s; }
.hero-facets .f3 { background: rgba(55, 179, 171, 0.45); clip-path: polygon(58% 0, 100% 0, 100% 70%, 30% 30%); animation-delay: -5s; }
.hero-facets .f4 { background: rgba(255, 255, 255, 0.08); clip-path: polygon(0 0, 46% 0, 18% 100%, 0 100%); animation-delay: -14s; }
.hero .container { z-index: 2; }
@keyframes facet-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 1.3%, 0) scale(1.05); }
}

/* ============================================================================
   CALCULATORS (/calculators/) — native, mobile-first. Single column; results
   stack BELOW the form (never side-by-side) so the dollar figures can't be
   clipped off the right edge on a phone.
   ========================================================================== */
.calc-wrap { max-width: 760px; margin-inline: auto; }
.calc-toggle {
  display: flex; gap: 0.35rem; margin-bottom: 1.6rem;
  background: var(--paper-2); border: 1px solid var(--line-light);
  border-radius: 100px; padding: 0.35rem;
}
.calc-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--ink-700); padding: 0.72rem 0.8rem; border-radius: 100px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.calc-tab.is-active { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-soft); }
.calc-panel[hidden] { display: none; }

.calc-form {
  background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
.calc-field { margin-bottom: 1.1rem; }
.calc-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 0.4rem; }
.calc-field label .opt { color: var(--ink-500); font-weight: 500; }
.calc-input { position: relative; display: flex; align-items: center; }
.calc-input .pre { position: absolute; left: 0.95rem; color: var(--ink-500); font-weight: 700; pointer-events: none; }
.calc-input .suf { position: absolute; right: 0.95rem; color: var(--ink-500); font-weight: 700; pointer-events: none; }
.calc-field input, .calc-field select {
  width: 100%; min-height: 50px; padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-light); border-radius: 12px;
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink-900);
  background: var(--paper); -webkit-appearance: none; appearance: none;
}
.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%233f5365' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  /* background-size is load-bearing: a sizeless SVG scales to fill the whole
     select and renders as a giant chevron. */
  background-size: 12px 8px;
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.calc-field input.has-pre { padding-left: 1.9rem; }
.calc-field input:focus, .calc-field select:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 143, 137, 0.15);
}
.calc-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.calc-field { min-width: 0; }
@media (max-width: 520px) { .calc-row2 { grid-template-columns: 1fr; gap: 0; } }
.calc-form .btn { width: 100%; margin-top: 0.4rem; }

/* Receipt — the number is the hero; full width, never clipped */
.calc-receipt {
  margin-top: 1.2rem; background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  overflow: hidden; font-variant-numeric: tabular-nums;
}
.calc-receipt[hidden] { display: none; }
.rcpt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.2rem; background: var(--navy-900); color: #fff;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.rcpt-head .teal { color: var(--teal-300); }
.calc-rows { padding: 0.5rem 1.2rem 0.9rem; }
.calc-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.96rem; color: var(--ink-700);
}
.calc-line:last-of-type { border-bottom: 0; }
.calc-line .v { font-family: var(--font-mono); font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.calc-line.total {
  margin-top: 0.3rem; padding-top: 0.85rem; border-bottom: 0;
  border-top: 2px solid var(--teal-500); font-size: 1.02rem;
}
.calc-line.total span:first-child { font-weight: 700; color: var(--navy-900); }
.calc-line.total .v { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--teal-600); }
.calc-line.total .v.negative { color: #c0392b; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0 1.2rem 1.2rem; }
.calc-disclaimer { margin-top: 1.3rem; font-size: 0.82rem; color: var(--ink-500); font-style: italic; text-align: center; max-width: 60ch; margin-inline: auto; }
.calc-disclaimer a { color: var(--teal-600); font-weight: 600; }
.calc-panel-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-900); margin: 0 0 1.1rem; }
.calc-commercial-note { margin-top: 1.5rem; padding: 1.1rem 1.3rem; background: rgba(65,116,141,0.06); border: 1px solid var(--line-light); border-radius: var(--radius); text-align: center; }
.calc-commercial-note strong { color: var(--navy-900); }
.calc-commercial-note p { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--ink-700); }
.calc-commercial-note a { color: var(--teal-600); font-weight: 600; }

/* ============================================================================
   IMAGE-FORWARD SERVICE CARDS — real photography instead of icon glyphs
   (replaces the old .card-icon tiles; matches Capital Wealth's photo-led feel).
   ========================================================================== */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo .card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.card-photo .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card-photo:hover .card-media img { transform: scale(1.05); }
.card-photo .card-body { padding: 1.4rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-photo .card-body h3 { margin-bottom: 0.45rem; }
.card-photo .card-body p { flex: 1; }
.card-photo .card-link { margin-top: 1rem; }

/* ============================================================================
   UX AUDIT IMPLEMENTATION (2026-07-05)
   ========================================================================== */

/* Nav phone must never wrap into two lines */
.nav-phone { white-space: nowrap; }

/* -- Comparison table: honest mobile affordance ---------------------------
   The competitor columns scroll; show it. Feature column stays pinned. */
.compare td:first-child, .compare th:first-child {
  position: sticky; left: 0; z-index: 1; background: #fff;
  box-shadow: 6px 0 8px -6px rgba(12, 36, 64, 0.12);
}
.compare-hint {
  display: none; align-items: center; gap: 0.45rem; justify-content: center;
  margin-top: 0.65rem; font-size: 0.85rem; color: var(--ink-500);
}
.compare-hint svg { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .compare-hint { display: flex; }
  .compare-wrap { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* -- Team grid: two-across on phones (was one 280px card per screen) ------ */
@media (max-width: 560px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .team-card figcaption { padding: 0.8rem 0.5rem 1rem; }
  .team-card h3 { font-size: 0.95rem; }
  .team-title { font-size: 0.78rem; }
}

/* -- Lead form success state ---------------------------------------------- */
.form-success {
  text-align: center; padding: 2.5rem 1.5rem;
  background: linear-gradient(180deg, rgba(42,143,137,0.08), rgba(42,143,137,0.02));
  border: 1px solid rgba(42,143,137,0.3); border-radius: var(--radius);
}
.form-success .fs-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--teal-600); color: #fff; margin-bottom: 1rem;
}
.form-success .fs-ico svg { width: 26px; height: 26px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-700); max-width: 44ch; margin-inline: auto; }
.form-success a { color: var(--teal-600); font-weight: 600; }

/* -- Sticky mobile action bar ---------------------------------------------
   Thumb-reach Call / Quote / Order on every page for the phone-first trade
   audience. Hidden on desktop and when printing. */
.mobile-bar { display: none; }
@media (max-width: 820px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0.5rem;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(7, 17, 31, 0.92); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .mobile-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    min-height: 44px; border-radius: 10px;
    font-size: 0.92rem; font-weight: 600; text-decoration: none;
    color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  }
  .mobile-bar a svg { width: 16px; height: 16px; }
  .mobile-bar .mb-primary { background: var(--teal-600); border-color: var(--teal-600); }
  body { padding-bottom: 76px; }
}

/* -- Calculator: receipt actions + print ---------------------------------- */
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.calc-actions .btn { flex: 1 1 auto; justify-content: center; }
@media print {
  .header, .footer, .mobile-bar, .calc-toggle, .calc-form, .calc-actions,
  .page-hero p, .faq-section, .cta, .breadcrumb, .skip-link { display: none !important; }
  body { padding-bottom: 0; background: #fff; }
  .calc-receipt { border: 1.5px solid #333; box-shadow: none; page-break-inside: avoid; }
  .calc-disclaimer { font-size: 0.75rem; }
}

/* -- Audience ("who we serve") journey pages ------------------------------ */
.aud-pains { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.aud-pains li {
  padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line-light);
  border-left: 3px solid var(--teal-500); border-radius: var(--radius-sm);
  color: var(--ink-700); font-size: 1.02rem;
}
.aud-pains li b { color: var(--ink-900); }
.serve-card > a { display: block; color: inherit; text-decoration: none; }
a.area-card { display: block; text-decoration: none; color: inherit; }
a.area-card h3 { color: var(--teal-600); }
a.area-card::after { content: "View \2192"; display: block; margin-top: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--teal-600); }

/* Grid children must be allowed to shrink below min-content, or long labels
   force the whole column past the phone viewport. */
.inner-grid > * { min-width: 0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.sidebar-list.meta li { overflow-wrap: anywhere; }
.check-list li, .aud-pains li { min-width: 0; overflow-wrap: anywhere; }

/* ============================================================================
   HOME — split-flap hero (no-scroll landing) + nav dropdown caret
   Added 2026-07-31 (Spencer's redesign: Vestaboard board, single viewport).
   ========================================================================== */
.nav-caret { width: 13px; height: 13px; margin-left: 2px; transition: transform 0.2s var(--ease); }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }

/* Home hero fills the first screen (the board is the landing), with the
   standard footer below it on every page. */
.home-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(90px, 13vh, 130px) 0 clamp(70px, 10vh, 96px);
  color: #fff;
  overflow: hidden;
  background: #0e2733;
}
/* full-bleed skyline photo behind the board */
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/assets/images/sections/onrecord-slc-skyline.jpg") center 42% / cover no-repeat;
}
/* darkening wash so the board + kicker read cleanly over the photo */
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,23,32,0.58) 0%, rgba(9,23,32,0.50) 45%, rgba(9,23,32,0.70) 100%);
}
.home-hero .container { position: relative; z-index: 2; }
/* light ghost button variant for the photo hero */
.btn-ghost-light { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.20); border-color: #fff; transform: translateY(-1px); }
.home-hero-facets { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.5; }
.home-hero-facets span { position: absolute; border-radius: 50%; filter: blur(60px); }
.home-hero-facets .f1 { width: 320px; height: 320px; top: -60px; left: -40px; background: rgba(65,116,141,0.5); }
.home-hero-facets .f2 { width: 260px; height: 260px; bottom: -40px; right: -20px; background: rgba(42,143,137,0.28); }
.home-hero-facets .f3 { width: 220px; height: 220px; top: 40%; left: 55%; background: rgba(65,116,141,0.22); }

.home-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3.4vh, 2.6rem);
}
.home-kicker { margin-bottom: 0.1rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---- The split-flap board ---- */
/* The board housing — frames the tiles so it reads as one crisp unit. */
.splitflap {
  display: flex; flex-direction: column; gap: clamp(2px, 0.35vw, 4px); align-items: center;
  padding: clamp(7px, 1vw, 13px);
  background: #050607;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 26px 60px -24px rgba(0,0,0,0.75);
}
.sf-row { display: flex; gap: clamp(1px, 0.3vw, 4px); perspective: 700px; }
.sf-cell {
  --sf-size: clamp(19px, 3.9vw, 42px);
  width: calc(var(--sf-size) * 0.86);
  height: calc(var(--sf-size) * 1.24);
  display: grid; place-items: center;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: calc(var(--sf-size) * 0.82);
  letter-spacing: -0.01em;
  line-height: 1;
  color: #ffffff;
  /* two crisp flap halves with a hard near-black divide at the middle */
  background: linear-gradient(180deg,
    #23272e 0, #23272e calc(50% - 1px),
    #050609 calc(50% - 1px), #050609 50%,
    #14171c 50%, #14171c 100%);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 0 0 1px rgba(0,0,0,0.7),
    0 2px 4px rgba(0,0,0,0.55);
  text-shadow: 0 1px 1px rgba(0,0,0,0.75);
  -webkit-font-smoothing: antialiased;
  transform-origin: center top;
  position: relative; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
/* crisp center seam (the flap split) */
.sf-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; transform: translateY(-1px);
  background: #000; box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
/* each flap physically drops from the top hinge as the letter changes */
.sf-cell.flap-anim { animation: flapdrop 44ms linear; }
@keyframes flapdrop {
  0% { transform: rotateX(-82deg); }
  60% { transform: rotateX(-8deg); }
  100% { transform: rotateX(0deg); }
}

/* Board must never exceed the viewport: 22 columns × cell + gaps + housing.
   At 390px the fluid clamp left the housing at ~418px and clipped letters. */
@media (max-width: 480px) { .sf-cell { --sf-size: 15.5px; } .splitflap { padding: 6px; } }
@media (max-width: 400px) { .sf-cell { --sf-size: 13.5px; } }
@media (max-width: 360px) { .sf-cell { --sf-size: 12px; } }

/* ============================================================================
   COMMERCIAL + UNDERWRITING PARTNERS pages (2026-07-31)
   ========================================================================== */
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.comm-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.comm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.comm-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(65,116,141,0.10); color: var(--brand-blue); margin-bottom: 0.9rem;
}
.comm-ico svg { width: 22px; height: 22px; }
.comm-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900); margin-bottom: 0.4rem; }
.comm-card p { color: var(--ink-700); font-size: 0.98rem; line-height: 1.55; }
.comm-trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem;
  margin: 2.4rem auto 0; padding: 1.1rem 1.4rem; max-width: 900px;
  border-top: 1px solid var(--line-light); color: var(--ink-700); font-weight: 600; font-size: 0.95rem;
}
.comm-trust li { position: relative; padding-left: 1.3rem; }
.comm-trust li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
@media (max-width: 900px) { .comm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .comm-grid { grid-template-columns: 1fr; } }

/* Holiday & closure schedule */
.holiday-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; align-items: start; }
.holiday-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow-soft);
}
.holiday-month {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-blue); margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-light);
}
.holiday-list { list-style: none; margin: 0; padding: 0; }
.holiday-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line-light);
}
.holiday-item:last-child { border-bottom: 0; }
.holiday-name { color: var(--navy-900); font-weight: 600; font-size: 0.96rem; }
.holiday-status { flex: 0 0 auto; color: var(--ink-700); font-size: 0.82rem; font-weight: 600; text-align: right; }
.holiday-status.is-early { color: var(--brand-blue); }
.holiday-foot { margin-top: 2rem; color: var(--ink-700); text-align: center; }
@media (max-width: 900px) { .holiday-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .holiday-grid { grid-template-columns: 1fr; } }

.uw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.uw-card {
  background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.uw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.uw-logo { height: 56px; display: flex; align-items: center; justify-content: flex-start; }
.uw-logo img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; }
.uw-card figcaption { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--navy-900); line-height: 1.3; }
.uw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.uw-points li { position: relative; padding-left: 1.25rem; color: var(--ink-700); font-size: 0.94rem; line-height: 1.45; }
.uw-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); }
.uw-note { max-width: 640px; margin: 2.2rem auto 0; text-align: center; color: var(--ink-700); line-height: 1.6; }
@media (max-width: 780px) { .uw-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   ROUND 2 (Spencer, 2026-07-31) — boxed CTAs, heather-grey nav, shorter blue
   bar, trimmer footer, home board+photo, Earnest Money cues, team modal.
   Appended last so these win over earlier rules.
   ========================================================================== */

/* Boxed buttons (Proper Title style) — drop the pill/green-circle look */
.btn { border-radius: 8px; }
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #37627a; box-shadow: 0 10px 24px -14px rgba(65,116,141,0.7); }
.btn-primary { color: #fff; font-weight: 600; }

/* Header "Order Title" — outlined box, white inside, brand-blue border + text */
.btn-order {
  background: #fff; color: var(--brand-blue); font-weight: 700;
  padding: 0.6rem 1.15rem; border-radius: 8px; font-size: 0.92rem;
  border: 1.5px solid var(--brand-blue); white-space: nowrap;
}
.btn-order:hover { background: var(--brand-blue); color: #fff; transform: translateY(-1px); }

/* Nav links → heather grey (a touch lighter than dark grey) */
.nav-link { color: #6b7480; }
.nav-link:hover { color: var(--brand-blue); }

/* Earnest Money nav item: small Earnnest logo + external-link arrow */
.nav-link-emd { gap: 0.4rem; }
.emd-logo { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.ext-arrow { width: 12px; height: 12px; opacity: 0.75; }

/* Shorter blue bar on interior pages */
.page-hero { padding: clamp(2.4rem, 4.2vw, 3.4rem) 0 clamp(2rem, 3.4vw, 2.8rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

/* Footer — shorter, clearly separated from the content above */
.footer {
  background: #2f5567;               /* deeper than the #41748D hero so it reads as a distinct band */
  padding: clamp(2.2rem, 4vw, 3rem) 0 1.5rem;
  border-top: 3px solid var(--brand-blue);
}
.footer-grid { grid-template-columns: 1.7fr 1fr 1.3fr; gap: 2rem; }
.footer-bottom { margin-top: 1.8rem; padding-top: 1.1rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Home hero → split-flap board beside the office photo */
.home-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; }
.home-board-col { display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3vh, 2.2rem); text-align: center; }
.home-photo-col { position: relative; }
.home-photo {
  width: 100%; height: clamp(320px, 52vh, 560px); object-fit: cover;
  object-position: 50% 42%;   /* favor the skyline + Wasatch, not the foreground */
  border-radius: var(--radius-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-photo-col { display: none; }   /* keep the board the star on phones */
}

/* Clickable team cards + bio modal */
.team-card.is-clickable { cursor: pointer; }
.team-card.is-clickable:hover .team-photo { transform: scale(1.03); }
.team-photo { transition: transform 0.3s var(--ease); }
.team-contact { margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-500); line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.team-contact a { color: var(--ink-700); transition: color 0.2s; }
.team-contact a:hover { color: var(--brand-blue); }
.team-lang { display: block; margin-top: 0.6rem; padding-top: 0.55rem; border-top: 1px solid var(--line-light); font-size: 0.78rem; font-weight: 600; font-style: italic; color: var(--brand-blue); }
.team-lang-modal { border-top: 0; padding-top: 0; margin: 1.1rem 0 0; font-size: 0.92rem; }
.team-contact .team-email { font-size: 0.78rem; }
.ph-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); vertical-align: text-top; }
/* Want to join our team? card */
.team-join { cursor: pointer; }
.team-join-wrap { display: grid; place-items: center; aspect-ratio: 60 / 65; background: linear-gradient(160deg, rgba(65,116,141,0.10), rgba(20,184,166,0.10)); }
.team-join-plus { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--brand-blue); opacity: 0.75; }
.team-join:hover .team-join-plus { opacity: 1; }
.team-modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(14, 34, 51, 0.62); backdrop-filter: blur(4px);
}
.team-modal.open { display: flex; }
.team-modal-box {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-card);
}
.team-modal-box img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; margin-bottom: 1rem; }
.team-modal-box h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.team-modal-role { color: var(--brand-blue); font-weight: 600; margin-bottom: 1rem; }
.team-modal-bio { color: var(--ink-700); line-height: 1.65; }
.team-modal-bio p { margin-bottom: 0.8rem; }
.team-modal-contact { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-light); font-size: 0.92rem; color: var(--ink-700); }
.team-modal-contact a { color: var(--teal-600); }
.team-modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line-light); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-700);
}
.team-modal-close:hover { background: var(--paper-2); }

/* Security page blocks */
.sec-block { max-width: 760px; margin: 0 auto 2.2rem; }
.sec-block h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sec-block > p { color: var(--ink-700); margin-bottom: 0.8rem; }

/* Contact page — prominent contact lines */
.contact-primary { display: flex; flex-direction: column; gap: 1.15rem; }
.contact-line { display: flex; align-items: center; gap: 1rem; color: var(--ink-900); }
.contact-line small { display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.22rem; }
.contact-line b { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; line-height: 1.4; }
.contact-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(65,116,141,0.10); color: var(--brand-blue); }
a.contact-line:hover b { color: var(--brand-blue); }
.contact-note { margin-top: 0.6rem; color: var(--ink-700); line-height: 1.6; }

/* Contact page: give the form the wider share so fields read professionally */
.contact-grid { grid-template-columns: 0.82fr 1.18fr; }
.contact-form-card { margin: 0; max-width: none; }
.form-card-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.form-card-sub { color: var(--ink-700); line-height: 1.55; margin-bottom: 1.4rem; font-size: 0.95rem; }
.form-group .opt { font-weight: 400; color: var(--ink-500); font-size: 0.9em; }
/* Order-form select: custom chevron aligned to match the date field's icon inset */
.form-group select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2348586a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 14px;
  padding-right: 2.5rem;
}
/* Styled "Choose file" button — matches the site's button language; native text hidden */
.form-group input.file-hidden { position: absolute; width: 1px; height: 1px; min-width: 0; max-width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.file-field { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.file-choose {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: #fff;
  background: var(--brand-blue); border: 1px solid var(--brand-blue); border-radius: 10px;
  padding: 0.65rem 1.15rem; transition: background 0.2s, transform 0.2s;
}
.file-choose:hover { background: var(--brand-blue-600, #35617a); transform: translateY(-1px); }
.file-choose svg { width: 16px; height: 16px; }
.file-hidden:focus-visible + .file-field .file-choose, .file-choose:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.file-name { font-size: 0.9rem; color: var(--ink-700); overflow-wrap: anywhere; }
.file-name:empty { display: none; }
.file-note { display: block; margin-top: 0.55rem; font-size: 0.8rem; color: var(--ink-500); line-height: 1.45; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Calculators: on-page tool toggle removed — each calc is reached from the
   Calculators nav dropdown (Rate Quote / Seller Net). */
.calc-toggle { display: none; }
.calc-more { margin: 0.5rem 0 1.2rem; border: 1px solid var(--line-light); border-radius: var(--radius-sm); background: #fff; }
.calc-more > summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 600; color: var(--brand-blue); list-style: none; }
.calc-more > summary::-webkit-details-marker { display: none; }
.calc-more > summary::before { content: "+ "; font-weight: 700; }
.calc-more[open] > summary::before { content: "– "; }
.calc-more .calc-row2 { padding: 0 1.1rem; }
.calc-more[open] { padding-bottom: 0.8rem; }

/* Order-CTA separator band (sits between page content and the footer) */
.order-band { background: var(--brand-blue); color: #fff; }
.order-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.6rem, 3vw, 2.4rem) 0; }
.order-band-text h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.25rem; }
.order-band-text p { color: #ffffff; margin: 0; }
.btn-order-lg { background: #fff; color: var(--brand-blue); font-weight: 700; padding: 0.9rem 1.6rem; border-radius: 8px; border: 1px solid #fff; white-space: nowrap; }
.btn-order-lg:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.btn-order-lg svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .order-band-inner { flex-direction: column; align-items: flex-start; } .btn-order-lg { width: 100%; justify-content: center; } }

/* ===== Language switch (header) + one-time Spanish offer banner ===== */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.7rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--navy-700); background: transparent; border: 1px solid var(--line-light);
  white-space: nowrap; text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-switch svg { width: 15px; height: 15px; flex: 0 0 auto; }
.lang-switch:hover, .lang-switch:focus-visible { color: var(--teal-600); border-color: rgba(42, 143, 137, 0.45); background: rgba(42, 143, 137, 0.08); }
@media (max-width: 560px) { .lang-switch { padding: 0.34rem 0.55rem; } .lang-switch svg { width: 14px; height: 14px; } }
@media (max-width: 380px) { .lang-switch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .lang-switch { padding: 0.4rem; } }

.lang-banner {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 0.75rem;
  max-width: calc(100% - 2rem); padding: 0.6rem 0.6rem 0.6rem 1rem;
  background: var(--navy-900); color: #fff; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(7, 17, 31, 0.35);
  font-size: 0.92rem; line-height: 1.3;
}
.lang-banner-go {
  flex: 0 0 auto; padding: 0.45rem 0.85rem; border-radius: 8px;
  background: var(--teal-600); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.lang-banner-go:hover { background: var(--teal-500, #37b3ab); }
.lang-banner-x { flex: 0 0 auto; background: none; border: 0; color: rgba(255,255,255,0.75); font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.lang-banner-x:hover { color: #fff; }
/* Sit above the mobile quick-action bar when it is showing */
@media (max-width: 900px) { .lang-banner { bottom: calc(64px + 0.75rem); } }


/* ============================================================================
   SEO/AEO pass (2026-09-02): on-the-record statement, guides, takeaways, footer
   ========================================================================== */
.statement { padding-block: clamp(2.5rem, 5vw, 4rem); }
.statement-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.statement .prose p { font-size: 1.08rem; }
.statement-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.statement-links li a { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.9rem; border: 1px solid var(--line, #d9e2e7); border-radius: 8px; text-decoration: none; color: inherit; font-weight: 600; }
.statement-links li a:hover, .statement-links li a:focus-visible { border-color: var(--teal, #2a8f89); }
.statement-links li a small { font-weight: 500; opacity: 0.7; }
.review-badge { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid var(--line, #d9e2e7); text-decoration: none; color: inherit; font-weight: 600; }
.review-badge .stars { color: #d9a441; letter-spacing: 0.05em; }
.takeaways { border-left: 4px solid var(--teal, #2a8f89); background: rgba(42,143,137,0.07); border-radius: 0 8px 8px 0; padding: 1.1rem 1.3rem; margin: 1.5rem 0 2rem; }
.takeaways h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.6rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin: 0.35rem 0; }
.guide-meta { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.guide-body { max-width: 72ch; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.guide-body th, .guide-body td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line, #d9e2e7); vertical-align: top; }
.guide-body th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.guide-body .table-wrap { overflow-x: auto; }
.guide-body .lead { font-size: 1.15rem; font-weight: 500; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line, #d9e2e7); border-radius: 8px; text-decoration: none; color: inherit; }
.related a strong { display: block; margin-bottom: 0.25rem; }
.related a:hover, .related a:focus-visible { border-color: var(--teal, #2a8f89); }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.guides-grid a { display: block; padding: 1.3rem; border: 1px solid var(--line, #d9e2e7); border-radius: 10px; text-decoration: none; color: inherit; }
.guides-grid a:hover, .guides-grid a:focus-visible { border-color: var(--teal, #2a8f89); }
.guides-grid h3 { margin: 0.3rem 0 0.5rem; font-size: 1.15rem; }
.guides-grid p { margin: 0; opacity: 0.85; }
.footer .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
@media (max-width: 900px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } .statement-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer .footer-grid { grid-template-columns: 1fr; } }
