/* Insurance Agent Suite: the Real Estate Agent Suite look in the insurance palette (brand/README.md).
   One stylesheet, system fonts, no external assets. Run `python3 tools/site_bump.py` after any change. */
:root {
  color-scheme: light dark;
  --navy: #1F2A3A;
  --teal: #2E7A6E;
  --gold: #D6A13E;
  --gold-dark: #B5832A;
  --mint: #CBE4DC;
  --cream: #F5F0E6;

  --bg: #FCFAF6;
  --band: var(--cream);
  --band-alt: #E3F0EB;
  --text: var(--navy);
  --muted: #566274;
  --link: #2A7064;        /* brand teal one step darker: ≥4.98:1 on page, cream band and mint band */
  --rule: #DCD5C6;
  --nav: rgba(252, 250, 246, 0.85);
  --badge-bg: var(--gold);
  --badge-text: var(--navy);
  --shadow: rgba(31, 42, 58, 0.18);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A24;
    --band: #1C2633;
    --band-alt: #173430;
    --text: var(--cream);
    --muted: #A9B3C1;
    --link: #74C7B6;      /* ≥6.7:1 on page, band and alt band */
    --rule: #34414F;
    --nav: rgba(18, 26, 36, 0.85);
    --badge-bg: var(--gold);
    --badge-text: var(--navy);
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav .inner {
  max-width: 1024px; margin: 0 auto; padding: 0 22px;
  min-height: 48px; display: flex; align-items: center; gap: 28px;
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  font-weight: 600; font-size: 19px; color: var(--text); letter-spacing: -0.02em; white-space: nowrap;
}
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .brand:hover { text-decoration: none; }
.nav a.item { color: var(--text); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; text-align: right; line-height: 1.2; }
.nav a.item:hover { opacity: 1; text-decoration: none; }
@media (max-width: 600px) {
  .nav .inner { gap: 16px; }
  .nav .brand { font-size: 16px; }
}
@media (max-width: 380px) {
  .nav .inner { gap: 10px; padding: 0 16px; }
  .nav .brand { font-size: 14px; gap: 6px; }
  .nav .brand img { width: 24px; height: 24px; border-radius: 6px; }
  .nav a.item { font-size: 12px; max-width: 6.5em; }
}

/* Hero */
.hero { text-align: center; padding: 88px 22px 64px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 96px); line-height: 1.05; font-weight: 700;
  letter-spacing: -0.015em; margin: 0 0 16px;
}
.hero p.lede {
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; font-weight: 400;
  color: var(--muted); max-width: 760px; margin: 0 auto; letter-spacing: 0.004em;
}
.hero.short { padding-bottom: 24px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; margin: 0 auto 24px;
  box-shadow: 0 12px 30px var(--shadow); }
.hero .aka { font-size: 15px; color: var(--muted); margin: 18px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* Links with chevrons */
.links { display: flex; gap: 12px 32px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 19px; }
/* The states page lists 51 postal codes; they wrap in rows of small, tappable targets */
.states-jump { gap: 4px 6px; max-width: 560px; margin-left: auto; margin-right: auto; }
.states-jump a { display: inline-block; min-width: 44px; padding: 10px 4px; text-align: center; }
.chev::after { content: " ›"; }

/* Full-width tiles: cream by default, mint for the alternate */
.tiles { display: grid; gap: 12px; padding: 12px; max-width: 1400px; margin: 0 auto; }
.tile {
  background: var(--band); border-radius: var(--radius);
  text-align: center; padding: 64px 28px 56px; overflow: hidden;
}
.tile.alt { background: var(--band-alt); }
.tile h2 { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.07; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.005em; }
.tile p.sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; margin: 0 auto; max-width: 640px; color: var(--muted); }
.tile .icons { display: flex; gap: 22px; justify-content: center; margin-top: 36px; }
.tile .icons img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 26px var(--shadow); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--badge-text); background: var(--badge-bg); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tile { padding: 48px 20px 44px; } .hero { padding: 64px 16px 48px; } }

/* Screenshot */
.shot { max-width: 1100px; margin: 8px auto 0; padding: 0 22px; }
.shot img { border-radius: 18px; box-shadow: 0 20px 50px var(--shadow); }
.shot .cap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Phone screenshots in a reading section: <figure class="phones"><img …></figure>, side by side, wrapping */
.phones { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin: 32px 0 0; }
.phones img { width: 240px; max-width: 100%; height: auto; border-radius: 30px; box-shadow: 0 14px 34px var(--shadow); }
/* .section.split: text (.copy) beside its .phones at 900 px and up, stacked below; .flip puts the phones first */
@media (min-width: 900px) {
  .section.split { max-width: 1024px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
  .section.split.flip { grid-template-columns: auto minmax(0, 1fr); }
  .section.split.flip .phones { order: -1; }
  .section.split .phones { margin: 0; flex-wrap: nowrap; }
  .section.split .phones img { width: 220px; }
}

/* Reading sections; .band is a full-width cream stripe, .band.alt a mint one */
.section { max-width: 760px; margin: 0 auto; padding: 64px 22px; }
.section.band { max-width: none; background: var(--band); }
.section.band.alt { background: var(--band-alt); }
/* .in matches a plain .section's content width (760 px less its 22 px side padding), so text edges line up */
.section.band > .in { max-width: 716px; margin: 0 auto; }
/* .section.card: a section set off by a thin rounded border (the app page); 12 px from the screen edges on a phone */
.section.card { box-sizing: border-box; width: calc(100% - 24px); max-width: 1024px; margin: 0 auto 16px;
  border: 1px solid var(--rule); border-radius: 24px; }
.section.card:not(.split):not(.band) > * { max-width: 716px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin: 0 0 20px; font-weight: 700; }
.section h3 { font-size: 21px; margin: 32px 0 8px; }
.section p { margin: 0 0 14px; }
.section ul { padding-left: 22px; margin: 0 0 14px; }
.section li { margin-bottom: 6px; }

/* Tables: wide tables scroll sideways inside .table-wrap, never the page */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 22px; }
.section table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.section table.wide { min-width: 620px; }
/* "Scroll the table sideways…": only where a .wide table (620 px + 44 px padding) can't fit */
.section .table-hint { display: none; margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 664px) { .section .table-hint { display: block; } }
.section caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.section th, .section td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.section thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.section tbody th { font-weight: 600; }

/* FAQ: <div class="faq"><details><summary>Question</summary><p>Answer</p></details>…</div> */
details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
.faq { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--link); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; color: var(--muted); }
details ul, details ol { color: var(--muted); }
details[id] { scroll-margin-top: 64px; }
/* An app deep link (/support/#icloud) lands on its question: always marked, and opened where the browser supports
   ::details-content (Safari 18.4+, Chrome 131+). No JavaScript; older browsers show it marked but closed. */
details:target { background: var(--band-alt); border-radius: 12px; padding-inline: 14px; margin-inline: -14px; }
details:target > summary { color: var(--link); }
@supports selector(details::details-content) {
  details:target::details-content { content-visibility: visible; display: block; }
  details:target summary::after { content: "−"; }
}

/* Contact */
.contact { text-align: center; }
.contact.spaced { margin-top: 40px; }
.contact .big { font-size: clamp(21px, 2.6vw, 28px); }

/* Long-form (privacy) */
.doc { max-width: 700px; margin: 0 auto; padding: 24px 22px 72px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h2[id] { scroll-margin-top: 64px; }
.doc .card { background: var(--band); border-radius: 18px; padding: 22px 26px; margin-top: 40px; }
.doc .card h2 { margin-top: 0; }
.doc .card p:last-child { margin-bottom: 0; }

/* Footer */
.footer { background: var(--band); color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 12px; }
.footer .inner { max-width: 1024px; margin: 0 auto; padding: 22px; }
.footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
.footer .support-link { display: inline-block; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
