/* RoamLead public site. Palette: deep teal ink, mint accent, warm off-white. */
:root {
  --ink: #0b2e2a; --ink-2: #183834; --muted: #4a625c; --line: #d8e9e2; --bg: #f4f8f7; --card: #fff;
  --brand: #12685a; --brand-strong: #0d5146; --mint: #cdf7e7; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); }
a:focus-visible, summary:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 12px max(16px, 5vw); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-header nav a, .header-actions > a:not(.button) { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .header-actions > a:not(.button):hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.button { display: inline-block; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--brand-strong); }
.hero .button { background: var(--mint); color: var(--ink); }
.hero .button:hover { background: #fff; }

main { width: min(1120px, calc(100% - 32px)); margin: 20px auto 48px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9bb3ac; }
.hero { padding: clamp(28px, 6vw, 72px); border-radius: var(--radius); color: #fff;
  background: linear-gradient(90deg, #092724f5, #09272440), url('/firmatlas-markets.webp') center/cover; }
.hero p { margin: 0; color: #b5e9d8; font-weight: 600; letter-spacing: .02em; }
.hero h1 { color: #fff; margin: 8px 0 24px; max-width: 20ch; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; }

.block { margin-top: 18px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.block p { max-width: 72ch; }
.lead p { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 18px; }
.stats strong, .stats span { display: block; }
.stats strong { font-size: clamp(22px, 3.6vw, 34px); color: var(--brand); overflow-wrap: anywhere; }
.stats span { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.feature-grid p { color: var(--muted); margin: 0 0 10px; }
.feature-grid a { font-weight: 700; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 18px 18px 18px 64px; position: relative; border-radius: 10px; background: #eef7f3; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.plan .price { margin: 0; font-size: 20px; font-weight: 800; color: var(--brand); }
.plan ul { margin: 6px 0 12px; padding-left: 20px; }
.plan .button { align-self: flex-start; margin-top: auto; }
.note { color: var(--muted); font-size: 14px; }

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: 8px 0 0; color: var(--muted); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.link-grid a { display: block; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.link-grid a:hover { border-color: var(--brand); background: #f6fbf9; }
.link-grid strong, .link-grid span { display: block; }
.link-grid span { color: var(--muted); font-size: 15px; }

.market-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.market-cards li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.market-cards span { color: var(--muted); font-variant-numeric: tabular-nums; }

.site-footer { background: var(--ink); color: #c9ddd7; padding: 40px max(16px, 5vw) 24px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; width: min(1120px, 100%); margin: 0 auto; }
.site-footer h2 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #c9ddd7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { width: min(1120px, 100%); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid #23463f; font-size: 14px; }

@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .site-header { position: static; }
  .header-actions { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
/* Terms and Privacy */
.legal h2 { margin-top: 0; font-size: 1.2rem; }
.legal p, .legal ul { max-width: 72ch; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
