/* ===== Shared component system (same file in both sites; colors/fonts come from theme.css) ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); line-height: 1.08; margin: 0 0 .5em; color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.i { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.section { padding: clamp(60px, 9vw, 112px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head--center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.section-head--center .eyebrow::before { display: none; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent-on-dark); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); }
.section--dark .lead, .hero .lead, .page-hero .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.center { text-align: center; }
.mt { margin-top: 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--btn-radius); font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn .i { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--light { background: #fff; color: #111; }
.btn--light:hover { background: #f1f1f1; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--mark-radius); background: var(--accent); color: var(--on-accent); font: 800 1.05rem/1 var(--font-head); letter-spacing: .02em; }
.brand__logo { width: 42px; height: 42px; }
.brand__name { font: var(--head-weight) 1.25rem/1.05 var(--font-head); letter-spacing: var(--head-tracking); }
.brand__sub { display: block; margin-top: 3px; font: 600 .7rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:not(.btn):hover { background: var(--nav-hover); }
.nav a[aria-current="page"] { color: var(--accent-on-header); }
.nav__cta { display: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--nav-hover); color: inherit; cursor: pointer; }
@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }
  .call-btn { padding: 0; width: 48px; min-height: 48px; }
  .call-btn span { display: none; }
  .nav { position: fixed; inset: 76px 0 0; z-index: 49; overflow-y: auto; padding: 16px; background: var(--header-bg); transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a:not(.btn) { font-size: 1.25rem; padding: 14px 12px; }
  .nav__cta { display: block; margin-top: 12px; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand__sub { display: none; } .brand__name { font-size: 1.1rem; } }

/* Heroes */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: #fff; padding: clamp(56px, 10vw, 128px) 0 clamp(60px, 9vw, 112px); }
.hero h1 { color: #fff; }
.hero .lead { max-width: 42ch; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.hero .btn-row { margin-top: 32px; }
.page-hero { background: var(--hero-bg); color: #fff; padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
.page-hero .lead { max-width: 60ch; margin: 0; }

/* Trust bar */
.trustbar { background: var(--trust-bg); color: var(--trust-text); border-bottom: 1px solid var(--line); }
.trustbar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; list-style: none; margin: 0; padding: 20px 0; }
.trustbar li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.trustbar .i { color: var(--accent-text); }

/* Grids & cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { position: relative; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.card--link:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.card__more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-text); }
.card__more .i { width: 18px; height: 18px; }
.card__icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: var(--icon-radius); background: var(--icon-bg); color: var(--icon-fg); }
.card__icon .i { width: 27px; height: 27px; }
.section--dark .card { background: var(--dark-card); border-color: var(--dark-line); }
.section--dark .card p { color: var(--on-dark-muted); }

.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .i { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); }
.section--dark .checks .i { color: var(--accent-on-dark); }
.checks--x .i { color: var(--danger); }
.section--dark .checks--x .i { color: #fca5a5; }
.checks strong { display: block; color: var(--heading); }
.section--dark .checks strong { color: #fff; }

.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.3fr .7fr; } .split--center { align-items: center; } }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 800 2.3rem/1 var(--font-head); color: var(--accent-text); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }
.section--dark .step { background: var(--dark-card); border-color: var(--dark-line); }
.section--dark .step::before { color: var(--accent-on-dark); }
.section--dark .step p { color: var(--on-dark-muted); }

/* Timeline (process page) */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.timeline > li { position: relative; padding: 0 0 40px 76px; }
.timeline > li::before { counter-increment: tl; content: counter(tl); position: absolute; left: 0; top: 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--icon-radius); background: var(--accent); color: var(--on-accent); font: 800 1.35rem/1 var(--font-head); }
.timeline > li::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); }
.timeline .tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--icon-bg); color: var(--icon-fg); font-size: .8rem; font-weight: 700; }

/* Service rows */
.service { display: grid; gap: 24px 48px; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 1.1fr .9fr; } }
.service__head { display: flex; gap: 18px; align-items: flex-start; }
.service__head .card__icon { margin: 0; flex: none; }
.service h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.service .panel { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; }
.service .panel h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* CTA band */
.cta-band { background: var(--band-bg); color: var(--on-band); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(48px, 7vw, 72px); }
.cta-band h2 { color: var(--on-band); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 56ch; font-size: 1.1rem; opacity: .92; }

/* Quotes & stats */
.quote { margin: 0; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.quote blockquote { margin: 0 0 18px; font-size: 1.1rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--muted); font-size: .92rem; }
.stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stats li { padding: 22px; border-radius: var(--radius); background: var(--dark-card); border: 1px solid var(--dark-line); }
.stats strong { display: block; font: 800 2.4rem/1 var(--font-head); color: var(--accent-on-dark); }
.stats span { color: var(--on-dark-muted); }

/* Service area */
.area h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.area h3 .i { color: var(--accent-text); }
.area p { font-size: .98rem; line-height: 1.8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: .92rem; background: var(--card-bg); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card-bg); color: var(--text); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); }
.tile[hidden] { display: none; }
.tile__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tile-bg); color: var(--tile-fg); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__media > .i { width: 52px; height: 52px; }
.tile__note { position: absolute; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 600; }
.tile__body { padding: 16px 20px 20px; }
.tile__cat { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.tile h3 { margin: 0; font-size: 1.15rem; }
.tile__loc { display: flex; gap: 6px; align-items: center; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.tile__loc .i { width: 16px; height: 16px; }

/* Forms */
.form-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); color: var(--text); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { grid-column: 1 / -1; display: grid; gap: 6px; }
.field--half { grid-column: auto; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .field--half { grid-column: 1 / -1; } }
.field label { font-weight: 600; font-size: .95rem; color: var(--heading); }
.field small { color: var(--muted); font-size: .85rem; }
.req { color: var(--danger); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--input-line); border-radius: 10px; background: #fff; color: #111; font: inherit; font-size: 1rem; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; min-height: 1em; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--danger); }
.form-success { text-align: center; padding: 24px 0; }
.form-success:focus { outline: none; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--icon-bg); color: var(--icon-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-list .card__icon { margin: 0; width: 46px; height: 46px; }
.contact-list small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--on-dark); padding-top: 64px; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr .8fr; } }
.footer__brand p { color: var(--on-dark-muted); max-width: 38ch; }
.footer__lic { font-weight: 700; color: #fff !important; }
.footer__h { font: 700 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 16px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list li, .footer__list a { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; }
.footer__list a:hover { color: #fff; text-decoration: underline; }
.footer__list .i { width: 18px; height: 18px; color: var(--accent-on-dark); }
.footer__cross a { color: var(--accent-on-dark); }
.footer__base { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--dark-line); color: var(--on-dark-muted); font-size: .88rem; }
.footer__base p { margin: 0; }

/* Mobile quick-action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--footer-bg); border-top: 1px solid var(--dark-line); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; color: #fff; font-weight: 700; font-size: .8rem; text-decoration: none; }
.action-bar .i { width: 22px; height: 22px; }
.action-bar .is-primary { background: var(--accent); color: var(--on-accent); }
@media (max-width: 999px) { body { padding-bottom: 66px; } }
@media (min-width: 1000px) { .action-bar { display: none; } }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 82px; z-index: 70; max-width: 520px; padding: 18px 20px; border-radius: var(--radius); background: #fff; color: #111; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.consent p { margin: 0 0 12px; }
.consent .btn { min-height: 42px; padding: 8px 18px; }
@media (min-width: 1000px) { .consent { bottom: 24px; } }

/* Unfilled fact from site.json — deliberately loud so it can't ship unnoticed */
mark.todo { background: #fff3a3; color: #5c4400; padding: 0 .35em; border-radius: 4px; font: 700 .85em/1.4 ui-monospace, Consolas, monospace; outline: 1px dashed #b38600; }

/* ===== Photos & motion ===== */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero:has(.hero__bg)::before, .page-hero:has(.hero__bg)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--photo-overlay); }
.page-hero:has(.hero__bg) { padding-block: clamp(72px, 11vw, 136px) clamp(56px, 8vw, 96px); }

.card--photo { padding: 0; overflow: hidden; }
.card--photo > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.card--photo:hover > img { transform: scale(1.04); }
.card--photo .card__body { position: relative; padding: 0 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card--photo .card__icon { margin-top: -27px; box-shadow: 0 0 0 4px var(--card-bg); }

.frame { position: relative; }
.frame img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 3px solid var(--accent); border-radius: var(--radius); }
.frame__badge { position: absolute; z-index: 2; left: -12px; bottom: 28px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: 800 1.05rem/1.15 var(--font-head); box-shadow: var(--shadow); max-width: 230px; }
.frame__badge small { display: block; font: 600 .78rem/1.3 var(--font-body); opacity: .9; }
@media (max-width: 600px) { .frame::before { inset: 14px -8px -10px 14px; } .frame__badge { left: 8px; } }

.service__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }

.marquee { overflow: hidden; background: var(--marquee-bg); color: var(--marquee-fg); border-block: 1px solid var(--marquee-line); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font: var(--head-weight) 1.15rem/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee span::after { content: "\2726"; color: var(--marquee-accent); font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .gallery > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3), .gallery > .reveal:nth-child(3n) { transition-delay: .16s; }
.grid > .reveal:nth-child(4), .steps > .reveal:nth-child(4) { transition-delay: .24s; }
@media (min-width: 900px) { .service > div:first-child { position: sticky; top: 104px; align-self: start; } }

/* nav-compact: keep the desktop header on one line between 1000px and 1240px */
.nav a:not(.btn) { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1239px) { .call-btn { padding: 0; width: 50px; } .call-btn span { display: none; } .nav a:not(.btn) { padding-inline: 9px; } .brand__name { font-size: 1.1rem; } }
[hidden] { display: none !important; }
.form input[type=checkbox], .form input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
.form input[type=color] { padding: 4px; height: 50px; }

/* ===== Platform app screens (admin / portal / sign) ===== */
.app h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .2em; }
.app h2 { font-size: 1.25rem; margin-bottom: .7em; }
.app .card { padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.app .grid--2 { gap: 20px; margin-bottom: 0; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.app-head--small { align-items: center; margin-bottom: 8px; }
.app-back { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }
.app-login { max-width: 460px; margin: 40px auto; }
.app-new { margin-bottom: 20px; }
.app-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.app-tools input, .app-tools select, .app select, .inline-form input, .upload-opts select, .app-status select { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--input-line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; color: #111; }
.app-tools input { flex: 1 1 260px; }
.app-status { display: grid; gap: 4px; font-weight: 600; font-size: .85rem; }
.app-table { width: 100%; border-collapse: collapse; background: var(--card-bg); }
.app-table th, .app-table td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.app-table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-table tr[data-href] { cursor: pointer; }
.app-table tr[data-href]:hover, .app-table tr[data-href]:focus { background: var(--surface); outline: none; }
.app-table small, .req small, .file-list small { color: var(--muted); display: block; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--heading); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill--docs, .pill--comments { background: #fff3cd; color: #6b4e00; }
.pill--prep, .pill--submitted, .pill--inspections { background: #e0ecff; color: #173f8a; }
.pill--issued, .pill--closed { background: #dcfce7; color: #14532d; }
.app-share { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.app-share p { margin: 4px 0 0; }
.app-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0 18px; border-bottom: 2px solid var(--line); }
.app-tabs button { border: 0; background: none; padding: 12px 16px; font: 600 .95rem var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.app-tabs button[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.req-list, .file-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.req { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.req a { font-size: .88rem; margin-right: 8px; }
.req--open { border-left: 4px solid var(--accent); }
.req--received { opacity: .75; border-left: 4px solid #16a34a; }
.file-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.inline-form input:not([type]), .inline-form input[type=text] { flex: 1 1 220px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; }
.chips--quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px dashed var(--line-strong); background: none; border-radius: 999px; padding: 6px 12px; font-size: .82rem; cursor: pointer; color: var(--text); }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.upload-opts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.dropzone { display: grid; place-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone small { color: var(--muted); }
.dropzone.is-over, .dropzone:hover { border-color: var(--accent); background: var(--icon-bg); }
.dropzone:focus-within { outline: 3px solid var(--focus); }
.up-list { display: grid; gap: 6px; margin-top: 10px; }
.up-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; font-size: .88rem; }
.up-row progress { width: 100%; accent-color: var(--accent); }
.up-row.is-done span::after { content: " \2713"; color: #16a34a; }
.up-row.is-bad span { color: var(--danger); }
.timeline-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.timeline-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.timeline-list time { display: block; font-size: .78rem; color: var(--muted); }
.timeline-list .is-internal { background: #fffbea; padding-inline: 8px; }
.timeline-list .is-client strong { color: var(--accent-text); }
.progress-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.progress-steps li { position: relative; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--muted); }
.progress-steps li.is-done { background: #dcfce7; color: #14532d; }
.progress-steps li.is-done span::before { content: "\2713  "; }
.progress-steps li.is-now { background: var(--accent); color: var(--on-accent); }
.pt-status { text-align: right; display: grid; }
.pt-status strong { font-size: 1.1rem; }
/* PDF viewer + fields */
.pdf-stack { display: grid; gap: 30px; justify-items: center; margin: 16px 0; padding: 16px 16px 34px; background: #e9e6ea; border-radius: var(--radius); max-height: 80vh; overflow: auto; }
.pdf-page { position: relative; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); max-width: 100%; }
.pdf-overlay { position: absolute; inset: 0; }
.pdf-pageno { position: absolute; right: 8px; bottom: -22px; font-size: .75rem; color: var(--muted); }
.pdf-field { position: absolute; display: grid; place-items: center; border: 2px solid var(--accent); background: rgba(190, 24, 93, .12); border-radius: 4px; font-size: .72rem; font-weight: 700; color: var(--accent-text); cursor: move; touch-action: none; user-select: none; }
.sign-page .pdf-field { cursor: default; animation: pulse 1.6s ease-in-out infinite alternate; }
@keyframes pulse { from { background: rgba(190, 24, 93, .10); } to { background: rgba(190, 24, 93, .28); } }
.pdf-field__x { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-weight: 700; cursor: pointer; line-height: 1; }
.place-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.place-bar .is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
/* signing */
.sign-form { max-width: 760px; margin: 0 auto; }
.sig-tabs { display: flex; gap: 6px; margin: 8px 0; }
.sig-tabs button { border: 1.5px solid var(--line-strong); background: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.sig-tabs button[aria-selected="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.sig-pad-wrap { position: relative; }
.sig-pad { width: 100%; height: auto; aspect-ratio: 700 / 180; background: #fff; border: 2px dashed var(--line-strong); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-pad.is-typed { cursor: default; }
.sig-pad-wrap .btn { position: absolute; right: 8px; top: 8px; }
.sign-consent { align-items: flex-start; margin: 14px 0; font-size: .85rem; color: var(--muted); }
.sign-consent input { margin-top: 3px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 90; padding: 12px 20px; border-radius: 999px; background: var(--dark); color: #fff; font-weight: 600; box-shadow: var(--shadow); }
.toast--bad { background: var(--danger); }
.small { font-size: .88rem; }
/* phase 3: packets, takeoff, proposal */
.readiness { display: grid; gap: 8px; margin: 12px 0 18px; }
.readiness > div { padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.readiness .is-ok { background: #dcfce7; color: #14532d; }
.readiness .is-missing { background: #fff3cd; color: #6b4e00; }
.job-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.job { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.job small { display: block; color: var(--muted); }
.job .pill { margin-left: 8px; }
.tk-files { display: grid; gap: 6px; margin: 10px 0 14px; max-height: 220px; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.pr-section { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 14px 0; }
.pr-section__head { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.pr-sname { flex: 1; font: 700 1.05rem var(--font-head); padding: 8px 10px; border: 1.5px solid var(--input-line); border-radius: 8px; }
.pr-table td { vertical-align: top; }
.pr-table input, .pr-table textarea { width: 100%; min-height: 38px; padding: 6px 8px; border: 1.5px solid var(--input-line); border-radius: 8px; font: inherit; font-size: .9rem; }
.pr-table td:nth-child(2), .pr-table td:nth-child(3) { width: 80px; }
.pr-table td:nth-child(4) { width: 100px; }
.pr-table .is-missing { border-color: #d97706; background: #fffbeb; }
.pr-table small { display: block; margin-top: 4px; }
.conf { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-top: 4px; }
.conf--high { background: #dcfce7; color: #14532d; } .conf--medium { background: #fff3cd; color: #6b4e00; } .conf--low { background: #fee2e2; color: #991b1b; }
.pr-totals { display: flex; gap: 18px; justify-content: flex-end; align-items: baseline; margin: 16px 0; font-size: 1.05rem; flex-wrap: wrap; }
.pr-totals strong { font-size: 1.3rem; }
#takeoff-panel hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* ===== Theme: Richardson Professional Services — charcoal + magenta (matches her print collateral) ===== */
:root {
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --head-weight: 700;
  --head-tracking: -.02em;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #ffffff;
  --surface: #f7f3f5;
  --text: #24242a;
  --heading: #1c1c21;
  --muted: #55535c;
  --line: #ebe4e8;
  --line-strong: #d3c8ce;
  --input-line: #c4b8be;
  --link: #9d174d;

  --accent: #be185d;          /* white text on this = 6.4:1 */
  --accent-hover: #9d174d;
  --on-accent: #ffffff;
  --accent-text: #9d174d;     /* magenta text on white/light */
  --accent-on-dark: #f9a8d4;  /* pink text on charcoal */
  --accent-line: #e79ac0;

  --dark: #26262b;
  --dark-card: #313137;
  --dark-line: #45454d;
  --on-dark: #ecebef;
  --on-dark-muted: #bdbac4;

  --header-bg: #ffffff;
  --header-text: #1c1c21;
  --header-line: #eee8eb;
  --accent-on-header: #9d174d;
  --nav-hover: #f7f0f3;
  --footer-bg: #1c1c21;

  --hero-bg:
    radial-gradient(760px 460px at 92% 8%, rgba(190, 24, 93, .30), transparent 62%),
    radial-gradient(640px 420px at -5% 110%, rgba(190, 24, 93, .14), transparent 60%),
    #26262b;

  --card-bg: #ffffff;
  --icon-bg: #fce7f3;
  --icon-fg: #9d174d;
  --trust-bg: #f7f3f5;
  --trust-text: #24242a;
  --tile-bg: linear-gradient(140deg, #3a3a42, #26262b);
  --tile-fg: #f9a8d4;
  --band-bg: #be185d;
  --on-band: #ffffff;

  --radius: 14px;
  --btn-radius: 999px;
  --mark-radius: 12px;
  --icon-radius: 12px;
  --focus: #db2777;
  --shadow: 0 16px 40px rgba(28, 28, 33, .12);
  --photo-overlay: linear-gradient(100deg, rgba(28, 28, 33, .95) 0%, rgba(28, 28, 33, .86) 45%, rgba(28, 28, 33, .55) 100%);
  --marquee-bg: #be185d;
  --marquee-fg: #ffffff;
  --marquee-line: #9d174d;
  --marquee-accent: #fbcfe8;
  --ok: #15803d;
  --danger: #b91c1c;
}

.theme-natasha .hero h1 .hl { color: var(--accent-on-dark); display: block; }


/* Hero: example permit status card */
.status-card { position: relative; background: #fff; color: var(--text); border-radius: 20px; padding: 26px 26px 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-width: 440px; justify-self: center; width: 100%; }
.status-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; font-weight: 700; color: var(--heading); }
.status-card__head .pill { padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.status-card__job { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: .98rem; }
.status-list .dot { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.status-list .dot .i { width: 16px; height: 16px; stroke-width: 3; }
.stamp { position: absolute; right: 18px; bottom: -22px; transform: rotate(-8deg); padding: 8px 18px; border: 4px solid #15803d; border-radius: 10px; background: #fff; color: #15803d; font: 800 1.6rem/1 var(--font-head); letter-spacing: .14em; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* Pain -> solution */
.versus { display: grid; gap: 20px; }
@media (min-width: 900px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus .card { padding: 32px; }
.versus .card--pain { background: #fff5f5; border-color: #f5d0d0; }
.versus .card--fix { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.versus .card--fix h3 { color: #fff; }
.versus .card--fix .checks .i { color: var(--accent-on-dark); }
.versus h3 { font-size: 1.5rem; margin-bottom: 18px; }

/* Municipality columns */
.muni h3 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.muni h3 .i { color: var(--accent-text); }
.muni ul { columns: 2; column-gap: 20px; list-style: none; padding: 0; margin: 0; }
.muni li { padding: 5px 0; break-inside: avoid; color: var(--muted); }

.needs { columns: 2 280px; column-gap: 32px; }
.needs li { break-inside: avoid; margin-bottom: 12px; }

/* Hero visual: photo + overlapping status card + floating chips */
.hero-visual { position: relative; max-width: 520px; width: 100%; justify-self: center; padding: 0 0 70px 40px; }
.hero-visual__photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.hero-visual .status-card { position: absolute; left: 0; bottom: 0; max-width: 330px; padding: 20px 20px 24px; }
.hero-visual .status-list li { padding: 8px 0; font-size: .9rem; }
.hero-visual .stamp { font-size: 1.25rem; bottom: -18px; }
.chip-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; color: var(--heading); font-weight: 700; font-size: .85rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: float 5s ease-in-out infinite alternate; }
.chip-float .i { width: 18px; height: 18px; color: var(--accent-text); }
.chip-float--a { top: 18px; right: -14px; }
.chip-float--b { top: 44%; right: -24px; animation-delay: -2.5s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (max-width: 600px) {
  .hero-visual { padding: 0 0 150px; }
  .hero-visual .status-card { left: 12px; right: 12px; max-width: none; }
  .chip-float--a { right: 8px; } .chip-float--b { display: none; }
}
.steps { position: relative; }
@media (min-width: 1000px) {
  .section--dark .steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 52px; border-top: 2px dashed var(--dark-line); }
  .step { position: relative; }
}
.versus__photo { grid-column: 1 / -1; }
.versus__photo img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }

/* Pricing */
.price-grid { columns: 2 440px; column-gap: 24px; }
.price-grid .price-group { break-inside: avoid; margin-bottom: 24px; }
.price-group { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-group h3 { margin: 0; padding: 14px 22px; background: var(--accent); color: #fff; font-size: 1.05rem; letter-spacing: .02em; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr + tr { border-top: 1px solid var(--line); }
.price-table th { text-align: left; font-weight: 600; padding: 14px 22px; color: var(--heading); }
.price-table th small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.price-table td { padding: 14px 22px; text-align: right; font: 700 1.15rem/1.2 var(--font-head); color: var(--accent-text); white-space: nowrap; vertical-align: top; }
.price-teaser { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.price-teaser .card { text-align: center; }
.price-teaser strong { display: block; font: 700 2.4rem/1 var(--font-head); color: var(--accent-text); margin: 6px 0 8px; }
.brand__sub { white-space: normal; max-width: 250px; }

/* Retainer plans */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: var(--radius); background: var(--dark-card); border: 1px solid var(--dark-line); color: var(--on-dark); }
.plan h3 { color: #fff; margin: 0; font-size: 1.45rem; }
.plan__for { color: var(--on-dark-muted); margin: 0 0 8px; }
.plan__price { margin: 6px 0 16px; display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font: 700 2.6rem/1 var(--font-head); color: #fff; }
.plan__price span { color: var(--on-dark-muted); }
.plan .checks { flex: 1; margin-bottom: 20px; }
.plan .checks .i { color: var(--accent-on-dark); }
.plan .btn + .btn { margin-top: 10px; }
.plan .btn--ghost { color: #fff; }
.plan--featured { background: #fff; color: var(--text); border: 3px solid var(--accent); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.plan--featured h3, .plan--featured .plan__price strong { color: var(--heading); }
.plan--featured .plan__for, .plan--featured .plan__price span { color: var(--muted); }
.plan--featured .checks .i { color: var(--accent-text); }
.plan--featured .btn--ghost { color: var(--heading); }
.plan__flag { position: absolute; top: -14px; left: 26px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Billing */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: .88rem; }
.notice { padding: 12px 16px; border-radius: 10px; background: #fff3a3; color: #5c4400; font-weight: 600; }
.billing h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.billing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.billing__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1100px) { .billing__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .billing__preview { position: sticky; top: 96px; } }
.billing__form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.billing__form legend { font: 700 1.15rem/1.2 var(--font-head); color: var(--heading); margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.items-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 6px 6px; }
.items-table td { padding: 6px; vertical-align: top; border-top: 1px solid var(--line); }
.items-table td:first-child { min-width: 240px; }
.items-table td:nth-child(2) { width: 84px; }
.items-table td:nth-child(3) { width: 150px; }
.items-table select, .items-table input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--input-line); border-radius: 8px; font: inherit; font-size: .95rem; background: #fff; color: #111; }
.items-table .it-d { margin-top: 6px; }
.it-rate { display: flex; flex-direction: column; gap: 4px; }
.it-rate label { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); }
.it-rate label input { width: auto; min-height: 0; }
.it-del { border: 0; background: none; color: var(--danger); font-size: 1.1rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.billing__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-out { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--icon-bg); }
.link-out input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--input-line); border-radius: 8px; margin: 8px 0 12px; font-size: .85rem; }
.billing__log { margin-top: 56px; }
.log-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.log-table th, .log-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.log-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.log-table small { color: var(--muted); }
.log-table select { min-height: 40px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--input-line); font: inherit; }
.log-actions { white-space: nowrap; }
.log-actions button { border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px; }
.num { text-align: right !important; white-space: nowrap; }

/* Invoice document */
.invoice { background: #fff; color: #1c1c21; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); font-size: .95rem; }
.invoice__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 4px solid var(--accent); }
.invoice__brand { display: flex; gap: 12px; align-items: center; }
.invoice__brand strong { display: block; font: 700 1.1rem/1.2 var(--font-head); }
.invoice__brand span { color: var(--muted); font-size: .85rem; }
.invoice__title { text-align: right; }
.invoice__title h2 { margin: 0; font-size: 1.6rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; }
.invoice__title p { margin: 0; font-weight: 700; }
.invoice__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin: 22px 0; }
.invoice__meta h3 { font: 700 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.invoice__meta p { margin: 0; }
.invoice__meta dl { margin: 0; display: grid; gap: 4px; }
.invoice__meta dl div { display: flex; gap: 14px; justify-content: space-between; }
.invoice__meta dt { color: var(--muted); }
.invoice__meta dd { margin: 0; font-weight: 600; }
.invoice__items, .invoice__totals { width: 100%; border-collapse: collapse; }
.invoice__items th { background: var(--dark); color: #fff; text-align: left; padding: 10px 12px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.invoice__items td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.invoice__totals { margin: 14px 0 0 auto; max-width: 380px; }
.invoice__totals th { text-align: left; font-weight: 600; padding: 6px 12px; color: var(--muted); }
.invoice__totals td { text-align: right; padding: 6px 12px; font-weight: 600; }
.invoice__due th, .invoice__due td { background: var(--accent); color: #fff !important; font-size: 1.15rem; font-weight: 800; padding: 12px; }
.invoice__note { margin: 20px 0 0; padding: 12px 16px; background: var(--surface); border-radius: 10px; }
.invoice__pay { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.invoice__pay h3 { font-size: 1.1rem; margin-bottom: 8px; }
.invoice__pay ol { padding-left: 20px; margin-bottom: 12px; }
.invoice__pay li { margin-bottom: 6px; }
.invoice__foot { margin-top: 22px; text-align: center; font-size: .8rem; color: var(--muted); }
.invoice-page { max-width: 860px; }
.invoice-page__tools { justify-content: flex-end; margin-bottom: 16px; }
.paid-card { margin-top: 32px; }
.pay-method { margin-bottom: 18px; }
.pay-method h2 { font-size: 1.4rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.copy-row code { padding: 10px 14px; background: var(--surface); border-radius: 8px; font-size: .95rem; word-break: break-all; }

@media print {
  .site-header, .site-footer, .action-bar, .no-print, .consent, .skip { display: none !important; }
  body { padding: 0 !important; background: #fff; }
  .section { padding: 0 !important; }
  .invoice { border: 0; box-shadow: none; padding: 0; }
  .invoice__items th, .invoice__due th, .invoice__due td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 700px) {
  .items-table thead { display: none; }
  .items-table tr { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
  .items-table td { border: 0; padding: 0; width: auto !important; min-width: 0 !important; }
  .items-table td:first-child { grid-column: 1 / -1; }
  .items-table .it-q::placeholder { color: #999; }
}
.invoice__brand .brand__mark { color: #fff; }
.billing__form textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 1.5px solid var(--input-line); border-radius: 10px; font: inherit; font-size: 1rem; }

/* Permit guide + checker */
.facts { margin: 0 0 12px; display: grid; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts__note { display: flex; gap: 10px; font-size: .9rem; background: var(--surface); padding: 12px; border-radius: 10px; }
.facts__note .i { color: var(--accent-text); flex: none; }
.jdocs { display: grid; gap: 16px; }
.doclist { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doclist--check { list-style: none; padding: 0; }
.doclist--check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.doclist--check input { margin-top: 5px; accent-color: var(--accent); }
.jdocs details { border-top: 1px solid var(--line); padding: 10px 0; }
.jdocs summary { cursor: pointer; font-weight: 700; }
.jdocs details .doclist { margin-top: 8px; }
.card--cta { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.card--cta h3 { color: #fff; }
.card--cta .btn + .btn { margin-top: 10px; }
.card--cta .btn--ghost { color: #fff; }
.chips a { text-decoration: none; color: inherit; }
.jindex { margin-bottom: 32px; }
.jindex__list { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.jindex__list li { padding: 7px 0; break-inside: avoid; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #fff3cd; color: #6b4e00; }
.tag--ok { background: #dcfce7; color: #14532d; }
.checker-result { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 960px) { .checker-result { grid-template-columns: 1.4fr .9fr; align-items: start; } }
@media print { .page-hero, .checker, .checker-result aside, .section--alt { display: none !important; } }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.6em; }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 1.2em; }
