/* Public site. Colors and fonts come from the agent's theme as CSS variables
   set in the page head; this file never names a color of its own except
   semantic error/success. Phone first; two columns from 960px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--label); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--label); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--button); color: var(--button-ink); padding: 10px 14px; border-radius: 0 0 10px 0; z-index: 50; }
.skip:focus { left: 0; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ---------------------------------------------------------- shared bits */

.brokerage { font-family: var(--display); color: var(--text); line-height: 1.1; }
.brokerage-sm { font-size: 1.05rem; }
.brokerage-lg { font-size: 1.65rem; }

.avatar { border-radius: 50%; object-fit: cover; background: var(--text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar.ring { border: 4px solid var(--button); }
.avatar.initials { color: var(--bg); font: 700 1.4rem var(--body); }

.dv { display: flex; align-items: center; gap: 14px; margin: 30px 0 14px; color: var(--label);
      font: 700 12px var(--body); letter-spacing: .2em; text-transform: uppercase; }
.dv::before, .dv::after { content: ""; flex: 1; border-top: 2px dotted var(--button); }

.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.icon { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--button); color: var(--label);
        display: inline-flex; align-items: center; justify-content: center; background: none; cursor: pointer; }
.icon:hover { background: var(--surface); color: var(--text); }

.btn, .btn-caramel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
       text-align: center; background: var(--button); color: var(--button-ink); border-radius: 14px;
       padding: 14px 18px; min-height: 60px; text-decoration: none; font: 700 16px var(--body); }
.btn small { font-weight: 500; font-size: 13px; opacity: .82; }
.btn:hover, .btn-caramel:hover { color: var(--button-ink); filter: brightness(1.06); }
.btn-caramel { min-height: 48px; padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.btn-ghost { display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--button);
             color: var(--text); border-radius: 12px; min-height: 48px; text-decoration: none; font: 700 15px var(--body); }

.pill { display: inline-block; font: 700 12px var(--body); border: 1px solid currentColor; border-radius: 99px; padding: 3px 10px; }
.pill-dark { color: var(--muted); }
.eyebrow { font: 800 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.eyebrow-ink { font: 800 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }

/* ----------------------------------------------------------------- home */

.home-grid { padding: 28px 20px 0; max-width: 1200px; margin: 0 auto; width: 100%; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.who { display: flex; flex-direction: column; gap: 3px; }
.who-name { font: 700 1.2rem var(--body); }
.who-title { color: var(--muted); font-size: .9rem; }
.tagline { color: var(--label); font-size: .78rem; letter-spacing: .24em; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tile { background: var(--surface); border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; }
.tile-v { font: 400 1.35rem var(--display); color: var(--text); }
.tile-l { font-size: .75rem; color: var(--muted); }

.feature { display: flex; flex-direction: column; gap: 10px; background: var(--text); color: var(--bg);
           border-radius: 16px; padding: 20px 18px; text-decoration: none; }
.feature:hover { color: var(--bg); }
.feature-top { display: flex; justify-content: space-between; align-items: center; }
.feature-top .eyebrow-ink { margin: 0; }
.badge { font: 700 11px var(--body); background: var(--bg); color: var(--label); border-radius: 99px; padding: 3px 10px; }
.feature-title { font: 400 1.7rem/1.08 var(--display); }
.feature-sub { font-size: .9rem; opacity: .8; }
.feature-cta { text-align: center; background: var(--button); color: var(--button-ink); border-radius: 12px; padding: 13px; font-weight: 700; }
.btn-grid { display: grid; gap: 12px; margin-top: 12px; }
.dv + .btn-grid { margin-top: 0; }

.talk { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--button); border-radius: 14px;
        padding: 14px 16px; color: var(--text); text-decoration: none; }
.talk:hover { background: var(--surface); color: var(--text); }
.talk-text { flex: 1; display: flex; flex-direction: column; }
.talk-text span { color: var(--muted); font-size: .85rem; }
.chev { color: var(--label); font-size: 1.4rem; }

.market { background: var(--surface); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.market-grid > div { display: flex; flex-direction: column; }
.market-src { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------- footer */

.legal { margin-top: 36px; padding: 24px 20px 28px; border-top: 2px dotted var(--button); text-align: center;
         display: flex; flex-direction: column; gap: 4px; }
/* NJ: the brokerage must be more prominent than the agent. Keep this larger than .legal-agent. */
.legal-brokerage { font: 400 1.3rem var(--display); }
.legal-agent { font-size: 1rem; }
.legal-phones { font-size: 1rem; }
.legal-license, .legal-links { font-size: .8rem; color: var(--muted); }

.dock { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        padding: 12px max(20px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
        background: color-mix(in srgb, var(--bg) 92%, black); border-top: 1px solid var(--surface); }

/* ------------------------------------------------------- inner pages */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
          max-width: 1200px; margin: 0 auto; width: 100%; }
.back { color: var(--label); text-decoration: none; font-weight: 600; font-size: .9rem; min-width: 60px; }
.topbar-text { display: none; }

.split { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; }
.split-intro { padding: 6px 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.split-intro h1 { font-size: 2rem; }
.lede { color: var(--muted); font-size: 1rem; }
.lede b { color: var(--text); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: none; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text); opacity: .92; }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--button);
                     color: var(--button-ink); font: 800 13px/24px var(--body); text-align: center; }

.sheet { background: var(--sheet); color: var(--sheet-ink); border-radius: 24px 24px 0 0; padding: 24px 20px 28px;
         display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sheet a { color: var(--accent-ink); }

/* ---------------------------------------------------------------- forms */

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
fieldset.step { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.js fieldset.step:not(.active) { display: none; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.step-count { font: 800 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; }
.progress { flex: 1; display: flex; gap: 6px; }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--line) 70%, var(--sheet)); }
.progress i.on { background: var(--button); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--sheet-muted); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  font: 500 17px var(--body); color: var(--sheet-ink); resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--sheet-muted) 70%, white); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sheet-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--button) 45%, transparent); }
.hint { font-size: .82rem; color: var(--sheet-muted); }
.err { font-size: .85rem; font-weight: 700; color: #A3361F; }
.field.bad input, .field.bad textarea { border-color: #A3361F; }
.field.ok input { border-color: #3F7A4F; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 15px; min-height: 44px;
        font: 600 15px var(--body); color: var(--sheet-ink); cursor: pointer; }
.seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.seg-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; min-height: 48px;
           font: 700 16px var(--body); color: var(--sheet-ink); cursor: pointer; }
.chip[aria-pressed="true"], .seg-btn[aria-pressed="true"] { background: var(--sheet-ink); border-color: var(--sheet-ink); color: var(--sheet); }

.consent { font-size: .8rem; line-height: 1.5; color: var(--sheet-muted); }
.consent .err { display: block; margin-top: 4px; }
.echo { font-size: .9rem; color: var(--sheet-muted); }
.echo:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.actions.stack { flex-direction: column; align-items: stretch; }
.btn-primary { flex: 1 1 auto; border: 0; background: var(--sheet-ink); color: var(--sheet); border-radius: 12px; padding: 16px 28px;
               font: 700 16px var(--body); cursor: pointer; text-align: center; text-decoration: none; }
.sheet a.btn-primary, .sheet a.btn-primary:hover { color: var(--sheet); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-primary.block { display: block; }
.btn-outline { border: 1.5px solid var(--sheet-ink); border-radius: 12px; padding: 14px; text-align: center;
               font-weight: 700; text-decoration: none; }
.sheet a.btn-outline { color: var(--sheet-ink); }
.link-btn { background: none; border: 0; color: var(--accent-ink); font: 600 15px var(--body); cursor: pointer; padding: 8px 0; }
.after { font-size: .82rem; color: var(--sheet-muted); text-align: center; }
.form-error { background: #F7E2DA; color: #7A2414; border-radius: 12px; padding: 12px 14px; font-size: .92rem; }

.example { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.example-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
                background: color-mix(in srgb, var(--line) 35%, var(--sheet)); font: 800 12px var(--body);
                letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.example-head .pill { letter-spacing: 0; text-transform: none; color: var(--sheet-muted); }
.example table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.example th, .example td { text-align: left; padding: 9px 12px; border-top: 1px solid color-mix(in srgb, var(--line) 50%, white); }
.example th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sheet-muted); }
.example .blur td { filter: blur(3px); }

/* -------------------------------------------------------------- guides */

.guide-intro { display: flex; gap: 18px; align-items: center; }
.guide-intro > div { display: flex; flex-direction: column; gap: 12px; }
.cover { flex: none; width: 104px; height: 138px; border-radius: 4px 10px 10px 4px; background: var(--button); color: var(--button-ink);
         padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between;
         font: 400 1rem/1.05 var(--display); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 6px 8px 0 color-mix(in srgb, var(--bg) 70%, black); }
.cover small { font: 800 10px var(--body); letter-spacing: .12em; }
.toc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.guide { max-width: 1200px; margin: 0 auto; width: 100%; }
.guide-head { padding: 6px 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.guide-head h1 { font-size: 2rem; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.chapters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 22px 18px; }
.chapters a { flex: none; border: 1.5px solid var(--button); border-radius: 99px; padding: 8px 14px; color: var(--label);
              text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.article section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.article h2 { font-size: 1.5rem; color: var(--sheet-ink); margin-top: 6px; }
.article p { font-size: 1.05rem; line-height: 1.7; }
.cta-card { display: flex; align-items: center; gap: 14px; background: var(--button); border-radius: 16px; padding: 18px; text-decoration: none; margin-top: 8px; }
.sheet .cta-card, .sheet .cta-card:hover { color: var(--button-ink); }
.cta-card > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }

/* -------------------------------------------------------------- thanks */

.thanks-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.avatar-check { position: relative; display: inline-flex; }
.avatar-check > span:last-child { position: absolute; right: -4px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--button); color: var(--button-ink); border: 3px solid var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.timeline li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.timeline li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--button);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; color: var(--accent-ink); }
.timeline li.now::before { background: var(--sheet-ink); border-color: var(--sheet-ink); color: var(--sheet); }

/* ------------------------------------------------------------- desktop */

@media (min-width: 960px) {
  .home-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 64px; padding: 56px 40px 0; align-items: start; }
  .home .options .dv:first-child { margin-top: 0; }
  .feature { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 28px; }
  .feature-top, .feature-title, .feature-sub { flex: 1 1 100%; }
  .feature-title { font-size: 2.4rem; }
  .btn-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .btn { min-height: 86px; align-items: flex-start; text-align: left; padding: 20px 22px; font-size: 17px; }
  .dock { display: none; }
  .legal { text-align: left; flex-direction: row; flex-wrap: wrap; column-gap: 24px; padding: 28px max(40px, calc((100% - 1120px) / 2)); }
  .legal-brokerage { flex-basis: 100%; }

  .topbar { padding: 22px 40px; border-bottom: 2px dotted var(--surface); }
  .topbar .brokerage-sm { font-size: 1.45rem; }
  .topbar-text { display: flex; }

  .split { flex-direction: row; gap: 64px; padding: 56px 40px 24px; align-items: flex-start; }
  .split-intro { flex: 1 1 380px; padding: 0; gap: 22px; }
  .split-intro h1 { font-size: 3.4rem; }
  .lede { font-size: 1.12rem; max-width: 42ch; }
  .checks { display: flex; }
  .sheet { flex: 1 1 460px; border-radius: 24px; padding: 34px; }
  .split .sheet { min-width: 0; }

  .guide { display: grid; grid-template-columns: 240px minmax(0, 720px); column-gap: 56px; padding: 40px 40px 24px; }
  .guide-head { grid-column: 1 / -1; padding: 0 0 32px; }
  .guide-head h1 { font-size: 3.6rem; }
  .guide.plain { grid-template-columns: minmax(0, 760px); }
  .chapters { flex-direction: column; padding: 0; overflow: visible; }
  .chapters a { border-radius: 12px; }
  .article { border-radius: 24px; }
}
