/* ==========================================================================
   ByOwners.com — Design System
   Mobile-first · light/dark · no framework · WCAG-minded contrast
   ========================================================================== */

:root {
  --brand: #0f766e;
  --brand-600: #0d9488;
  --brand-700: #115e59;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --accent-50: #fffbeb;
  --rose: #e11d48;
  --violet: #7c3aed;
  --sky: #0284c7;

  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-muted: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0b1324;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ring: rgba(13, 148, 136, .35);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 10px 24px -6px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .25);
  --grad: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #10b981 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(16, 185, 129, .18), transparent 60%),
               radial-gradient(900px 500px at -10% 10%, rgba(14, 165, 233, .14), transparent 60%),
               linear-gradient(180deg, #f8fffd 0%, #ffffff 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --container: 1200px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-muted: #142036;
  --surface: #111a2e;
  --surface-2: #16223a;
  --ink: #e8eef8;
  --ink-2: #c3cfe0;
  --ink-3: #8fa1bb;
  --line: #22314d;
  --line-2: #2d3f60;
  --brand-50: #0c2a2a;
  --brand-100: #123b3a;
  --accent-50: #2a2210;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(16, 185, 129, .16), transparent 60%),
               radial-gradient(900px 500px at -10% 10%, rgba(14, 165, 233, .12), transparent 60%),
               linear-gradient(180deg, #0b1220 0%, #0b1220 100%);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] a { color: #2dd4bf; }
:root[data-theme="dark"] a:hover { color: #5eead4; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brand-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Icons ---------- */
.ic { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: -.18em; }
.ic-lg { width: 1.6em; height: 1.6em; }
.ic-xl { width: 2.2em; height: 2.2em; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.container-sm { max-width: 820px; }
.container-md { max-width: 980px; }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-soft { background: var(--bg-soft); }
.section-muted { background: var(--bg-muted); }
.section-dark { background: #0b1324; color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-brand { background: var(--grad); color: #ecfdf5; }
.section-brand h2, .section-brand h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--ink-3); font-size: 1.08rem; }
.section-dark .section-head p, .section-brand .section-head p { color: #cbd5e1; }
.section-brand .section-head p { color: #d1fae5; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.section-dark .eyebrow, .section-brand .eyebrow { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #a7f3d0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } .split.rev > :first-child { order: 2; } }
.with-sidebar { display: grid; gap: 40px; }
@media (min-width: 1040px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }
.stack > * + * { margin-top: 16px; }
.grid > *, .split > *, .with-sidebar > *, .hero-grid > *, .calc > *, .savings > *, .footer-grid > *, .pricing > *, .cta-band > *, .inline-cta > * { min-width: 0; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hide { display: none !important; }

/* ---------- Partner top bar (required on every page) ---------- */
.partner-bar { background: #0b1324; color: #e2e8f0; font-size: .82rem; line-height: 1.35; text-align: center; padding: 8px 12px; position: relative; z-index: 60; }
.partner-bar a { color: #fde68a; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.partner-bar a:hover { color: #fff; text-decoration: underline; }
.partner-bar .pill { background: var(--accent); color: #111827; border-radius: 999px; padding: 2px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.03em; text-decoration: none !important; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(13,148,136,.7); }
.logo-mark svg { width: 22px; height: 22px; stroke: #fff; }
.logo .dot { color: var(--brand-600); }
.logo small { font-weight: 600; color: var(--ink-3); font-size: .8rem; }
.nav { display: none; margin-left: 14px; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; background: none; border: 0; text-decoration: none; }
.nav a:hover, .nav button.nav-link:hover, .nav .open > button.nav-link { background: var(--bg-muted); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-600); }
.has-menu { position: relative; }
.mega { position: absolute; top: calc(100% + 8px); left: -10px; min-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.mega.one-col { min-width: 300px; grid-template-columns: 1fr; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; white-space: normal; }
.mega a .ic { margin-top: 3px; color: var(--brand-600); }
.mega a strong { display: block; color: var(--ink); font-size: .93rem; }
.mega a span { display: block; color: var(--ink-3); font-weight: 500; font-size: .8rem; line-height: 1.35; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink-2); transition: .15s; }
.icon-btn:hover { background: var(--bg-muted); color: var(--ink); }
.btn.header-cta { display: none; }
.menu-toggle { display: inline-grid; }
@media (min-width: 1120px) { .nav { display: block; } .menu-toggle { display: none; } .btn.header-cta { display: inline-flex; } }
@media (min-width: 640px) and (max-width: 1119px) { .btn.header-cta.cta-primary { display: inline-flex; } }
.kbd { font-size: .7rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink-3); font-family: ui-monospace, monospace; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); opacity: 0; transition: .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: var(--surface); padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; box-shadow: var(--shadow-lg); }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel nav a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.drawer-panel nav a:hover { background: var(--bg-muted); text-decoration: none; }
.drawer-panel nav a .ic { color: var(--brand-600); }
.drawer-group { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 18px 10px 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .97rem; border: 1px solid transparent; text-decoration: none !important; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; line-height: 1.2; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(13,148,136,.9); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(13,148,136,1); transform: translateY(-1px); }
.btn-accent { background: var(--grad-warm); color: #1f1300 !important; box-shadow: 0 10px 22px -10px rgba(245,158,11,.9); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg) !important; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600) !important; }
.btn-ghost { background: transparent; color: var(--ink-2) !important; }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-white { background: #fff; color: #0b1324 !important; }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .7; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-muted); color: var(--ink-2); }
.badge-brand { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
:root[data-theme="dark"] .badge-brand { color: #5eead4; }
.badge-accent { background: var(--accent-50); color: #92400e; border: 1px solid #fde68a; }
:root[data-theme="dark"] .badge-accent { color: #fcd34d; border-color: #78350f; }
.badge-rose { background: #fff1f2; color: #be123c; }
.badge-sample { background: #fef3c7; color: #92400e; border: 1px dashed #f59e0b; text-transform: uppercase; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .88rem; transition: .15s; }
.chip:hover { border-color: var(--brand-600); color: var(--brand-600); text-decoration: none; }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; position: relative; }
.card.hover:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); text-decoration: none; }
a.card { color: inherit; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-3); margin-bottom: 0; }
.card-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; border: 1px solid var(--brand-100); }
.card-icon.warm { background: var(--accent-50); color: var(--accent-600); border-color: #fde68a; }
.card-icon.violet { background: #f5f3ff; color: var(--violet); border-color: #ddd6fe; }
.card-icon.sky { background: #f0f9ff; color: var(--sky); border-color: #bae6fd; }
.card-icon.rose { background: #fff1f2; color: var(--rose); border-color: #fecdd3; }
:root[data-theme="dark"] .card-icon.violet, :root[data-theme="dark"] .card-icon.sky, :root[data-theme="dark"] .card-icon.rose, :root[data-theme="dark"] .card-icon.warm { background: var(--surface-2); border-color: var(--line-2); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: 14px; color: var(--brand-600); }
.card-glass { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(12px); }

/* Category tiles */
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .2s; min-height: 150px; position: relative; overflow: hidden; }
.cat-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-50); transition: .3s; z-index: 0; }
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile:hover { border-color: var(--brand-600); transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-tile .ic { width: 30px; height: 30px; color: var(--brand-600); }
.cat-tile strong { font-family: var(--font-head); font-size: 1.05rem; }
.cat-tile span { color: var(--ink-3); font-size: .85rem; line-height: 1.4; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: 44px 0 56px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 620px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.hero-bullets span { display: inline-flex; gap: 8px; align-items: center; }
.hero-bullets .ic { color: var(--brand-600); }
.page-hero { background: var(--grad-hero); padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .page-hero { padding: 60px 0 56px; } }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero .lead { max-width: 760px; }

/* Search box (hero) */
.search-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; margin-top: 26px; max-width: 680px; }
.search-tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .88rem; color: var(--ink-3); white-space: nowrap; }
.search-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.search-row { display: flex; gap: 8px; padding: 6px; flex-wrap: wrap; }
.search-row .input-icon { flex: 1 1 240px; }
.search-row .btn { flex: 1 0 auto; }
@media (min-width: 560px) { .search-row .btn { flex: 0 0 auto; } }

/* Hero visual */
.hero-visual { position: relative; min-height: 500px; display: none; }
@media (min-width: 1000px) { .hero-visual { display: block; } }
.hv-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; }
.hv-main { top: 10px; left: 30px; right: 20px; padding: 0; overflow: hidden; animation: float 7s ease-in-out infinite; }
.hv-cover { height: 190px; background: linear-gradient(135deg, #99f6e4, #5eead4 30%, #14b8a6 60%, #0f766e); position: relative; display: grid; place-items: center; }
.hv-cover svg.house { width: 70%; height: auto; }
.hv-body { padding: 16px 18px 18px; }
.hv-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }
.hv-meta { display: flex; gap: 14px; color: var(--ink-3); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.hv-save { bottom: 0; left: -14px; width: 250px; animation: float 8s ease-in-out -2s infinite; }
.hv-save .big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--brand-600); }
.hv-lead { top: 340px; right: -14px; width: 240px; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--ink-3); }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 1rem; transition: border-color .15s, box-shadow .15s; min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--ring); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(225,29,72,.15); }
.error-msg { color: var(--rose); font-size: .8rem; font-weight: 600; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon input { padding-left: 42px; }
.form-row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); margin-bottom: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex-shrink: 0; }
.consent { font-size: .76rem; color: var(--ink-3); line-height: 1.5; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }
input[type="range"] { width: 100%; accent-color: var(--brand-600); height: 28px; }

/* Option tiles (wizard) */
.options { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .options.cols-3 { grid-template-columns: repeat(3, 1fr); } .options.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.options.cols-1 { grid-template-columns: 1fr; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option label, .option .opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; transition: .15s; height: 100%; line-height: 1.3; }
.option label .ic { color: var(--brand-600); width: 24px; height: 24px; }
.option label small { font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.option input:hover + label { border-color: var(--brand-600); }
.option input:checked + label { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 4px var(--ring); }
.option input:focus-visible + label { outline: 3px solid var(--ring); }

/* Wizard */
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 22px; position: relative; overflow: hidden; }
@media (min-width: 700px) { .wizard { padding: 34px; } }
.wizard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.progress { height: 8px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
.step { display: none; animation: stepIn .35s ease; }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.step h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 6px; }
.step .sub { color: var(--ink-3); margin-bottom: 18px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; }
.wizard-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.wizard-trust span { display: inline-flex; gap: 6px; align-items: center; }
.wizard-trust .ic { color: var(--brand-600); }
.success-panel { text-align: center; padding: 18px 0; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 16px; border: 2px solid var(--brand-100); animation: pop .4s ease; }
.success-icon .ic { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 80% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* Lead section split */
.lead-section { background: radial-gradient(800px 400px at 0% 0%, rgba(16,185,129,.12), transparent 60%), var(--bg-soft); }
.benefit-list { list-style: none; padding: 0; margin: 20px 0; }
.benefit-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.benefit-list li .ic { color: #fff; background: var(--brand-600); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: 1px; }
.benefit-list strong { display: block; }
.benefit-list span { color: var(--ink-3); font-size: .93rem; }

/* ---------- Steps / How it works ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding: 26px 22px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); box-shadow: 0 8px 16px -8px rgba(13,148,136,.9); }
.step-card h3 { margin-top: 8px; font-size: 1.08rem; }
.step-card p { color: var(--ink-3); font-size: .93rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat .num { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--brand-600); line-height: 1.1; }
.stat .lbl { color: var(--ink-3); font-size: .86rem; font-weight: 600; }
.section-dark .stat, .section-brand .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section-dark .stat .num, .section-brand .stat .num { color: #fff; }
.section-dark .stat .lbl, .section-brand .stat .lbl { color: #cbd5e1; }

/* ---------- Listing cards ---------- */
.listings-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }
.listings-grid.list-view { grid-template-columns: 1fr; }
.l-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .2s; display: flex; flex-direction: column; position: relative; }
.l-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.list-view .l-card { flex-direction: row; }
.list-view .l-cover { width: 260px; flex-shrink: 0; height: auto; min-height: 180px; }
@media (max-width: 640px) { .list-view .l-card { flex-direction: column; } .list-view .l-cover { width: 100%; } }
.l-cover { height: 190px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.95); background-size: cover; background-position: center; }
.l-cover .ic { width: 64px; height: 64px; stroke-width: 1.5; opacity: .9; }
.l-cover.c-home-sale { background-image: linear-gradient(135deg, #14b8a6, #0f766e); }
.l-cover.c-rental { background-image: linear-gradient(135deg, #38bdf8, #0369a1); }
.l-cover.c-vacation { background-image: linear-gradient(135deg, #fbbf24, #ea580c); }
.l-cover.c-land { background-image: linear-gradient(135deg, #a3e635, #3f6212); }
.l-cover.c-vehicle { background-image: linear-gradient(135deg, #94a3b8, #1e293b); }
.l-cover.c-business { background-image: linear-gradient(135deg, #a78bfa, #5b21b6); }
.l-cover.c-boat-rv { background-image: linear-gradient(135deg, #22d3ee, #155e75); }
.l-cover.c-commercial { background-image: linear-gradient(135deg, #f472b6, #9d174d); }
.l-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.l-badges .badge { background: rgba(255,255,255,.95); color: #0b1324; }
.l-badges .badge-sample { background: #fef3c7; color: #92400e; }
.l-badges .badge-feat { background: var(--accent); color: #1f1300; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); border: 0; display: grid; place-items: center; color: #0b1324; box-shadow: var(--shadow-sm); transition: .15s; z-index: 2; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: var(--rose); }
.fav-btn.on .ic { fill: currentColor; }
.l-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.l-price { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.l-price small { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.l-title { font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.l-title a { color: inherit; }
.l-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.l-loc { color: var(--ink-3); font-size: .87rem; display: flex; gap: 6px; align-items: center; }
.l-facts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: .85rem; font-weight: 600; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.l-facts span { display: inline-flex; gap: 5px; align-items: center; }
.l-facts .ic { color: var(--ink-3); }

/* Listings toolbar */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-sm); }
.filters .field { margin: 0; }
.filters .span-2 { grid-column: span 2; }
@media (min-width: 900px) { .filters { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr; align-items: end; } .filters .span-2 { grid-column: auto; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 9px 14px; font-weight: 700; font-size: .86rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
#map, .map { height: 460px; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; z-index: 1; background: var(--bg-muted); }
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--surface-2); }
.empty-state .ic { width: 48px; height: 48px; color: var(--brand-600); margin: 0 auto 12px; }

/* Listing detail */
.listing-hero-cover { height: 300px; border-radius: var(--radius-xl); }
@media (min-width: 900px) { .listing-hero-cover { height: 420px; } }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fact .k { font-size: .76rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fact .v { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }
.sample-banner { background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 12px, #fde68a 12px, #fde68a 24px); color: #78350f; padding: 12px 16px; border-radius: 12px; font-weight: 700; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }

/* ---------- Guide (article) ---------- */
.article-head { padding: 36px 0 28px; background: var(--grad-hero); border-bottom: 1px solid var(--line); }
.breadcrumbs { font-size: .84rem; color: var(--ink-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--brand-600); }
.byline { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: .88rem; font-weight: 600; margin-top: 12px; align-items: center; }
.byline span { display: inline-flex; gap: 6px; align-items: center; }
.prose { font-size: 1.075rem; line-height: 1.78; color: var(--ink-2); }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--ink); }
.prose h3 { margin-top: 1.7em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-600); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-600) 40%, transparent); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--brand-600); background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose table { margin: 1.5em 0; font-size: .93rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table thead { background: var(--bg-muted); }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 120px; }
.prose th { font-weight: 800; color: var(--ink); font-size: .85rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
.prose img { border-radius: var(--radius); }
.prose code { background: var(--bg-muted); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose hr { margin: 2.5em 0; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 0 0 30px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--brand-600); }
.takeaways h2 { font-size: 1.05rem !important; margin: 0 0 12px !important; display: flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-700); }
:root[data-theme="dark"] .takeaways h2 { color: #5eead4; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 1rem; }
.takeaways li .ic { color: var(--brand-600); margin-top: 4px; }
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 8px; font-family: var(--font-head); }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); }
.toc a.active { color: var(--brand-600); font-weight: 700; }
.inline-cta { margin: 2em 0; padding: 22px; border-radius: var(--radius-lg); background: var(--grad); color: #ecfdf5; display: grid; gap: 14px; align-items: center; }
@media (min-width: 700px) { .inline-cta { grid-template-columns: 1fr auto; padding: 26px 28px; } }
.inline-cta h3 { color: #fff; margin: 0 0 4px; }
.inline-cta p { margin: 0; color: #d1fae5; font-size: .98rem; }
.sources { font-size: .88rem; }
.sources li { margin-bottom: 6px; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad); z-index: 100; width: 0; transition: width .1s linear; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.disclaimer-box { font-size: .84rem; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* Sidebar widgets */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 1.02rem; display: flex; gap: 8px; align-items: center; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.widget li:last-child { border-bottom: 0; }
.widget-brand { background: var(--grad); color: #ecfdf5; border: 0; }
.widget-brand h3 { color: #fff; }
.widget-brand p { color: #d1fae5; font-size: .92rem; }

/* Guide cards */
.g-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.g-card .g-top { height: 8px; background: var(--grad); }
.g-card .g-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.g-card h3 { font-size: 1.08rem; margin: 0; color: var(--ink); line-height: 1.35; }
.g-card p { font-size: .92rem; }
.g-card .g-meta { margin-top: auto; display: flex; gap: 14px; color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.cat-selling .g-top { background: linear-gradient(90deg, #14b8a6, #0f766e); }
.cat-renting .g-top { background: linear-gradient(90deg, #38bdf8, #0369a1); }
.cat-buying .g-top { background: linear-gradient(90deg, #34d399, #047857); }
.cat-vacation .g-top { background: linear-gradient(90deg, #fbbf24, #ea580c); }
.cat-money .g-top { background: linear-gradient(90deg, #a3e635, #4d7c0f); }
.cat-legal .g-top { background: linear-gradient(90deg, #a78bfa, #5b21b6); }
.cat-vehicles .g-top { background: linear-gradient(90deg, #94a3b8, #334155); }
.cat-business .g-top { background: linear-gradient(90deg, #f472b6, #9d174d); }
.cat-safety .g-top { background: linear-gradient(90deg, #fb7185, #be123c); }
.cat-marketing .g-top { background: linear-gradient(90deg, #22d3ee, #0e7490); }

/* ---------- Videos ---------- */
.video-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.v-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; cursor: pointer; display: block; width: 100%; border: 0; padding: 0; }
.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.yt .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: rgba(220, 38, 38, .92); display: grid; place-items: center; transition: .2s; }
.yt:hover .play { background: #dc2626; transform: translate(-50%, -50%) scale(1.08); }
.yt .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-body { padding: 14px 16px 16px; }
.v-body h3 { font-size: .98rem; line-height: 1.4; margin: 0 0 6px; }
.v-body p { color: var(--ink-3); font-size: .82rem; margin: 0; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: .15s; color: inherit; }
.news-item:hover { border-color: var(--brand-600); text-decoration: none; transform: translateX(3px); }
.news-item .ic { color: var(--brand-600); margin-top: 3px; }
.news-item strong { color: var(--ink); display: block; line-height: 1.4; font-size: .98rem; }
.news-item span { color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.ticker { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 16px; overflow: hidden; font-size: .88rem; }
.ticker-label { font-weight: 800; color: var(--brand-600); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; animation: ticker 60s linear infinite; width: max-content; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker-track a { color: var(--ink-2); white-space: nowrap; font-weight: 600; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rate-pill { display: inline-flex; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.rate-pill b { font-family: var(--font-head); font-size: 1.3rem; color: var(--brand-600); }

/* ---------- Calculators ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-sm); }
@media (min-width: 700px) { .calc-panel { padding: 28px; } }
.calc-result { background: var(--ink); color: #e2e8f0; border-radius: var(--radius-xl); padding: 24px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .calc-result { background: #0a1426; border: 1px solid var(--line); }
.calc-result::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(16,185,129,.35), transparent 70%); }
.calc-result > * { position: relative; }
.calc-result h3 { color: #fff; }
.result-big { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #5eead4; line-height: 1.05; margin: 6px 0 4px; }
.result-rows { margin-top: 18px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .94rem; }
.result-row:last-child { border-bottom: 0; }
.result-row b { color: #fff; }
.range-field { margin-bottom: 18px; }
.range-field .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.range-field .top input { width: 150px; min-height: 40px; padding: 8px 10px; text-align: right; font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #cbd5e1; margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart-wrap { margin-top: 14px; }
.chart-wrap svg { width: 100%; height: auto; }
.amort-table { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.amort-table table { font-size: .85rem; }
.amort-table th, .amort-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.amort-table th:first-child, .amort-table td:first-child { text-align: left; }
.amort-table thead th { position: sticky; top: 0; background: var(--bg-muted); }
.tool-card { display: flex; gap: 16px; align-items: flex-start; }
.tool-card .card-icon { margin: 0; flex-shrink: 0; }

/* Savings widget */
.savings { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .savings { grid-template-columns: 1.1fr .9fr; } }
.savings-out { text-align: center; padding: 26px; border-radius: var(--radius-xl); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.savings-out .result-big { color: #fde68a; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 20px; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card.pop { border: 2px solid var(--brand-600); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -13px; right: 20px; }
.price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price small { font-size: .95rem; color: var(--ink-3); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 10px 0 18px; }
.ticks li { display: flex; gap: 10px; padding: 6px 0; font-size: .94rem; color: var(--ink-2); }
.ticks li .ic { color: var(--brand-600); margin-top: 4px; }
.price-card .btn { margin-top: auto; }

/* Donation tiers */
.tiers { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(5, 1fr); } }
.tier { text-align: center; padding: 18px 12px; border-radius: var(--radius-lg); border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: .15s; }
.tier:hover, .tier.active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.tier .amt { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; }
.tier .nm { font-weight: 700; font-size: .9rem; }
.tier .ds { font-size: .78rem; color: var(--ink-3); }
.alloc { display: grid; gap: 12px; }
.alloc-row .bar { height: 10px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; margin-top: 6px; }
.alloc-row .bar span { display: block; height: 100%; background: var(--grad-warm); border-radius: 999px; }

/* ---------- FAQ / Accordion ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; transition: .15s; }
.faq details[open] { border-color: var(--brand-600); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-600); transition: .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 18px 16px; color: var(--ink-2); }
.faq .ans p:last-child { margin: 0; }

/* Checklist */
.checklist-phase { margin-bottom: 26px; }
.checklist-phase h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); cursor: pointer; transition: .15s; }
.cl-item:hover { border-color: var(--brand-600); }
.cl-item input { width: 22px; height: 22px; accent-color: var(--brand-600); flex-shrink: 0; margin-top: 1px; }
.cl-item.done span { text-decoration: line-through; color: var(--ink-3); }
.cl-item small { display: block; color: var(--ink-3); font-size: .8rem; }

/* Glossary */
.glossary dl { margin: 0; }
.glossary .term { padding: 16px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 800; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.glossary dd { margin: 6px 0 0; color: var(--ink-2); }
.az { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: var(--header-h); background: var(--bg); padding: 10px 0; z-index: 5; }
.az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.az a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* ---------- Ads ---------- */
.ad-wrap { margin: 28px auto; text-align: center; min-height: 0; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ad-wrap ins { display: block; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band { border-radius: var(--radius-xl); background: var(--grad); color: #ecfdf5; padding: 34px 24px; display: grid; gap: 20px; align-items: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr 1fr; padding: 48px; } }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d1fae5; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.inline-form .btn { flex: 0 0 auto; }
.cta-band input { border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1324; color: #94a3b8; padding: 56px 0 28px; margin-top: 0; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 340px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: grid; gap: 14px; font-size: .8rem; }
.footer-legal { color: #64748b; line-height: 1.6; }
.footer-legal strong { color: #94a3b8; }
.footer-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.eho { display: inline-flex; gap: 8px; align-items: center; color: #cbd5e1; font-weight: 600; }

/* ---------- Floating UI ---------- */
.to-top { position: fixed; right: 16px; bottom: 86px; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--bg); border: 0; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s; z-index: 40; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .to-top { bottom: 24px; } }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; box-shadow: 0 -8px 20px -10px rgba(15,23,42,.25); transform: translateY(100%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: .9rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
body.has-mobile-cta { padding-bottom: 72px; }
@media (min-width: 900px) { body.has-mobile-cta { padding-bottom: 0; } }

.toast-wrap { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; display: flex; gap: 10px; align-items: center; animation: toastIn .3s ease; }
.toast.err { background: var(--rose); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.6); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-panel { position: relative; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; animation: pop .3s ease; }
.modal-panel.wide { width: min(760px, 100%); }
.modal-close { position: absolute; top: 12px; right: 12px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-hero { margin: -28px -28px 20px; padding: 26px 28px; background: var(--grad); color: #ecfdf5; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.modal-hero h3 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.modal-hero p { margin: 0; color: #d1fae5; }

/* Search modal */
.search-results { margin-top: 14px; display: grid; gap: 6px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.search-results a:hover, .search-results a.sel { border-color: var(--brand-600); background: var(--brand-50); text-decoration: none; }
.search-results small { display: block; color: var(--ink-3); }
.search-results mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; display: none; gap: 14px; max-width: 560px; }
.cookie.show { display: grid; animation: toastIn .3s; }
.cookie p { margin: 0; font-size: .88rem; color: var(--ink-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--ink-3); font-weight: 700; font-size: .9rem; }
.trust-strip span { display: inline-flex; gap: 8px; align-items: center; }
.trust-strip .ic { color: var(--brand-600); }

/* Tables (general) */
.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; }
.table thead { background: var(--bg-muted); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.yes { color: #059669; font-weight: 700; }
.no { color: var(--rose); font-weight: 700; }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.notice { background: var(--accent-50); border: 1px solid #fde68a; color: #78350f; padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; }
:root[data-theme="dark"] .notice { color: #fde68a; border-color: #78350f; }
.notice-brand { background: var(--brand-50); border: 1px solid var(--brand-100); padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; }

/* Print */
@media print {
  .partner-bar, .site-header, .site-footer, .mobile-cta, .to-top, .cookie, .ad-wrap, .no-print, .reading-progress, .toast-wrap { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 16px 0; }
  a { color: #000; text-decoration: underline; }
}
