:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --ink: #16213a;
  --ink-soft: #4a5570;
  --line: #e2ddd2;
  --accent: #c2521f;
  --accent-ink: #ffffff;
  --accent-soft: #fbe9df;
  --focus: #2d5bd7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 58, .06), 0 8px 24px rgba(22, 33, 58, .06);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151f;
    --bg-alt: #171c28;
    --surface: #1d2331;
    --ink: #eef0f5;
    --ink-soft: #a8b0c2;
    --line: #2c3446;
    --accent: #ef7a45;
    --accent-ink: #1a0d06;
    --accent-soft: #3a2419;
    --focus: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .6em;
}
.accent { color: var(--accent); }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: .45em 1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); text-decoration: none;
}
.brand em { font-style: italic; font-weight: 600; color: var(--accent); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 5px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 32px;
  text-align: center;
}
.score-label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--ink-soft); margin: 0; }
.score-total { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 5.5rem); font-weight: 700; line-height: 1; margin: .1em 0 .05em; color: var(--ink); }
.score-pct { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem; padding: .25em .9em; border-radius: 999px; }
.score-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; }
.score-sections div { background: var(--bg-alt); border-radius: 10px; padding: 10px; }
.score-sections dt { font-size: .78rem; color: var(--ink-soft); }
.score-sections dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--ink-soft); max-width: 40em; }

.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background: linear-gradient(145deg, var(--ink), #2c3d66);
  display: grid; place-items: center;
  color: var(--bg); font-family: var(--font-display); font-size: 6rem; font-weight: 700;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.checks { list-style: none; padding: 0; margin: 1em 0; }
.checks li { position: relative; padding-left: 1.7em; margin: .45em 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1em; height: 1em; border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c2521f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin: 0;
}
.card p { color: var(--ink-soft); margin: 0; }
.quote p { color: var(--ink); font-size: 1.05rem; margin-bottom: .8em; }
.quote footer { color: var(--ink-soft); font-size: .9rem; }

.steps-title { margin-top: 56px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; color: var(--ink-soft); }
.steps li strong { color: var(--ink); display: block; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-weight: 700;
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px; box-shadow: var(--shadow);
}
.price-card .btn { margin-top: auto; text-align: center; }
.price-card.featured { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: -13px; left: 30px; margin: 0;
  background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .3em .9em; border-radius: 999px;
}
.price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 0; line-height: 1.1; }
.price-sub { color: var(--ink-soft); font-size: .92rem; }
.fine-print { color: var(--ink-soft); margin-top: 24px; font-size: .95rem; }

@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- Psych/Soc story ---------- */
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.score-jump { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 24px); margin-top: 16px; }
.score-jump p { margin: 0; }
.score-jump-label { font-size: .78rem; color: var(--ink-soft); }
.score-jump-before {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(2.2rem, 5vw, 2.8rem); color: var(--ink-soft);
  padding-bottom: .25em;
}
.score-jump .score-total { margin: 0; }
.score-jump-arrow { width: 48px; height: 24px; flex: none; color: var(--accent); margin-bottom: 1.4rem; }
.story-cards { grid-template-columns: repeat(3, 1fr); }
.story-cards h3 { margin-bottom: .6em; }
.story-cta { margin-top: 40px; }
.story-cta p { max-width: 40em; }

@media (max-width: 900px) {
  .story-grid, .story-cards { grid-template-columns: 1fr; }
}

/* ---------- Booking ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin: 8px 0 20px; max-width: 100%; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .95rem;
  background: none; border: 0; color: var(--ink-soft);
  padding: .55em 1.2em; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.booking-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 12px; min-height: 160px;
}
.booking-embed { width: 100%; min-height: 0; overflow: auto; }
.booking-embed.has-embed { min-height: 620px; }
.booking-embed iframe { width: 100%; min-height: 620px; border: 0; }
.booking-fallback, .booking-note { text-align: center; color: var(--ink-soft); margin: 16px; }
.booking-fallback:empty, .booking-note:empty { display: none; }
.booking-placeholder { text-align: center; padding: 32px 16px; }
.booking-placeholder h3 { margin-bottom: .3em; }
.booking-placeholder p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 24px; }
summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .7em .85em; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: #1f7a4a; }
.form-status.err { color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .form-status.ok { color: #6fd39c; }
  .form-status.err { color: #ff8a80; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.footer-brand { margin-bottom: .4em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.disclaimer { color: var(--ink-soft); font-size: .8rem; margin-top: 24px; }

/* ---------- Policies page ---------- */
.policy { padding: 56px 0 80px; }
.policy h2 { margin-top: 1.6em; font-size: 1.6rem; }
.policy li { margin: .35em 0; }
.policy .updated { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
