/* ===========================================================================
   LendQuest — production site stylesheet
   Self-contained. Brand tokens inlined from the LendQuest Design System.
   =========================================================================== */

/* ---- Tokens ---- */
:root {
  --blue-50:#eaf6fe; --blue-100:#d0ecfd; --blue-200:#a6d9fb; --blue-300:#6fc1f7;
  --blue-400:#42aff3; --blue-500:#24a2f0; --blue-600:#1786d6; --blue-700:#1872b4;
  --blue-800:#155e92; --blue-900:#134d77;
  --aqua-50:#e7fbf9; --aqua-100:#c9f5f2; --aqua-200:#97ece6; --aqua-300:#63e0d9;
  --aqua-400:#42d8d2; --aqua-500:#25c0ba; --aqua-600:#1ea19b; --aqua-700:#1c807d;
  --ink-0:#ffffff; --ink-25:#fafbfc; --ink-50:#f4f6f8; --ink-100:#e9edf1;
  --ink-200:#d7dde5; --ink-300:#b7c0cc; --ink-400:#8a95a5; --ink-500:#626e80;
  --ink-600:#45505f; --ink-700:#2e3744; --ink-800:#1a222e; --ink-900:#0c121e;
  --success-50:#e8f7ee; --success-500:#1fa05a; --success-700:#167544;
  --danger-50:#fdecec; --danger-500:#e5484d; --danger-700:#b4282d;

  --gradient-brand:linear-gradient(120deg,#24a2f0 0%,#42d8d2 100%);
  --gradient-brand-soft:linear-gradient(120deg,#eaf6fe 0%,#e7fbf9 100%);
  --gradient-ink:linear-gradient(160deg,#11203a 0%,#0c121e 100%);

  --shadow-sm:0 2px 6px rgba(12,18,30,.07);
  --shadow-md:0 8px 24px rgba(12,18,30,.08);
  --shadow-lg:0 18px 48px rgba(12,18,30,.12);
  --shadow-xl:0 30px 70px rgba(12,18,30,.16);
  --shadow-brand:0 12px 30px rgba(36,162,240,.28);

  --font-display:'Poppins',system-ui,-apple-system,sans-serif;
  --font-sans:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
  --maxw:1180px;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing:border-box; }
html, body { width:100%; max-width:100%; overflow-x:clip; margin:0; }
html { scroll-behavior:smooth; }
.footer, .site-header, .hero, .section, .page-head { width:100%; }
body {
  margin:0; background:var(--ink-0); color:var(--ink-700);
  font-family:var(--font-sans); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,h4 { font-family:var(--font-display); color:var(--ink-900); margin:0; letter-spacing:-.02em; line-height:1.1; }
p { margin:0; }
:focus-visible { outline:none; box-shadow:0 0 0 4px rgba(36,162,240,.40); border-radius:6px; }

.container { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.eyebrow {
  display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:999px;
  background:var(--blue-50); color:var(--blue-700); font-weight:600; font-size:13px; letter-spacing:.01em;
}
.eyebrow.accent { background:var(--aqua-50); color:var(--aqua-700); }
.eyebrow svg { width:15px; height:15px; }
.muted { color:var(--ink-500); }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:50px; padding:0 24px; border-radius:999px; border:1.5px solid transparent;
  font-family:var(--font-display); font-weight:600; font-size:15.5px; white-space:nowrap;
  cursor:pointer; transition:all .18s var(--ease); text-align:center;
}
.btn svg { width:18px; height:18px; }
.btn--sm { height:42px; padding:0 18px; font-size:14px; }
.btn--lg { height:58px; padding:0 32px; font-size:17px; }
.btn--full { width:100%; }
.btn--primary { background:var(--blue-500); color:#fff; box-shadow:0 8px 18px rgba(36,162,240,.24); }
.btn--primary:hover { background:var(--blue-600); box-shadow:0 12px 26px rgba(36,162,240,.34); transform:translateY(-1px); }
.btn--primary:active { transform:translateY(1px); background:var(--blue-700); }
.btn--accent { background:var(--aqua-400); color:var(--ink-900); box-shadow:0 8px 18px rgba(66,216,210,.26); }
.btn--accent:hover { background:var(--aqua-500); transform:translateY(-1px); }
.btn--secondary { background:#fff; color:var(--ink-900); border-color:var(--ink-300); }
.btn--secondary:hover { background:var(--ink-50); border-color:var(--ink-400); }
.btn--dark { background:var(--ink-900); color:#fff; }
.btn--dark:hover { background:var(--ink-800); transform:translateY(-1px); }
.btn--ghost { background:transparent; color:#fff; }
.btn--ghost:hover { background:rgba(255,255,255,.12); }

/* ---- Header / nav ---- */
.site-header {
  position:sticky; top:0; z-index:50; background:rgba(255,255,255,.86);
  backdrop-filter:blur(12px); border-bottom:1px solid var(--ink-100);
}
.nav { display:flex; align-items:center; gap:24px; height:76px; }
.nav__logo img { height:30px; }
.nav__links { display:flex; gap:4px; margin-left:8px; }
.nav__links a {
  font-family:var(--font-display); font-weight:600; font-size:14.5px; color:var(--ink-500);
  padding:8px 14px; border-radius:999px; transition:color .15s, background .15s;
}
.nav__links a:hover { color:var(--ink-900); background:var(--ink-50); }
.nav__links a.active { color:var(--ink-900); }
.nav__actions { margin-left:auto; display:flex; gap:12px; align-items:center; }
.nav__toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; margin-left:auto; }
.nav__toggle svg { width:26px; height:26px; }

/* ---- Hero ---- */
.hero { position:relative; overflow:hidden; background:var(--gradient-brand-soft); }
.hero::before {
  content:""; position:absolute; inset:0;
  background:radial-gradient(900px 500px at 78% -10%, rgba(66,216,210,.20), transparent 60%);
}
.hero__grid {
  position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:56px;
  align-items:center; padding:84px 28px 92px;
}
.hero h1 { font-weight:700; font-size:60px; line-height:1.02; margin-top:20px; }
.hero h1 .accent { color:var(--blue-500); }
.hero__lead { font-size:19px; line-height:1.55; color:var(--ink-600); margin:20px 0 32px; max-width:480px; }
.hero__ctas { display:flex; gap:14px; flex-wrap:wrap; }
.hero__stats { display:flex; gap:28px; margin-top:38px; }
.hero__stats .v { font-family:var(--font-display); font-weight:700; font-size:26px; color:var(--ink-900); }
.hero__stats .l { font-size:13.5px; color:var(--ink-500); font-weight:500; }

/* ---- Calculator card ---- */
.calc-wrap { position:relative; }
.calc-mark { position:absolute; right:-30px; top:-54px; opacity:.10; transform:rotate(-6deg); width:180px; }
.calc {
  position:relative; background:#fff; border-radius:24px; box-shadow:var(--shadow-xl);
  border:1px solid var(--ink-100); padding:28px;
}
.calc__head { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.calc__icon { width:38px; height:38px; border-radius:12px; background:var(--blue-50); display:inline-flex; align-items:center; justify-content:center; }
.calc__icon svg { width:20px; height:20px; }
.calc__title { font-family:var(--font-display); font-weight:700; font-size:16px; color:var(--ink-900); }
.calc__sub { font-size:12.5px; color:var(--ink-500); }
.calc label { font-size:13px; font-weight:600; color:var(--ink-700); }
.calc__amount { font-family:var(--font-display); font-weight:700; font-size:30px; color:var(--ink-900); margin:4px 0 10px; }
.calc input[type=range] { width:100%; height:6px; border-radius:999px; accent-color:var(--blue-500); }
.calc__minmax { display:flex; justify-content:space-between; font-size:11.5px; color:var(--ink-400); margin-top:4px; }
.calc__result { margin-top:18px; padding:18px; border-radius:16px; background:var(--gradient-brand); color:#fff; }
.calc__result .label { font-size:13px; font-weight:600; opacity:.92; }
.calc__result .value { font-family:var(--font-display); font-weight:800; font-size:36px; line-height:1.1; }

/* ---- Sections ---- */
.section { padding:92px 0; }
.section--sunken { background:var(--ink-25); }
.section__head { text-align:center; max-width:620px; margin:0 auto 48px; }
.section__head.left { text-align:left; margin-left:0; }
.section__head h2 { font-weight:700; font-size:40px; margin:16px 0 10px; }
.section__head p { font-size:16.5px; color:var(--ink-500); }

/* ---- Service cards ---- */
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.service {
  position:relative; overflow:hidden; background:#fff; border:1px solid var(--ink-100);
  border-radius:20px; padding:26px; box-shadow:var(--shadow-sm);
  transition:all .2s var(--ease); display:block;
}
.service:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.service::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--gradient-brand); opacity:0; transition:opacity .2s;
}
.service:hover::before { opacity:1; }
.service__icon { width:50px; height:50px; border-radius:14px; background:var(--blue-50); display:inline-flex; align-items:center; justify-content:center; margin-bottom:16px; }
.service__icon svg { width:24px; height:24px; }
.service h3 { font-weight:700; font-size:19px; margin-bottom:8px; }
.service p { font-size:14px; color:var(--ink-500); line-height:1.55; margin-bottom:16px; }
.service__more { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--blue-600); }
.service__more svg { width:15px; height:15px; }

/* ---- Process ---- */
.step__num {
  width:52px; height:52px; border-radius:50%; background:#fff; border:2px solid var(--ink-200);
  color:var(--ink-400); display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:800; font-size:20px; margin-bottom:16px;
}
.step:first-child .step__num { background:var(--gradient-brand); border:none; color:#fff; }
.step h3 { font-weight:700; font-size:17px; margin-bottom:8px; line-height:1.25; }
.step p { font-size:14px; color:var(--ink-500); line-height:1.55; }

/* ---- Lenders ---- */
.lenders { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.lender {
  padding:13px 22px; border-radius:14px; background:var(--ink-50); border:1px solid var(--ink-100);
  font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--ink-700);
}
.lender.more { background:var(--blue-50); color:var(--blue-700); border-color:transparent; }

/* ---- CTA band ---- */
.cta-band {
  position:relative; overflow:hidden; border-radius:28px; background:var(--gradient-ink);
  padding:56px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band__mark { position:absolute; right:40px; top:-40px; opacity:.14; width:220px; }
.cta-band h2 { color:#fff; font-weight:700; font-size:36px; margin-bottom:10px; }
.cta-band p { color:var(--ink-300); font-size:16.5px; max-width:460px; line-height:1.5; }
.cta-band__actions { position:relative; display:flex; gap:14px; }

/* ---- Footer ---- */
.footer { background:var(--ink-900); padding:56px 0 40px; }
.footer__grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1.4fr; gap:40px; }
.footer__about p { font-size:14px; color:var(--ink-400); line-height:1.6; margin-top:18px; max-width:320px; }
.footer__social { display:flex; gap:12px; margin-top:20px; }
.footer__social a { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.08); display:inline-flex; align-items:center; justify-content:center; transition:background .15s; }
.footer__social a:hover { background:rgba(255,255,255,.16); }
.footer__social svg { width:18px; height:18px; }
.footer__col h4 { color:#fff; font-size:14px; margin-bottom:14px; }
.footer__col a { display:block; font-size:14px; color:var(--ink-400); padding:6px 0; transition:color .15s; }
.footer__col a:hover { color:#fff; }
.footer__contact a { display:flex; gap:10px; align-items:flex-start; }
.footer__contact svg { width:17px; height:17px; flex:none; margin-top:2px; }
.footer__legal { margin-top:40px; padding-top:24px; border-top:1px solid rgba(255,255,255,.08); }
.footer__legal p { font-size:11.5px; color:var(--ink-500); line-height:1.6; }

/* ---- Forms / wizard ---- */
.page-head { background:var(--gradient-brand-soft); padding:64px 0 48px; position:relative; overflow:hidden; }
.page-head::before { content:""; position:absolute; inset:0; background:radial-gradient(700px 400px at 85% -20%, rgba(66,216,210,.18), transparent 60%); }
.page-head .container { position:relative; }
.page-head h1 { font-size:46px; font-weight:700; margin:14px 0 12px; }
.page-head p { font-size:18px; color:var(--ink-600); max-width:560px; }

.wizard { max-width:680px; margin:-32px auto 0; position:relative; z-index:2; padding:0 28px 92px; }
.wizard__card { background:#fff; border:1px solid var(--ink-100); border-radius:24px; box-shadow:var(--shadow-xl); padding:36px; }
.progress { display:flex; gap:8px; margin-bottom:28px; }
.progress__bar { flex:1; height:6px; border-radius:999px; background:var(--ink-100); overflow:hidden; }
.progress__bar span { display:block; height:100%; width:0; background:var(--gradient-brand); transition:width .3s var(--ease); }
.progress__bar.done span, .progress__bar.current span { width:100%; }
.progress__bar.current span { width:50%; }
.step-label { font-family:var(--font-display); font-weight:600; font-size:13px; color:var(--ink-500); margin-bottom:6px; }
.fieldset { display:block; }
.fieldset.hidden { display:none; }
.fieldset h2 { font-size:26px; font-weight:700; margin-bottom:8px; }
.fieldset > p.sub { color:var(--ink-500); margin-bottom:24px; font-size:15px; }

.field { margin-bottom:18px; }
.field label { display:block; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--ink-800); margin-bottom:8px; }
.field input, .field select, .field textarea {
  width:100%; height:52px; padding:0 16px; border-radius:12px; border:1.5px solid var(--ink-200);
  font-family:var(--font-sans); font-size:15px; color:var(--ink-900); background:#fff; transition:border .15s, box-shadow .15s;
}
.field textarea { height:auto; padding:14px 16px; min-height:110px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color:var(--blue-500); box-shadow:0 0 0 4px rgba(36,162,240,.16); }
.field input::placeholder, .field textarea::placeholder { color:var(--ink-400); }

.choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.choice {
  display:flex; align-items:center; gap:12px; padding:16px; border-radius:14px;
  border:1.5px solid var(--ink-200); cursor:pointer; transition:all .15s var(--ease); background:#fff;
}
.choice:hover { border-color:var(--blue-300); background:var(--blue-50); }
.choice input { position:absolute; opacity:0; }
.choice.selected { border-color:var(--blue-500); background:var(--blue-50); box-shadow:0 0 0 3px rgba(36,162,240,.14); }
.choice__icon { width:42px; height:42px; border-radius:12px; background:var(--blue-50); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.choice.selected .choice__icon { background:#fff; }
.choice__icon svg { width:22px; height:22px; }
.choice__label { font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--ink-900); }
.choice__desc { font-size:12.5px; color:var(--ink-500); }

.wizard__nav { display:flex; justify-content:space-between; align-items:center; margin-top:28px; }
.error-text { color:var(--danger-700); font-size:13px; margin-top:8px; display:none; }
.error-text.show { display:block; }

.trust-row { display:flex; gap:24px; flex-wrap:wrap; margin-top:24px; }
.trust-row .item { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-500); font-weight:500; }
.trust-row svg { width:18px; height:18px; color:var(--success-500); }

/* ---- About ---- */
.prose { max-width:720px; }
.prose p { font-size:17px; color:var(--ink-600); line-height:1.7; margin-bottom:20px; }
.value-card { background:#fff; border:1px solid var(--ink-100); border-radius:20px; padding:28px; box-shadow:var(--shadow-sm); }
.value-card__icon { width:50px; height:50px; border-radius:14px; background:var(--aqua-50); display:inline-flex; align-items:center; justify-content:center; margin-bottom:16px; }
.value-card__icon svg { width:24px; height:24px; }
.value-card h3 { font-size:18px; font-weight:700; margin-bottom:8px; }
.value-card p { font-size:14px; color:var(--ink-500); line-height:1.55; }

/* ---- Confirmation ---- */
.confirm { max-width:560px; margin:0 auto; text-align:center; padding:100px 28px; }
.confirm__icon { width:84px; height:84px; border-radius:50%; background:var(--success-50); display:inline-flex; align-items:center; justify-content:center; margin-bottom:24px; }
.confirm__icon svg { width:44px; height:44px; color:var(--success-500); }
.confirm h1 { font-size:38px; font-weight:700; margin-bottom:14px; }
.confirm p { font-size:17px; color:var(--ink-600); line-height:1.6; margin-bottom:28px; }

/* ---- Utilities ---- */
.center { text-align:center; }
.mt-0 { margin-top:0; }
.hide-mobile { }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ---- Responsive ---- */
@media (max-width:900px) {
  .hero__grid { grid-template-columns:1fr; gap:40px; padding:56px 24px 64px; }
  .hero h1 { font-size:44px; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .footer__grid { grid-template-columns:1fr 1fr; gap:32px; }
  .cta-band { padding:40px 28px; }
  .cta-band h2 { font-size:28px; }
  .section { padding:64px 0; }
  .section__head h2 { font-size:32px; }
  .nav__links { display:none; }
  .nav__toggle { display:inline-flex; }
  .nav__actions .btn--secondary { display:none; }
  .page-head h1 { font-size:34px; }
  .contact-grid, .calc-page-grid { grid-template-columns:1fr; gap:24px; }
  .reviews-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .container { padding:0 20px; }
  .grid-4, .grid-2, .choice-grid { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr; gap:28px; }
  .nav__actions { display:none; }
  .nav { height:64px; gap:12px; }
  .hero__grid { padding:44px 20px 52px; }
  .hero h1 { font-size:33px; }
  .hero__lead { font-size:17px; }
  .hero__ctas { flex-direction:column; align-items:stretch; }
  .hero__ctas .btn { width:100%; }
  .hero__stats { flex-wrap:wrap; gap:16px 28px; margin-top:30px; }
  .section { padding:52px 0; }
  .section__head { margin-bottom:36px; }
  .section__head h2 { font-size:27px; }
  .page-head { padding:44px 0 34px; }
  .page-head h1 { font-size:29px; }
  .page-head p { font-size:16px; }
  .wizard { padding:0 16px 56px; }
  .wizard__card, .form-card, .calc-tool { padding:22px; }
  .calc-out .big, .calc__result .value { font-size:31px; }
  .cta-band { padding:32px 22px; border-radius:22px; }
  .cta-band h2 { font-size:23px; }
  .cta-band__actions { width:100%; flex-direction:column; }
  .cta-band__actions .btn { width:100%; }
  .btn--lg { height:54px; font-size:16px; }
  .map-embed { height:260px; }
  .prose p { font-size:16px; }
  .rating-badge { padding:13px 16px; }
  .logo-track { gap:44px; }
  .logo-track img { height:30px; }
  .calc-tool { padding:20px; }
  .calc-row input[type=number], .calc-row select { height:48px; }
  .calc-out .big { font-size:30px; }
}

/* ---- Mobile menu ---- */
.mobile-menu { display:none; background:#fff; border-top:1px solid var(--ink-100); box-shadow:0 18px 40px rgba(12,18,30,.10); padding:8px 0 18px; }
.mobile-menu a:not(.btn) { display:block; font-family:var(--font-display); font-weight:600; font-size:17px; color:var(--ink-800); padding:15px 24px; border-bottom:1px solid var(--ink-50); }
.mobile-menu a:not(.btn):active { background:var(--ink-50); }
.mobile-menu .btn { display:flex; margin:16px 24px 0; }
.mobile-menu.open { display:block; }

/* ---- Lender logo marquee ---- */
.logo-marquee { position:relative; overflow:hidden; padding:10px 0; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%); }
.logo-track { display:flex; align-items:center; gap:64px; width:max-content; animation:logoScroll 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state:paused; }
.logo-track img { height:36px; width:auto; max-width:160px; object-fit:contain; flex:none; mix-blend-mode:multiply; }
@keyframes logoScroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.lenders-more { text-align:center; margin-top:28px; font-family:var(--font-display); font-weight:600; font-size:14.5px; color:var(--ink-500); }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation:none; flex-wrap:wrap; justify-content:center; width:auto; gap:32px 44px; }
  .logo-marquee { -webkit-mask-image:none; mask-image:none; }
}

/* ---- Reviews ---- */
.rating-badges { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.rating-badge { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--ink-100); border-radius:16px; padding:16px 22px; box-shadow:var(--shadow-sm); }
.rating-badge__logo { width:38px; height:38px; flex:none; display:flex; align-items:center; justify-content:center; }
.rating-badge__logo svg { width:34px; height:34px; }
.rating-badge .score { font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--ink-900); line-height:1; }
.rating-badge .stars { color:#f5a623; font-size:15px; letter-spacing:1px; }
.rating-badge .src { font-size:12.5px; color:var(--ink-500); font-weight:600; }
.reviews-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.review-card { background:#fff; border:1px solid var(--ink-100); border-radius:20px; padding:26px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:14px; }
.review-card .stars { color:#f5a623; font-size:16px; letter-spacing:1.5px; }
.review-card p { font-size:15px; color:var(--ink-700); line-height:1.6; flex:1; }
.review-card__who { display:flex; align-items:center; gap:12px; }
.review-card__avatar { width:40px; height:40px; border-radius:50%; background:var(--gradient-brand); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:16px; flex:none; }
.review-card__name { font-family:var(--font-display); font-weight:700; font-size:14.5px; color:var(--ink-900); }
.review-card__meta { font-size:12.5px; color:var(--ink-500); }

/* ---- FAQ ---- */
.faq { max-width:780px; margin:0 auto; display:grid; gap:12px; }
.faq__item { background:#fff; border:1px solid var(--ink-100); border-radius:16px; box-shadow:var(--shadow-sm); overflow:hidden; }
.faq__q { width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; font-family:var(--font-display); font-weight:600; font-size:16.5px; color:var(--ink-900); }
.faq__q svg { width:20px; height:20px; flex:none; color:var(--blue-500); transition:transform .25s var(--ease); }
.faq__item.open .faq__q svg { transform:rotate(45deg); }
.faq__a { max-height:0; overflow:hidden; transition:max-height .3s var(--ease); }
.faq__a-inner { padding:0 24px 22px; font-size:15px; color:var(--ink-600); line-height:1.65; }
.faq__item.open .faq__a { max-height:340px; }

/* ---- Scroll reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity:0; transform:translateY(22px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity:1; transform:none; }
}

/* ---- Legal pages ---- */
.legal { max-width:760px; }
.legal h2 { font-size:34px; font-weight:700; margin-bottom:8px; }
.legal .updated { font-size:14px; color:var(--ink-400); font-weight:600; margin-bottom:32px; }
.legal h3 { font-size:20px; font-weight:700; color:var(--ink-900); margin:36px 0 12px; }
.legal p { font-size:16px; color:var(--ink-600); line-height:1.7; margin-bottom:16px; }
.legal ul { margin:0 0 16px; padding-left:22px; }
.legal li { font-size:16px; color:var(--ink-600); line-height:1.7; margin-bottom:8px; }
.legal a { color:var(--blue-600); font-weight:600; }
.legal a:hover { text-decoration:underline; }
.legal strong { color:var(--ink-800); }
.legal .effective { margin-top:36px; padding-top:20px; border-top:1px solid var(--ink-100); font-weight:600; color:var(--ink-700); }

/* ---- Contact ---- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.contact-cards { display:grid; gap:16px; }
.contact-card { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--ink-100); border-radius:18px; padding:22px; box-shadow:var(--shadow-sm); }
.contact-card__icon { width:46px; height:46px; border-radius:13px; background:var(--blue-50); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.contact-card__icon svg { width:22px; height:22px; }
.contact-card h3 { font-size:15px; font-weight:700; margin-bottom:4px; }
.contact-card a, .contact-card p { font-size:15px; color:var(--ink-600); line-height:1.5; }
.contact-card a:hover { color:var(--blue-600); }
.map-embed { border-radius:20px; overflow:hidden; border:1px solid var(--ink-100); box-shadow:var(--shadow-sm); margin-top:24px; height:300px; }
.map-embed iframe { width:100%; height:100%; border:0; display:block; }
.form-card { background:#fff; border:1px solid var(--ink-100); border-radius:24px; box-shadow:var(--shadow-lg); padding:32px; }
.form-card h2 { font-size:24px; font-weight:700; margin-bottom:6px; }
.form-card > p.sub { color:var(--ink-500); font-size:15px; margin-bottom:24px; }
.book-embed { border:2px dashed var(--ink-200); border-radius:20px; padding:40px 28px; text-align:center; background:var(--ink-25); }
.book-embed svg { width:34px; height:34px; color:var(--blue-500); margin-bottom:12px; }
.book-embed h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.book-embed p { color:var(--ink-500); font-size:15px; max-width:420px; margin:0 auto 20px; line-height:1.55; }

/* ---- Calculators ---- */
.calc-page-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:start; }
.calc-tool { background:#fff; border:1px solid var(--ink-100); border-radius:24px; box-shadow:var(--shadow-lg); padding:30px; }
.calc-tool h2 { font-size:22px; font-weight:700; margin-bottom:4px; }
.calc-tool > p.sub { color:var(--ink-500); font-size:14.5px; margin-bottom:24px; }
.calc-row { margin-bottom:18px; }
.calc-row label { display:block; font-family:var(--font-display); font-weight:600; font-size:14px; color:var(--ink-800); margin-bottom:6px; }
.calc-row .hint { font-weight:500; color:var(--ink-400); font-size:12.5px; }
.calc-input { position:relative; }
.calc-input .prefix { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--ink-400); font-size:15px; font-weight:600; }
.calc-row input[type=number], .calc-row select { width:100%; height:50px; padding:0 14px; border-radius:12px; border:1.5px solid var(--ink-200); font-family:var(--font-sans); font-size:15px; color:var(--ink-900); }
.calc-row input.has-prefix { padding-left:30px; }
.calc-row input:focus, .calc-row select:focus { outline:none; border-color:var(--blue-500); box-shadow:0 0 0 4px rgba(36,162,240,.16); }
.calc-row input[type=range] { width:100%; height:6px; border-radius:999px; accent-color:var(--blue-500); }
.calc-rowflex { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.calc-rowflex .val { font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--ink-900); }
.calc-out { margin-top:8px; padding:22px; border-radius:18px; background:var(--gradient-brand); color:#fff; }
.calc-out .label { font-size:13.5px; font-weight:600; opacity:.92; }
.calc-out .big { font-family:var(--font-display); font-weight:800; font-size:38px; line-height:1.1; margin-top:2px; }
.calc-out .sub2 { font-size:13px; opacity:.9; margin-top:6px; }
.calc-note { font-size:12px; color:var(--ink-400); line-height:1.55; margin-top:16px; }

/* ================================================================
   RESPONSIVE OVERRIDES — must come LAST in the file so they win the
   source-order cascade against base rules (.contact-grid, .calc-page-grid,
   .reviews-grid) that are defined further up but after the media blocks.
   ================================================================ */
html { overflow-x:clip; }

@media (max-width:900px) {
  .calc-page-grid { grid-template-columns:1fr; gap:24px; }
  .contact-grid   { grid-template-columns:1fr; gap:28px; }
  .reviews-grid   { grid-template-columns:1fr; gap:16px; }
}

@media (max-width:600px) {
  /* Mobile nav: only logo + hamburger remain; menu is a clean dropdown */
  .nav { height:62px; gap:10px; }
  .nav__logo img { height:26px; }
  .mobile-menu { padding:6px 0 14px; }
  .mobile-menu a:not(.btn) { font-size:16px; padding:14px 20px; }
  /* The Get-started button was overflowing: width:100% + side margins.
     width:auto on a block-level flex fills the space between its margins. */
  .mobile-menu .btn { width:auto; margin:14px 20px 0; }

  /* Calculators / cards: tighter padding, never wider than the screen */
  .calc-tool { padding:22px 18px; }
  .calc-out { padding:20px 18px; }
  .calc-out .big { font-size:30px; }
  .calc-row input[type=number], .calc-row select { height:48px; font-size:16px; }
  .contact-card { padding:18px; }
}

@media (max-width:380px) {
  .hero h1 { font-size:38px; }
  .page-head h1 { font-size:30px; }
  .section__head h2 { font-size:27px; }
}

/* ================================================================
   BOOK A CALL — HubSpot Meetings (inline embed + popup modal)
   ================================================================ */
.book-live { background:#fff; border:1px solid var(--ink-100); border-radius:20px; box-shadow:var(--shadow-sm); padding:10px; overflow:hidden; }
.book-live .meetings-iframe-container { min-height:690px; }
.book-live iframe { width:100%; min-height:690px; border:0; }

/* Compact "Book a call" button in the top bar — mobile only */
.nav__book { display:none; }
@media (max-width:600px) {
  .nav__logo { flex:none; }                 /* never let the logo get squashed */
  .nav__book { display:inline-flex; align-items:center; justify-content:center; gap:7px; margin-left:auto; height:40px; padding:0 14px; font-size:14px; white-space:nowrap; flex:none; }
  .nav__book svg { width:18px; height:18px; }
  .nav__book .nav__book-label { display:none; }   /* icon-only keeps the header uncrowded */
  .nav__toggle { margin-left:6px; padding:6px; flex:none; }
}

.book-modal { position:fixed; inset:0; z-index:1000; display:none; align-items:flex-start; justify-content:center; padding:24px; background:rgba(12,18,30,.55); backdrop-filter:blur(4px); overflow-y:auto; }
.book-modal.open { display:flex; }
.book-modal__panel { position:relative; background:#fff; border-radius:20px; width:100%; max-width:760px; margin:auto; box-shadow:0 30px 80px rgba(12,18,30,.35); overflow:hidden; }
.book-modal__close { position:absolute; top:12px; right:12px; z-index:2; width:42px; height:42px; border:none; border-radius:999px; background:rgba(255,255,255,.9); color:var(--ink-700); cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(12,18,30,.12); }
.book-modal__close:hover { background:#fff; color:var(--ink-900); }
.book-modal__close svg { width:20px; height:20px; }
.book-modal__body { padding:12px; }
.book-modal__body .meetings-iframe-container, .book-modal__body iframe { width:100%; min-height:700px; border:0; display:block; }
.book-modal__loading { padding:64px 24px; text-align:center; font-family:var(--font-display); font-weight:600; color:var(--ink-500); }
body.book-modal-open { overflow:hidden; }

@media (max-width:600px) {
  .book-modal { padding:0; }
  .book-modal__panel { border-radius:0; max-width:100%; min-height:100%; }
  .book-modal__body { padding:8px; }
  .book-modal__body .meetings-iframe-container, .book-modal__body iframe { min-height:calc(100vh - 16px); }
  .book-live .meetings-iframe-container, .book-live iframe { min-height:640px; }
}

