
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --purple: #7B2FBE;
    --blue: #0095FF;
    --cyan: #00D4FF;
    --grad: linear-gradient(135deg, #7B2FBE 0%, #0095FF 50%, #00D4FF 100%);
    --grad-text: linear-gradient(135deg, #a855f7, #3b82f6, #06b6d4);
    --dark: #000000;
    --dark2: #0a0a0a;
    --dark3: #111111;
    --mid: #1d1d1f;
    --light: #f5f5f7;
    --lighter: #ffffff;
    --muted: #9a9aa0;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(0,0,0,0.1);
    --card-dark: rgba(255,255,255,0.04);
    --card-light: #ffffff;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0,0,0,0.3);
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ───── NAV ───── */
  /* `body > nav.c2c-site-header`, not a bare `nav`. This rule pins its element to the top of
     the window at z-index 1000 — and a bare element selector applied it to
     EVERY <nav> on the page. The encyclopedia's A-Z jump strip was marked up
     as a <nav>, so it pinned itself over the real header and the header
     vanished. Scoped to the direct child of body, which is the one and only
     site header, so semantic <nav> elements inside page content stay inert. */
  body > nav.c2c-site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
  .nav-logo svg { height: 36px; width: auto; }
  .nav-logo-text { font-size: 0.75rem; font-weight: 500; color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase; }
  .nav-links { display: flex; align-items: center; gap: 0.2rem; }
  .nav-links button, .nav-links a {
    text-decoration: none; display: inline-block;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.75); font-family: inherit;
    font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.75rem;
    border-radius: 8px; transition: all 0.2s; white-space: nowrap;
    letter-spacing: -0.01em;
  }
  .nav-links button:hover, .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
  .nav-links button.active, .nav-links a.active { color: #fff; }
  .nav-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
  .btn-ghost {
    background: rgba(255,255,255,0.07); border: 1px solid var(--border);
    color: #fff; padding: 0.45rem 1rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500; cursor: pointer;
    font-family: inherit; transition: all 0.2s; text-decoration: none;
    display: inline-flex; align-items: center;
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.12); }
  .btn-grad {
    background: var(--grad); border: none; color: #fff;
    padding: 0.45rem 1.1rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.2s; text-decoration: none;
    display: inline-flex; align-items: center;
  }
  .btn-grad:hover { opacity: 0.9; transform: translateY(-1px); }

  /* ───── PAGES ───── */
  .page { display: none; padding-top: 64px; min-height: 100vh; }
  .page.active { display: block; }

  /* ───── HOME ───── */
  .hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
    background: var(--dark);
    /* Symmetric padding so align-items:center leaves an EQUAL gap top and
       bottom. The old 6rem-top / 4rem-bottom shifted the whole block down,
       which read as too much empty space above the headline. The page already
       adds 64px up top to clear the fixed nav, so the hero doesn't need extra. */
    padding: 3rem 2rem;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(123,47,190,0.18) 0%, rgba(0,149,255,0.10) 45%, transparent 70%);
    pointer-events: none;
  }
  .hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 80%, rgba(0,212,255,0.08) 0%, transparent 60%);
  }
  .hero-content { position: relative; z-index: 1; max-width: 1180px; width: 100%; }
  /* Two columns on desktop: copy left, live estimator right. This is what fills
     the empty black space the hero used to float in.
     justify-content:center + fixed column widths keep the [text · card] group
     centered in the viewport. Without it the estimator's max-width cap left the
     slack all on the right, so the whole block sat visibly left of centre. */
  .hero-split { display: flex; gap: 3.5rem; align-items: center; justify-content: center; text-align: left; }
  .hero-split .hero-text { flex: 0 1 600px; min-width: 0; }
  .hero-split .hero-text .hero-eyebrow { margin-bottom: 1.5rem; }
  .hero-split .hero p { margin-left: 0; }
  .hero-split .hero-ctas { justify-content: flex-start; margin-bottom: 2.5rem; }
  .hero-split .hero-stats { justify-content: flex-start; }

  /* Estimator card — glassmorphic, sits in the hero. */
  .hero-estimator {
    /* align-self:center, not stretch. Stretching made the card match the
       height of the headline column beside it, which left ~200px of empty
       glass under the disclaimer on a big screen. It now hugs its content. */
    flex: 0 0 400px; max-width: 400px; align-self: center;
    background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    padding: 1.6rem 1.6rem 1.4rem; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .est-head { margin-bottom: 1.2rem; }
  .est-title { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
  .est-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
  .est-row { margin-bottom: 1.05rem; }
  .est-row label { display: flex; justify-content: space-between; align-items: baseline;
    font-size: 0.82rem; color: rgba(255,255,255,0.66); margin-bottom: 0.5rem; }
  .est-row label b { color: #fff; font-weight: 700; font-size: 0.9rem; }
  .est-inline { display: flex; gap: 1rem; align-items: flex-end; }
  .est-mini { flex: 1; margin-bottom: 0; }
  .est-mini .est-row, .est-mini label { margin-bottom: 0.5rem; }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
    border-radius: 5px; background: rgba(255,255,255,0.14); outline: none; cursor: pointer; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%; background: var(--grad);
    box-shadow: 0 2px 8px rgba(0,149,255,0.5); cursor: pointer; border: 2px solid #fff; }
  input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%;
    background: #0095FF; border: 2px solid #fff; cursor: pointer; }
  .est-term { display: flex; gap: 0.35rem; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); border-radius: 10px; padding: 0.25rem; flex-shrink: 0; }
  .est-term-btn { background: none; border: none; color: var(--muted); font-family: inherit;
    font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.7rem; border-radius: 8px; cursor: pointer;
    transition: background .2s, color .2s; }
  .est-term-btn.on { background: var(--grad); color: #fff; }
  .est-result { margin: 1.3rem 0 1.1rem; padding: 1.1rem 1.2rem; border-radius: 14px;
    background: rgba(0,149,255,0.08); border: 1px solid rgba(0,149,255,0.22); text-align: left; }
  .est-pay-label { font-size: 0.74rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.06em; }
  .est-pay { font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
    line-height: 1.1; margin: 0.15rem 0; }
  .est-pay span { font-size: 1rem; font-weight: 600; color: var(--muted); }
  /* What the loan actually costs over its life. The same amortization that
     produces the monthly figure, carried to its conclusion — it fills space
     the card used to waste, and it is the number that makes shopping lenders
     feel worth doing. */
  .est-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.85rem;
    padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .est-split > div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
  .est-split span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .est-split b { font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; }

  /* ── Careers ────────────────────────────────────────────────────────────
     Aimed at an experienced originator reading it on a phone between
     appointments, probably without telling anyone. Generous type, short
     blocks, and the one number that matters made unmissable. */
  .cr-wrap { max-width: 900px; }
  .cr-hero h1 { line-height: 1.15; }
  .cr-hero-cta { margin-top: 1.8rem; }
  .cr-h2 { margin: 3rem 0 0.5rem; font-size: 1.6rem; }
  .cr-lead { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.6rem; }

  .cr-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr));
    gap: 1rem; margin: 0 0 2.4rem; }
  .cr-pillar { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.3rem 1.4rem; transition: transform 0.2s, border-color 0.2s; }
  .cr-pillar:hover { transform: translateY(-4px); border-color: rgba(0,149,255,0.45); }
  .cr-pill-ic { font-size: 1.7rem; display: block; margin-bottom: 0.6rem; }
  .cr-pillar h2 { font-size: 1.06rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.35; }
  .cr-pillar p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 0; }

  /* The one number worth shouting. */
  .cr-money { text-align: center; padding: 2.2rem 1.6rem; border-radius: 20px; margin: 0 0 1rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.2), rgba(0,149,255,0.16));
    border: 1px solid rgba(0,149,255,0.35); }
  .cr-money-big { font-size: 3.4rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
  @media (max-width: 560px) { .cr-money-big { font-size: 2.5rem; } }
  .cr-money-t { font-size: 0.86rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--muted); margin: 0.5rem 0 1.1rem; }
  .cr-money p { max-width: 620px; margin: 0 auto; font-size: 0.92rem; line-height: 1.75;
    color: rgba(255,255,255,0.8); }
  .cr-money b { color: #fff; }

  .cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); gap: 1rem; }
  .cr-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px; padding: 1.2rem 1.3rem; }
  .cr-card h3 { font-size: 1rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.4; }
  .cr-card p { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin: 0; }

  .cr-tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 0.7rem; }
  .cr-tech-i { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem;
    border-radius: 12px; background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(0,149,255,0.5); }
  .cr-tech-i b { color: #fff; font-size: 0.92rem; font-weight: 700; }
  .cr-tech-i span { color: var(--muted); font-size: 0.84rem; line-height: 1.65; }

  .cr-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  @media (max-width: 760px) { .cr-fit { grid-template-columns: 1fr; } }
  .cr-fit-col { border-radius: 14px; padding: 1.2rem 1.3rem; border: 1px solid rgba(255,255,255,0.09); }
  .cr-fit-col.yes { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.28); }
  .cr-fit-col.no { background: rgba(255,255,255,0.03); }
  .cr-fit-col h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.7rem; }
  .cr-fit-col ul { margin: 0; padding-left: 1.1rem; }
  .cr-fit-col li { font-size: 0.87rem; color: rgba(255,255,255,0.75); line-height: 1.7;
    margin-bottom: 0.6rem; }

  .cr-role { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
  .cr-role-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.7rem;
    margin-bottom: 0.7rem; }
  .cr-role-h h3 { font-size: 1.15rem; color: #fff; margin: 0; }
  .cr-role-loc { font-size: 0.74rem; font-weight: 700; color: #8fd3ff;
    background: rgba(0,149,255,0.13); border: 1px solid rgba(0,149,255,0.3);
    border-radius: 999px; padding: 0.25rem 0.7rem; }
  .cr-role > p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.75; }
  .cr-role-r { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.08); }
  .cr-role-r b { display: block; font-size: 0.76rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.5rem; }
  .cr-role-r ul { margin: 0; padding-left: 1.1rem; }
  .cr-role-r li { font-size: 0.86rem; color: rgba(255,255,255,0.72); line-height: 1.7;
    margin-bottom: 0.35rem; }

  /* Application */
  .cr-apply { margin-top: 3rem; padding: 1.8rem; border-radius: 20px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    scroll-margin-top: 90px; }
  .cr-apply h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .cr-apply-s { font-size: 0.87rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.4rem; }
  .cr-form { display: flex; flex-direction: column; gap: 0.9rem; }
  .cr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  @media (max-width: 620px) { .cr-two { grid-template-columns: 1fr; } }
  .cr-apply .cc-f i { font-style: normal; text-transform: none; letter-spacing: 0;
    color: rgba(255,255,255,0.35); font-weight: 400; }
  .cr-apply textarea { min-height: 130px; padding: 0.8rem 0.9rem; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.14); border-radius: 11px; color: #fff;
    font-family: inherit; font-size: 0.95rem; line-height: 1.6; outline: 0; resize: vertical; }
  .cr-apply textarea:focus { border-color: var(--blue); }
  .cr-apply input.bad, .cr-apply textarea.bad { border-color: #ff5470; }
  .cr-count { font-size: 0.72rem; color: var(--muted); text-align: right; }
  .cr-submit { align-self: flex-start; min-height: 50px; padding: 0.85rem 2rem; border: 0;
    cursor: pointer; font-size: 0.95rem; }
  .cr-submit:disabled { opacity: 0.5; cursor: default; }
  .cr-apply-alt { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }
  .cr-apply-alt a { color: #7fbcff; }
  .cr-done { text-align: center; padding: 1.5rem 0; }
  .cr-done-ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 10px 34px rgba(0,150,255,0.4); }
  .cr-done h3 { font-size: 1.25rem; color: #fff; margin-bottom: 0.5rem; }
  .cr-done p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; max-width: 460px;
    margin: 0 auto; }

  /* ── Voice FAQ ──────────────────────────────────────────────────────────
     Answers written to be read aloud. The alternative phrasings are in the
     markup but out of sight — they help a search or an ingestion pipeline
     match a question however the caller phrased it. */
  .vq-wrap { max-width: 780px; }
  .vq-item { padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .vq-item:last-of-type { border-bottom: 0; }
  .vq-q { font-size: 1.12rem; font-weight: 700; color: #fff; letter-spacing: -0.01em;
    margin-bottom: 0.5rem; line-height: 1.35; }
  .vq-a { font-size: 0.97rem; line-height: 1.75; color: rgba(255,255,255,0.8); margin: 0; }
  .vq-alt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; }

  /* ── Closing cost estimator ─────────────────────────────────────────────
     Two columns on purpose: what the state charges (fixed) and what a
     provider quotes (variable). Conflating them is how buyers end up feeling
     misled by an estimate that was never wrong, just imprecise. */
  .cc-wrap { max-width: 900px; }
  .cc-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 1.3rem; margin-bottom: 1.5rem; }
  .cc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; }
  @media (max-width: 700px) { .cc-row { grid-template-columns: 1fr; } }
  /* min-width:0 matters more than it looks. A <select> cannot shrink below its
     longest <option>, and a grid or flex item defaults to min-width:auto — so
     one long option ("Licensed Loan Officer (MLO)") set a floor of 338px for
     the whole column and pushed the careers page 79px off the side of an
     iPhone SE. Sideways scrolling on the page where people apply for a job. */
  .cc-f { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
  .cc-f select, .cc-f input, .cc-f textarea { width: 100%; min-width: 0; max-width: 100%; }
  .cc-f span { font-size: 0.74rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.05em; }
  .cc-f select, .cc-f input { min-height: 50px; padding: 0.7rem 0.9rem;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.14); border-radius: 11px;
    color: #fff; font-family: inherit; font-size: 1rem; outline: 0; }
  .cc-f input.cc-money { font-weight: 700; }
  .cc-f select:focus, .cc-f input:focus { border-color: var(--blue); }
  .cc-opts { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
  .cc-opt { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer;
    padding: 0.6rem 0.7rem; border-radius: 11px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02); }
  .cc-opt:hover { border-color: rgba(0,149,255,0.4); }
  .cc-opt input { margin-top: 3px; accent-color: #0095FF; }
  .cc-opt b { display: block; font-size: 0.85rem; color: #fff; font-weight: 600; }
  .cc-opt small { display: block; font-size: 0.76rem; color: var(--muted);
    line-height: 1.5; margin-top: 0.2rem; }
  .cc-total { text-align: center; padding: 1.5rem 1rem; border-radius: 16px; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.18), rgba(0,149,255,0.14));
    border: 1px solid rgba(0,149,255,0.3); }
  .cc-total-l { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); font-weight: 600; }
  .cc-total-v { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em;
    margin: 0.35rem 0 0.4rem; line-height: 1.15; }
  @media (max-width: 560px) { .cc-total-v { font-size: 1.5rem; } }
  .cc-total-s { font-size: 0.82rem; color: rgba(255,255,255,0.66); line-height: 1.55; }
  .cc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  @media (max-width: 800px) { .cc-cols { grid-template-columns: 1fr; } }
  .cc-col { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px; padding: 1.1rem 1.2rem; }
  .cc-col h3 { font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
  .cc-col-s { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.9rem; line-height: 1.5; }
  .cc-table { width: 100%; border-collapse: collapse; }
  .cc-table th { text-align: left; font-weight: 600; font-size: 0.86rem; color: rgba(255,255,255,0.82);
    padding: 0.55rem 0.6rem 0.55rem 0; vertical-align: top;
    border-top: 1px solid rgba(255,255,255,0.06); }
  .cc-table th small { display: block; font-weight: 400; font-size: 0.73rem; color: var(--muted);
    line-height: 1.5; margin-top: 0.2rem; }
  .cc-table td { text-align: right; font-size: 0.86rem; font-weight: 700; color: #fff;
    white-space: nowrap; padding: 0.55rem 0 0.55rem 0.6rem; vertical-align: top;
    border-top: 1px solid rgba(255,255,255,0.06); }
  .cc-table tr:first-child th, .cc-table tr:first-child td { border-top: 0; }
  .cc-table td i { color: var(--muted); font-weight: 500; font-style: normal; font-size: 0.8rem; }
  .cc-seller, .cc-notes { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
  .cc-seller h3, .cc-notes h3 { font-size: 0.95rem; color: #fff; margin-bottom: 0.4rem; }
  .cc-seller p { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
  .cc-seller ul, .cc-notes ul { margin: 0; padding-left: 1.1rem; }
  .cc-seller li, .cc-notes li { font-size: 0.84rem; color: rgba(255,255,255,0.75);
    line-height: 1.65; margin-bottom: 0.4rem; }
  .cc-seller li b { color: #fff; }

  /* ── Mortgage Encyclopedia ──────────────────────────────────────────────
     Every entry is in the HTML at all times; the search only toggles the
     hidden attribute. That keeps the page fully readable to crawlers and to
     the AI receptionist that ingests the site, and it means the page still
     works with JavaScript off. */
  .enc-wrap { max-width: 860px; }
  .enc-tools { position: sticky; top: 64px; z-index: 20; padding: 1rem 0 0.9rem;
    background: linear-gradient(#000 78%, rgba(0,0,0,0)); margin-bottom: 0.5rem; }
  .enc-search-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .enc-search { display: flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px; padding: 0 0.9rem; transition: border-color 0.18s, background 0.18s; }
  .enc-search:focus-within { border-color: var(--blue); background: rgba(0,149,255,0.07); }
  .enc-mag { font-size: 0.95rem; opacity: 0.7; }
  .enc-search input { flex: 1; min-height: 52px; background: none; border: 0; outline: 0;
    color: #fff; font-family: inherit; font-size: 1rem; }
  .enc-search input::-webkit-search-cancel-button { display: none; }
  .enc-clear { background: none; border: 0; color: var(--muted); font-size: 1.5rem;
    line-height: 1; cursor: pointer; padding: 0 0.2rem; min-height: 44px; }
  .enc-clear:hover { color: #fff; }
  .enc-count { font-size: 0.74rem; color: var(--muted); margin-top: 0.5rem; padding-left: 0.2rem; }
  .enc-cat { margin-bottom: 2.6rem; }
  .enc-cat h2 { margin-bottom: 0.3rem; }
  .enc-blurb { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
  .enc-list { margin: 0; }
  .enc-item { padding: 1rem 0 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.07);
    scroll-margin-top: 150px; }
  .enc-item:last-child { border-bottom: 0; }
  .enc-item dt { font-size: 1.06rem; font-weight: 700; color: #fff; letter-spacing: -0.01em;
    margin-bottom: 0.35rem; }
  .enc-item dd { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.94rem; line-height: 1.65; }
  .enc-item dd p { margin: 0; }
  .enc-anchor { margin-left: 0.45rem; color: rgba(255,255,255,0.2); text-decoration: none;
    font-weight: 600; font-size: 0.85rem; }
  .enc-item:hover .enc-anchor { color: var(--blue); }
  .enc-alias, .enc-see { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
  .enc-see a { color: #7fbcff; text-decoration: none; }
  .enc-see a:hover { text-decoration: underline; }
  .enc-hit { background: rgba(0,149,255,0.09); border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0,149,255,0.35); padding-left: 0.8rem; padding-right: 0.8rem; }
  .enc-empty { padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
  .enc-empty b { color: #fff; }
  .enc-empty a { color: #7fbcff; }
  .enc-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem; color: var(--muted); line-height: 1.65; }
  @media (max-width: 700px) {
    .enc-tools { top: 56px; }
    .enc-item dt { font-size: 1rem; }
  }
  .est-break { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
  .est-cta { display: block; text-align: center; background: var(--grad); color: #fff;
    text-decoration: none; font-weight: 700; font-size: 0.92rem; padding: 0.8rem;
    border-radius: 12px; transition: transform .2s, box-shadow .3s; }
  .est-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,149,255,0.4); }
  .est-disc { font-size: 0.68rem; color: rgba(255,255,255,0.4); line-height: 1.5; margin-top: 0.9rem;
    text-align: center; }
  @media (max-width: 900px) {
    .hero-split { flex-direction: column; gap: 2.5rem; text-align: center; }
    .hero-split .hero-text { flex: 0 1 auto; }
    .hero-split .hero p { margin: 0 auto 2.5rem; }
    .hero-split .hero-ctas, .hero-split .hero-stats { justify-content: center; }
    /* Reset the desktop fixed-width flex so it doesn't read as a fixed HEIGHT
       once the row becomes a column. */
    .hero-estimator { flex: 0 0 auto; max-width: 440px; width: 100%; text-align: left; }
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    padding: 0.4rem 1rem; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em; margin-bottom: 2rem;
  }
  .hero-eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800;
    line-height: 1.05; letter-spacing: -0.03em;
    color: #fff; margin-bottom: 1.5rem;
  }
  .grad-text {
    background: var(--grad-text); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
  }
  .hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.6);
    max-width: 580px; margin: 0 auto 2.5rem; font-weight: 400; line-height: 1.7;
  }
  .hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
  /* NOTE on vertical-align: these two are used side by side as inline-block
     anchors. The secondary carries a 1px border and the primary does not, so
     with the default baseline alignment the bordered one sat 20px LOWER than
     its neighbour — the buttons looked broken on the contact page. Aligning
     both to the middle makes the pair sit level regardless of borders. The
     .cta-row wrapper below is the belt to this braces. */
  .btn-primary {
    background: var(--grad); color: #fff; border: none;
    padding: 0.9rem 2rem; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.25s;
    box-shadow: 0 0 40px rgba(0,149,255,0.3);
    text-decoration: none; display: inline-block; vertical-align: middle;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(0,149,255,0.5); }
  .btn-secondary {
    background: rgba(255,255,255,0.06); color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.9rem 2rem; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.25s; text-decoration: none;
    display: inline-block; vertical-align: middle;
  }
  /* Any pair of buttons sitting together. Flex rather than margin hacks, so
     they stay level, keep an even gap, and wrap tidily on a narrow phone
     instead of one hanging off the edge. */
  .cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
    align-items: center; }
  .btn-secondary:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

  /* Steps */
  .steps-section { padding: 5rem 2rem; background: var(--dark2); }
  .section-label {
    text-align: center; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 1rem;
  }
  .section-title {
    text-align: center; font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; letter-spacing: -0.02em; color: #fff;
    margin-bottom: 1rem;
  }
  .section-sub {
    text-align: center; color: var(--muted); max-width: 540px;
    margin: 0 auto 3.5rem; font-size: 1.05rem;
  }
  .steps-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr));
    gap: 1.5rem; position: relative;
  }
  .step-card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem 1.5rem;
    text-align: center; position: relative; transition: all 0.3s;
  }
  .step-card:hover { border-color: rgba(0,149,255,0.3); transform: translateY(-4px); }
  .step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 auto 1.2rem;
    box-shadow: 0 0 20px rgba(0,149,255,0.3);
  }
  .step-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
  .step-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

  /* Loan types */
  .loans-section { padding: 5rem 2rem; background: var(--dark); }
  .loans-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px,100%), 1fr));
    gap: 1rem;
  }
  .loan-pill {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.1rem 1rem;
    text-align: center; transition: all 0.25s; cursor: default;
  }
  a.loan-pill { text-decoration:none; color:inherit; }
  .loan-pill:hover { border-color: rgba(0,149,255,0.4); background: rgba(0,149,255,0.05); }
  .loan-pill .icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
  .loan-pill span { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.85); display: block; }

  /* Lenders */
  .lenders-section { padding: 4rem 2rem; background: var(--dark2); }
  .lenders-row {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  }
  .lender-badge {
    background: var(--card-dark); border: 1px solid var(--border);
    padding: 0.6rem 1.4rem; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7);
    transition: all 0.2s; text-decoration: none; cursor: default;
  }
  a.lender-badge { cursor: pointer; }
  .lender-badge:hover { border-color: var(--cyan); color: var(--cyan); }

  /* CTA Banner */
  .cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(123,47,190,0.15) 0%, rgba(0,149,255,0.12) 50%, rgba(0,212,255,0.08) 100%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
  .cta-section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

  /* ───── GENERIC INNER PAGE ───── */
  .inner-page { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
  .page-hero { padding: 5rem 2rem 3rem; text-align: center; background: var(--dark); }
  .page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
  .page-hero p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

  /* Cards */
  .card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    transition: all 0.3s;
  }
  .card:hover { border-color: rgba(0,149,255,0.25); transform: translateY(-3px); }
  .card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
  .card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); gap: 1.5rem; }
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); gap: 1.5rem; }

  /* ───── TEAM ───── */
  .team-card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center;
    transition: all 0.3s;
  }
  .team-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); }
  .avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700; color: #fff;
    margin: 0 auto 1.2rem;
    box-shadow: 0 0 30px rgba(0,149,255,0.3);
  }
  .team-card h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
  .team-role { font-size: 0.85rem; color: var(--cyan); font-weight: 600; margin-bottom: 0.3rem; }
  .team-nmls { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
  /* The static, crawlable roster (replaced by JS-rendered cards for humans). */
  /* ── Verify / anti-fraud page ── */
  .verify-contact { background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 1.5rem 0 2rem; }
  .verify-contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.4rem; margin: 0; }
  .verify-contact dt { color: var(--muted); font-size: 0.85rem; }
  .verify-contact dd { color: #fff; font-size: 0.95rem; margin: 0; font-weight: 600; }
  .verify-contact dd a { color: var(--cyan); border: none; }
  .verify-warn { border: 1px solid rgba(255,90,90,0.4); background: rgba(255,70,70,0.07);
    border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2rem 0; }
  .verify-warn h2 { color: #ff9d9d; margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
  .verify-warn p { color: rgba(255,255,255,0.82); }
  .verify-warn strong { color: #fff; }
  @media (max-width: 560px) { .verify-contact dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
    .verify-contact dt { margin-top: 0.6rem; } }

  /* ── SEO landing pages ── */
  .lp-wrap { max-width: 820px; margin: 0 auto; padding: 0 2rem 1rem; }
  .lp-wrap h2 { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: -0.01em;
    margin: 2.4rem 0 0.9rem; }
  .lp-wrap p { color: rgba(255,255,255,0.72); font-size: 1.02rem; line-height: 1.75;
    margin-bottom: 1rem; }
  .lp-wrap a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,0.3); }
  .lp-wrap a:hover { border-bottom-color: var(--cyan); }
  .lp-faq { margin-top: 2.8rem; }
  .lp-faq h2 { margin-bottom: 1.4rem; }
  .lp-faq-item { border-top: 1px solid var(--border); padding: 1.2rem 0; }
  .lp-faq-item h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
  .lp-faq-item p { margin-bottom: 0; color: var(--muted); }
  .lp-cta { max-width: 820px; margin: 3rem auto 0; padding: 2.5rem 2rem; text-align: center;
    background: var(--card-dark); border: 1px solid var(--border); border-radius: var(--radius); }
  .lp-cta h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
  .lp-cta p { color: var(--muted); margin-bottom: 1.4rem; }
  .lp-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .footer-seo { max-width: 900px; margin: 1.5rem auto 0; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
  .footer-seo-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3); margin-bottom: 0.6rem; }
  .footer-seo a { color: rgba(255,255,255,0.45); font-size: 0.8rem; text-decoration: none;
    margin: 0 0.5rem; line-height: 2; white-space: nowrap; }
  .footer-seo a:hover { color: var(--cyan); }
  .team-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
  .team-bio { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin: 0.8rem 0 1rem; }
  .team-meta { font-size: 0.76rem; color: rgba(255,255,255,0.5); letter-spacing: 0.01em; }
  .team-langs {
    display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem;
  }
  .lang-tag {
    background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2);
    color: var(--cyan); padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
  }
  .team-contacts { display: flex; flex-direction: column; gap: 0.4rem; }
  .team-apply { display:inline-block; margin-top:1rem; background:var(--grad); color:#fff; font-weight:700; font-size:0.85rem; padding:0.6rem 1.4rem; border-radius:10px; text-decoration:none; transition:opacity 0.2s; }
  .team-apply:hover { opacity:0.85; }
  .team-contacts a {
    color: var(--muted); font-size: 0.82rem; text-decoration: none;
    transition: color 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  }
  .team-contacts a:hover { color: #fff; }

  /* ───── MORTGAGES TAB ───── */
  .loan-selector { max-width: 1100px; margin: 0 auto; padding: 2rem; }
  .loan-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; justify-content: center; }
  .loan-tab-btn {
    background: var(--card-dark); border: 1px solid var(--border);
    color: rgba(255,255,255,0.7); padding: 0.6rem 1.2rem; border-radius: 25px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.25s;
  }
  .loan-tab-btn:hover, .loan-tab-btn.active {
    background: var(--grad); border-color: transparent; color: #fff;
  }
  .loan-detail { display: none; }
  .loan-detail.active { display: block; }
  .loan-detail-card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.5rem;
  }
  .loan-detail-card h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
  .loan-detail-card .desc { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.5rem; }
  .loan-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap: 0.8rem; }
  .loan-feature {
    background: rgba(0,149,255,0.07); border: 1px solid rgba(0,149,255,0.15);
    border-radius: 10px; padding: 0.8rem 1rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 500;
  }
  .loan-feature::before { content: '✓ '; color: var(--cyan); font-weight: 700; }

  /* ───── RESOURCES ───── */
  .res-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
  .res-tab-btn {
    background: var(--card-dark); border: 1px solid var(--border);
    color: rgba(255,255,255,0.7); padding: 0.6rem 1.2rem; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
  }
  .res-tab-btn:hover { color: #fff; }
  .res-tab-btn.active { background: rgba(0,149,255,0.15); border-color: rgba(0,149,255,0.4); color: var(--blue); }
  .res-panel { display: none; }
  .res-panel.active { display: block; }
  .process-step {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1rem;
    display: flex; gap: 1.2rem; align-items: flex-start;
  }
  .process-step-num {
    width: 36px; height: 36px; border-radius: 50%; background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
  }
  .process-step h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
  .process-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
  .docs-category { margin-bottom: 2rem; }
  .docs-category h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-left: 1rem; border-left: 3px solid var(--cyan); }
  .docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px,100%), 1fr)); gap: 0.6rem; }
  .doc-item {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.7rem 1rem;
    font-size: 0.85rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 0.5rem;
  }
  .doc-item::before { content: '▸'; color: var(--cyan); font-size: 0.9rem; flex-shrink: 0; }
  .faq-item { margin-bottom: 0.8rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .faq-q {
    width: 100%; background: var(--card-dark); border: none; color: #fff;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    padding: 1.2rem 1.5rem; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
  }
  .faq-q:hover { background: rgba(255,255,255,0.05); }
  .faq-q .arrow { transition: transform 0.3s; font-size: 0.8rem; color: var(--cyan); }
  .faq-q.open .arrow { transform: rotate(180deg); }
  .faq-a { display: none; padding: 0 1.5rem 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
  .faq-a.open { display: block; }
  .glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr)); gap: 1rem; }
  .glossary-item {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.2rem;
  }
  /* The free tools, on the Resources page. */
  .res-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px,100%), 1fr));
    gap: 0.8rem; margin-bottom: 1.6rem; }
  .res-tool { display: block; text-decoration: none; padding: 1rem 1.1rem; border-radius: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.18s, border-color 0.18s, background 0.18s; }
  .res-tool:hover { transform: translateY(-3px); border-color: rgba(0,149,255,0.5);
    background: rgba(0,149,255,0.07); }
  .res-tool-ic { font-size: 1.4rem; display: block; margin-bottom: 0.45rem; }
  .res-tool b { display: block; color: #fff; font-size: 0.95rem; font-weight: 700;
    margin-bottom: 0.3rem; }
  .res-tool small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }

  /* ───── CALCULATOR SWITCHER ─────
     Five calculators now exist, and for a while four of them were reachable
     only from a link at the very bottom of the page. This strip sits directly
     under the Calculators hero and makes the whole set visible at a glance —
     the one you are on is marked, the rest are one click away. It is also on
     the affordability page, so the two original calculators cross-link. */
  /* Five explicit columns, NOT auto-fit. Auto-fit sizes itself to whatever
     container it lands in, and the five calculator pages have three different
     container widths — so the strip drew 5 across on one page and 4-plus-1 on
     the next, and the layout appeared to change every time you switched
     calculator. A fixed column count and one shared width make it identical on
     all five. It only changes shape at the viewport widths below. */
  .calc-switch { display: grid; gap: 0.7rem; margin: 0 auto 2rem;
    max-width: 820px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  @media (max-width: 880px) { .calc-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .calc-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .calc-switch-label { display: block; text-align: center; color: var(--muted);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 0.9rem; }
  .cs-card { display: block; text-decoration: none; text-align: center;
    padding: 1rem 0.85rem; border-radius: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.18s, border-color 0.18s, background 0.18s; }
  .cs-card:hover { transform: translateY(-3px); border-color: rgba(0,149,255,0.5);
    background: rgba(0,149,255,0.07); }
  .cs-card .cs-ic { display: block; font-size: 1.5rem; margin-bottom: 0.5rem; }
  .cs-card b { display: block; color: #fff; font-size: 0.9rem; font-weight: 700;
    margin-bottom: 0.25rem; }
  .cs-card small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
  /* The calculator you are already looking at. Marked, and not a link. */
  .cs-card.is-here { background: linear-gradient(135deg, rgba(123,47,190,0.2), rgba(0,149,255,0.14));
    border-color: rgba(0,149,255,0.45); cursor: default; }
  .cs-card.is-here:hover { transform: none; }
  .cs-card.is-here b::after { content: ' •'; color: var(--cyan); }
  /* The tool pages wrap their copy in .lp-wrap, which underlines every link in
     the prose. These are cards, not prose links — no underline. */
  .calc-switch a, .calc-switch a:hover { border-bottom: none; }
  /* On the standalone tool pages the strip sits between the hero and the tool.
     852 = the strip's 820 plus 1rem of padding either side, so the usable width
     inside here matches what the in-page calculators give it exactly. */
  .calc-switch-wrap { max-width: 852px; margin: 0 auto; padding: 0 1rem; }

  /* Link from the short glossary to the full encyclopedia page. */
  .enc-promo { display: flex; align-items: center; gap: 1rem; text-decoration: none;
    background: linear-gradient(135deg, rgba(123,47,190,0.16), rgba(0,149,255,0.12));
    border: 1px solid rgba(0,149,255,0.3); border-radius: 14px; padding: 1rem 1.2rem;
    margin-bottom: 1.5rem; transition: transform 0.18s, border-color 0.18s; }
  .enc-promo:hover { transform: translateY(-2px); border-color: rgba(0,149,255,0.65); }
  .enc-promo-ic { font-size: 1.6rem; flex-shrink: 0; }
  .enc-promo-t { flex: 1; min-width: 0; }
  .enc-promo-t b { display: block; color: #fff; font-size: 0.98rem; font-weight: 700; }
  .enc-promo-t small { display: block; color: var(--muted); font-size: 0.82rem;
    line-height: 1.55; margin-top: 0.25rem; }
  .enc-promo-go { color: var(--cyan); font-size: 1.3rem; flex-shrink: 0; }
  .glossary-item h4 { color: var(--cyan); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
  .glossary-item p { color: var(--muted); font-size: 0.83rem; line-height: 1.6; }

  /* ───── CONTACT ───── */
  .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px,100%), 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
  .contact-card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; text-align: center;
  }
  .contact-icon { font-size: 2rem; margin-bottom: 0.8rem; }
  .contact-card h3 { color: #fff; font-weight: 700; margin-bottom: 0.8rem; }
  .contact-card a, .contact-card p { color: var(--muted); font-size: 0.9rem; text-decoration: none; display: block; margin-bottom: 0.3rem; }
  .contact-card a:hover { color: var(--cyan); }

  /* ───── LOGIN PAGES ───── */
  .login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 5rem 2rem; background: var(--dark);
    background-image: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(123,47,190,0.15), transparent);
  }
  .login-box {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 24px; padding: 3rem; max-width: 420px; width: 100%;
    text-align: center;
  }
  .login-box h2 { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
  .login-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
  .form-group { margin-bottom: 1rem; text-align: left; }
  .form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; }
  .form-group input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 10px; padding: 0.8rem 1rem; color: #fff; font-family: inherit;
    font-size: 0.95rem; transition: border-color 0.2s; outline: none;
  }
  .form-group input:focus { border-color: rgba(0,149,255,0.5); }
  .form-group input::placeholder { color: rgba(255,255,255,0.25); }
  .login-btn {
    width: 100%; background: var(--grad); border: none; color: #fff;
    padding: 0.9rem; border-radius: 12px; font-size: 1rem; font-weight: 700;
    cursor: pointer; font-family: inherit; margin-top: 0.5rem;
    transition: all 0.2s;
  }
  .login-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  .login-error { color: #ff6b6b; font-size: 0.85rem; margin-top: 0.8rem; display: none; }
  .emp-dashboard { display: none; }
  .emp-dashboard h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
  .emp-dashboard .welcome { color: var(--muted); margin-bottom: 2rem; font-size: 0.9rem; }
  .emp-link-grid { display: grid; gap: 0.8rem; }
  .emp-link {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: 12px; padding: 1rem 1.2rem;
    display: flex; align-items: center; gap: 0.8rem;
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
  }
  .emp-link:hover { border-color: rgba(0,149,255,0.4); background: rgba(0,149,255,0.07); color: #fff; }
  .emp-link .el-icon { font-size: 1.3rem; flex-shrink: 0; }
  .emp-link .el-sub { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
  .logout-btn {
    margin-top: 1.5rem; background: none; border: 1px solid var(--border);
    color: var(--muted); padding: 0.6rem 1.5rem; border-radius: 8px;
    font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
  }
  .logout-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

  /* ───── EMPLOYEE FULL DASHBOARD ───── */
  #emp-full-dashboard { display: none; flex-direction: column; height: calc(100vh - 64px); }
  #emp-full-dashboard.visible { display: flex; }

  /* ── Portal top bar ── */
  .emp-topbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0;
    background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--border);
    padding: 0 1.5rem; flex-shrink: 0; min-height: 52px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .emp-topbar-title { font-size: 0.85rem; font-weight: 700; color: var(--cyan); margin-right: 1rem; white-space: nowrap; }
  .emp-tab-nav { display: flex; gap: 0.25rem; flex: 1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .emp-tab-nav::-webkit-scrollbar { display: none; }
  .emp-tab-nav button {
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.55);
    padding: 0.4rem 1rem; border-radius: 7px; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
  }
  .emp-tab-nav button:hover { color: #fff; background: rgba(255,255,255,0.07); }
  .emp-tab-nav button.active { color: #fff; background: rgba(0,149,255,0.15); }
  .emp-topbar-right { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
  .emp-topbar-right span { font-size: 0.78rem; color: var(--muted); }
  .emp-signout {
    background: none; border: 1px solid var(--border); color: var(--muted);
    padding: 0.35rem 0.9rem; border-radius: 6px; font-family: inherit;
    font-size: 0.78rem; cursor: pointer; transition: all 0.2s; white-space: nowrap;
  }
  .emp-signout:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

  .emp-iframe {
    width: 100%; flex: 1; border: none; background: #fff;
    overflow: auto; -webkit-overflow-scrolling: touch;
    min-height: 0;        /* allow flex shrink to work */
    display: block;
  }
  .emp-grid-panel { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2rem; }
  .emp-portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%), 1fr)); gap: 1.2rem; max-width: 900px; }
  .emp-portal-card {
    background: var(--card-dark); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.8rem; text-decoration: none;
    display: flex; flex-direction: column; gap: 0.8rem; transition: all 0.25s;
  }
  .emp-portal-card:hover { border-color: rgba(0,149,255,0.4); transform: translateY(-3px); background: rgba(0,149,255,0.06); }
  .emp-portal-card .pc-icon { font-size: 2.2rem; }
  .emp-portal-card .pc-name { font-size: 1.05rem; font-weight: 700; color: #fff; }
  .emp-portal-card .pc-url { font-size: 0.78rem; color: var(--cyan); }
  .emp-portal-card .pc-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
  .emp-section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }

  .emp-content { flex: 1; overflow: hidden; display: flex; position: relative; min-height: 0; }
  .emp-panel { display: none; flex: 1; flex-direction: column; height: 100%; overflow: hidden; min-height: 0; }
  .emp-panel.active { display: flex; }

  /* ── Arive mobile fallback ── */
  .arive-mobile-fallback {
    display: none; flex: 1; flex-direction: column; align-items: center;
    justify-content: center; padding: 2rem; text-align: center; gap: 1.2rem;
    background: var(--dark2);
  }
  .arive-mobile-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--grad); color: #fff; border: none; border-radius: 14px;
    padding: 1rem 2rem; font-size: 1.05rem; font-weight: 700;
    font-family: inherit; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,149,255,0.35); transition: all 0.2s;
  }
  .arive-mobile-btn:hover { opacity: 0.9; transform: translateY(-2px); }

  /* ── Mobile overrides ── */
  @media (max-width: 768px) {
    #emp-full-dashboard { height: calc(100vh - 64px); }
    .emp-topbar { padding: 0.5rem 1rem; gap: 0.4rem; }
    .emp-topbar-title { font-size: 0.8rem; }
    .emp-topbar-right span { display: none; }   /* hide name — save space */
    .emp-signout { padding: 0.3rem 0.65rem; font-size: 0.72rem; }
    .emp-tab-nav button { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
    .emp-grid-panel { padding: 1rem; }
    .emp-portal-grid { grid-template-columns: 1fr; max-width: 100%; }
    .emp-portal-card { padding: 1.2rem; border-radius: 12px; }
    .emp-portal-card .pc-desc { display: none; }  /* hide description on small screen */
    /* On mobile: show fallback card, hide iframe (Safari ITP blocks cross-origin cookies in iframes) */
    .arive-mobile-fallback { display: flex !important; }
    .emp-iframe { display: none !important; }
  }


  /* ───── ADMIN PANEL ───── */
  .admin-user-row { display:flex; align-items:center; gap:1rem; padding:0.75rem 1rem; background:rgba(255,255,255,0.04); border-radius:10px; margin-bottom:0.5rem; flex-wrap:wrap; }
  .admin-user-info { flex:1; min-width:150px; }
  .admin-user-name { font-weight:700; color:#fff; font-size:0.95rem; }
  .admin-user-meta { font-size:0.78rem; color:var(--muted); margin-top:0.2rem; }
  .admin-user-actions { display:flex; gap:0.5rem; flex-wrap:wrap; }
  .admin-btn { padding:0.35rem 0.75rem; border:none; border-radius:6px; font-size:0.78rem; cursor:pointer; font-weight:600; transition:opacity .15s; }
  .admin-btn:hover { opacity:0.8; }
  .admin-btn-red { background:rgba(192,57,43,0.85); color:#fff; }
  .admin-btn-blue { background:rgba(32,85,164,0.9); color:#fff; }
  .admin-btn-gray { background:rgba(255,255,255,0.12); color:#fff; }
  .admin-add-form { display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:0.75rem; align-items:end; margin-top:1rem; }
  .admin-input { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:8px; color:#fff; padding:0.55rem 0.75rem; font-size:0.88rem; width:100%; outline:none; font-family:inherit; }
  .admin-input:focus { border-color:var(--cyan); }
  .admin-input::placeholder { color:var(--muted); }
  select.admin-input option { background:#1a1f2e; color:#fff; }
  textarea.admin-input { resize:vertical; min-height:60px; }
  .admin-form-block { background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:1.25rem;margin-top:1rem; }
  .admin-form-row { display:grid; gap:0.75rem; margin-bottom:0.75rem; }
  .admin-form-row:last-child { margin-bottom:0; }
  .admin-form-label { font-size:0.78rem;color:var(--muted);margin-bottom:0.35rem; }
  .admin-msg { margin-top:0.75rem; font-size:0.85rem; padding:0.55rem 1rem; border-radius:8px; }
  .admin-msg.ok { background:rgba(74,222,128,0.12); color:#4ade80; }
  .admin-msg.err { background:rgba(248,113,113,0.12); color:#f87171; }
  @media(max-width:768px) { .admin-add-form { grid-template-columns:1fr 1fr; } }

  /* ───── WRITE-UPS / STRIKES ───── */
  .strike-banner { padding: 0.75rem 1rem; flex-shrink: 0; }
  .strike-card { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.28); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
  .strike-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.35rem; gap: 0.5rem; }
  .strike-title { color: #f87171; font-weight: 700; font-size: 0.88rem; }
  .strike-badge { background: rgba(239,68,68,0.15); color: #f87171; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
  .strike-detail { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
  .strike-exp { color: rgba(248,113,113,0.7); font-size: 0.75rem; margin-top: 0.3rem; }
  .writeup-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:9999; align-items:center; justify-content:center; padding:1rem; }
  .writeup-overlay.open { display:flex; }
  .writeup-box { background:#111; border:1px solid rgba(255,255,255,0.1); border-radius:16px; padding:1.5rem; width:100%; max-width:460px; }
  .writeup-box h3 { color:#fff; margin-bottom:0.5rem; font-size:1.1rem; }
  .writeup-box p { color:var(--muted); font-size:0.88rem; margin-bottom:0.5rem; }
  .writeup-field-lbl { display:block; color:var(--muted); font-size:0.78rem; margin-bottom:0.3rem; margin-top:0.75rem; }
  .writeup-select { width:100%; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:8px; color:#fff; padding:0.55rem 0.75rem; font-size:0.88rem; outline:none; font-family:inherit; }
  .writeup-select option { background:#1a1f2e; }
  .writeup-textarea { width:100%; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:8px; color:#fff; padding:0.55rem 0.75rem; font-size:0.88rem; outline:none; font-family:inherit; resize:vertical; min-height:80px; margin-top:0.3rem; }
  .writeup-footer { display:flex; gap:0.75rem; justify-content:flex-end; margin-top:1rem; }
  .writeup-msg { margin-top:0.6rem; font-size:0.82rem; padding:0.4rem 0.75rem; border-radius:6px; }
  .writeup-msg.ok { background:rgba(74,222,128,0.12); color:#4ade80; }
  .writeup-msg.err { background:rgba(248,113,113,0.12); color:#f87171; }
  .admin-wup-row { background:rgba(255,255,255,0.04); border-radius:8px; padding:0.6rem 0.8rem; margin-bottom:0.4rem; display:flex; align-items:flex-start; justify-content:space-between; gap:0.5rem; }
  .admin-wup-info { flex:1; min-width:0; }
  .admin-wup-reason { font-weight:700; color:#fbbf24; font-size:0.82rem; }
  .admin-wup-meta { color:var(--muted); font-size:0.75rem; margin-top:0.15rem; }
  .admin-wup-exp { font-size:0.72rem; margin-top:0.2rem; }
  .admin-wup-exp.active { color:#f87171; }
  .admin-wup-exp.expired { color:var(--muted); }

  /* ───── REVIEWS / TESTIMONIALS ───── */
  .reviews-section { padding: 5rem 2rem; text-align: center; }

  /* ── review carousel controls ── */
  .rv-controls { display:flex; align-items:center; justify-content:center; gap:0.75rem; margin-top:1.75rem; }
  .rv-arrow { width:44px; height:44px; border-radius:50%; flex-shrink:0; cursor:pointer;
    background:transparent; border:1px solid var(--border); color:rgba(255,255,255,0.6);
    font-size:1.2rem; line-height:1; display:flex; align-items:center; justify-content:center;
    transition:border-color .2s, color .2s; }
  .rv-arrow:hover { border-color:rgba(0,212,255,0.5); color:#fff; }
  .rv-seeall { cursor:pointer; background:transparent; border:1px solid var(--border);
    color:rgba(255,255,255,0.72); font-family:inherit; font-size:0.78rem; letter-spacing:0.02em;
    padding:0.72rem 1.3rem; border-radius:999px; transition:border-color .2s, color .2s, background .2s;
    min-height:44px; }
  .rv-seeall:hover { border-color:rgba(0,212,255,0.5); color:#fff; background:rgba(0,212,255,0.06); }
  /* the grid becomes a fading stage for the carousel */
  .reviews-grid.rv-fading { opacity:0; transition:opacity .28s ease; }
  .reviews-grid { transition:opacity .28s ease; }

  /* ── all-reviews modal ── */
  .rv-modal { position:fixed; inset:0; z-index:9800; display:none;
    background:rgba(4,7,12,0.86); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
    align-items:center; justify-content:center; padding:1.5rem; }
  .rv-modal.open { display:flex; }
  .rv-panel { width:100%; max-width:900px; max-height:88vh; display:flex; flex-direction:column;
    background:var(--card-dark); border:1px solid var(--border); border-radius:20px;
    overflow:hidden; box-shadow:0 30px 90px rgba(0,0,0,0.6); text-align:left; }
  .rv-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem;
    padding:1.5rem 1.75rem 1rem; border-bottom:1px solid var(--border); }
  .rv-head-title { font-size:1.35rem; font-weight:700; color:#fff; letter-spacing:-0.01em; }
  .rv-head-sub { font-size:0.82rem; color:rgba(255,255,255,0.55); margin-top:0.3rem; }
  .rv-x { background:none; border:none; color:rgba(255,255,255,0.5); font-size:1.8rem; line-height:1;
    cursor:pointer; padding:0 0.25rem; border-radius:8px; }
  .rv-x:hover { color:#fff; }
  /* The panel is a height-capped column flex box. These three rows defaulted to
     flex-shrink:1, so a long review list squeezed them: the filter row
     collapsed from 57px to 32px and the chip labels were clipped straight
     through their own borders. Only the list may give way. */
  .rv-head, .rv-filters, .rv-foot { flex-shrink:0; }
  .rv-filters { display:flex; align-items:center; gap:0.4rem; padding:0.9rem 1.75rem;
    border-bottom:1px solid var(--border); overflow-x:auto; }
  .rv-fbtn { cursor:pointer; background:transparent; border:1px solid var(--border); color:rgba(255,255,255,0.6);
    font-family:inherit; font-size:0.74rem; line-height:1.5; padding:0.32rem 0.8rem; border-radius:999px;
    white-space:nowrap; flex:0 0 auto; }
  .rv-fbtn.on { background:rgba(0,212,255,0.12); border-color:rgba(0,212,255,0.45); color:#7fdcff; }
  .rv-list { flex:1; min-height:0; overflow-y:auto; padding:1.25rem 1.75rem 1.5rem;
    display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; align-content:start; }
  .rv-item { background:rgba(255,255,255,0.025); border:1px solid var(--border); border-radius:14px;
    padding:1.25rem; display:flex; flex-direction:column; gap:0.7rem; }
  .rv-item-top { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
  .rv-item-stars { color:#f59e0b; font-size:0.9rem; letter-spacing:0.05em; }
  .rv-item-date { font-size:0.72rem; color:rgba(255,255,255,0.4); }
  .rv-item-title { font-weight:600; color:#fff; font-size:0.95rem; line-height:1.4; }
  .rv-item-text { color:rgba(255,255,255,0.82); font-size:0.86rem; line-height:1.7; }
  .rv-item-meta { display:flex; align-items:center; justify-content:space-between; gap:0.5rem;
    margin-top:auto; padding-top:0.6rem; border-top:1px solid var(--border); }
  .rv-item-who { font-size:0.78rem; color:rgba(255,255,255,0.6); }
  .rv-badge { display:inline-flex; align-items:center; gap:0.3rem; font-size:0.68rem; font-weight:600;
    padding:0.22rem 0.6rem; border-radius:999px; white-space:nowrap; }
  .rv-badge.zillow { background:rgba(0,106,255,0.14); color:#6ea8ff; border:1px solid rgba(0,106,255,0.3); }
  .rv-badge.google { background:rgba(66,133,244,0.12); color:#8ab4f8; border:1px solid rgba(66,133,244,0.28); }
  .rv-badge.other  { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.6); border:1px solid var(--border); }
  .rv-foot { padding:0.9rem 1.75rem; border-top:1px solid var(--border);
    font-size:0.74rem; color:rgba(255,255,255,0.45); }
  @media (max-width:760px){
    .rv-list { grid-template-columns:1fr; }
    .rv-panel { max-height:94vh; border-radius:16px; }
    .rv-head, .rv-filters, .rv-list, .rv-foot { padding-left:1.1rem; padding-right:1.1rem; }
  }
  @media (prefers-reduced-motion: reduce){ .reviews-grid { transition:none; } }
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 2.5rem auto 0;
    text-align: left;
  }
  .review-card {
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s;
  }
  .review-card:hover { border-color: rgba(0,212,255,0.3); }
  .review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.05em; }
  .review-quote {
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    line-height: 1.75;
    flex: 1;
    font-style: italic;
    /* Reviews range from two lines to twenty. Swapping a short pair for a long
       pair resized the whole section mid-rotation and shoved everything below
       it up and down the page, so the quote is clamped and the card height
       pinned — the block stays one constant size and nothing moves.
       The clamp was 8 lines, which made the card ~23rem tall; a two-line review
       then sat in a mostly empty card. Tightening to 6 lines drops the ceiling
       (and the min-height with it) so short cards waste far less space. The full
       untruncated text is always one tap away in "See all reviews". */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .reviews-grid { min-height: 19rem; align-items: stretch; }
  .review-card { min-height: 19rem; }
  @media (max-width: 700px) {
    .reviews-grid, .review-card { min-height: 17rem; }
    .review-quote { -webkit-line-clamp: 5; }
  }
  .review-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .review-author { display: flex; flex-direction: column; gap: 0.15rem; }
  .review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0; }
  .review-who { display: flex; align-items: center; gap: 0.7rem; }
  .review-name { color: #fff; font-weight: 700; font-size: 0.88rem; }
  .review-loc  { color: var(--muted); font-size: 0.75rem; }
  .review-source {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 0.62rem 0.9rem; border-radius: 22px; text-decoration: none;
    min-height: 40px;
    transition: opacity 0.2s;
  }
  .review-source:hover { opacity: 0.8; }
  .review-source.google {
    background: rgba(66,133,244,0.14); color: #4285f4; border: 1px solid rgba(66,133,244,0.3);
  }
  .review-source.zillow {
    background: rgba(0,106,255,0.12); color: #006aff; border: 1px solid rgba(0,106,255,0.28);
  }
  .reviews-rating-row {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    margin-top: 0.75rem; flex-wrap: wrap;
  }
  .reviews-rating-item { display: flex; align-items: center; gap: 0.5rem; }
  .reviews-rating-item .stars { color: #f59e0b; font-size: 0.95rem; }
  .reviews-rating-item .score { color: #fff; font-weight: 800; font-size: 1rem; }
  .reviews-rating-item .label { color: var(--muted); font-size: 0.82rem; }
  @media (max-width: 768px) {
    .reviews-grid { grid-template-columns: 1fr; }
    .reviews-section { padding: 3rem 1.25rem; }
  }

  /* ───── STATE LICENSE BADGES ───── */
  .state-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
  .state-tag {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
    padding: 0.2rem 0.55rem; border-radius: 20px;
    background: rgba(0,212,255,0.1); color: var(--cyan);
    border: 1px solid rgba(0,212,255,0.25);
  }
  /* ───── FOOTER ───── */
  footer {
    background: var(--dark2); border-top: 1px solid var(--border);
    padding: 3rem 2rem; text-align: center;
  }
  footer .footer-logo { margin-bottom: 1rem; }
  footer p { color: var(--muted); font-size: 0.82rem; line-height: 1.8; max-width: 700px; margin: 0 auto; }
  footer .footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1.2rem 0; }
  footer .footer-links a { color: var(--muted); font-size: 0.82rem; text-decoration: none; }
  footer .footer-links a:hover { color: var(--cyan); }
  /* Privacy Policy on its own, immediately above the Equal Housing mark. */
  footer .footer-legal-link { margin: 1.5rem 0 0; }


  /* ───── COOKIE CONSENT BANNER ───── */
  #c2c-cookie-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
    background: rgba(10,10,18,0.97); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem; display: flex; align-items: center;
    gap: 1.5rem; flex-wrap: wrap; font-size: 0.84rem; color: rgba(255,255,255,0.75);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
  }
  #c2c-cookie-bar p { margin: 0; flex: 1; min-width: 220px; line-height: 1.7; }
  #c2c-cookie-bar a { color: var(--cyan); text-decoration: underline; cursor: pointer; }
  .cookie-bar-btns { display: flex; gap: 0.8rem; flex-shrink: 0; }
  .cookie-btn-allow {
    background: linear-gradient(135deg,#7B2FBE,#0095FF,#00D4FF);
    color: #fff; border: none; border-radius: 8px;
    padding: 0.55rem 1.3rem; font-size: 0.84rem; font-weight: 700;
    cursor: pointer; transition: opacity .2s;
  }
  .cookie-btn-allow:hover { opacity: 0.85; }
  .cookie-btn-dismiss {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    padding: 0.55rem 1.3rem; font-size: 0.84rem; font-weight: 700;
    cursor: pointer; transition: all .2s;
  }
  .cookie-btn-dismiss:hover { background: rgba(255,255,255,0.14); }
  /* Cookie Settings Modal */
  #c2c-cookie-modal {
    display: none; position: fixed; inset: 0; z-index: 100000;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: 1rem;
  }
  #c2c-cookie-modal.open { display: flex; }
  #c2c-cookie-modal-box {
    background: #0f0f1a; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 2rem; max-width: 560px; width: 100%;
    max-height: 88vh; overflow-y: auto;
  }
  #c2c-cookie-modal-box h2 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 0.4rem; }
  #c2c-cookie-modal-box > p { color: rgba(255,255,255,0.6); font-size: 0.83rem; line-height: 1.7; margin: 0 0 1.5rem; }
  .cookie-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .cookie-row-info h3 { color: #fff; font-size: 0.95rem; font-weight: 700; margin: 0 0 0.3rem; }
  .cookie-row-info p  { color: rgba(255,255,255,0.5); font-size: 0.8rem; line-height: 1.6; margin: 0; }
  .cookie-toggle { position: relative; flex-shrink: 0; width: 44px; height: 24px; margin-top: 2px; }
  .cookie-toggle input { opacity: 0; width: 0; height: 0; }
  .cookie-toggle-slider {
    position: absolute; inset: 0; background: rgba(255,255,255,0.15);
    border-radius: 24px; cursor: pointer; transition: background .25s;
  }
  .cookie-toggle-slider:before {
    content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .25s;
  }
  .cookie-toggle input:checked + .cookie-toggle-slider { background: #00b4d8; }
  .cookie-toggle input:checked + .cookie-toggle-slider:before { transform: translateX(20px); }
  .cookie-modal-footer {
    display: flex; justify-content: flex-end; gap: 0.8rem;
    margin-top: 1.5rem; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* ───── WHY BROKER ───── */
  .why-stat { text-align: center; }
  .why-stat .num { font-size: 3rem; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .why-stat p { color: var(--muted); font-size: 0.9rem; }

  /* ───── ABOUT ───── */
  .about-hero-visual {
    border-radius: var(--radius); padding: 3rem; text-align: center;
    background: linear-gradient(135deg, rgba(123,47,190,0.15), rgba(0,212,255,0.1));
    border: 1px solid var(--border);
  }
  .tech-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
    color: var(--cyan); padding: 0.5rem 1rem; border-radius: 20px;
    font-size: 0.82rem; font-weight: 600; margin: 0.3rem;
  }

  /* ───── CALCULATOR ───── */
  .term-btn {
    background: var(--card-dark); border: 1px solid var(--border);
    color: rgba(255,255,255,0.65); padding: 0.45rem 0.9rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
  }
  .term-btn:hover { color: #fff; border-color: rgba(0,149,255,0.4); }
  .term-btn.active { background: var(--grad); border-color: transparent; color: #fff; }
  select option { background: #1a1a1a; color: #fff; }

  /* ── Hamburger button (mobile only) ── */
  .nav-hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 6px; margin-left: 0.5rem; flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,0.85); border-radius: 2px;
    transition: all 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Mobile nav drawer ── */
  .nav-mobile-drawer {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(0,0,0,0.97); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; z-index: 999;
    padding: 0.75rem 1rem 1rem;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-mobile-drawer.open { display: flex; }

  /* Sticky mobile call bar — hidden on desktop, fixed to the bottom on phones. */
  .mobile-callbar { display: none; }
  @media (max-width: 640px) {
    .mobile-callbar {
      display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0;
      z-index: 1500; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
      background: rgba(8,10,16,0.92); -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    }
    .mcb-btn { flex: 1; display: flex; align-items: center; justify-content: center;
      gap: 0.4rem; min-height: 48px; border-radius: 12px; font-family: inherit;
      font-size: 0.92rem; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
    .mcb-call { background: rgba(255,255,255,0.08); border: 1px solid var(--border);
      color: #fff; }
    .mcb-apply { background: var(--grad); color: #fff;
      box-shadow: 0 6px 20px rgba(0,149,255,0.32); }
    /* Keep the fixed bar from covering the last of the page. */
    body { padding-bottom: 74px; }
  }
  .nav-mobile-drawer button {
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.8);
    padding: 0.85rem 1rem; border-radius: 10px;
    text-align: left; transition: all 0.2s;
  }
  .nav-mobile-drawer button:hover,
  .nav-mobile-drawer button.active { background: rgba(255,255,255,0.07); color: #fff; }
  .nav-mobile-drawer .drawer-login {
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-drawer .drawer-login button {
    background: var(--grad); color: #fff; font-weight: 700;
    text-align: center; border-radius: 12px; padding: 0.85rem 1rem;
  }

  /* ── Responsive ── */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }      /* hide desktop CTA; shown in drawer */
    .nav-hamburger { display: flex; margin-left: auto; }
    .hero { padding: 5rem 1.25rem 3rem; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.95rem; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .inner-page { padding: 2rem 1rem; }
  }

  /* The header is nine items wide, which on a small laptop still crowds the
     Client Login button sitting at the end of the bar. The hamburger doesn't
     take over until 768px, so this is the window in between:
     the row tightens first, then the "BROKERS" wordmark next to the logo goes,
     and only then does it hand over to the drawer. Nothing is dropped, and no
     link is ever unreachable at any width. */
  @media (min-width: 769px) and (max-width: 1150px) {
    body > nav.c2c-site-header { padding: 0 1.25rem; }
    .nav-links { gap: 0.05rem; }
    .nav-links button, .nav-links a { font-size: 0.78rem; padding: 0.4rem 0.45rem; }
  }
  @media (min-width: 769px) and (max-width: 980px) {
    .nav-logo-text { display: none; }
    .nav-links button, .nav-links a { font-size: 0.75rem; padding: 0.4rem 0.35rem; }
  }
  /* Between 769 and 860 the nine links ran flush into the Client Login button —
     measured at a 0px gap at 769 and 1px at 800. It never overflowed, so it
     never showed up as a broken page; it just looked cramped and left nothing
     to aim at. Below 860 the hamburger takes over instead, which is what it is
     for. Scoped to the nav alone so the hero, grids and page padding keep
     their own 768px breakpoint. */
  @media (min-width: 769px) and (max-width: 860px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .nav-hamburger { display: flex; margin-left: auto; }
  }
  @media (max-width: 500px) {
    .hero h1 { font-size: 1.85rem; }
    .steps-grid { grid-template-columns: 1fr; }
    body > nav.c2c-site-header { padding: 0 1rem; }
    .login-box { padding: 2rem 1.25rem; margin: 0 0.5rem; border-radius: 16px; }
    .login-wrap { padding: 0.5rem; align-items: flex-start; padding-top: 5rem; }
  }
  /* Calculator grids */
  .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  @media (max-width: 768px) {
    .calc-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
    #page-calculator .inner-page,
    #page-afford .inner-page {
      padding: 1.5rem 1rem;
    }
    #calc-total { font-size: 2.2rem !important; }
    #af-home-price { font-size: 2.2rem !important; }
  }

  /* ═══ Visual upgrade pass ═══ */
  .hero-aurora { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
  .hero-aurora b { position:absolute; border-radius:50%; filter:blur(90px); will-change:transform; }
  .au1 { width:480px; height:480px; background:#7B2FBE; opacity:0.32; top:-160px; left:-100px; animation:drift1 26s ease-in-out infinite alternate; }
  .au2 { width:420px; height:420px; background:#0095FF; opacity:0.26; bottom:-160px; right:-80px; animation:drift2 22s ease-in-out infinite alternate; }
  .au3 { width:300px; height:300px; background:#00D4FF; opacity:0.18; top:38%; left:44%; animation:drift3 30s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform:translate(90px,60px) scale(1.15); } }
  @keyframes drift2 { to { transform:translate(-80px,-50px) scale(1.1); } }
  @keyframes drift3 { to { transform:translate(-70px,70px) scale(1.2); } }
  .hero-split { display:flex; gap:3.5rem; align-items:center; text-align:left; max-width:1100px; width:100%; }
  .hero-text { flex:1; min-width:0; }
  .hero-text > * { opacity:0; transform:translateY(20px); animation:heroIn 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
  .hero-text > *:nth-child(1) { animation-delay:0.05s; }
  .hero-text > *:nth-child(2) { animation-delay:0.15s; }
  .hero-text > *:nth-child(3) { animation-delay:0.3s; }
  .hero-text > *:nth-child(4) { animation-delay:0.45s; }
  .hero-text > *:nth-child(5) { animation-delay:0.6s; }
  @keyframes heroIn { to { opacity:1; transform:none; } }
  .hero-stats { display:flex; gap:2.5rem; margin-top:2.2rem; justify-content:center; }
  .hero-stats > div { display:flex; flex-direction:column; }
  .stat-n { font-size:1.7rem; font-weight:800; color:#fff; }
  .stat-l { font-size:0.75rem; color: var(--muted); }
  @media (max-width: 900px) { .hero-split { flex-direction:column; text-align:center; gap:2.5rem; } .hero-stats { justify-content:center; } .hero-ctas { justify-content:center; } }
  .rv { opacity:0; transform:translateY(18px); transition:opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1); }
  .rv.in { opacity:1; transform:none; }
  .card:hover, .step-card:hover, .loan-pill:hover, .review-card:hover, .team-card:hover { transform:translateY(-6px); border-color:rgba(0,149,255,0.45); box-shadow:0 18px 45px rgba(0,0,0,0.45), 0 0 30px rgba(0,149,255,0.12); }
  a.loan-pill { text-decoration:none; color:inherit; }
  .loan-pill:hover .icon svg, .card:hover svg { filter:drop-shadow(0 0 8px rgba(0,212,255,0.55)); }
  .step-card:hover .step-num { box-shadow:0 0 24px rgba(0,149,255,0.5); }
  .marquee { overflow:hidden; position:relative; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
  /* Duration is distance, not speed: the track always travels 50% of its own
     width, so a longer roster scrolls faster at a fixed duration. With 30
     lenders the old 36s read like a ticker. 4s per lender keeps the pace
     steady however many are on the list; the script below recalculates it. */
  .marquee-track { display:inline-flex; gap:1rem; animation:marquee 120s linear infinite; will-change:transform; padding:0.5rem 0; }
  .marquee:hover .marquee-track { animation-play-state:paused; }
  @keyframes marquee { to { transform:translateX(-50%); } }
  .marquee .lender-badge { white-space:nowrap; flex-shrink:0; }
  .nav-links button, .nav-links a { position:relative; }
  .nav-links button::after { content:''; position:absolute; left:15%; right:85%; bottom:2px; height:2px; background:var(--grad); border-radius:2px; opacity:0; transition:right 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s; }
  .nav-links button:hover::after, .nav-links button.active::after { right:15%; opacity:1; }
  .page.active { animation:pageIn 0.45s ease; }
  @keyframes pageIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

  /* ═══ Page-to-page transitions ═══
     Every URL is its own document now, so clicking a header link is a real
     navigation: the old page is thrown away, the screen blanks, the new one
     paints. That blank frame is what reads as "not smooth" — the pages
     themselves already fade in.

     This is the browser's cross-document view transition. The old and new
     documents are captured and cross-faded, so there is no blank frame at all.
     The three fixed pieces of furniture — header, call bar, footer — are given
     names of their own, which makes the browser carry them ACROSS the
     transition rather than fading them out and back in. The header stays
     rock-still while the content beneath it dissolves.

     Pure opacity, no movement: the content underneath is already running its
     own pageIn slide, and two movements at once reads as a bounce.

     Progressive enhancement, in the strictest sense — a browser that has never
     heard of @view-transition ignores the whole block and navigates exactly as
     it does today. Nothing depends on it. */
  @view-transition { navigation: auto; }
  body > nav.c2c-site-header      { view-transition-name: site-header; }
  .mobile-callbar { view-transition-name: call-bar; }
  footer          { view-transition-name: site-footer; }
  ::view-transition-old(root) { animation: vtFadeOut 0.18s ease-out both; }
  ::view-transition-new(root) { animation: vtFadeIn  0.28s ease-in  both; }
  @keyframes vtFadeOut { to   { opacity: 0; } }
  @keyframes vtFadeIn  { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
      animation: none !important;
    }
  }
  .btn-primary { transition:transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, opacity 0.2s; }
  .btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 30px rgba(0,149,255,0.4); }
  @media (prefers-reduced-motion: reduce) {
    .hero-aurora b, .marquee-track, .page.active { animation:none !important; }
    .hero-text > *, { animation:none !important; opacity:1 !important; transform:none !important; }
    .rv { opacity:1 !important; transform:none !important; transition:none !important; }
  }

  /* ═══ Inner-page animation pass ═══ */
  .page-hero { position:relative; overflow:hidden; }
  .page-hero::before { content:''; position:absolute; width:440px; height:440px; border-radius:50%; background:#7B2FBE; opacity:0.16; filter:blur(100px); top:-220px; left:-120px; pointer-events:none; animation:drift1 28s ease-in-out infinite alternate; }
  .page-hero::after { content:''; position:absolute; width:380px; height:380px; border-radius:50%; background:#0095FF; opacity:0.13; filter:blur(100px); bottom:-220px; right:-100px; pointer-events:none; animation:drift2 24s ease-in-out infinite alternate; }
  .page-hero > * { position:relative; z-index:1; }
  .page.active .page-hero > * { opacity:0; transform:translateY(16px); animation:heroIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
  .page.active .page-hero > *:nth-child(1) { animation-delay:0.05s; }
  .page.active .page-hero > *:nth-child(2) { animation-delay:0.15s; }
  .page.active .page-hero > *:nth-child(3) { animation-delay:0.25s; }
  .page.active .page-hero > *:nth-child(4) { animation-delay:0.35s; }
  .loan-detail.active .loan-detail-card { opacity:0; transform:translateY(18px); animation:heroIn 0.55s cubic-bezier(0.22,1,0.36,1) 0.05s forwards; }
  .why-stat .num { background:var(--grad-text); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
  .why-stat, .process-step, .docs-category { transition:transform 0.3s, border-color 0.3s; }
  .process-step:hover, .docs-category:hover { transform:translateY(-4px); }
  .loan-tab-btn { transition:all 0.25s cubic-bezier(0.22,1,0.36,1); }
  .loan-tab-btn:hover { transform:translateY(-2px); }
  .loan-feature { transition:background 0.2s; }
  .faq-q { transition:color 0.2s; }
  .faq-item:hover .faq-q { color:var(--cyan); }
  .glossary-item:hover { border-color:rgba(0,149,255,0.4); }
  .contact-card:hover .contact-icon svg { filter:drop-shadow(0 0 10px rgba(0,212,255,0.6)); }
  .login-box { transition:box-shadow 0.3s; }
  .login-box:hover { box-shadow:0 20px 60px rgba(0,149,255,0.12); }
  @media (prefers-reduced-motion: reduce) {
    .page-hero::before, .page-hero::after { animation:none !important; }
    .page.active .page-hero > *, .loan-detail.active .loan-detail-card { animation:none !important; opacity:1 !important; transform:none !important; }
  }

  /* ═══ Reactive 3D pass ═══ */
  #scroll-progress { position:fixed; top:0; left:0; height:3px; width:0; background:var(--grad); z-index:2000; pointer-events:none; transition:width 0.1s linear; }
  #hero-canvas, .constellation-canvas { position:absolute; inset:0; pointer-events:none; z-index:0; }
  .page-hero .constellation-canvas { opacity:0.7; }
  .hero-content { z-index:2; }
  .grad-text { background-size:200% auto; animation:gradShimmer 5s ease-in-out infinite alternate; }
  @keyframes gradShimmer { from { background-position:0% center; } to { background-position:100% center; } }
  .js-tilt { position:relative; will-change:transform; }
  .js-tilt::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(520px circle at var(--mx,50%) var(--my,50%), rgba(0,180,255,0.1), transparent 42%); opacity:0; transition:opacity 0.3s; pointer-events:none; }
  .js-tilt:hover::after { opacity:1; }
  .btn-magnetic { will-change:transform; }

  /* ─────────── Premium polish layer ───────────
     Small, restrained micro-interactions that make the whole site feel more
     considered without touching layout or content. */

  /* 1. Nav links get an animated gradient underline that grows from the centre. */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px;
    background: var(--grad); border-radius: 2px; transition: left .25s ease, right .25s ease;
  }
  .nav-links a:hover::after, .nav-links a.active::after { left: 0.75rem; right: 0.75rem; }

  /* 2. Shine sweep across primary buttons on hover. */
  .btn-primary, .est-cta, .btn-grad { position: relative; overflow: hidden; }
  .btn-primary::before, .est-cta::before, .btn-grad::before {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
  }
  .btn-primary:hover::before, .est-cta:hover::before, .btn-grad:hover::before { left: 140%; }

  /* 3. Loan tiles are links now — make them feel tappable and animate the icon. */
  .loan-pill { cursor: pointer; }
  .loan-pill .icon svg { transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), filter .3s; }
  .loan-pill:hover .icon svg { transform: translateY(-3px) scale(1.12); }

  /* 4. Hairline gradient dividers between the big sections — a subtle seam that
        reads as intentional structure rather than stacked blocks. */
  .steps-section, .loans-section, .lenders-section, .reviews-section, .cta-section { position: relative; }
  .steps-section::before, .loans-section::before, .lenders-section::before,
  .reviews-section::before, .cta-section::before {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,180,255,0.28), transparent);
  }

  @media (prefers-reduced-motion: reduce) {
    .grad-text { animation:none !important; }
    #scroll-progress { display:none; }
    .btn-primary::before, .est-cta::before, .btn-grad::before,
    .nav-links a::after, .loan-pill .icon svg { transition: none !important; }
  }
