/* Right at Home Realty brand: deep purple + lavender bands, coral calls to action,
   light-weight grotesque headlines with bold purple emphasis, arch-shaped photo frames (from the recruiting deck). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --lav: #e6dcf9;          /* brand lavender */
  --lav-2: #d8cbf6;
  --ink: #260e58;          /* brand deep purple */
  --ink-soft: #4d3d7a;
  --mid: #7d62c4;          /* brand mid purple (#977DD1), deepened for text contrast */
  --mid-soft: #977dd1;
  --coral: #ec4a33;        /* brand coral (#FE5E47), deepened for button contrast */
  --coral-text: #d63d27;
  --on-coral: #ffffff;
  --line: #d8cbf6;
  --band-ink-bg: #260e58;
  --band-ink-fg: #f3eefd;

  --f-display: "Inter Tight", "Söhne", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Inter Tight", "Söhne", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(2rem, 1.55rem + 2vw, 3.3rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.8vw, 5rem);

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 1.75rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130a2b; --surface: #1d1140; --lav: #1e1243; --lav-2: #2c1b5c; --ink: #efe9fd; --ink-soft: #c2b6e4;
    --mid: #b9a4f0; --mid-soft: #a58fe0; --coral: #ff6a52; --coral-text: #ff8a76; --on-coral: #1a0b10; --line: #33246a;
    --band-ink-bg: #0b0520; --band-ink-fg: #efe9fd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130a2b; --surface: #1d1140; --lav: #1e1243; --lav-2: #2c1b5c; --ink: #efe9fd; --ink-soft: #c2b6e4;
  --mid: #b9a4f0; --mid-soft: #a58fe0; --coral: #ff6a52; --coral-text: #ff8a76; --on-coral: #1a0b10; --line: #33246a;
  --band-ink-bg: #0b0520; --band-ink-fg: #efe9fd;
  color-scheme: dark;
}
/* Logo swaps with the theme */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mid); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; margin: 0; font-weight: 300; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h1 strong, h2 strong { font-weight: 700; color: var(--mid); letter-spacing: -0.035em; }
h1 em, h2 em { font-style: normal; font-weight: 600; color: var(--coral-text); }
p { margin: 0; max-width: 65ch; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.5; font-weight: 300; }
.muted { color: var(--ink-soft); }
.fine { font-size: 0.8rem; color: var(--ink-soft); }

/* Bands */
.band-lav { background: var(--lav); }
.band-ink { background: var(--band-ink-bg); color: var(--band-ink-fg); }
.band-ink .eyebrow { color: var(--mid-soft); }
.band-ink h2 strong { color: var(--mid-soft); }
.band-ink .muted, .band-ink p { color: color-mix(in srgb, var(--band-ink-fg) 82%, transparent); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand img { height: 48px; width: auto; }
.brand span { display: grid; font-size: 0.8rem; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 0.85rem; }
.brand strong { font-size: 1rem; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; padding: 0.45rem 0.65rem; border-radius: 99px; }
.nav a:hover { background: var(--lav); }
.nav a[aria-current="page"] { font-weight: 600; background: var(--lav); }
.nav .btn { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 99px; padding: 0.45rem 0.9rem; font: inherit; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav .btn { margin: 0.5rem 0 0; }
}
@media (max-width: 480px) { .brand span { display: none; } .brand img { height: 42px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: 600 1rem/1 var(--f-body); padding: 0.95rem 1.5rem; border-radius: 99px; text-decoration: none; border: 1.5px solid var(--coral); background: var(--coral); color: var(--on-coral); cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.band-ink .btn.ghost { color: var(--band-ink-fg); border-color: var(--band-ink-fg); }
.btn.sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.btn .arrow { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.8em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Sections */
section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section-head { display: grid; gap: 0.85rem; margin-bottom: 2.5rem; max-width: 50rem; }

/* Hero */
.hero { background: var(--lav); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero .copy { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero .copy { padding-bottom: 0; } }
.page-hero { background: var(--lav); padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.page-hero .wrap { display: grid; gap: 1.1rem; }

/* Arch photo frame */
.arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--lav-2); aspect-ratio: 1 / 1.05; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.arch .tag { position: absolute; left: 1rem; bottom: 1rem; background: var(--bg); color: var(--ink); padding: 0.55rem 0.9rem; border-radius: 99px; font-size: 0.85rem; display: grid; line-height: 1.25; }
.arch .tag b { font-weight: 600; }
.hero .arch { max-width: 30rem; justify-self: end; width: 100%; }
@media (max-width: 860px) { .hero .arch { justify-self: center; max-width: 24rem; } }
.rounded-photo { border-radius: var(--radius); overflow: hidden; background: var(--lav-2); }

/* Photo feature */
.photo-feature { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--lav-2); }
.photo-feature img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 60%; }
.photo-feature figcaption { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); max-width: 26rem; background: var(--bg); border-radius: calc(var(--radius) - 0.5rem); padding: clamp(1.1rem, 2.5vw, 1.75rem); display: grid; gap: 0.6rem; }
.photo-feature figcaption h2 { font-size: var(--step-2); }
.photo-feature figcaption p:last-child { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) {
  .photo-feature img { aspect-ratio: 4 / 3; }
  .photo-feature figcaption { position: static; max-width: none; border-radius: 0; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats div { display: grid; gap: 0.4rem; align-content: start; padding: 0.5rem 1.5rem; border-left: 2px solid var(--mid-soft); }
.stats b { font-family: var(--f-display); font-size: var(--step-4); font-weight: 400; line-height: 0.95; letter-spacing: -0.04em; }
.stats span { color: var(--ink-soft); font-size: 0.95rem; max-width: 18ch; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 420px) { .stats div { padding-inline: 1rem; } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.1rem); display: grid; gap: 0.85rem; align-content: start; min-width: 0; }
.band-lav .card { background: var(--bg); }
.card.lav { background: var(--lav); }
.card.ink { background: var(--band-ink-bg); color: var(--band-ink-fg); }
.card.ink p, .card.ink li { color: color-mix(in srgb, var(--band-ink-fg) 80%, transparent); }
.card.ink h3 { font-weight: 400; font-size: var(--step-2); line-height: 1.1; color: var(--lav); }
:root[data-theme="dark"] .card.ink h3 { color: var(--band-ink-fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.ink h3 { color: var(--band-ink-fg); } }
.card.outline { background: transparent; border: 1.5px solid var(--line); }
.card p { color: var(--ink-soft); }
.chev { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.chev li { position: relative; padding-left: 1.6rem; }
.chev li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.55rem; height: 0.55rem; border-top: 3px solid var(--coral); border-right: 3px solid var(--coral); transform: rotate(45deg); }
.chev b { font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checks li { padding-left: 1.6rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--mid); border-bottom: 2px solid var(--mid); transform: rotate(-45deg); }
.big-num { font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; color: var(--coral-text); line-height: 1; letter-spacing: -0.03em; }

/* Scorecard */
.scorecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1.1rem; min-width: 0; }
.scorecard header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.scorecard h3 { font-size: 1.1rem; }
.score-rows { display: grid; gap: 0.85rem; }
.score-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 3.2rem; gap: 0.75rem; align-items: center; font-size: 0.9rem; }
.score-row .bar { height: 0.55rem; background: var(--lav); border-radius: 99px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: var(--mid); border-radius: 99px; }
.score-row .val { font-variant-numeric: tabular-nums; text-align: right; font-size: 0.85rem; font-weight: 600; }
.scorecard footer { font-size: 0.82rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 0.8rem; }
@media (max-width: 420px) { .score-row { grid-template-columns: 6.8rem minmax(0,1fr) 2.8rem; font-size: 0.82rem; } }

/* Philosophy quote */
.philosophy blockquote { margin: 0; font-family: var(--f-display); font-size: var(--step-3); font-weight: 300; line-height: 1.12; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.philosophy blockquote strong { font-weight: 700; color: var(--mid-soft); }
.philosophy cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.8; }

/* CTA band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-band p { margin-top: 0.85rem; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about-grid .arch { max-width: 22rem; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.timeline time { color: var(--coral-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--ink-soft); margin-top: 0.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 0.88rem; padding: 0.4rem 0.85rem; border-radius: 99px; background: var(--lav); color: var(--ink); }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; display: grid; gap: 0.6rem; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--lav); color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Modules */
.module { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 1rem 3rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.module:last-child { border-bottom: 1px solid var(--line); }
.module ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--ink-soft); }
@media (max-width: 760px) { .module { grid-template-columns: 1fr; } }

/* Fees */
.fee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .fee-grid { grid-template-columns: 1fr; } }
.fee-list { list-style: none; margin: 0; padding: 0; display: grid; }
.fee-list li { display: grid; grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr); gap: 0.25rem 1.25rem; align-items: baseline; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.fee-list li:first-child { border-top: 0; }
.fee-list b { font-size: var(--step-2); font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-list b small { font-size: 0.5em; font-weight: 600; letter-spacing: 0.02em; }
.fee-list span { color: var(--ink-soft); font-size: 0.95rem; }
.card.ink .fee-list li { border-color: color-mix(in srgb, var(--band-ink-fg) 20%, transparent); }
.card.ink .fee-list span { color: color-mix(in srgb, var(--band-ink-fg) 80%, transparent); }
.fee-notes { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.93rem; color: var(--ink-soft); }
@media (max-width: 420px) { .fee-list li { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--coral-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 0.75rem; color: var(--ink-soft); }

/* Testimonials */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; }
.story { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: 1rem; align-content: space-between; margin: 0; }
.band-lav .story { background: var(--bg); }
.story blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.story .who { display: grid; gap: 0.1rem; font-size: 0.9rem; }
.story .who b { font-weight: 600; }
.story .who span { color: var(--ink-soft); }
.story .result { font-size: 0.85rem; font-weight: 600; color: var(--coral-text); }
.story.placeholder { background: transparent; border: 1.5px dashed var(--mid-soft); color: var(--ink-soft); }
.story.placeholder blockquote { font-size: 0.97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.book-card { background: var(--band-ink-bg); color: var(--band-ink-fg); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem); display: grid; gap: 1rem; }
.book-card p { opacity: 0.85; }
.book-card .btn { justify-self: start; }
form.contact { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; width: 100%; }
textarea { min-height: 8rem; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-status { font-size: 0.95rem; padding: 0.8rem 1rem; border-radius: 12px; background: var(--lav); }
.info-card { display: grid; gap: 1.25rem; }
.info-card dl { margin: 0; display: grid; gap: 1rem; }
.info-card dt { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--mid); }
.info-card dd { margin: 0.2rem 0 0; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.copy-btn { font: 600 0.78rem var(--f-body); background: var(--lav); color: var(--ink); border: 0; border-radius: 99px; padding: 0.3rem 0.7rem; cursor: pointer; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--lav); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--band-ink-bg); color: color-mix(in srgb, var(--band-ink-fg) 80%, transparent); padding-block: 3rem 2rem; font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.site-footer .foot-brand { display: grid; gap: 0.6rem; align-content: start; }
.site-footer .foot-brand img { height: 72px; width: auto; margin-bottom: 0.5rem; }
.site-footer b { color: var(--band-ink-fg); font-weight: 600; }
.site-footer nav { display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { color: var(--band-ink-fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy-btn { background: color-mix(in srgb, var(--band-ink-fg) 15%, transparent); color: var(--band-ink-fg); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--band-ink-fg) 20%, transparent); padding-top: 1.25rem; font-size: 0.8rem; display: grid; gap: 0.4rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Guides & articles ---------- */
.page-hero .eyebrow a { color: inherit; }
.byline { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step--1); }
.article { max-width: 46rem; margin-inline: auto; display: grid; gap: 1.1rem; }
.article h2 { font-size: var(--step-2); margin-top: 1.75rem; scroll-margin-top: 6rem; }
.article h3 { font-size: var(--step-1); }
.article ul, .article ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; margin: 0; }
.article ul.checks { list-style: none; padding-left: 0; }
.article p { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.1rem 1.4rem; }
.toc b { display: block; margin-bottom: 0.4rem; }
.toc ol { gap: 0.25rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 32rem; }
table.compare th, table.compare td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { color: var(--ink-soft); font-weight: 600; }
.example { gap: 0.75rem; }
.example table.compare { min-width: 22rem; }
.cta-inline { margin-top: 1rem; }
.cta-inline .btn-row { margin-top: 0.25rem; }
.author { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.author img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; }
.author b { display: block; }
.author span { color: var(--ink-soft); font-size: var(--step--1); }
.related { background: var(--lav); border-radius: 1.25rem; padding: 1.1rem 1.4rem; }
.related ul { margin-top: 0.4rem; }
.guide-card { text-decoration: none; color: inherit; transition: transform .15s ease; }
.guide-card:hover { transform: translateY(-3px); }
.guide-card h2 { font-size: var(--step-1); }
.guide-card .more { color: var(--coral-text); font-weight: 600; }
@media (max-width: 560px) { .author { align-items: flex-start; } }
.article .steps { grid-template-columns: 1fr; padding-left: 0; gap: 1.25rem; }
.article .steps li { grid-template-columns: 2.6rem 1fr; column-gap: 1rem; row-gap: 0.25rem; }
.article .steps li::before { grid-row: span 2; }
.article .steps h3 { align-self: center; }
