:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --muted: #4b5563;
  --pri: #1d4ed8;
  --pri-hi: #3b82f6;
  --accent: #FFD54F;
  --txt: #0f172a;
  --border: rgba(2,6,23,0.08);
  --success: #065f46;
  --success-bg: #ecfdf5;
  --error: #b91c1c;
  --error-bg: #fff5f5;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --transition: 0.2s ease;
  --skeleton-base: #e2e8f0;
  --skeleton-shine: #f1f5f9;
}

/* ---- Dark Mode – warmer, trustworthy, easy on the eyes ---- */
[data-theme="dark"] {
  --bg: #1a1f2e;
  --card: #242b3d;
  --muted: #b0b8c4;
  --txt: #e2e8f0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --skeleton-base: #334155;
  --skeleton-shine: #475569;
}

/* ---- Dark mode overrides for hard‑coded white elements ---- */
[data-theme="dark"] .pill { background: #065f46; color: #a7f3d0; }
[data-theme="dark"] .badge { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .feature, [data-theme="dark"] .plan, [data-theme="dark"] .step, [data-theme="dark"] .member { background: #1e293b; }
[data-theme="dark"] .plan.popular { border-color: #facc15; background: #1a2e1a; }
[data-theme="dark"] .hardship-box { background: linear-gradient(135deg, #422006, #5b2d0c); border-color: #facc15; color: #fde68a; }
[data-theme="dark"] .hardship-box h3, [data-theme="dark"] .hardship-box p { color: #fde68a; }

/* ---- The “white island” fixes ---- */
[data-theme="dark"] .trust-badge,
[data-theme="dark"] .city,
[data-theme="dark"] .city-toggle-btn,
[data-theme="dark"] .faq details,
[data-theme="dark"] .founder-photo,
[data-theme="dark"] .badge,
[data-theme="dark"] .us-map-placeholder {
  background: var(--card);
  border-color: var(--border);
}
[data-theme="dark"] .founder-photo { background: #334155; border-color: #facc15; }
[data-theme="dark"] .city .dot { background: #64748b; }

/* ---- Global reset & base styles ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.55;
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { position: fixed; left: 24px; top: 24px; width: auto; height: auto; padding: 10px 16px; background: #111; color: #fff; border-radius: 8px; z-index: 10000; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--pri); z-index: 99999; width: 0%; transition: width 0.1s linear; }
.announcement-bar { background: #1d4ed8; color: #fff; text-align: center; padding: 12px 20px; font-size: 14px; font-weight: 600; position: relative; z-index: 2000; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.announcement-bar button { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 6px; padding: 4px 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-size: 12px; }
.announcement-bar button:hover { background: rgba(255,255,255,0.15); }
.announcement-bar button:focus { outline: 3px solid rgba(255,255,255,0.8); outline-offset: 2px; }
.scroll-top-btn { position: fixed; right: 24px; bottom: 100px; background: var(--card); color: var(--pri); width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; z-index: 9998; cursor: pointer; transition: all 0.2s ease; opacity: 0; transform: translateY(10px); pointer-events: none; border: 1px solid var(--border); }
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
header { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #ffd54f, #f59e0b); display: grid; place-items: center; font-weight: 900; color: #111; font-size: 20px; box-shadow: 0 4px 14px rgba(17,24,39,0.08); }
.header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-phone { font-weight: 700; font-size: 15px; color: var(--pri); display: flex; align-items: center; gap: 6px; }
.header-phone:hover { opacity: 0.8; }
nav { display: flex; gap: 8px; align-items: center; }
nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--txt); transition: background var(--transition); }
nav a:hover, nav a:focus { background: rgba(0,0,0,0.04); outline: none; }
.dark-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 18px; color: var(--txt); transition: background 0.2s; }
.dark-toggle:hover { background: rgba(0,0,0,0.05); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #ecfdf5; color: #065f46; font-weight: 700; font-size: 13px; letter-spacing: 0.2px; margin-bottom: 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 12px 0 16px; }
h2 { line-height: 1.2; margin: 0 0 12px; }
h3 { margin: 0 0 8px; }
.subtitle { color: var(--muted); font-size: 17px; margin-bottom: 20px; }
.cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transform: scale(1); }
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.btn:active { transform: scale(0.98); }
.btn:focus { outline: 3px solid #94a3b8; outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--pri), var(--pri-hi)); color: #fff; border: none; }
.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--txt); }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 24px; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.feature { background: #fff; border-radius: var(--radius-sm); padding: 18px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: transform 0.2s, box-shadow 0.2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.muted { color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group { margin-top: 12px; }
.field-group label { display: block; font-weight: 700; margin-bottom: 4px; }
input, textarea, select { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--txt); font-family: inherit; font-size: 1rem; transition: border var(--transition), box-shadow var(--transition); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(185,28,28,0.1); }
textarea { min-height: 140px; resize: vertical; }
footer { margin: 40px 0 60px; color: var(--muted); font-size: 14px; }
.sticky-cta { position: fixed; right: 24px; bottom: 24px; background: var(--pri); color: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(26,115,232,0.2); z-index: 9999; font-weight: 700; transition: transform var(--transition); text-decoration: none; }
.sticky-cta:hover { transform: translateY(-2px); opacity: 1; }
.sticky-cta:focus { outline: 3px solid #fff; outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.loader { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; animation: spin 0.9s linear infinite; margin-left: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.timeline { display: flex; gap: 16px; align-items: flex-start; }
.step { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--border); flex: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.member { padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.section-head .tag { background: #e0e7ff; color: #1e3a8a; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 14px; }
.pricing { display: flex; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.plan { flex: 1; min-width: 280px; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: all var(--transition); display: flex; flex-direction: column; justify-content: space-between; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 18px; font-weight: 800; color: #374151; margin-bottom: 8px; }
.plan .price { font-size: 40px; font-weight: 900; color: #0f172a; margin: 8px 0 4px; }
.plan ul { margin: 16px 0 20px; padding-left: 20px; color: #4b5563; font-size: 15px; }
.plan .btn { margin-top: auto; width: 100%; text-align: center; }
.plan.popular { border: 2px solid #facc15; background: #fffbeb; position: relative; box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25); }
.plan.popular::before { content: "Most popular"; position: absolute; top: -12px; left: 24px; background: #facc15; color: #111827; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.05); }
.pricing-foot { margin-top: 16px; color: #4b5563; }
.pricing-foot strong { font-weight: 800; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 16px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.02); font-size: 14px; font-weight: 600; }
.trust-badge img, .trust-badge svg { width: 32px; height: 32px; object-fit: contain; }
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.city { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px dashed rgba(2,6,23,0.1); border-radius: 10px; background: #fff; transition: background var(--transition); }
.city:hover { background: #f8fafc; }
.city .dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.city a { text-decoration: none; color: #1f2937; font-weight: 700; }
.city a:focus { outline: 3px solid #94a3b8; outline-offset: 2px; border-radius: 6px; }
.cities-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.city-toggle-btn { display: inline-block; margin-top: 16px; padding: 12px 24px; border-radius: 10px; background: #fff; border: 2px solid var(--border); font-weight: 700; color: var(--txt); cursor: pointer; transition: all 0.2s ease; box-shadow: var(--shadow-sm); }
.city-toggle-btn:hover { border-color: var(--pri); color: var(--pri); background: #eff6ff; }
.city-grid-wrapper { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.3s ease; margin-top: 0; }
.city-grid-wrapper.open { max-height: 5000px; opacity: 1; margin-top: 16px; }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skeleton-card { background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%); background-size: 200px 100%; animation: shimmer 1.5s infinite; border-radius: 10px; height: 40px; }
.htmx-indicator { opacity: 0; transition: opacity 0.2s; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }
.us-map-placeholder { width: 100%; max-width: 500px; margin: 0 auto; display: block; }
.faq details { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid var(--border); margin-bottom: 8px; transition: background var(--transition); }
.faq details:hover { background: #f8fafc; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.hardship-box { background: linear-gradient(135deg, #fef9c3, #fef3c7); border: 2px solid #facc15; border-radius: 20px; padding: 24px; margin-top: 24px; text-align: center; box-shadow: var(--shadow-md); }
.hardship-box h3 { font-size: 22px; color: #854d0e; }
.hardship-box p { color: #92400e; max-width: 600px; margin: 0 auto 16px; }
.founder-photo { width: 120px; height: 120px; border-radius: 50%; background: #f1f5f9; border: 3px solid #facc15; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #94a3b8; margin-bottom: 16px; }
.step-indicators { display: flex; gap: 8px; margin-bottom: 24px; justify-content: center; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--border); color: var(--muted); font-weight: 800; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: default; }
.step-dot.active { background: var(--pri); color: #fff; box-shadow: 0 4px 12px rgba(29,78,216,0.3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .features, .team { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cities { grid-template-columns: 1fr; }
  .pricing { flex-direction: column; }
  .timeline { flex-direction: column; }
  .header-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  nav { display: none; }
  .header-phone { font-size: 14px; }
}