/* Richmond Home Sales — site styles. Brand: #0038ef blue, #3a3a3a text, Open Sans. */
:root {
  --blue: #0038ef;
  --blue-2: #2563ff;
  --cyan: #22c3ee;
  --navy: #060e26;
  --navy-2: #0b1a45;
  --ink: #1d2433;
  --text: #3a3a3a;
  --muted: #5d6576;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f2f5f7;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(6, 14, 38, .18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 56, 239, .35);
  --grad: linear-gradient(135deg, #0038ef 0%, #2563ff 50%, #22c3ee 100%);
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.7 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { --b: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; background: var(--b); color: #fff; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-glow { background: var(--grad); background-size: 200% 200%; animation: gradshift 6s ease infinite; box-shadow: 0 10px 30px -10px rgba(37, 99, 255, .7); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-ghost-dark { background: transparent; color: var(--blue); border-color: rgba(0, 56, 239, .35); }
.btn-ghost-dark:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
@keyframes gradshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 14, 38, .72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background .3s; }
.site-header.scrolled { background: rgba(6, 14, 38, .92); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { width: 170px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .8em; border-radius: 999px; position: relative; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.hdr-phone { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.hdr-phone svg { width: 18px; height: 18px; fill: var(--cyan); }
.hdr-phone:hover { color: var(--cyan); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .1); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { padding: 8px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mobile-nav ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mobile-nav a:not(.btn) { display: block; color: #fff; text-decoration: none; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 1080px) { .main-nav { display: none; } .nav-toggle { display: flex; } .header-cta { margin-left: auto; } }
@media (max-width: 640px) { .hdr-phone span, .header-cta .btn { display: none; } .brand img { width: 150px; } }

/* ---------- animated backgrounds ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: #1d4bff; top: -180px; right: -120px; }
.b2 { width: 420px; height: 420px; background: #22c3ee; bottom: -200px; left: -120px; opacity: .35; animation-delay: -5s; }
.b3 { width: 360px; height: 360px; background: #7c3aed; top: 30%; left: 45%; opacity: .25; animation-delay: -9s; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.95); } }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; padding: 72px 0 40px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; transform: scale(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6, 14, 38, .96) 30%, rgba(6, 14, 38, .6) 70%, rgba(0, 56, 239, .45)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero h1, .post-hero h1, .page-hero h1 { background: linear-gradient(90deg, #fff 0%, #fff 55%, #9ec5ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.18rem; color: rgba(255, 255, 255, .82); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { width: 18px; height: 18px; fill: var(--cyan); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--blue); margin-bottom: .8em; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; color: #cfe0ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); padding: .5em 1em; border-radius: 999px; letter-spacing: .06em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.glass-light { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.offer-card { border-radius: 24px; padding: 30px; display: grid; gap: 14px; position: relative; }
.offer-card::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: linear-gradient(140deg, rgba(34, 195, 238, .8), transparent 40%, rgba(37, 99, 255, .8)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.offer-title { font-size: 1.45rem; font-weight: 800; color: #fff; margin: 0; line-height: 1.25; }
.offer-sub { color: rgba(255, 255, 255, .75); margin: 0; font-size: .95rem; }
.offer-card label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.offer-card input { background: rgba(255, 255, 255, .95); border: 0; border-radius: 12px; padding: .85em 1em; font: inherit; color: var(--ink); }
.offer-fine { font-size: .8rem; color: rgba(255, 255, 255, .6); margin: 0; text-align: center; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 2px; }
.stat-n { font-size: 2rem; font-weight: 800; background: linear-gradient(90deg, #fff, #8fd8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span:last-child { color: rgba(255, 255, 255, .72); font-size: .9rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: rgba(255, 255, 255, .82); overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--cyan); }
.section-dark .wrap { position: relative; z-index: 1; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-title { margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.split-wide { grid-template-columns: 1.4fr .8fr; }
@media (max-width: 960px) { .split, .split-wide { grid-template-columns: 1fr; gap: 40px; } .section { padding: 72px 0; } }
.intro-visual { display: flex; justify-content: center; }
.tilt-card { position: relative; border-radius: 28px; padding: 18px; transform: perspective(900px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.tilt-card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.tilt-card img { border-radius: 20px; max-height: 460px; width: auto; }
.float-badge { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: .6em 1em; border-radius: 999px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.float-badge .ico { width: 18px; height: 18px; fill: var(--blue); }
.fb1 { top: 30px; left: -40px; }
.fb2 { bottom: 40px; right: -36px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }
.features { display: grid; gap: 22px; }
.features.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .features.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features.grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::after { transform: scaleX(1); }
.feature p:last-child { margin-bottom: 0; }
.feature-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(0, 56, 239, .12), rgba(34, 195, 238, .18)); margin-bottom: 16px; }
.feature-ico .ico { width: 26px; height: 26px; fill: var(--blue); }
.features-glass .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.features-glass .feature-ico { background: rgba(34, 195, 238, .15); }
.features-glass .feature-ico .ico { fill: var(--cyan); }
.features-glass .feature:hover { background: rgba(255, 255, 255, .09); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .3; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.3rem; margin: -50px 0 16px; box-shadow: 0 10px 20px -8px rgba(0, 56, 239, .6); position: relative; }
.step { margin-top: 28px; }
.step p:last-child { margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.compare table td:nth-child(2) { font-weight: 600; color: var(--ink); }
.area-card { border-radius: 24px; padding: 28px; }
.area-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.area-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.area-list li:hover { background: var(--blue); color: #fff; }
.area-zip { font-size: .9rem; color: var(--muted); }

.tool-row { display: grid; grid-template-columns: .9fr 1.4fr; gap: 26px; align-items: stretch; }
@media (max-width: 960px) { .tool-row { grid-template-columns: 1fr; } }
.quick-calc { border-radius: 24px; padding: 28px; display: grid; gap: 14px; }
.quick-calc label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; grid-template-columns: 1fr auto; }
.quick-calc input[type=range] { grid-column: 1 / -1; }
.quick-calc output { font-weight: 800; color: var(--blue); }
.quick-result { margin: 4px 0; display: grid; }
.quick-result span { font-size: 2.4rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.quick-result small { color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--fill, 50%), #dbe3f3 var(--fill, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 4px 10px rgba(0, 56, 239, .4); cursor: pointer; transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); cursor: pointer; }
.tool-cards { display: grid; gap: 18px; }
.tool-card { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 88px; text-decoration: none; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; overflow: hidden; }
.tool-card .ico { position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--grad); fill: #fff; }
.tool-card h2, .tool-card h3 { margin-bottom: .3em; font-size: 1.15rem; }
.tool-card p { margin: 0 0 .4em; color: var(--muted); font-size: .95rem; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.tool-go { font-weight: 700; color: var(--blue); font-size: .92rem; }
.tool-card.big { padding: 32px; }
.tool-card.big .ico { position: static; width: 56px; height: 56px; margin-bottom: 16px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px auto; }
@media (max-width: 960px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card.mini { padding: 14px 16px; }
.tool-card.mini h3 { font-size: 1rem; }
.mini-tools { display: grid; gap: 10px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 56, 239, .08); color: var(--blue); font-weight: 700; padding: .25em .75em; border-radius: 999px; font-size: .78rem; }
.chip .ico { width: 14px; height: 14px; fill: currentColor; }
.chip-glass { background: rgba(255, 255, 255, .1); color: #cfe0ff; border: 1px solid rgba(255, 255, 255, .18); }
.card-title { font-size: 1.12rem; margin-bottom: .5em; }
.card-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.card-title a:hover { background-size: 100% 2px; color: var(--ink); }
.card-excerpt { font-size: .93rem; color: var(--muted); flex: 1; }
.card-more { margin: 0; font-weight: 700; font-size: .92rem; }
.card-more a { text-decoration: none; }
.card-more span { display: inline-block; transition: transform .25s; }
.card:hover .card-more span { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(0, 56, 239, .25); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.faq-plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 56, 239, .08); position: relative; transition: transform .3s var(--ease), background .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--blue); border-radius: 2px; }
.faq-plus::after { transform: rotate(90deg); transition: transform .3s; }
.faq-item[open] .faq-plus { background: var(--blue); transform: rotate(180deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: #fff; }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 22px 18px; }
.faq-a p:last-child { margin: 0; }

.cta-band { background: var(--navy); color: rgba(255, 255, 255, .85); overflow: hidden; isolation: isolate; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band a:not(.btn) { color: #9ec5ff; }

/* ---------- page / post heroes ---------- */
.page-hero, .post-hero { position: relative; background: radial-gradient(ellipse at 80% 0%, var(--navy-2), var(--navy) 60%); color: rgba(255, 255, 255, .85); padding: 56px 0 64px; overflow: hidden; isolation: isolate; }
.page-hero .wrap, .post-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .post-hero h1 { color: #fff; max-width: 22em; }
.post-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lede { font-size: 1.15rem; max-width: 46em; color: rgba(255, 255, 255, .78); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .85rem; }
.crumbs li { color: rgba(255, 255, 255, .6); max-width: 100%; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .92rem; color: rgba(255, 255, 255, .7); margin: 0; }
.dot { opacity: .5; }
.post-cat { margin-bottom: 14px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding: 56px 0 40px; align-items: start; }
@media (max-width: 1024px) { .post-layout { grid-template-columns: 1fr; gap: 32px; } }
.post-figure { margin: -100px 0 36px; position: relative; z-index: 2; }
.post-figure img { border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(6, 14, 38, .45); width: 100%; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 1024px) { .post-aside { position: static; } }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-title { font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: .7em; }
.cta-side { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: rgba(255, 255, 255, .8); border: 0; display: grid; gap: 10px; position: relative; overflow: hidden; }
.cta-side::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: #1d4bff; filter: blur(60px); opacity: .5; top: -80px; right: -80px; }
.cta-side > * { position: relative; }
.cta-side .side-title { color: #fff; margin: 0; }
.cta-side p { margin: 0 0 6px; font-size: .95rem; }
.cta-side .btn-ghost-dark { color: #fff; border-color: rgba(255, 255, 255, .3); }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.side-links a { text-decoration: none; font-weight: 600; }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--blue); }
.toc a.active { font-weight: 700; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.5em; scroll-margin-top: 96px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose table, .tax-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.prose th, .prose td, .tax-table th, .tax-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .tax-table thead th { background: linear-gradient(135deg, #0b1a45, #0038ef); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #f8faff; }
.prose tbody tr:hover { background: #eef3ff; }
.callout { border-radius: 14px; padding: 18px 20px; margin: 1.6em 0; background: linear-gradient(135deg, rgba(0, 56, 239, .07), rgba(34, 195, 238, .1)); border-left: 4px solid var(--blue); }
.callout-tip { border-left-color: #10b981; background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(34, 195, 238, .08)); }
.callout p:last-child { margin: 0; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.post-share a, .post-share button { font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--text); padding: .4em .9em; border-radius: 999px; cursor: pointer; transition: all .2s; }
.post-share a:hover, .post-share button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.related { padding: 40px 0 96px; }

/* ---------- blog ---------- */
.blog-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: -40px; position: relative; z-index: 2; background: #fff; border-radius: 24px; padding: 20px; box-shadow: var(--shadow-lg); }
.feature-media img { border-radius: 18px; }
.feature-body h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feature-body h2 a { color: var(--ink); text-decoration: none; }
@media (max-width: 860px) { .blog-feature { grid-template-columns: 1fr; gap: 20px; } }
.blog-list { padding: 64px 0 96px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-chip { font: inherit; font-size: .9rem; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--text); padding: .45em 1em; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.post-card.is-hidden { display: none; }

/* ---------- affiliates ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: -40px auto 64px; position: relative; z-index: 2; }
@media (max-width: 960px) { .partners { grid-template-columns: 1fr; } }
.partner { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.partner-logo { display: grid; place-items: center; height: 120px; background: var(--bg-alt); border-radius: 14px; margin-bottom: 20px; padding: 16px; }
.partner-logo img { max-height: 88px; width: auto; }
.partner h2 { font-size: 1.3rem; }
.partner h2 a { color: var(--ink); text-decoration: none; }
.partner p { flex: 1; font-size: .96rem; }
.more-partners { padding-bottom: 80px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 36px; margin: -40px auto 56px; position: relative; z-index: 2; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form-card label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form-card input:not([type=radio]):not([type=range]), .form-card textarea, .calc select, .calc input[type=number] { width: 100%; font: inherit; color: var(--ink); background: #f7f9fd; border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-card input:focus, .form-card textarea:focus, .calc select:focus, .calc input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(0, 56, 239, .12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.radio-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row legend { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; }
.radio-row label { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: .45em 1em; cursor: pointer; font-weight: 600; }
.radio-row label:has(input:checked) { border-color: var(--blue); background: rgba(0, 56, 239, .06); color: var(--blue); }
.form-card output { color: var(--blue); font-weight: 800; }
.form-card .offer-fine { color: var(--muted); }
.form-status { padding: 12px 16px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-weight: 600; }
.form-status.ok { background: #ecfdf5; color: #065f46; }
.contact-aside { display: grid; gap: 20px; }
.mini-steps { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.contact-copy { padding-bottom: 80px; }
.thanks { padding: 120px 0; }
.check-anim { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--grad); position: relative; box-shadow: 0 0 0 12px rgba(37, 99, 255, .15); animation: pop .6s var(--ease); }
.check-anim::after { content: ""; position: absolute; left: 31px; top: 20px; width: 18px; height: 34px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.big-404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- calculators ---------- */
.calc-wrap { margin-top: -40px; position: relative; z-index: 2; }
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 26px; overflow: hidden; background: #fff; }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } }
.calc-form { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
@media (max-width: 560px) { .calc-form { grid-template-columns: 1fr; } }
.calc-form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .9rem; align-content: start; }
.calc-form small { font-weight: 400; color: var(--muted); }
.calc .checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
.calc .checks legend { font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.calc .checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.field { position: relative; display: block; }
.field input { padding-right: 2em !important; }
.field.money input { padding-left: 1.8em !important; padding-right: 1em !important; }
.field.money::before { content: "$"; position: absolute; left: .9em; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.field.pct::after { content: "%"; position: absolute; right: .9em; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.field-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; }
.calc-out { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: rgba(255, 255, 255, .85); padding: 32px; position: relative; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #1d4bff; filter: blur(80px); opacity: .45; top: -120px; right: -100px; }
.calc-out > * { position: relative; }
.calc-big { display: grid; margin: 0 0 18px; }
.calc-big span { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1.05; transition: color .3s; }
.calc-big small { color: rgba(255, 255, 255, .65); font-size: .95rem; }
.calc-sub { margin: -6px 0 18px; }
.calc-sub span { color: #fff; font-weight: 700; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin-bottom: 20px; }
@media (max-width: 480px) { .donut-wrap { grid-template-columns: 1fr; } }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut-ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 6; }
.donut circle.seg { fill: none; stroke-width: 6; transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }
.legend b { margin-left: auto; color: #fff; }
.calc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 18px; }
.calc-facts div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; }
.calc-facts dt { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.calc-facts dd { margin: 0; font-weight: 800; color: #fff; font-size: 1.1rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .5s var(--ease); }
.meter { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 18px; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #10b981, #22c3ee, #2563ff); border-radius: 10px; transition: width .6s var(--ease); }
.calc-note { font-size: .85rem; color: rgba(255, 255, 255, .6); margin: 12px 0 0; }
.calc .tax-table { background: transparent; font-size: .88rem; }
.calc .tax-table th, .calc .tax-table td { border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); padding: 8px 10px; }
.calc .tax-table thead th { background: rgba(255, 255, 255, .08); }
.calc .tax-table td:last-child, .calc .tax-table th:last-child { text-align: right; }
.calc .tax-table tfoot td { font-weight: 800; color: #fff; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; overflow: hidden; isolation: isolate; }
.footer-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: #1d4bff; filter: blur(120px); opacity: .25; top: -300px; left: 50%; transform: translateX(-50%); z-index: -1; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); margin-bottom: 56px; }
.footer-cta .eyebrow { color: var(--cyan); margin-bottom: .3em; }
.footer-cta-title { color: #fff; font-size: 1.4rem; font-weight: 800; margin: 0; max-width: 28em; line-height: 1.3; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about img { margin-bottom: 16px; }
.footer-about p { font-size: .95rem; }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact a { word-break: break-all; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; text-decoration: none; font-weight: 800; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.section-dark a:not(.btn), .site-footer .prose a { color: #8fd8ff; }
.section-dark a:not(.btn):hover { color: #fff; }
