/* ================================================
   LEGALPASS — GLOBAL STYLES
   Brand: LegalPass Visual Identity
   Fonts: Montserrat (headings) + Source Sans 3 (body)
   Colours: Teal #14B8A6 / Deep Teal #0F766E / Midnight #1F2937
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── Custom Properties ───────────────────────── */
:root {
  /* Brand palette */
  --teal:       #14B8A6;
  --teal-dark:  #0F766E;
  --teal-mid:   #14B8A6;
  --teal-light: #2DD4BF;
  --mint:       #D1FAE5;
  --midnight:   #1F2937;

  /* Semantic aliases — keeps all existing class names working */
  --navy:       #1F2937;
  --navy-dark:  #111827;
  --navy-mid:   #374151;
  --navy-light: #4B5563;
  --gold:       #14B8A6;
  --gold-light: #2DD4BF;
  --gold-dim:   #0F766E;
  --gold-pale:  #F0FDFA;
  --accent-on-brand: #FFFFFF;
  --btn-primary-bg: #14B8A6;
  --btn-primary-fg: #FFFFFF;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --grey-light: #F0FDFA;
  --grey-mid:   #CCFBF1;
  --grey:       #6B7280;
  --grey-dark:  #374151;
  --text:       #1F2937;
  --text-mid:   #4B5563;
  --success:    #059669;
  --danger:     #DC2626;
  --warning:    #D97706;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 4px 28px rgba(31,41,55,0.10);
  --shadow-gold: 0 6px 32px rgba(20,184,166,0.22);
  --transition: 0.22s ease;

  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body:    'Source Sans 3', -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding-top keeps anchor targets (#faq, #how-it-works, #about) clear of
   the fixed 78px nav — without it a jump-link leaves its heading under the bar. */
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.72; }
.lead { font-size: 1.15rem; }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-bottom: 1px solid var(--grey-mid);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(77,124,122,0.12);
}
/* nav--light kept for backwards compat but same as default now */
.nav--light {
  background: #FFFFFF;
  border-bottom: 1px solid var(--grey-mid);
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--btn-primary-fg);
  box-shadow: 0 4px 20px rgba(42,74,72,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--grey-mid);
}
.btn-outline:hover {
  border-color: var(--navy-dark);
  color: var(--navy-dark);
  background: var(--gold-pale);
}

.btn-outline--dark {
  color: var(--navy-dark);
  border-color: var(--navy-dark);
}
.btn-outline--dark:hover {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}

.btn-outline--light {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline--light:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--white);
  color: var(--white);
}

.on-brand .btn-primary,
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--btn-primary-bg);
  border-color: var(--white);
}
.on-brand .btn-primary:hover,
.cta-banner .btn-primary:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
  color: var(--btn-primary-bg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--gold-dim); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-lg { padding: 0.9rem 2.4rem; font-size: 0.95rem; }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* ── Gold Ornament ───────────────────────────── */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.5) 60%, transparent);
  width: 80px;
  margin: 0 auto;
}
.gold-rule--wide { width: 200px; }
.gold-rule--full { width: 100%; }

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 36px;
  background: rgba(255,255,255,0.4);
}

/* ── Section ─────────────────────────────────── */
.section { padding: 6rem 5vw; }
.section--tight { padding: 4rem 5vw; }
.section--dark {
  background: var(--gold);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--dark p   { color: rgba(255,255,255,0.88); }
.section--dark .section__eyebrow { color: rgba(255,255,255,0.88); }
.section--dark .section__eyebrow::before { background: rgba(255,255,255,0.65); }
.section--grey  { background: var(--grey-light); }
.section--navy  { background: var(--navy); }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.9rem;
}
.section__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
}

.section__title { margin-bottom: 1rem; }
.section__subtitle {
  font-size: 1.08rem;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.container      { max-width: 1200px; margin: 0 auto; width: 100%; }
.container--sm  { max-width: 760px;  margin: 0 auto; width: 100%; }

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--grey-mid);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card--gold {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.card--dark {
  background: var(--navy-mid);
  border-color: rgba(77,124,122,0.18);
}
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: rgba(255,255,255,0.65); }

/* ── Badge ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--gold    { background: var(--gold-pale); color: var(--navy-dark); }
.badge--navy    { background: var(--navy);      color: var(--white); }
.badge--success { background: #E6F7EE;          color: var(--success); }
.badge--danger  { background: #FDEAEA;          color: var(--danger); }
.badge--grey    { background: var(--grey-mid);  color: var(--grey-dark); }
.badge--warning { background: #FDF4EA;          color: var(--warning); }

/* ── Form Controls ───────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.42rem;
  letter-spacing: 0.025em;
}
.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,75,0.09);
}
.form-input::placeholder { color: var(--grey); }
.form-hint {
  font-size: 0.78rem;
  color: var(--grey-dark);
  margin-top: 0.35rem;
}
.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.35rem;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Divider with text */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--grey);
  font-size: 0.82rem;
  margin: 1.25rem 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-mid);
}

/* Google button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-google:hover {
  border-color: var(--grey);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-google svg { flex-shrink: 0; }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,21,53,0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 92vw;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.1,0.64,1);
  border-top: 3px solid var(--gold);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.modal__title { font-size: 1.65rem; }
.modal__close {
  background: none; border: none;
  font-size: 1.4rem; color: var(--grey);
  cursor: pointer; padding: 0.2rem;
  line-height: 1; transition: color var(--transition);
}
.modal__close:hover { color: var(--text); }
.modal__body { margin-bottom: 2rem; }
.modal__actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Toast ───────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.toast {
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  min-width: 270px; max-width: 360px;
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
  border-left: 4px solid var(--gold);
}
.toast.show { transform: translateX(0); }
.toast--success { border-left-color: var(--success); }
.toast--danger  { border-left-color: var(--danger);  }
.toast__icon { font-size: 1rem; flex-shrink: 0; }

/* ── Status Dot ──────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.status-dot--online {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(45,138,91,0.6);
  animation: pulse-online 2s infinite;
}
.status-dot--offline { background: var(--grey); }
.status-dot--busy    { background: var(--warning); }

@keyframes pulse-online {
  0%   { box-shadow: 0 0 0 0 rgba(45,138,91,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(45,138,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,138,91,0); }
}

/* ── Footer ──────────────────────────────────── */
.footer {
  background: #FFFFFF;
  color: var(--text);
  padding: 4.5rem 5vw 2.5rem;
  border-top: 3px solid var(--gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 2.5rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.footer__logo span { color: var(--navy-dark); }
.footer__brand {
  max-width: 28rem;
}
.footer__logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.footer__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-dark);
  margin-bottom: 1.1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--navy-dark); }
/* Small print under a footer column — e.g. who the attorneys work for. */
.footer__note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--grey-dark);
  margin: 0.9rem 0 0;
}
.footer__note a {
  color: var(--navy-dark);
  font-weight: 600;
  text-decoration: underline;
}
.footer .gold-rule {
  background: linear-gradient(
    90deg,
    transparent,
    var(--grey-mid) 15%,
    var(--grey-mid) 85%,
    transparent
  );
}
.footer__bottom {
  border-top: 1px solid var(--grey-mid);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--grey-dark);
}

/* ── Utility ─────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: 0.85rem; }
.text-xs     { font-size: 0.75rem; }
.text-muted  { color: var(--grey-dark); }

.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }    .mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }   .gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }   .gap-4 { gap: 2rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ── Animations ──────────────────────────────── */
.animate-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.animate-target:nth-child(2) { transition-delay: 0.1s; }
.animate-target:nth-child(3) { transition-delay: 0.2s; }
.animate-target:nth-child(4) { transition-delay: 0.3s; }

/* ── Hamburger / Mobile nav ──────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 201;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--grey-light) 55%, #EBF5F4 100%);
  border-top: 1px solid var(--grey-mid);
  box-shadow: 0 12px 40px rgba(42, 74, 72, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu__links {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
/* Nav links only — not CTA buttons in .mobile-actions */
.nav__mobile-menu__links > a {
  display: block;
  width: 100%;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(77, 124, 122, 0.18);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: color var(--transition), background var(--transition);
}
.nav__mobile-menu__links > a:last-of-type {
  border-bottom: none;
}
.nav__mobile-menu__links > a:hover,
.nav__mobile-menu__links > a:active {
  color: var(--navy);
}
.nav__mobile-menu .mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(77, 124, 122, 0.22);
}
.nav__mobile-menu .mobile-actions .btn {
  flex: none;
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  line-height: 1.3;
  overflow: visible;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.nav__mobile-menu .mobile-actions .btn::after {
  display: none;
}
.nav__mobile-menu .mobile-actions .btn-primary {
  background: var(--btn-primary-bg);
  color: #FFFFFF !important;
  border: 2px solid var(--btn-primary-bg);
  box-shadow: 0 6px 20px rgba(42, 74, 72, 0.28);
}
.nav__mobile-menu .mobile-actions .btn-outline,
.nav__mobile-menu .mobile-actions .btn-outline--dark {
  background: #FFFFFF;
  color: var(--navy-dark) !important;
  border: 2px solid var(--navy-dark);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .nav {
    height: 70px;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .nav__logo {
    justify-self: center;
    grid-column: 1 / -1;
    grid-row: 1;
    pointer-events: auto;
  }
  .nav__links { display: none; }
  .nav__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    z-index: 2;
  }
  .nav__logo-img { height: 44px; }
  .nav__hamburger { display: flex; }
  .nav__desktop-cta { display: none !important; }
  .nav__mobile-menu { top: 70px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .nav {
    height: 64px;
    padding: 0 0.85rem;
  }
  .nav__logo-img { height: 38px; }
  .nav__mobile-menu {
    top: 64px;
    padding: 1.75rem 1.25rem 2rem;
  }
  .nav__mobile-menu__links > a {
    font-size: 1.05rem;
    padding: 0.9rem 0.5rem;
  }
  .btn {
    min-height: 44px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
  .btn-lg {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    justify-content: center;
  }
  .btn-full { justify-content: center; }
  .section { padding: 4rem 1rem; }
  .section--tight { padding: 2.5rem 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { max-width: 100%; }
  .footer__tagline { font-size: 1rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .container { padding: 0 0.5rem; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
@media (hover: none) {
  .btn-primary:hover,
  .btn-outline:hover {
    transform: none;
  }
}
