/* QRoot.app — Claude implementation consulting. Design tokens + layout. */

:root {
  --bg: #FBF9F6;
  --bg-alt: #F3EFE9;
  --surface: #FFFFFF;
  --surface-2: #FFFDFA;
  --ink: #17140F;
  --ink-2: #3A342C;
  --muted: #6E665A;
  --line: #E4DDD1;
  --line-strong: #D3C9B9;
  --accent: #B8502B;
  --accent-ink: #8E3C1F;
  --accent-soft: #FAEDE5;
  --deep: #171B1A;
  --deep-ink: #F3EFE9;
  --deep-muted: #9EA8A3;
  --ok: #1E6B4F;
  --err: #A32B20;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23,20,15,.05), 0 2px 8px rgba(23,20,15,.04);
  --shadow: 0 2px 4px rgba(23,20,15,.05), 0 12px 32px rgba(23,20,15,.07);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "IBM Plex Serif", ui-serif, Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: 24px;
  --sp: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110;
    --bg-alt: #191715;
    --surface: #1C1A17;
    --surface-2: #211E1A;
    --ink: #F4F0E9;
    --ink-2: #DAD3C7;
    --muted: #9C9384;
    --line: #2F2B26;
    --line-strong: #413B33;
    --accent: #E0734A;
    --accent-ink: #F0946F;
    --accent-soft: #2A1E18;
    --deep: #0D0C0B;
    --deep-ink: #F4F0E9;
    --deep-muted: #928A7C;
    --ok: #5FBF95;
    --err: #E8836F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 2px 4px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --bg-alt: #191715; --surface: #1C1A17; --surface-2: #211E1A;
  --ink: #F4F0E9; --ink-2: #DAD3C7; --muted: #9C9384; --line: #2F2B26; --line-strong: #413B33;
  --accent: #E0734A; --accent-ink: #F0946F; --accent-soft: #2A1E18;
  --deep: #0D0C0B; --deep-ink: #F4F0E9; --deep-muted: #928A7C; --ok: #5FBF95; --err: #E8836F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 2px 4px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
em { font-style: normal; color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp); }
section[id], [id]:target, #audit-report, #audit-form { scroll-margin-top: 88px; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--deep); color: var(--deep-ink); }
.section--deep h2, .section--deep h3 { color: var(--deep-ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section--deep .lead { color: var(--deep-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }

.head { max-width: 72ch; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 1em 1.6em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-ink); }
:root[data-theme="dark"] .btn--primary, :root:not([data-theme="light"]) .btn--primary { color: #150E0A; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { color: #fff; } }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.section--deep .btn--ghost { border-color: rgba(255,255,255,.28); color: var(--deep-ink); }
.section--deep .btn--ghost:hover { border-color: var(--deep-ink); background: rgba(255,255,255,.06); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; text-decoration: none; letter-spacing: -.02em; font-size: 1.05rem; flex: 0 0 auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1rem; font-weight: 700; }
.brand__sub { font-weight: 500; color: var(--muted); font-size: .8rem; display: none; }
@media (min-width: 1040px) { .brand__sub { display: inline; } }

.nav { display: none; gap: 22px; margin-inline: auto; }
.nav a { text-decoration: none; white-space: nowrap; font-size: .94rem; font-weight: 500; color: var(--ink-2); padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--accent); border-bottom-color: currentColor; }
@media (min-width: 980px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 980px) { .header-actions { margin-left: 0; } }
.lang {
  display: inline-flex; text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .55em .9em; color: var(--ink-2);
}
.lang:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.header-actions .btn { padding: .78em 1.25em; font-size: .9rem; display: none; white-space: nowrap; }
@media (min-width: 620px) { .header-actions .btn { display: inline-flex; } }
.nav-toggle { display: inline-grid; }
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px var(--gutter) 22px; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; }
@media (min-width: 980px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 55% at 78% 18%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
    radial-gradient(42% 48% at 12% 8%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 56px); }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.hero__lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--ink-2); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  padding: .5em 1em; border-radius: 999px; margin-bottom: 22px; letter-spacing: .01em;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
}
.hero__price { display: flex; align-items: baseline; gap: .35em; font-family: var(--font-serif); }
.hero__price b { font-size: clamp(2.4rem, 4.5vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; }
.hero__price span { font-size: 1.1rem; color: var(--muted); font-family: var(--font-sans); }
.hero__pricelabel { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.hero__stats { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.hero__stats li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.hero__stats b { font-family: var(--font-serif); font-size: 1.15rem; white-space: nowrap; }
.hero__stats span { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- generic card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card__num { font-family: var(--font-serif); font-size: .9rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; display: block; margin-bottom: 14px; }

/* services */
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px); display: grid; gap: 18px; align-content: start;
}
.service__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.service__icon svg { width: 22px; height: 22px; }
.service p { color: var(--muted); margin: 0; }
.service ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.service li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-2); }
.service li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}

/* process */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 760px) { .step { grid-template-columns: 90px 1fr 1.3fr; gap: 28px; align-items: start; } }
.step__n { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); font-weight: 700; }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--deep-muted); }

/* consultant */
.consultant { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .consultant { grid-template-columns: .8fr 1.2fr; } }
.consultant__portrait {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; text-align: center;
}
.consultant__avatar {
  width: 128px; height: 128px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-serif); font-size: 3.2rem; font-weight: 600; box-shadow: var(--shadow);
}
.consultant__name { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; margin: 0 0 6px; }
.consultant__role { color: var(--muted); font-size: .94rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; justify-content: center; }
.tag { font-size: .8rem; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; padding: .42em .85em; color: var(--ink-2); background: var(--surface); }
.quote {
  margin: 28px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif); font-size: 1.12rem; font-style: italic; color: var(--ink-2);
}
.quote p { margin: 0; }

/* pricing */
.pricing { display: grid; gap: 22px; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; align-items: start; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.price-card__amount { display: flex; align-items: baseline; gap: .3em; font-family: var(--font-serif); margin-bottom: 4px; }
.price-card__amount b { font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.price-card__amount span { font-size: 1.4rem; color: var(--muted); }
.price-card__label { color: var(--muted); margin-bottom: 26px; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; font-size: .96rem; color: var(--ink-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(#000,#000);
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(#000,#000);
}
.checklist li::after {
  content: ""; position: absolute; left: 3px; top: .45em; width: 13px; height: 13px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.price-note { font-size: .86rem; color: var(--muted); margin: 18px 0 0; }
.formats { display: grid; gap: 14px; }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.format h3 { font-size: 1.05rem; margin-bottom: .3em; }
.format p { margin: 0; color: var(--muted); font-size: .92rem; }

/* faq */
.faq { display: grid; gap: 0; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 46px 24px 0; position: relative;
  font-family: var(--font-serif); font-size: clamp(1.05rem, 1.7vw, 1.22rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--accent); transition: transform .22s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 46px 26px 0; color: var(--muted); max-width: 72ch; }
.faq details > div p { margin: 0; }

/* ---------- booking form ---------- */
.booking { display: grid; gap: clamp(30px, 4vw, 52px); }
@media (min-width: 960px) { .booking { grid-template-columns: .82fr 1.18fr; align-items: start; } }
.booking__aside .consultant-chip {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
}
.consultant-chip__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.3rem; flex: 0 0 auto; }
.consultant-chip__text b { display: block; font-size: .98rem; }
.consultant-chip__text span { font-size: .85rem; color: var(--muted); }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 38px); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__row + .form__row { margin-top: 18px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .82em .95em; width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236E665A' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85em center; background-size: 17px; padding-right: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--err); }
.field .err-msg { font-size: .8rem; color: var(--err); min-height: 1em; }
.field .err-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.consent input { width: 19px; height: 19px; accent-color: var(--accent); margin-top: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form__price { font-size: .9rem; color: var(--muted); }
.form__price b { color: var(--ink); font-family: var(--font-serif); font-size: 1.05rem; }

.form-status { border-radius: var(--radius); padding: 20px 22px; margin-top: 20px; display: none; }
.form-status.is-visible { display: block; }
.form-status b { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-size: 1.1rem; }
.form-status p { margin: 0; font-size: .93rem; }
.form-status--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 38%, transparent); color: var(--ok); }
.form-status--err { background: color-mix(in srgb, var(--err) 10%, transparent); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--deep-muted); padding-block: clamp(48px, 6vw, 74px) 32px; font-size: .92rem; }
.site-footer a { color: var(--deep-ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer__grid h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--deep-ink); margin-bottom: 1.1em; opacity: .75; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__brand { display: inline-flex; align-items: center; gap: .6em; color: var(--deep-ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; margin-bottom: 16px; }
.footer__about { max-width: 46ch; }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 14px; font-size: .82rem; line-height: 1.6; }
@media (min-width: 860px) { .footer__bottom { grid-template-columns: 1fr auto; align-items: end; } }
.footer__disclaimer { max-width: 78ch; opacity: .8; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: .7em 1.2em; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 600; transition: top .2s ease;
}
.skip:focus { top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ funnel steps with price ============ */
.step--priced { grid-template-columns: 1fr; }
@media (min-width: 760px) { .step--priced { grid-template-columns: 70px 1fr 1.25fr; gap: 28px; } }
.step__price {
  display: inline-block; margin-top: 6px; font-size: .84rem; font-weight: 600;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px; padding: .3em .85em; white-space: nowrap;
}

/* ============ pricing table ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.ptable th, .ptable td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th {
  font-family: var(--font-sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; background: var(--bg-alt); border-bottom-color: var(--line-strong);
}
.ptable tbody th { font-family: var(--font-serif); font-size: 1.04rem; font-weight: 600; width: 30%; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable__price { white-space: nowrap; font-weight: 600; color: var(--ink); width: 22%; }
.ptable td:last-child { color: var(--muted); }
.ptable tr.is-free th, .ptable tr.is-free .ptable__price { color: var(--accent); }
.ptable tr.is-free { background: var(--accent-soft); }
.ptable tr.is-free:hover { background: var(--accent-soft); }

/* ============ audit nudge in booking aside ============ */
.nudge {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--radius); padding: 20px 22px; margin: 22px 0;
}
.nudge p { font-size: .92rem; color: var(--accent-ink); margin: 0 0 14px; }
.nudge .btn { padding: .68em 1.2em; font-size: .88rem; border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-ink); }
.nudge .btn:hover { border-color: var(--accent); background: var(--surface); }

/* ============ audit wizard ============ */
.wrap--narrow { max-width: 820px; }
.hero--audit { padding-block: clamp(50px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.hero__grid--audit { grid-template-columns: 1fr; }
.hero--audit .checklist li { color: var(--ink-2); }

.wz {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.wz__bar { margin-bottom: 30px; }
.wz__count { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.wz__progress { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.wz__progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.wz__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wz__steptitle { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 600; margin: 0 0 26px; }

.q { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.q:last-of-type { margin-bottom: 0; }
.q__label, .q > label { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; padding: 0; }
.q__hint { display: block; font-size: .83rem; color: var(--muted); margin-bottom: 12px; }
.q__label + .opts, .q__hint + .opts { margin-top: 12px; }
.q .req { color: var(--accent); }

.opts { display: grid; gap: 8px; }
@media (min-width: 620px) { .opts { grid-template-columns: 1fr 1fr; } .opts--multi { grid-template-columns: 1fr 1fr; } }
.opt {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  background: var(--surface-2); font-size: .93rem; line-height: 1.45;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); }
.opt input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.q[aria-invalid="true"] .opts .opt, .q.is-invalid .opt { border-color: color-mix(in srgb, var(--err) 45%, var(--line-strong)); }

.wz__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.wz__nav .btn { min-width: 130px; }
.wz__note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.wz__legal { margin: 26px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }

/* ============ generated report ============ */
.report {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.6vw, 44px); box-shadow: var(--shadow); margin-top: 8px;
}
.report__head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 30px; }
.report__head h2 { margin-bottom: .25em; }
.report__for { font-size: .92rem; color: var(--muted); margin: 0; }
.report__summary { font-size: 1.06rem; color: var(--ink-2); margin-bottom: 34px; }
.report h3 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-sans);
  color: var(--accent); margin: 36px 0 16px; font-weight: 600;
}
.report h3:first-of-type { margin-top: 0; }
.opp { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px; background: var(--surface-2); }
.opp__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.opp__top h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin: 0; flex: 1 1 auto; }
.opp p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.opp p:last-child { margin-bottom: 0; }
.opp__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: .76rem; font-weight: 600; border-radius: 999px; padding: .32em .8em; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface);
}
.pill--high { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.pill--mid { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.report ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report ul.plain li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink-2); }
.report ul.plain li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.report__arch { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: .93rem; color: var(--ink-2); line-height: 1.7; }
.report__scope { display: grid; gap: 14px; }
@media (min-width: 620px) { .report__scope { grid-template-columns: repeat(3, 1fr); } }
.scope-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface-2); }
.scope-tile b { display: block; font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 4px; }
.scope-tile span { font-size: .84rem; color: var(--muted); }
.report__cta { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.report__cta p { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.report__note { font-size: .84rem; color: var(--muted); margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.report__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media print {
  .site-header, .site-footer, .wz, .wz__legal, .report__cta, .skip, .hero { display: none !important; }
  .report { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; color: #000; }
}
