/* ============================================================
   SEYMON MARKOV — Component & Layout styles
   Built ON TOP of design-tokens.css. No new raw colors.
   Aesthetic: light / editorial luxury. Mobile-first.
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
/* The [hidden] attribute must always win over a class that sets `display`
   (e.g. .btn, .form-success). JS toggles these via the hidden attribute. */
[hidden] { display: none !important; }
/* Honeypot anti-spam field — visually removed but still submitted; real users never see/fill it */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--primary);
  color: var(--cta-text);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: var(--w-semibold);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-dark .overline { color: var(--accent-soft); }

/* ---------- Typography helpers ---------- */
.overline {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  font-weight: var(--w-semibold);
  color: var(--accent-ink);
}

.section-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--w-semibold);
  font-stretch: 92%;
  text-wrap: balance;
}

.section-head { max-width: 56ch; margin-bottom: var(--sp-8); }
.section-head .overline { margin-bottom: var(--sp-4); }
.section-intro {
  margin-top: var(--sp-5);
  max-width: 64ch;
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-muted);
  text-wrap: pretty;
}
.section-dark .section-intro { color: var(--text-on-dark-muted); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-muted);
}

.wordmark {
  font-weight: var(--w-bold);
  font-stretch: 87%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: var(--w-semibold);
  font-size: var(--fs-body);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--cta-bg-hover); box-shadow: var(--shadow); }

.btn-cta-dark {
  background: var(--cta-bg-on-dark);
  color: var(--cta-text-on-dark);
}
.btn-cta-dark:hover { filter: brightness(1.06); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.btn-sm { min-height: 44px; padding: var(--sp-2) var(--sp-4); font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 1.05rem 2rem; font-size: 1.125rem; }

/* ---------- CTA microcopy ---------- */
.cta-micro {
  margin-top: var(--sp-4);
  max-width: 52ch;
  font-size: var(--fs-body-sm);
  color: var(--text-subtle);
  line-height: 1.5;
}
.cta-micro.on-dark { color: var(--text-on-dark-muted); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; }
.nav-links {
  display: none;
  gap: var(--sp-6);
  margin-left: auto;
  margin-right: var(--sp-2);
}
.nav-links a {
  font-size: var(--fs-body-sm);
  font-weight: var(--w-medium);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav .btn-primary { flex-shrink: 0; }

@media (min-width: 880px) {
  .nav-links { display: inline-flex; }
}
/* Keep the nav CTA on phones (primary above-the-fold action), with a short label */
.cta-short { display: none; }
@media (max-width: 520px) {
  .nav-cta .cta-full { display: none; }
  .nav-cta .cta-short { display: inline; }
  .nav-cta { padding-inline: var(--sp-3); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 8vw, 7rem) clamp(3rem, 2rem + 6vw, 6rem);
  background:
    radial-gradient(120% 90% at 85% -10%, var(--smkv-sage-100) 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 110%, var(--surface-alt) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { max-width: min(880px, 100%); }
.hero .overline { margin-bottom: var(--sp-5); }

.hero-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--w-bold);
  font-stretch: 88%;
  text-wrap: balance;
  max-width: 18ch;
}
.hero-h1-accent {
  display: block;
  margin-top: var(--sp-1);
  color: var(--primary);
  font-weight: var(--w-semibold);
}

.hero-subhead {
  margin-top: var(--sp-6);
  max-width: 62ch;
  text-wrap: pretty;
}

.hero-cta { margin-top: var(--sp-8); }

.hero-proof {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  max-width: 56ch;
  font-size: var(--fs-body);
  color: var(--text-muted);
}
.hero-proof strong {
  color: var(--primary);
  font-weight: var(--w-bold);
  font-size: 1.15em;
}

/* ============================================================
   PROOF BAR (dark)
   ============================================================ */
.proof { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-on-dark);
}
.proof-num {
  font-size: var(--fs-display);
  line-height: 0.95;
  font-weight: var(--w-bold);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  color: var(--accent-soft);
}
.proof-label {
  font-size: var(--fs-body);
  color: var(--text-on-dark-muted);
  max-width: 32ch;
}
.proof-nda {
  margin-top: var(--sp-8);
  max-width: 70ch;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body-sm);
}

@media (min-width: 760px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .proof-stat { border-bottom: none; border-left: 1px solid var(--border-on-dark); padding-left: var(--sp-6); padding-bottom: 0; }
  .proof-stat:first-child { border-left: none; padding-left: 0; }
}

/* ============================================================
   CARDS (shared)
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-h {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: var(--w-semibold);
}
.card-index {
  display: inline-block;
  font-size: var(--fs-body-sm);
  font-weight: var(--w-semibold);
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.problem-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.problem-card .card-h { margin-top: var(--sp-1); }
.problem-card p { color: var(--text-muted); }
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--smkv-taupe-200); }

@media (min-width: 720px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

/* ============================================================
   AUTHORITY (prose)
   ============================================================ */
.authority .section-head { margin-bottom: var(--sp-6); }
.prose { display: flex; flex-direction: column; gap: var(--sp-5); }
.prose p {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.prose p:first-child {
  color: var(--text);
  font-weight: var(--w-medium);
}

/* ============================================================
   METHOD
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  counter-reset: pillar;
}
.pillar-card { display: flex; flex-direction: column; gap: var(--sp-3); position: relative; }
.pillar-num {
  font-size: var(--fs-h3);
  font-weight: var(--w-bold);
  font-stretch: 85%;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.pillar-card p { color: var(--text-muted); }
.pillar-note {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-body-sm);
  font-weight: var(--w-semibold);
  color: var(--primary) !important;
  font-style: italic;
}
.pillar-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-soft); }

.method-cta { margin-top: var(--sp-10); }

@media (min-width: 700px) {
  .method-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (min-width: 1080px) {
  .method-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   CASE STUDIES (dark)
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.case-card {
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  background: var(--bg-dark-2);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.case-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); }
.case-kicker {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--sp-4);
}
.case-num {
  font-size: var(--fs-display);
  line-height: 0.9;
  font-weight: var(--w-bold);
  font-stretch: 82%;
  letter-spacing: -0.04em;
  color: var(--accent-soft);
}
.case-x { font-size: 0.55em; font-weight: var(--w-semibold); }
.case-headline {
  margin-top: var(--sp-3);
  font-size: var(--fs-h4);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-on-dark);
}
.case-body {
  margin-top: var(--sp-4);
  color: var(--text-on-dark-muted);
  max-width: 44ch;
}
.cases-aggregate {
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-on-dark);
  display: grid;
  gap: var(--sp-5);
}
.cases-agg-line { font-size: var(--fs-lead); line-height: 1.4; color: var(--text-on-dark); }
.cases-agg-line strong { color: var(--accent-soft); font-weight: var(--w-bold); }
.cases-frame { color: var(--text-on-dark-muted); max-width: 64ch; }

@media (min-width: 760px) {
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .cases-aggregate { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--sp-8); }
}

/* ============================================================
   WHO RUNS YOUR AUDIT
   ============================================================ */
.strategist-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: start;
}
.strategist-media { order: -1; }
.strategist-photo {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-alt), var(--smkv-taupe-200));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.strategist-photo-mark {
  font-weight: var(--w-bold);
  font-stretch: 85%;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  font-size: 1.25rem;
}
.strategist-content .overline { margin-bottom: var(--sp-4); }
.strategist-body {
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.strategist-points {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}
.strategist-points li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--text);
}
.strategist-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 18px;
  height: 2px;
  background: var(--primary);
}
.confirm-note {
  margin-top: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
  color: var(--text-subtle);
  background: var(--surface-alt);
}

@media (min-width: 860px) {
  .strategist-inner { grid-template-columns: 340px 1fr; gap: var(--sp-10); }
  .strategist-media { order: 0; position: sticky; top: 96px; }
}

/* ============================================================
   OFFER + RISK-REVERSAL
   ============================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
.offer-sub {
  font-size: var(--fs-h4);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--sp-5);
}
.check-list { display: grid; gap: var(--sp-4); }
.check-list li {
  position: relative;
  padding-left: var(--sp-8);
  color: var(--text-muted);
  line-height: 1.5;
}
.check-list li strong { color: var(--text); font-weight: var(--w-semibold); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(transparent, transparent),
    var(--smkv-sage-100);
  background-color: var(--smkv-sage-100);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.45em;
  width: 7px;
  height: 11px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.offer-risk { background: var(--bg-dark); color: var(--text-on-dark); border-color: transparent; display: grid; gap: var(--sp-6); }
.risk-block { display: grid; gap: var(--sp-2); }
.risk-h {
  font-size: var(--fs-body);
  font-weight: var(--w-bold);
  color: var(--accent-soft);
}
.risk-block p { color: var(--text-on-dark-muted); font-size: var(--fs-body-sm); line-height: 1.55; }
.risk-block.walkaway {
  margin-top: var(--sp-2);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-on-dark);
}

.offer-cta { margin-top: var(--sp-10); }

@media (min-width: 880px) {
  .offer-grid { grid-template-columns: 1.3fr 1fr; gap: var(--sp-8); align-items: start; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-heading { margin: 0; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: var(--fs-h4);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.acc-trigger:hover { color: var(--primary); }
.acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--primary);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.acc-icon::before { width: 100%; height: 2px; }
.acc-icon::after { width: 2px; height: 100%; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: scaleY(0); opacity: 0; }

.acc-panel {
  overflow: hidden;
}
.acc-panel p {
  padding-bottom: var(--sp-6);
  max-width: 72ch;
  color: var(--text-muted);
  line-height: 1.6;
}
.acc-panel[hidden] { display: none; }

/* Animated reveal when motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .acc-panel:not([hidden]) { animation: accDown var(--dur) var(--ease); }
  @keyframes accDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   FINAL CTA (dark)
   ============================================================ */
.final-cta { text-align: center; }
.final-cta .overline { margin-bottom: var(--sp-4); }
.final-cta .section-h2 { margin-inline: auto; max-width: 22ch; font-size: var(--fs-h1); font-weight: var(--w-bold); }
.final-body {
  margin: var(--sp-6) auto 0;
  max-width: 64ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-on-dark-muted);
  text-wrap: pretty;
}
.final-cta-action { margin-top: var(--sp-8); display: flex; flex-direction: column; align-items: center; }
.final-cta-action .cta-micro { text-align: center; margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: var(--sp-10) var(--sp-6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border-on-dark);
}
.footer-wordmark { color: var(--text-on-dark); }
.footer-trust {
  margin-top: var(--sp-4);
  max-width: 56ch;
  color: var(--text-on-dark-muted);
  font-size: var(--fs-body-sm);
}
.footer-actions { display: flex; flex-direction: column; gap: var(--sp-5); align-items: flex-start; }
.footer-actions .btn-outline { border-color: var(--border-on-dark); color: var(--text-on-dark); }
.footer-actions .btn-outline:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { color: var(--text-on-dark-muted); font-size: var(--fs-body-sm); transition: color var(--dur) var(--ease); }
.footer-legal a:hover { color: var(--text-on-dark); }
.footer-bottom { padding-top: var(--sp-5); }
.footer-bottom p { color: var(--text-on-dark-muted); font-size: var(--fs-body-sm); }

@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .footer-actions { align-items: flex-end; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    will-change: opacity, transform;
  }
  /* Solta a camada de composição depois que a animação terminou. Sem isto os
     nós ficam promovidos a camada para sempre, e a rolagem trava no celular. */
  .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
}

/* ============================================================
   MODAL / LEAD FORM
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 41, 41, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fadeIn var(--dur) var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   SWIPE FILE PAGE (funnel path B) — inline email capture
   ============================================================ */
.swipe-form {
  display: grid;
  gap: var(--sp-5);
  max-width: 30rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
}
.swipe-form .btn { justify-self: start; }
.field-hint {
  font-size: var(--fs-body-sm);
  color: var(--text-subtle, #6b6b6b);
}
.swipe-success { max-width: 34rem; margin-top: clamp(2rem, 1rem + 3vw, 3rem); }

/* ============================================================
   POST-SUBMIT BOOKING + NURTURE
   O lead agenda dentro da propria pagina, sem salto extra.
   16/08/2026: o calendario passou a ser o Google Appointment
   Scheduling. O embed do Google pede mais altura que o do Cal.com
   e tem rolagem interna, entao 34rem cortava o mes.
   ============================================================ */
.cal-embed {
  margin-top: var(--sp-6);
  min-height: 44rem;
  border: 1px solid var(--line, rgba(0,0,0,.12));
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  background: var(--surface);
}
.cal-embed-frame { display: block; width: 100%; height: 44rem; border: 0; }
.cal-fallback,
.success-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-body-sm);
  color: var(--ink-faint, #6b6b6b);
}
/* Give the calendar room only when it's actually on screen. */
.modal[data-state="booking"] .modal-dialog { max-width: 880px; }

@media (max-width: 640px) {
  .cal-embed, .cal-embed-frame { min-height: 38rem; height: 38rem; }
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 100dvh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--sp-8) var(--gutter) var(--sp-6);
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--dur) var(--ease);
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover { background: var(--surface-alt); color: var(--text); }

.modal-head { margin-bottom: var(--sp-5); padding-right: var(--sp-8); }
.modal-head .overline { margin-bottom: var(--sp-2); }
.modal-title {
  font-size: var(--fs-h3);
  font-weight: var(--w-bold);
  font-stretch: 90%;
  letter-spacing: var(--tracking-tight);
}
.modal-intro {
  margin-top: var(--sp-3);
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.55;
}

/* Progress */
.modal-progress { margin-bottom: var(--sp-6); }
.progress-steps {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
  min-width: 0;
}
.progress-step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.progress-step:last-child::after { display: none; }
.progress-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: var(--fs-body-sm);
  font-weight: var(--w-semibold);
  background: var(--surface-alt);
  color: var(--text-subtle);
  border: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.progress-text {
  font-size: var(--fs-body-sm);
  color: var(--text-subtle);
  white-space: nowrap;
}
.progress-step.is-active .progress-dot,
.progress-step.is-complete .progress-dot {
  background: var(--primary);
  color: var(--cta-text);
  border-color: var(--primary);
}
.progress-step.is-active .progress-text { color: var(--text); font-weight: var(--w-semibold); }
.progress-count {
  margin-top: var(--sp-3);
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--text-subtle);
}
@media (max-width: 540px) {
  .progress-text { display: none; }
  .progress-step::after { min-width: 12px; }
}

/* Form steps */
.form-step { border: 0; display: grid; gap: var(--sp-5); }
.form-step[hidden] { display: none; }
.form-legend {
  font-size: var(--fs-body);
  font-weight: var(--w-semibold);
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.field { display: grid; gap: var(--sp-2); }
.field-row { display: grid; gap: var(--sp-5); }
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label,
.checkgroup legend {
  font-size: var(--fs-body-sm);
  font-weight: var(--w-semibold);
  color: var(--text);
}
.optional { font-weight: var(--w-regular); color: var(--text-subtle); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-body-sm);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: auto; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235C6A67' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-8);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-subtle); }

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.checkgroup.has-error .check-options {
  border-color: #b3261e;
}
.field-error {
  font-size: var(--fs-body-sm);
  color: #b3261e;
}

/* Checkbox group */
.checkgroup { border: 0; display: grid; gap: var(--sp-3); }
.checkgroup legend { margin-bottom: var(--sp-1); }
.check-options { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.check-option {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-body-sm);
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.check-option:hover { border-color: var(--text-muted); }
.check-option input { width: 16px; height: 16px; min-height: auto; accent-color: var(--primary); }
.check-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--smkv-sage-100);
}

/* Form actions */
.form-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}
.form-actions [data-next],
.form-actions [data-submit] { margin-left: auto; }
.form-actions .btn { flex: 0 0 auto; }
@media (max-width: 420px) {
  .form-actions .btn { flex: 1; }
}

/* Success / error states */
.form-success {
  text-align: center;
  padding: var(--sp-6) 0 var(--sp-4);
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
}
/* attribute-toggled elements that set their own display need an explicit
   [hidden] guard, otherwise the class display wins over the UA [hidden] rule */
.form-success[hidden],
.form-error-banner[hidden] { display: none; }
.success-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--smkv-sage-100);
  position: relative;
}
.success-mark::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 15px;
  width: 11px;
  height: 20px;
  border: solid var(--primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.success-h {
  font-size: var(--fs-h4);
  font-weight: var(--w-semibold);
  letter-spacing: var(--tracking-tight);
}
.form-success p { color: var(--text-muted); max-width: 42ch; }

.form-error-banner {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: #8a1c14;
  font-size: var(--fs-body-sm);
}
.form-error-banner a { text-decoration: underline; }

/* Lock body scroll behind modal */
body.modal-open { overflow: hidden; }

/* Modal: full-screen on phones, centered card on larger screens */
@media (min-width: 640px) {
  .modal { align-items: center; padding: var(--sp-6); }
  .modal-dialog { border-radius: var(--radius-lg); max-height: calc(100dvh - var(--sp-12)); }
}
@media (max-width: 639px) {
  .modal-dialog { border-radius: 0; max-height: 100dvh; min-height: 100dvh; }
}
