/* howlongdoes.app — Global Styles */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy:       #0d1e3d;
  --navy-mid:   #0a3d6b;
  --navy-light: #1a3a6b;
  --gold:       #c8a84b;
  --gold-light: #e0c878;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --card-bg:    #ffffff;
  --text:       #1a1f2e;
  --text-muted: #5a6070;
  --border:     #e0e4ef;
  --success:    #1a6b3a;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 12px rgba(13,30,61,.1);
  --shadow-card:0 4px 24px rgba(13,30,61,.13);
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── 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);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }

/* ─── Google Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Header ─────────────────────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  overflow: hidden;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Brand / logo link */
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.brand-tagline {
  font-size: .65rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Push controls to the right */
.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Language selector */
.lang-wrap { position: relative; }
.lang-sel {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  color: #fff;
  font-size: .78rem;
  font-family: var(--font-sans);
  padding: 5px 22px 5px 9px;
  cursor: pointer;
  min-height: 32px;
}
.lang-sel:focus { outline: 2px solid var(--gold); }
.lang-sel option { background: var(--navy); color: #fff; }
.lang-arr {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,.7);
  font-size: .7rem;
}

/* Watermark — single instance via CSS only, no HTML div needed */
.header-watermark {
  display: none;
}
header::after {
  content: '⚖️';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  opacity: .06;
  pointer-events: none;
  line-height: 1;
}

/* ─── Main content wrapper ───────────────────────────────────────────────── */
main { flex: 1; max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem 3rem; width: 100%; }
#app { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-selector { max-width: 420px; margin: 0 auto; }
.hero-selector-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .6rem;
}

/* ─── State selector ─────────────────────────────────────────────────────── */
.state-select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  min-height: 52px;  /* fat-finger friendly */
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23c8a84b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  transition: border-color .2s, box-shadow .2s;
}
.state-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,30,61,.15);
}
.state-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ─── Tool grid ──────────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.5rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
  color: var(--text);
}
.tool-card-icon { font-size: 1.7rem; }
.tool-card-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
}
.tool-card-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  flex: 1;
}
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .4rem .85rem;
  margin-top: .5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  font-size: .8rem;
  font-weight: 700;
  align-self: flex-start;
  transition: background .15s;
}
.tool-card:hover .tool-card-cta { background: var(--gold); color: var(--navy); }

/* ─── Tool page ──────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
}
.breadcrumb a:hover { background: rgba(13,30,61,.06); }
.breadcrumb-sep { opacity: .4; }

.tool-page { max-width: 760px; margin: 0 auto; }
.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tool-icon-lg { font-size: 2.5rem; line-height: 1; margin-top: .15rem; flex-shrink: 0; }
.tool-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
}

.state-selector-wrap { margin-bottom: 1.5rem; }

/* ─── Answer card ────────────────────────────────────────────────────────── */
.answer-area { min-height: 80px; }
.no-state-msg {
  color: var(--text-muted);
  font-size: .95rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.answer-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.answer-state-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.state-flag {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.answer-state-name {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  line-height: 1.3;
}
.answer-main {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: .75rem;
}
.answer-note {
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  margin-bottom: .75rem;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: .85rem;
}
.answer-statute {
  font-size: .82rem;
  color: rgba(255,255,255,.85);
  margin-top: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.answer-statute strong {
  color: rgba(255,255,255,.7);
  font-weight: 600;
  white-space: nowrap;
}

.legal-disclaimer-inline {
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  padding: .85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .83rem;
  color: #5a4a00;
  margin-bottom: 1.5rem;
}

/* Animate in */
.animate-in {
  animation: fadeSlideIn .3s ease-out both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Disclaimer box ─────────────────────────────────────────────────────── */
.disclaimer-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.disclaimer-box strong { color: var(--text); display: block; margin-bottom: .4rem; }
.disclaimer-box p { margin-top: .4rem; }
.verify-note { font-style: italic; }
.disclaimer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1.25rem;
  margin-top: .75rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: background .15s;
}
.disclaimer-link:hover { background: var(--navy-mid); color: var(--white); }

/* ─── Related tools ──────────────────────────────────────────────────────── */
.related-tools { margin: 2rem 0; }
.related-title-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
.related-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-height: 56px;
  text-decoration: none;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.related-card:hover {
  border-color: var(--gold);
  background: #fffbf0;
  color: var(--navy);
}
.related-icon { font-size: 1.5rem; flex-shrink: 0; }
.related-title { line-height: 1.3; flex: 1; }

/* ─── SEO content section ────────────────────────────────────────────────── */
.seo-content, .seo-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2rem 0;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.seo-content h2, .seo-section h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .75rem;
}
.seo-content p + p, .seo-section p + p { margin-top: .85rem; }

/* ─── Ad slots ───────────────────────────────────────────────────────────── */
.ad-slot {
  margin: 1.5rem 0;
  min-height: 90px;
  background: transparent;
}

/* ─── Back home ──────────────────────────────────────────────────────────── */
.back-home {
  margin: 2rem 0 1rem;
}
.back-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 64px;
  padding: 1rem 1.5rem;
  background: var(--navy);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(13,30,61,.25);
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
}
.back-home a:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
}
.back-home a:active { transform: translateY(0); }

/* ─── Tool grid section ──────────────────────────────────────────────────── */
.tool-grid-section { margin: 1.5rem 0 2rem; }

/* ─── Brand terminator ───────────────────────────────────────────────────── */
.brand-terminator {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-top: 3rem;
}
.brand-term-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(13,30,61,.18);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
}
.brand-term-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .3rem;
}
.brand-term-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.brand-term-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .85rem;
}
.brand-term-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.brand-term-links a:hover { color: var(--navy); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 1rem;
  font-size: .75rem;
}
footer a { color: rgba(255,255,255,.65); }

/* ─── Support pages ──────────────────────────────────────────────────────── */
.page-content {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}
.page-content p { margin-bottom: .9rem; font-size: .95rem; line-height: 1.7; }
.page-content ul, .page-content ol { margin: .75rem 0 .75rem 1.5rem; }
.page-content li { margin-bottom: .4rem; font-size: .95rem; line-height: 1.6; }
.page-content a { color: var(--navy); }

/* Contact form */
.contact-form { max-width: 540px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .15s;
  min-height: 56px;
  letter-spacing: .02em;
}
.btn-submit:hover { background: var(--navy-mid); }
.form-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: var(--success);
  font-weight: 600;
}

/* 404 page */
.page-404 { text-align: center; padding: 5rem 1rem; }
.page-404 .big-icon { font-size: 5rem; margin-bottom: 1rem; }
.page-404 h1 { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); margin-bottom: 1rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }
.btn-home {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { height: 56px; }
  .hero { padding: 2rem .75rem 1.5rem; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .tool-card { padding: 1rem .85rem; min-height: 140px; }
  .tool-card-title { font-size: .84rem; }
  .tool-card-cta { font-size: .75rem; padding: .35rem .75rem; }
  .answer-main { font-size: 1.4rem; }
  .answer-card { padding: 1.5rem 1.25rem; }
  main { padding: 1.25rem .75rem 2rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 60px; font-size: .95rem; }
  .tool-h1 { font-size: 1.35rem; }
  .back-home a { font-size: 1.05rem; min-height: 56px; }
  .disclaimer-link { min-height: 48px; font-size: .92rem; width: 100%; justify-content: center; }
  .footer-links { gap: .25rem; }
  .footer-links a { min-height: 48px; padding: 0 .6rem; font-size: .85rem; }
  .statute-link, .answer-statute a { font-size: .85rem; min-height: 48px; }
  .geo-btn { min-height: 44px; padding: .5rem 1.1rem; font-size: .88rem; }
}

@media (max-width: 380px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  header, footer, .ad-slot, .brand-terminator { display: none; }
  .answer-card { border: 2px solid #000; }
}

/* ─── Focus visible ──────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ─── Static page layout (about, privacy, disclaimer, contact) ────────────── */
.static-page {
  flex: 1;
}
.static-inner {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.25rem 3rem;
}
.static-inner h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.static-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 .65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .3rem;
}
.static-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.5rem 0 .4rem;
}
.static-inner p { margin-bottom: .9rem; font-size: .95rem; line-height: 1.75; }
.static-inner ul, .static-inner ol { margin: .5rem 0 1rem 1.5rem; }
.static-inner li { margin-bottom: .35rem; font-size: .95rem; line-height: 1.65; }
.static-inner a { color: var(--navy); font-weight: 500; }
.policy-date { color: var(--text-muted); font-size: .85rem; margin-top: -.75rem; margin-bottom: 1.75rem; }

/* ─── Brand terminator aliases used in HTML ──────────────────────────────── */
.brand-logo-lg {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(13,30,61,.18);
  display: block;
  margin: 0 auto 1.25rem;
}
.brand-name-lg {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: .3rem;
}
.brand-tagline-lg {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .88rem;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.footer-links a:hover { background: rgba(13,30,61,.06); color: var(--navy); }
.footer-links span { color: var(--border); line-height: 44px; }
.footer-legal {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* ─── Contact form extras ────────────────────────────────────────────────── */
.required { color: #c0392b; margin-left: 2px; }
.optional { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.sent-banner {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-left: 4px solid #388e3c;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #1b5e20;
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

/* ─── Header logo used in static pages ──────────────────────────────────── */
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  flex-shrink: 0;
}

/* ─── Statute source link ─────────────────────────────────────────────────── */
/* Statute citation — plain text display, no link */
.statute-text {
  color: var(--gold);
  font-weight: 700;
  font-size: .84rem;
}

/* ─── Geo-detect banner ───────────────────────────────────────────────────── */
.geo-banner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--gold);
  padding: .85rem 1.25rem;
  font-size: .9rem;
  animation: fadeSlideIn .3s ease;
}
.geo-btn {
  border: none;
  border-radius: 20px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.geo-yes { background: var(--gold); color: var(--navy); }
.geo-yes:hover { background: var(--gold-light); }
.geo-no  { background: rgba(255,255,255,.15); color: #fff; }
.geo-no:hover  { background: rgba(255,255,255,.25); }

/* ─── Home state hint ─────────────────────────────────────────────────────── */
.home-state-hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .5rem;
  transition: color .2s;
}
.home-state-hint.hint-active {
  color: var(--success);
  font-weight: 600;
}

/* ─── Home page flag grid ─────────────────────────────────────────────────── */
.flag-grid-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.flag-grid-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .5rem;
}
.flag-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .4rem .3rem .35rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  min-height: 64px;
  position: relative;
}
.flag-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(200,168,75,.25);
  transform: translateY(-1px);
}
.flag-btn.flag-selected {
  border-color: var(--gold);
  background: #fffbf0;
  box-shadow: 0 0 0 3px rgba(200,168,75,.3);
}
.flag-grid-img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.flag-abbr {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .05em;
  line-height: 1;
}
.flag-btn.flag-selected .flag-abbr {
  color: var(--navy);
}

@media (max-width: 640px) {
  .flag-grid {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: .4rem;
  }
  .flag-btn { min-height: 58px; padding: .35rem .25rem .3rem; }
  .flag-grid-img { width: 56px; height: 35px; }
  .flag-abbr { font-size: .6rem; }
}

@media (max-width: 380px) {
  .flag-grid {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  }
  .flag-grid-img { width: 50px; height: 31px; }
}

/* ─── Home page legal disclaimer bar ─────────────────────────────────────── */
.home-legal-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--navy);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid var(--gold);
}
.home-legal-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}
.home-legal-text {
  font-size: .92rem;
  line-height: 1.65;
}
.home-legal-text strong {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.home-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .9rem;
  margin-top: .6rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  transition: background .15s;
}
.home-legal-link:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

@media (max-width: 640px) {
  .home-legal-disclaimer { padding: 1rem 1.1rem; gap: .75rem; }
  .home-legal-icon { font-size: 1.4rem; }
  .home-legal-text { font-size: .88rem; }
}

/* ─── Hero cycling question ───────────────────────────────────────────────── */
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: .5rem;
}
.hero-cycling {
  transition: opacity .4s ease, transform .4s ease;
  min-height: 3.5rem;
}
.hero-fade-out {
  opacity: 0;
  transform: translateY(-6px);
}
.hero-fade-in {
  animation: heroFadeIn .5s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero-cycling { min-height: 5rem; }
}

/* ─── English-only answer notice ─────────────────────────────────────────── */
.answer-english-notice {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: .5rem .85rem;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}


