/* ============================================================
   KRASH APP — Premium Design System
   Black / White / Precise Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Palette */
  --black:    #000000;
  --gray-950: #0A0A0A;
  --gray-900: #111111;
  --gray-800: #1C1C1C;
  --gray-700: #2E2E2E;
  --gray-600: #444444;
  --gray-500: #6B6B6B;
  --gray-400: #909090;
  --gray-300: #B8B8B8;
  --gray-200: #D4D4D4;
  --gray-100: #E8E8E8;
  --gray-50:  #F5F5F5;
  --gray-25:  #FAFAFA;
  --white:    #FFFFFF;

  /* Semantic aliases kept for HTML compatibility */
  --navy:        var(--gray-900);
  --navy-light:  var(--gray-800);
  --navy-dark:   var(--black);
  --amber:       var(--white);
  --amber-light: var(--gray-50);
  --amber-dark:  var(--gray-600);
  --red:         var(--gray-700);
  --red-light:   var(--gray-600);
  --green:       var(--gray-700);
  --green-light: var(--gray-600);
  --blue:        var(--gray-900);
  --blue-light:  var(--gray-50);

  --bg:           var(--white);
  --bg-white:     var(--white);
  --bg-gray:      var(--gray-25);
  --bg-dark:      var(--black);
  --border:       var(--gray-200);
  --border-light: var(--gray-100);

  --text:       var(--gray-900);
  --text-muted: var(--gray-500);
  --text-light: var(--gray-400);
  --text-white: var(--white);

  /* Type scale */
  --text-2xs: 10px;
  --text-xs:  12px;
  --text-sm:  13px;
  --text-base: 15px;
  --text-md:  17px;
  --text-lg:  20px;
  --text-xl:  24px;
  --text-2xl: 30px;
  --text-3xl: 38px;
  --text-4xl: 52px;
  --text-5xl: 68px;
  --text-6xl: 90px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius — refined, less pill-heavy */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows — subtle, precise */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg: 0 24px 56px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.16,1,.3,1);
  --transition: 180ms var(--ease);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4rem; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--black); color: var(--white); }

/* ── Layout ──────────────────────────────────────────────── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 var(--space-6); }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }

.grid-2    { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
.grid-3    { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.grid-4    { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: var(--space-5); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky; top: 39px; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  height: var(--header-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--space-6); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-size: 17px; font-weight: 800; color: var(--black);
  letter-spacing: -0.5px; line-height: 1;
}
.nav-logo-text span { color: var(--gray-500); font-weight: 500; }
.nav-logo-prefix {
  font-size: 11px; font-weight: 800; color: var(--black);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-right: 0px; line-height: 1;
  border-right: 2px solid var(--gray-200);
  padding-right: 1px;
}
.nav-menu {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.nav-menu a {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--gray-500); padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--black); background: var(--gray-50); }
.nav-cta {
  background: var(--black) !important; color: var(--white) !important;
  font-weight: 600 !important; font-size: var(--text-sm) !important;
  padding: 9px 18px !important; border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--black) !important;
  transition: all var(--transition) !important;
  letter-spacing: -0.1px;
  margin-left: 20px;
}
.nav-cta:hover { background: var(--gray-800) !important; border-color: var(--gray-800) !important; }

/* ── Spanish nav — tighter font + allow 2-row wrap ───────── */
body.lang-es .site-header { height: auto; min-height: var(--header-h); padding: 6px 0; }
body.lang-es .nav-inner { flex-wrap: wrap; row-gap: 4px; }
body.lang-es .nav-menu { flex-wrap: wrap; row-gap: 2px; }
body.lang-es .nav-menu a { font-size: 12px; padding: 5px 9px; }
body.lang-es .nav-cta { font-size: 11.5px !important; padding: 7px 13px !important; margin-left: 168px; }
body.lang-es .nav-logo-text { font-size: 15px; }
body.lang-es .nav-logo-prefix { font-size: 10px; }
/* Bump mobile-nav top offset so it clears the taller translated header */
body.lang-es .mobile-nav { top: auto; }
/* State cards — unified size for all state boxes in Spanish */
body.lang-es .state-abbr,
body.lang-es .state-mini-card .state-abbr { font-size: 20px; letter-spacing: -0.5px; }
body.lang-es .state-name,
body.lang-es .state-mini-card .state-name { font-size: 8px; letter-spacing: 0; line-height: 1.3; white-space: normal; }
body.lang-es .state-card { padding: 10px 6px; }

/* Resource library category pill filters — tighter in Spanish */
body.lang-es .pill { font-size: 10px !important; padding: 5px 10px !important; letter-spacing: 0; }
body.lang-es .pill-nav { gap: 4px; }
/* Card image bg watermark — scale down so translated words fit */
body.lang-es .article-card-img .bg-label { font-size: 52px; letter-spacing: -5px; }
/* Card category tag in top-left corner */
body.lang-es .article-card-img .card-cat-tag { font-size: 8px; padding: 2px 6px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--black); transition: all 250ms ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white); z-index: 99;
  padding: var(--space-6); flex-direction: column; gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--gray-100);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: var(--text-md); font-weight: 600; color: var(--text);
  padding: 14px 16px; border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--gray-50);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--gray-25); }

/* ── Alert Bar ───────────────────────────────────────────── */
.alert-bar {
  background: var(--black); color: var(--white);
  padding: 11px 0; text-align: center;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.2px;
}
.alert-bar a { color: var(--gray-300); transition: color var(--transition); }
.alert-bar a:hover { color: var(--white); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: var(--space-24) 0 var(--space-20);
  position: relative; overflow: hidden;
}
/* Noise texture */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  opacity: .4;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 200px;
}
/* Subtle grid lines */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero > * { position: relative; z-index: 1; }
.hero .container { position: relative; z-index: 1; }

.hero-overline {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-2xs); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-8);
}
.hero-overline::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(255,255,255,.35);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: var(--space-8);
  max-width: 820px;
}
.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,.9);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.6);
  max-width: 560px; line-height: 1.7;
  font-weight: 400;
  margin-bottom: var(--space-10);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: var(--text-sm);
  line-height: 1; letter-spacing: -0.1px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
/* White on dark */
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: var(--gray-100); border-color: var(--gray-100); color: var(--black); }
/* Ghost on dark */
.btn-secondary { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25); }
.btn-secondary:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.5); color: var(--white); }
/* Black on light */
.btn-navy { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-navy:hover { background: var(--gray-800); border-color: var(--gray-800); color: var(--white); }
/* Outlined on light */
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { background: var(--gray-25); border-color: var(--black); }
.btn-sm  { font-size: var(--text-xs); padding: 9px 16px; }
.btn-lg  { font-size: var(--text-base); padding: 16px 32px; font-weight: 700; }
.btn-red { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-red:hover { background: var(--gray-800); }

/* ── Marquee / Ticker ────────────────────────────────────── */
.ticker-wrap {
  background: var(--black); color: rgba(255,255,255,.5);
  padding: 14px 0; overflow: hidden; border-top: 1px solid var(--gray-800);
}
.ticker-track {
  display: flex; gap: 0;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: var(--space-5);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding-right: var(--space-10);
  white-space: nowrap;
}
.ticker-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.25); flex-shrink: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sections ────────────────────────────────────────────── */
.section    { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }
.section-dark  { background: var(--black); color: var(--white); }
.section-gray  { background: var(--gray-25); }
.section-amber { background: var(--gray-50); }

/* Section Header — editorial style */
.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-12); }
.section-header.left { text-align: left; max-width: 100%; margin-bottom: var(--space-10); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-2xs); font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px;
  background: var(--gray-300);
}
.section-dark .eyebrow { color: rgba(255,255,255,.35); }
.section-dark .eyebrow::before { background: rgba(255,255,255,.2); }
.section-amber .eyebrow { color: var(--gray-500); }

h2.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  color: var(--text); margin-bottom: var(--space-4);
}
.section-dark h2.section-title { color: var(--white); }
.section-amber h2.section-title { color: var(--black); }
.section-desc {
  font-size: var(--text-md); color: var(--text-muted);
  line-height: 1.7; font-weight: 400;
}
.section-dark .section-desc { color: rgba(255,255,255,.5); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gray-300); box-shadow: var(--shadow); transform: translateY(-1px); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4); font-size: 20px; flex-shrink: 0;
  background: var(--gray-50); color: var(--gray-700);
}
.icon-amber { background: var(--gray-50); color: var(--gray-800); }
.icon-navy  { background: var(--gray-50); color: var(--gray-900); }
.icon-red   { background: var(--gray-50); color: var(--gray-700); }
.icon-green { background: var(--gray-50); color: var(--gray-700); }
.icon-blue  { background: var(--gray-50); color: var(--gray-800); }
.card h3 {
  font-size: var(--text-md); font-weight: 700; color: var(--text);
  margin-bottom: var(--space-2); line-height: 1.35; letter-spacing: -0.3px;
}
.card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; }
.card-arrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-xs); font-weight: 600; color: var(--gray-500);
  margin-top: var(--space-4); letter-spacing: 0.2px;
  transition: gap var(--transition), color var(--transition);
}
.card:hover .card-arrow { gap: 9px; color: var(--black); }

/* ── Hub Cards (homepage 2×2) ────────────────────────────── */
.hub-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.hub-card::before {
  content: attr(data-num);
  position: absolute; top: var(--space-8); right: var(--space-8);
  font-size: 80px; font-weight: 900; line-height: 1;
  color: var(--gray-50); letter-spacing: -3px;
  transition: color var(--transition);
}
.hub-card:hover { border-color: var(--black); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hub-card:hover::before { color: var(--gray-100); }
.hub-card:hover .hub-card-link { gap: 10px; }
.hub-card-icon { font-size: 28px; margin-bottom: var(--space-5); }
.hub-card h3 {
  font-size: var(--text-xl); font-weight: 800;
  color: var(--black); letter-spacing: -0.5px;
  margin-bottom: var(--space-3); line-height: 1.2;
}
.hub-card p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.65; flex: 1; }
.hub-card-link {
  margin-top: var(--space-6);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--black);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition);
}
.hub-card:hover .hub-card-link { gap: 10px; }

/* ── Article Cards ───────────────────────────────────────── */
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.article-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Typographic card header — premium editorial feel */
.article-card-img {
  height: 190px; background: var(--gray-950);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden; padding: var(--space-5);
}
.article-card-img .bg-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; font-weight: 900; letter-spacing: -4px;
  color: rgba(255,255,255,1); text-transform: uppercase;
  line-height: 1; text-align: center; padding: 0 var(--space-4);
  pointer-events: none; user-select: none;
}
.article-card-img .card-icon-lg {
  position: relative; z-index: 1;
  font-size: 36px; line-height: 1;
  filter: grayscale(0);
}
.article-card-img .card-cat-tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 8px; border-radius: 3px;
}
/* Each category gets a distinct dark shade */
.article-card-img.cat-immediate { background: #0A0A0A; }
.article-card-img.cat-insurance  { background: #111116; }
.article-card-img.cat-legal      { background: #0E0E0E; }
.article-card-img.cat-medical    { background: #0C0F0E; }
.article-card-img.cat-settlement { background: #000000; }
.article-card-img.cat-settlement .bg-label,
.article-card-img.cat-attorney .bg-label {
  letter-spacing: -1px;
  color: rgba(255,255,255,1);
}
.article-card-img.cat-uninsured  { background: #0A0C10; }
.article-card-img.cat-uninsured .bg-label { letter-spacing: 2px; font-size: 68px; }
.article-card-img.cat-attorney   { background: #000000; }

.article-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.article-tag {
  font-size: var(--text-2xs); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: var(--space-3);
}
.article-card-body h3 {
  font-size: var(--text-md); font-weight: 700; color: var(--gray-900);
  line-height: 1.4; margin-bottom: var(--space-3);
  letter-spacing: -0.2px;
}
.article-card-body p { font-size: var(--text-base); color: var(--gray-600); line-height: 1.7; flex: 1; }
.article-meta {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--gray-100);
  font-size: var(--text-xs); color: var(--gray-500); font-weight: 600;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8); text-align: center;
}
.stat-number {
  font-size: 52px; font-weight: 900;
  color: var(--white); letter-spacing: -2px; line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: var(--text-sm); color: rgba(255,255,255,.45); font-weight: 500; line-height: 1.5; }

/* ── Big number section (editorial stats) ────────────────── */
.big-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-100);
}
.big-stat {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.big-stat:last-child { border-right: none; }
.big-stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900; letter-spacing: -3px; line-height: 1;
  color: var(--black); display: block; margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.big-stat-label { font-size: var(--text-sm); color: var(--gray-500); font-weight: 500; line-height: 1.5; }

/* ── FAQ / Accordion ─────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.faq-item:first-child { border-top: 1px solid var(--gray-100); }
.faq-item.open { background: var(--gray-25); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-6) 0;
  cursor: pointer; user-select: none;
  background: none; border: none; width: 100%;
  text-align: left; font-family: inherit;
}
.faq-question h3 {
  font-size: var(--text-base); font-weight: 600; color: var(--text);
  line-height: 1.45; flex: 1; letter-spacing: -0.1px;
}
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gray-100); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--black); font-weight: 700;
  transition: transform 250ms var(--ease), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--black); color: var(--white); }
.faq-answer {
  display: none;
  padding: 0 0 var(--space-6);
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-answer p { margin-bottom: var(--space-4); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin: var(--space-2) 0 var(--space-4) 1.2rem; }
.faq-answer li { margin-bottom: var(--space-2); }

/* ── Checklist ───────────────────────────────────────────── */
.checklist-phase {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px;
  transition: border-color var(--transition);
}
.checklist-phase.open { border-color: var(--gray-300); }
.checklist-phase-header {
  padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; gap: var(--space-4);
  cursor: pointer; user-select: none;
}
.phase-badge {
  padding: 3px 10px; border-radius: 3px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
}
.phase-scene  { background: var(--black); color: var(--white); }
.phase-24h    { background: var(--gray-800); color: var(--white); }
.phase-week   { background: var(--gray-200); color: var(--gray-700); }
.phase-month  { background: var(--gray-100); color: var(--gray-600); }
.checklist-phase-title { font-size: var(--text-md); font-weight: 700; color: var(--text); flex: 1; letter-spacing: -0.2px; }
.phase-progress { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.phase-chevron {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: transform var(--transition); flex-shrink: 0;
}
.checklist-phase.open .phase-chevron { transform: rotate(180deg); }
.checklist-items { padding: 0 var(--space-6) var(--space-5); display: none; }
.checklist-phase.open .checklist-items { display: block; }
.checklist-item {
  display: flex; align-items: flex-start;
  gap: var(--space-4); padding: 13px 0;
  border-bottom: 1px solid var(--gray-50);
  transition: opacity var(--transition);
}
.checklist-item:last-child { border-bottom: none; }
.check-input {
  width: 20px; height: 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.check-input.checked { background: var(--black); border-color: var(--black); }
.check-input.checked::after { content: '✓'; color: var(--white); font-size: 11px; font-weight: 700; }
.check-label { flex: 1; }
.check-label strong { font-size: var(--text-base); color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; letter-spacing: -0.1px; }
.check-label p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; line-height: 1.55; }
.checklist-item.done .check-label strong { color: var(--gray-400); text-decoration: line-through; }
.checklist-item.done { opacity: .6; }

/* Progress Bar */
.progress-bar-wrap { background: var(--gray-100); border-radius: var(--radius-full); height: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--black); border-radius: var(--radius-full); transition: width 350ms var(--ease); }

/* ── Step List ───────────────────────────────────────────── */
.step-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.step-item { display: flex; gap: var(--space-5); position: relative; padding-bottom: var(--space-8); }
.step-item:last-child { padding-bottom: 0; }
.step-item:not(:last-child)::before {
  content: ''; position: absolute;
  left: 17px; top: 38px; bottom: 0;
  width: 1px; background: var(--gray-100);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
  position: relative; z-index: 1;
}
.step-num.amber, .step-num.red, .step-num.green { background: var(--black); color: var(--white); }
.step-content { flex: 1; padding-top: 6px; }
.step-content h4 { font-size: var(--text-base); font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -0.2px; }
.step-content p { font-size: var(--text-sm); color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ── CTA Strip ───────────────────────────────────────────── */
.cta-strip {
  background: var(--black); padding: var(--space-20) 0;
  text-align: center; color: var(--white);
}
.cta-strip h2 { font-size: clamp(22px, 4vw, 38px); font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.cta-strip p { font-size: var(--text-md); color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto var(--space-8); line-height: 1.7; }

/* Inline CTA */
.inline-cta {
  background: var(--black); border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  text-align: center; color: var(--white); margin: var(--space-12) 0;
}
.inline-cta h3 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: var(--space-3); letter-spacing: -0.5px; }
.inline-cta p { font-size: var(--text-base); color: rgba(255,255,255,.55); margin-bottom: var(--space-6); line-height: 1.65; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label { font-size: var(--text-xs); font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; letter-spacing: 0.2px; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 16px; /* ≥16px prevents iOS Safari auto-zoom on focus */
  color: var(--text); background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--black); }
.form-input::placeholder { color: var(--gray-300); }
select.form-input { cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); }

/* ── Search Bar ──────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 5px 5px 5px 18px;
  max-width: 520px; width: 100%;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: rgba(255,255,255,.3); }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-sans); font-size: 16px; /* ≥16px prevents iOS Safari auto-zoom */
  color: var(--white); background: transparent;
}
.search-bar input::placeholder { color: rgba(255,255,255,.3); }
.search-bar button {
  background: var(--white); color: var(--black);
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: var(--text-sm);
  font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background var(--transition);
}
.search-bar button:hover { background: var(--gray-100); }

/* ── Trust Bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--gray-25);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 18px 0;
}
.trust-items { display: flex; align-items: center; justify-content: center; gap: var(--space-10); flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; color: var(--gray-500);
  letter-spacing: 0.2px;
}
.trust-icon { font-size: 14px; }

/* ── State Cards ─────────────────────────────────────────── */
.state-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: var(--space-5);
  text-align: center; text-decoration: none; color: inherit; display: block;
  transition: all var(--transition);
}
.state-card:hover { border-color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow); }
.state-abbr { font-size: 28px; font-weight: 900; color: var(--black); line-height: 1; margin-bottom: 4px; letter-spacing: -1px; }
.state-name { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.state-card.featured { border-color: var(--black); border-width: 1.5px; }
.state-card.coming-soon { opacity: .38; cursor: default; }
.state-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--gray-100); }
.coming-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--gray-300); }

/* ── Match Form Card ─────────────────────────────────────── */
.match-card {
  background: var(--white); color: var(--black); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 40px;
  max-width: 560px; margin: 0 auto;
}
.match-card h2 { font-size: var(--text-2xl); font-weight: 800; color: var(--black); margin-bottom: var(--space-2); letter-spacing: -0.5px; }
.match-card .subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-8); }

/* ── Pills ───────────────────────────────────────────────── */
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-8); }
.pill {
  padding: 7px 14px; border-radius: 4px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  color: var(--gray-500); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.pill:hover, .pill.active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ── TOC ─────────────────────────────────────────────────── */
.toc-card {
  background: var(--gray-25); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.toc-card h4 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-400); margin-bottom: var(--space-4); }
.toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.toc-list a {
  font-size: var(--text-sm); font-weight: 500; color: var(--gray-500);
  padding: 7px 10px; border-radius: var(--radius-sm); display: block;
  border-left: 2px solid transparent; transition: all var(--transition);
}
.toc-list a:hover, .toc-list a.active { color: var(--black); background: var(--white); border-left-color: var(--black); }

/* ── Article Body ────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-12); align-items: start; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 39px + var(--space-6)); } /* 39px = lang bar height */
.article-body h2 { font-size: var(--text-2xl); font-weight: 800; color: var(--text); margin: var(--space-12) 0 var(--space-4); letter-spacing: -0.5px; }
.article-body h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text); margin: var(--space-8) 0 var(--space-3); }
.article-body p { font-size: var(--text-md); line-height: 1.75; color: var(--text); margin-bottom: var(--space-4); }
.article-body ul, .article-body ol { font-size: var(--text-base); line-height: 1.75; color: var(--text); margin-bottom: var(--space-4); }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { background: var(--gray-25); border-left: 3px solid var(--black); padding: var(--space-4) var(--space-6); margin: var(--space-6) 0; font-size: var(--text-md); font-style: italic; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.callout { background: var(--gray-25); border: 1px solid var(--gray-200); border-left: 3px solid var(--gray-600); padding: var(--space-4) var(--space-6); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: var(--space-6) 0; }
.callout-red { border-left-color: var(--black); background: var(--gray-50); }
.callout-green { border-left-color: var(--gray-700); }
.callout h4 { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--black); margin-bottom: 6px; }
.callout p { margin: 0; font-size: var(--text-sm); line-height: 1.65; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,.5); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; color: rgba(255,255,255,.35); }

/* Centered logo at the very bottom of every page */
.footer-logo-center {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: var(--space-6);
}
.footer-logo-center img {
  height: 44px; width: auto;
  display: inline-block;
  opacity: 0.85;
  transition: opacity 250ms ease;
}
.footer-logo-center img:hover { opacity: 1; }
.footer-logo-center::before {
  content: "Powered by";
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.footer-col h4 { font-size: var(--text-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.6); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: var(--space-6); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,.2); }
.footer-legal { display: flex; gap: var(--space-6); }
.footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,.2); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,.6); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.18); margin-top: var(--space-5); line-height: 1.65; border-top: 1px solid rgba(255,255,255,.04); padding-top: var(--space-5); }

/* ── Tags ────────────────────────────────────────────────── */
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 3px; background: var(--gray-50); color: var(--gray-500); }
.tag-navy, .tag-amber, .tag-red, .tag-green { background: var(--gray-50); color: var(--gray-700); }

/* ── Utility ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; } .mt { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; } .mb { margin-bottom: 24px; } .mb-lg { margin-bottom: 40px; }
.divider { height: 1px; background: var(--gray-100); margin: var(--space-10) 0; }
mark { background: var(--gray-100); color: var(--black); padding: 1px 4px; border-radius: 3px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-logo-prefix { display: none; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .big-stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .mission-grid { grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .big-stat-grid { grid-template-columns: repeat(2,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-16) 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .match-card { padding: var(--space-6) var(--space-5); }
  .trust-items { gap: var(--space-6); }
  .container, .container-sm, .container-lg { padding: 0 var(--space-4); }
  .hub-card::before { font-size: 56px; }
  .ticker-wrap { display: none; }
  .hub-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .state-spotlight-grid { grid-template-columns: 1fr; }
  .state-mini-grid { grid-template-columns: repeat(3,1fr); }
  .cta-strip-inner { flex-direction: column; text-align: center; }
  .cta-strip-action { align-items: center; width: 100%; }
  .cta-strip-action .btn { width: 100%; justify-content: center; }
  .article-card-img { height: 140px; }
  .states-grid { grid-template-columns: repeat(4,1fr) !important; }
}
@media (max-width: 480px) {
  /* Hero */
  .hero h1 { letter-spacing: -2px; font-size: clamp(32px,9vw,48px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Stats — force single column so numbers never overflow */
  .big-stat-grid { grid-template-columns: 1fr; }

  /* State grids */
  .state-mini-grid { grid-template-columns: repeat(2,1fr); }
  .states-grid { grid-template-columns: repeat(3,1fr) !important; }

  /* Cards */
  .hub-card { padding: var(--space-5); }
  .hub-card::before { font-size: 44px; }

  /* Match / form card — reduce padding so inputs aren't cramped */
  .match-card { padding: var(--space-5) var(--space-4) !important; }

  /* Section & typography */
  .section-title { font-size: clamp(22px,5vw,36px); }
  .section { padding: var(--space-10) 0; }

  /* Footer */
  .footer-logo-center::before { font-size: 10px; }
  .footer-logo-center img { height: 36px; }

  /* State card text — bump up from 11px so it's legible */
  .state-mini-card .state-name { font-size: 12px; }
  .state-mini-card .state-abbr { font-size: 24px; }

  /* Language bar — tighten padding, shrink label on tiny screens */
  #lang-bar { padding: 8px 14px !important; gap: 10px !important; }
  #lang-bar span { font-size: 11px !important; letter-spacing: 0.6px !important; }
  #lang-bar button { padding: 6px 10px !important; font-size: 11px !important; }

  /* SOL calculator inner padding */
  .sol-calc-inner { padding: 20px 16px !important; }

  /* Retention banner close button stays inline */
  .retention-banner { flex-wrap: wrap; gap: 8px; font-size: 13px; }

  /* Attorney match hero — let card go full width */
  .hero-split-grid .match-card { max-width: 100% !important; }

  /* Timeline phases stack cleanly */
  .timeline-phase { padding: var(--space-5); }
}
@media (max-width: 375px) {
  /* iPhone SE / small phones */
  .hero h1 { font-size: clamp(28px,9vw,40px); }
  .state-mini-grid { grid-template-columns: 1fr 1fr; }
  #lang-bar span { display: none; }
  #lang-bar { justify-content: center !important; }
  .container, .container-sm, .container-lg { padding: 0 12px; }
  .match-card { padding: var(--space-4) !important; }
  .big-stat-num { font-size: clamp(28px,8vw,44px); }
}
@media (max-width: 320px) {
  /* Very small / older Android phones */
  .hero h1 { font-size: 26px; letter-spacing: -1.5px; }
  .match-card { padding: 12px !important; }
  .container, .container-sm, .container-lg { padding: 0 10px; }
  .btn { font-size: 13px; padding: 10px 16px; }
  .section-title { font-size: 20px; }
  #lang-bar { padding: 6px 10px !important; }
  #lang-bar button { padding: 5px 8px !important; font-size: 10px !important; }
  /* Hub card: trim padding and shrink background number to prevent overflow */
  .hub-card { padding: 16px; }
  .hub-card::before { font-size: 36px; }
  /* State grids: 2 columns is the minimum that's legible */
  .states-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .state-mini-grid { grid-template-columns: repeat(2, 1fr); }
  /* Form row must stack — prevents inputs from being <140px wide */
  .form-row { grid-template-columns: 1fr !important; }
  /* Pill nav: smaller buttons so they fit without horizontal scroll */
  .pill { font-size: 11px !important; padding: 6px 10px !important; min-height: 38px; }
}

/* Print branding — hidden on screen, shown only when printing */
.print-brand-header { display: none; }
@media print {
  .print-brand-header {
    display: block;
    text-align: center;
    padding: 12px 0 16px;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
  }
  .print-brand-text {
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.5px; text-transform: uppercase; color: #000;
  }
  .print-brand-url {
    font-size: 11px; color: #555; margin-top: 4px;
  }
  .site-header, .site-footer, .no-print, .cta-strip, .inline-cta, .ticker-wrap, #lang-bar, #google_translate_element { display: none !important; }
  body { background: white; color: black; }
  .checklist-items { display: block !important; }
  .card, .checklist-phase { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Hub Grid (homepage 2×2) ─────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.hub-card-tag {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400);
  background: var(--gray-50); border: 1px solid var(--gray-100);
  padding: 3px 8px; border-radius: 3px;
  margin-bottom: var(--space-4);
}
.hub-card-title {
  font-size: var(--text-xl); font-weight: 800;
  color: var(--black); letter-spacing: -0.5px;
  margin-bottom: var(--space-3); line-height: 1.2;
}
.hub-card-desc {
  font-size: var(--text-sm); color: var(--gray-500); line-height: 1.65; flex: 1;
}
.hub-card-cta {
  margin-top: var(--space-6);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--gray-400);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--transition), gap var(--transition);
}
.hub-card:hover .hub-card-cta { color: var(--black); gap: 10px; }
.hub-card .hub-card-icon {
  font-size: 22px; font-weight: 900; color: var(--black);
  margin-bottom: var(--space-4); width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50); border-radius: var(--radius-sm);
}
@media (max-width: 768px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* ── Big stats on dark background ────────────────────────── */
.section-dark .big-stat-grid {
  border-top-color: rgba(255,255,255,.08);
}
.section-dark .big-stat {
  border-right-color: rgba(255,255,255,.08);
  border-bottom-color: rgba(255,255,255,.08);
}
.section-dark .big-stat-num { color: var(--white); }
.section-dark .big-stat-label { color: rgba(255,255,255,.4); }

/* ── Ticker separator ────────────────────────────────────── */
.ticker-sep {
  padding: 0 var(--space-6);
  color: rgba(255,255,255,.18);
  font-weight: 300; font-size: 18px; line-height: 1;
  align-self: center; flex-shrink: 0;
}

/* ── Hero trust strip ────────────────────────────────────── */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-trust-item {
  font-size: var(--text-xs); font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.2px;
  display: flex; align-items: center; gap: 8px;
}
.hero-trust-item::before {
  content: '✓';
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: rgba(255,255,255,.5); flex-shrink: 0;
}

/* ── State spotlight ─────────────────────────────────────── */
.state-spotlight-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  max-width: 920px; margin: 0 auto var(--space-8);
}
.state-spotlight-featured {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-decoration: none; color: var(--white);
  display: flex; flex-direction: column;
  transition: border-color var(--transition), background var(--transition);
}
.state-spotlight-featured:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.state-spotlight-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  margin-bottom: var(--space-4);
}
.state-spotlight-abbr {
  font-size: 72px; font-weight: 900; letter-spacing: -4px;
  line-height: 1; color: var(--white); margin-bottom: var(--space-2);
}
.state-spotlight-name {
  font-size: var(--text-lg); font-weight: 700; color: rgba(255,255,255,.6);
  margin-bottom: var(--space-6);
}
.state-spotlight-facts {
  list-style: none; padding: 0; flex: 1;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.state-spotlight-facts li {
  font-size: var(--text-sm); color: rgba(255,255,255,.4);
  padding-left: var(--space-4); position: relative; line-height: 1.5;
}
.state-spotlight-facts li::before {
  content: '—'; position: absolute; left: 0;
  color: rgba(255,255,255,.2);
}
.state-spotlight-cta {
  margin-top: var(--space-8);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.state-spotlight-featured:hover .state-spotlight-cta { color: var(--white); }
.state-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
}
.state-card-all {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: var(--space-5);
  text-align: center; text-decoration: none; color: var(--white); display: block;
  transition: all var(--transition);
}
.state-card-all:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.section-dark .state-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.section-dark .state-abbr { color: var(--white); }
.section-dark .state-name { color: rgba(255,255,255,.4); }
.section-dark .state-card:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.section-dark .state-card.coming-soon:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
@media (max-width: 768px) {
  .state-spotlight-grid { grid-template-columns: 1fr; }
  .state-mini-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mission grid ────────────────────────────────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  border-top: 1px solid var(--gray-100);
  padding-top: var(--space-10);
}
.mission-item {}
.mission-num {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--gray-300); margin-bottom: var(--space-4);
}
.mission-item h3 {
  font-size: var(--text-lg); font-weight: 800; color: var(--black);
  letter-spacing: -0.3px; margin-bottom: var(--space-3); line-height: 1.25;
}
.mission-item p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ── CTA strip variations ────────────────────────────────── */
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-12); flex-wrap: wrap;
  text-align: left; max-width: 900px; margin: 0 auto;
}
.cta-strip-inner h2 { margin-bottom: 10px; }
.cta-strip-inner p { margin: 0; max-width: 480px; }
.cta-strip-overline {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: var(--space-3);
}
.cta-strip-action { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.cta-sub-note {
  font-size: 11px; color: rgba(255,255,255,.3); margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .cta-strip-inner { text-align: center; justify-content: center; }
  .cta-strip-action { align-items: center; }
}

/* ── Form validation error states ───────────────────────── */
.form-input.error {
  border-color: #e02020 !important;
  background: #fff8f8;
}
.field-error {
  display: block;
  font-size: 12px;
  color: #e02020;
  font-weight: 500;
  margin-top: 5px;
}

/* ── Touch target improvements ───────────────────────────── */
.nav-menu a { min-height: 44px; display: flex; align-items: center; }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; }
.hub-card-cta { min-height: 44px; }
.faq-question { min-height: 48px; }
.check-input { min-width: 44px; min-height: 44px; }
.pill { min-height: 44px; display: inline-flex; align-items: center; }
.hamburger { min-width: 44px; min-height: 44px; justify-content: center; }
/* Expand tap area for small icon buttons without changing visual size */
.faq-icon { position: relative; }
.faq-icon::before { content: ''; position: absolute; inset: -10px; }
.phase-chevron { position: relative; }
.phase-chevron::before { content: ''; position: absolute; inset: -11px; }

/* ── Testimonial cards ───────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-5);
  box-shadow: var(--shadow);
}
.testimonial-stars { color: #F59E0B; font-size: 16px; letter-spacing: 2px; }
.testimonial-text {
  font-size: var(--text-base); color: var(--gray-700);
  line-height: 1.75; flex: 1;
  font-style: italic;
}
.testimonial-name { font-size: var(--text-sm); font-weight: 800; color: var(--black); }
.testimonial-detail { font-size: var(--text-xs); color: var(--gray-400); margin-top: 2px; }

/* ── Post-accident timeline ──────────────────────────────── */
.timeline-phase {
  padding: var(--space-8);
  border-right: 1px solid var(--gray-100);
  border-bottom: none;
}
.timeline-phase:last-child { border-right: none; }
.timeline-phase-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: var(--space-3);
}
.timeline-phase-title {
  font-size: var(--text-md); font-weight: 800;
  color: var(--black); margin-bottom: var(--space-3); line-height: 1.2;
}
.timeline-phase-desc { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }
@media (max-width: 768px) {
  .timeline-phase { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .timeline-phase:last-child { border-bottom: none; }
}

/* ── SOL calculator ──────────────────────────────────────── */
#sol-date::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.5; cursor: pointer; }
#sol-state option { background: #1a1a1a; color: white; }
@media (max-width: 600px) {
  .sol-calc-grid { grid-template-columns: 1fr !important; }
  .sol-calc-inner { padding: 24px 20px !important; }
}

/* ── Checklist retention banner ──────────────────────────── */
.retention-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--black); color: white;
  padding: 14px 20px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 200; white-space: nowrap;
  animation: slideUp 300ms ease;
}
.retention-banner a { color: white; font-weight: 700; text-decoration: underline; }
.retention-banner button { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1; }
@keyframes slideUp { from { opacity:0; transform: translateX(-50%) translateY(16px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@media (max-width: 600px) { .retention-banner { white-space: normal; left: 16px; right: 16px; transform: none; bottom: 16px; } }

/* ── Hero split grid (attorney-match 2-col hero) ─────── */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-split-grid .match-card { max-width: 600px; }
}

/* ── Two-column stacking grid (about page) ───────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Mobile: allow long button text to wrap ─────────── */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; line-height: 1.35; }
}

/* ── Mobile: tighten inline-cta padding ─────────────── */
@media (max-width: 768px) {
  .inline-cta { padding: var(--space-8) var(--space-5); }
  .inline-cta h3 { font-size: var(--text-xl); }
}

/* ── Mobile: checklist phase header wrapping ─────────── */
@media (max-width: 560px) {
  .checklist-phase-header { flex-wrap: wrap; row-gap: 6px; }
  .checklist-phase-header .progress-bar-wrap { display: none; }
  .checklist-phase-title { flex-basis: 100%; order: -1; }
}

/* ── Mobile: reduce about transparency box padding ───── */
@media (max-width: 768px) {
  .about-transparency { padding: 24px 20px !important; }
}

/* ── Mobile: SOL calc inner box ─────────────────────── */
@media (max-width: 520px) {
  .sol-calc-inner { padding: 20px 16px !important; }
}

/* ── Attorney Match — Preference Checklist (Step 3) ─────── */
.pref-check-list { display: flex; flex-direction: column; gap: 10px; }
.pref-check-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.pref-check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.pref-check-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.pref-check-text { flex: 1; min-width: 0; }
.pref-check-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.pref-check-text span { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.pref-sub {
  display: none;
  padding: 0 16px 14px 50px;
  border-top: 1px solid var(--border);
  background: var(--gray-25, #fafafa);
}
.pref-sub.open { display: block; }
.pref-sub-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--text-muted);
  margin: 12px 0 6px;
}
.pref-sub select, .pref-sub input[type="text"] {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 16px; /* ≥16px prevents iOS Safari auto-zoom */ color: var(--black); background: var(--white);
  outline: none; transition: border-color .15s;
}
.pref-sub select:focus, .pref-sub input[type="text"]:focus { border-color: var(--navy); }

/* ── Attorney Match — Match Results ─────────────────── */
.match-result-card { transition: opacity var(--transition); }
@keyframes krash-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.krash-spin { display: inline-block; animation: krash-spin 1.2s linear infinite; }

/* ── Site Photography ────────────────────────────────── */
.photo-strip { overflow: hidden; line-height: 0; }
.photo-strip img { width: 100%; height: 380px; object-fit: cover; display: block; }
.photo-cta { position: relative; overflow: hidden; min-height: 400px; display: flex; align-items: center; }
.photo-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-cta-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,8,24,.88) 0%, rgba(0,8,24,.55) 55%, rgba(0,8,24,.15) 100%); }
.photo-cta-content { position: relative; z-index: 1; padding: 80px 0; }
.hero-photo-col img { width: 280px; height: 210px; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,.35); display: block; }
@media (max-width: 760px) {
  .photo-strip img { height: 220px; }
  .photo-cta { min-height: 300px; }
  .photo-cta-content { padding: 56px 0; }
  .hero-photo-col { display: none; }
}

/* ── Responsive Hero Grids (replaces un-queryable inline styles) ── */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Gap fill: 480–520px range ───────────────────────────────── */
@media (max-width: 520px) {
  .hero-actions { gap: var(--space-3); }
  .section { padding: var(--space-10) 0; }
  .big-stat-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .big-stat-num { font-size: clamp(32px, 8vw, 52px); }
  .hub-card { padding: var(--space-5); }
}

/* ── Tighter hero padding on small phones ────────────────────── */
@media (max-width: 480px) {
  .hero { padding: var(--space-12) 0 var(--space-10); }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-trust { gap: var(--space-2); flex-direction: column; align-items: flex-start; }
  .hero-trust-item { font-size: 11px; }
  .section-header { margin-bottom: var(--space-8); }
}

/* ── Pill nav scrolls horizontally on mobile ─────────────────── */
@media (max-width: 768px) {
  .pill-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .pill-nav::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
}

/* ── SOL calculator grid stacks — handled by 600px rule above ── */

/* ── Testimonial cards single col on mobile ──────────────────── */
/* Changed from 640px → 480px: between 480–640px phones get full-width cards
   instead of three cramped ~213px columns */
@media (max-width: 480px) {
  .grid-3 .testimonial-card { grid-column: 1 / -1; }
}

/* ── State spotlight: tighter on mobile ─────────────────────── */
@media (max-width: 480px) {
  .state-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Timeline phases stack on mobile ────────────────────────── */
@media (max-width: 768px) {
  .timeline-phase { border-right: none !important; border-bottom: 1px solid var(--gray-100); }
  .timeline-phase:last-child { border-bottom: none; }
}

/* ── Photo strip height refined for tablets ─────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .photo-strip img { height: 300px; }
}

/* ── Smooth focus rings for accessibility ────────────────────── */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Language Bar ─────────────────────────────────────────────── */
.lang-bar {
  background: var(--black);
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 24px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 101;
}
.lang-bar-label {
  font-size: 13px;
  margin-right: 4px;
  opacity: 0.8;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 5px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.4px;
  line-height: 1;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}
.lang-btn.active {
  background: white;
  color: var(--black);
}
.lang-sep {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  line-height: 1;
}

/* Suppress Google Translate toolbar */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt {
  display: none !important;
}
body {
  top: 0 !important;
}
.skiptranslate {
  display: none !important;
}
