/*
  _shared/styles.css

  Global styles for every page. All values reference variables from
  brand/tokens.css. Edit tokens, not this file, to change your visual
  identity. Edit this file to change layout patterns or add new
  reusable components.
*/

/* RESET */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: var(--container-default);
  margin: 0 auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.container-narrow { max-width: var(--container-narrow); }
.container-wide { max-width: var(--container-wide); }

.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* TYPOGRAPHY */

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); margin: 0 0 var(--space-md); }
h2 { font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.5rem); margin: 0 0 var(--space-md); }
h3 { font-size: 1.25rem; margin: 0 0 var(--space-xs); font-weight: 600; }
p  { margin: 0 0 var(--space-sm); }

.text-muted { color: var(--color-text-muted); }
.text-accent {
  font-family: var(--font-accent);
  font-weight: var(--font-weight-accent);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-text); opacity: 1; }
.btn-secondary {
  background: var(--color-text);
  color: #ffffff;
}
.btn-ghost {
  background: var(--color-bg-soft);
  color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-bg-warm); color: #ffffff; opacity: 1; }

/* CARDS */

.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0; }
.card p { color: var(--color-text-muted); }
.card p:last-child { margin-bottom: 0; }

/* QUOTES */

.quote {
  margin: 0 auto;
  max-width: 720px;
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-card);
  text-align: center;
}
.quote p {
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: var(--space-md);
}
.quote footer { margin-top: var(--space-sm); }
.quote cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* FORMS */

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg-soft);
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: var(--radius-input);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field { margin-bottom: var(--space-sm); }
.field-error { color: var(--color-error); font-size: 0.875rem; margin-top: 0.25rem; }
.field-success { color: var(--color-success); font-size: 0.875rem; margin-top: 0.25rem; }

/* HEADER + NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header > div,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem var(--space-md);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.site-header .logo {
  height: 2rem;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-item-group { display: flex; align-items: center; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0;
  letter-spacing: -0.005em;
}
.nav-link[aria-current="page"] {
  font-weight: 700;
}
.nav-link:hover { color: var(--color-accent); }

.btn-nav {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.nav-item-group { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  min-width: 220px;
  padding: 0.5rem;
  z-index: 60;
  flex-direction: column;
  gap: 0.125rem;
}
.nav-item-group.has-dropdown:hover > .nav-dropdown,
.nav-item-group.has-dropdown:focus-within > .nav-dropdown {
  display: flex;
}
.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text);
  text-decoration: none;
}
.nav-dropdown a:hover {
  background: var(--color-bg-soft);
  color: var(--color-accent);
  opacity: 1;
}

.burger-menu {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
  padding: 6px 4px;
}
.burger-menu span {
  display: block;
  height: 2px;
  background: var(--color-text);
}

/* FOOTER */

.site-footer {
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.site-footer > div,
.site-footer .container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: left;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.site-footer .footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  font-weight: 700;
}
.site-footer .footer-col a {
  display: block;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--color-accent); opacity: 1; }
.site-footer .footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  text-align: center;
}
.site-footer .footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* HERO */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background: var(--color-bg);
  text-align: center;
}
.hero .container {
  max-width: 880px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin: 0 0 var(--space-md);
}
.hero-title {
  line-height: 1.08;
  margin-bottom: var(--space-md);
}
.hero-title-accent {
  display: block;
  font-family: var(--font-accent);
  font-weight: var(--font-weight-accent);
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-size: 0.7em;
  letter-spacing: -0.005em;
}
.hero-lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
}
.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* SECTIONS */

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.section-soft {
  background: var(--color-bg-soft);
}
.section-cta {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg-soft);
}
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-lede {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ACCESSIBILITY */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 0;
  background: var(--color-bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .burger-menu { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    min-width: 220px;
  }
  .nav-right.open { display: flex; }
  .hero { padding: var(--space-xl) 0; }
  .section { padding: var(--space-lg) 0; }
}

/* ════════════════════════════════════════════════════════════════
   MAIJA MORTON - custom components (warm dark theme + light proof cards)
   ════════════════════════════════════════════════════════════════ */

/* Theme corrections: the base template is light-on-white; we run dark-on-brown.
   Cards + quotes must flip to light surfaces so text stays readable. */
.card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  box-shadow: var(--shadow-card);
}
.card h2, .card h3, .card h4 { color: var(--palette-card-text); }
.card p { color: #5c4a40; }
.quote {
  background: var(--palette-card);
  color: var(--palette-card-text);
}
.quote cite { color: #7a6458; }
.section-cta { background: var(--palette-deep); }

/* Eyebrow / section label - Playfair italic in copper, lowercase */
.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--palette-copper);
  margin: 0 0 var(--space-sm);
}
.italic-accent { font-style: italic; color: var(--palette-copper); font-weight: 500; }

/* Thin rule under a heading */
.rule {
  width: 140px;
  height: 1px;
  background: var(--color-divider);
  border: 0;
  margin: var(--space-md) 0 var(--space-lg);
}
.rule-center { margin-left: auto; margin-right: auto; }

/* Buttons - copper primary, outline secondary on brown */
.btn-primary:hover { background: var(--palette-copper-deep); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(243,238,233,0.55);
}
.btn-outline:hover { background: rgba(243,238,233,0.10); opacity: 1; }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }

/* SPLIT - photo + text panel, alternating (hero, offers, next steps) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 540px;
}
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
}
.split-photo { position: relative; overflow: hidden; min-height: 360px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-soft { background: var(--color-bg-soft); }
.split-deep { background: var(--color-bg-dark); }
/* reverse: photo on left */
.split.reverse .split-photo { order: -1; }

/* Lead + body inside split text */
.lead { font-weight: 600; color: var(--color-text); font-size: 1.0625rem; }
.muted-on-dark { color: var(--color-text-muted); }

/* Hero specifics */
.hero-split h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--palette-copper);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* Brushstroke label */
.brush {
  display: inline-block;
  background: var(--palette-tan);
  color: var(--palette-deep);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  padding: 0.35rem 1.1rem;
  border-radius: 2px 14px 4px 16px / 16px 4px 14px 2px;
}
.brush-photo {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
}

/* Social proof strip */
.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--color-text);
}
.proof-strip .stars { color: var(--palette-copper); letter-spacing: 0.12em; }
.proof-strip .score { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.proof-strip .count { color: var(--color-text-muted); font-size: 0.95rem; }

/* COMPARISON TABLE */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: 0.85rem 1rem;
  text-align: center;
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.compare tbody th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  max-width: 320px;
}
.compare tbody tr:nth-child(odd) td,
.compare tbody tr:nth-child(odd) th { background: rgba(243,238,233,0.05); }
.compare .yes { color: #9ED99A; font-weight: 700; }
.compare .no  { color: #E6A48F; }
.compare .price-row th, .compare .price-row td {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--palette-copper);
  border-top: 1px solid var(--color-divider);
}
.compare .sub { display:block; font-size: 0.8rem; color: var(--color-text-muted); }

/* PRICE CARDS */
.price-card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.price-card .pc-photo { aspect-ratio: 4/3; position: relative; }
.price-card .pc-photo img { width:100%; height:100%; object-fit: cover; }
.price-card .pc-tag {
  position:absolute; left:0; bottom:0; right:0;
  background: linear-gradient(transparent, rgba(61,40,32,0.78));
  color: #fff; padding: 1.2rem 1rem 0.7rem;
  font-family: var(--font-accent); font-style: italic; font-size: 0.9rem;
}
.price-card .pc-body { padding: var(--space-md) var(--space-md) var(--space-lg); display:flex; flex-direction:column; gap:0.5rem; flex:1; }
.price-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--palette-card-text); margin:0; }
.price-card .pc-full { font-family: var(--font-display); font-size: 1.5rem; color: var(--palette-copper-deep); margin:0.2rem 0; }
.price-card .pc-line { display:flex; justify-content:space-between; gap:1rem; font-size:0.92rem; color:#5c4a40; }
.price-card .pc-line b { color: var(--palette-copper-deep); font-weight:700; }
.price-card .pc-early {
  background: var(--palette-tan); color: var(--palette-deep);
  font-weight: 700; font-size: 0.85rem; padding: 0.45rem 0.7rem; border-radius: 4px;
  margin: 0.3rem 0;
}
.price-card .btn { margin-top: auto; }

/* SESSION CARDS (bookable services) */
.session-card { display:flex; flex-direction:column; gap:0.5rem; }
.session-card .s-meta { color: var(--palette-copper); font-weight:700; font-size:0.85rem; letter-spacing:0.04em; text-transform:uppercase; }
.session-card .s-price { font-family: var(--font-display); font-size:1.6rem; color: var(--palette-card-text); }

/* STORY CAROUSEL (Testimonials page - flick through success stories) */
.story-slide hr.rule { margin: var(--space-sm) 0; }
.story-nav { display:flex; align-items:center; justify-content:center; gap:var(--space-md); margin-top:var(--space-md); }
.story-dots { display:flex; align-items:center; gap:8px; }
.story-dots button { width:9px; height:9px; border-radius:50%; border:none; padding:0; cursor:pointer; background:rgba(184,90,18,.25); }
.story-dots button.active { background:var(--palette-copper); }
@media (max-width:640px) {
  .story-nav { flex-wrap:wrap; }
  .story-nav .btn { flex:1 1 auto; }
}

/* TESTIMONIAL WALL - light bubble cards on brown */
.testi-grid { columns: 3; column-gap: var(--space-md); }
.testi-card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  border-radius: 16px;
  padding: var(--space-md);
  margin: 0 0 var(--space-md);
  break-inside: avoid;
  box-shadow: var(--shadow-card);
}
.testi-card p { margin: 0 0 0.75rem; font-size: 0.97rem; line-height: 1.55; color: #4a3a32; }
.testi-card .t-meta { display:flex; align-items:center; gap:0.5rem; font-size: 0.85rem; }
.testi-card .t-name { font-weight: 700; color: var(--palette-card-text); }
.testi-card .t-stars { color: var(--palette-copper); letter-spacing: 0.06em; }
.testi-card .t-date { color: #8a7468; margin-left:auto; }

/* FAQ */
.faq-grid { columns: 2; column-gap: var(--space-lg); }
.faq-item { break-inside: avoid; margin-bottom: var(--space-lg); }
.faq-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.0625rem; color: var(--color-text); margin-bottom: 0.4rem; }
.faq-item p { color: var(--color-text-muted); }

/* QUIZ */
/* The whole quiz sits in one cream card on the brown page, so the
   question text has real contrast and the flow reads as a single object. */

.quiz-stage { max-width: 780px; margin: 0 auto; }
.quiz-card {
  background: var(--palette-card);
  color: var(--palette-card-text);
  border-radius: var(--radius-card, 16px);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}
.quiz-card h1,
.quiz-card h2,
.quiz-card h3,
.quiz-card h4,
.quiz-card p,
.quiz-card li,
.quiz-card label { color: var(--palette-card-text); }
.quiz-card .rule { border-color: rgba(61,40,32,0.25); }
/* The outline button is built for the brown page. On the cream card its
   pale border and cream text all but disappear, so it gets espresso here. */
.quiz-card .btn-outline {
  color: var(--palette-card-text);
  border-color: rgba(61,40,32,0.45);
}
.quiz-card .btn-outline:hover { background: rgba(61,40,32,0.06); }
.quiz-card .eyebrow { color: var(--palette-copper-deep); }
.quiz-card .italic-accent { color: var(--palette-copper-deep); }

.quiz-progress {
  height: 4px; background: rgba(61,40,32,0.14);
  border-radius: 999px; margin-bottom: var(--space-lg); overflow: hidden;
}
.quiz-progress > span {
  display: block; height: 100%; background: var(--palette-copper);
  width: 0; transition: width .35s ease;
}

/* Question headings use the body font, not the display serif, because a
   long question in Playfair is hard work to read on a phone. */
.quiz-q {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.4vw + 0.9rem, 1.6rem);
  line-height: 1.4;
  margin-bottom: var(--space-lg);
}
/* The line under the h1. Body font against the display serif above it,
   and a step down in size, so it reads as an aside rather than a second
   headline. */
.quiz-cta-gap { margin-top: var(--space-2xl); }

/* A button wider than the card overflows to the right and reads as badly
   centred. Cap it, and let a long label wrap instead of pushing out. */
.quiz-card .btn { max-width: 100%; white-space: normal; }

.quiz-subhead {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.2rem);
  line-height: 1.5;
  color: #5c4a40;
  max-width: 34ch;
  margin: calc(var(--space-md) * -0.4) auto 0;
}
/* Wide enough for the whole line, so it stops breaking mid-phrase on a
   desktop. Still wraps on a phone, where it has to. */
@media (min-width: 700px) {
  .quiz-subhead { max-width: none; white-space: nowrap; }
}

/* Platform picker sitting next to the handle field. */
.quiz-social { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem; }
.quiz-social select,
.quiz-social input {
  background: #FFFFFF; color: var(--palette-card-text); width: 100%;
}

.quiz-hint {
  font-size: 0.9rem; color: #5c4a40;
  margin-top: calc(var(--space-lg) * -0.6); margin-bottom: var(--space-lg);
}

/* Choice options */
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-opt {
  background: #FFFFFF; color: var(--palette-card-text);
  border: 0; border-radius: 12px; padding: 1rem 1.4rem;
  font: inherit; font-size: 1rem; cursor: pointer; text-align: left;
  transition: transform .12s ease, background .12s ease;
}
.quiz-opt:hover { background: #fffdfb; transform: translateY(-1px); }
.quiz-opt.is-chosen { background: var(--palette-copper); color: #FFFFFF; }

/* Optional free text under a question. Captured, never scored. Screens that
   carry one do not auto-advance, so there is time to type. */
.quiz-more { margin-top: var(--space-md); text-align: left; }
.quiz-more label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.95rem; color: #5c4a40;
}
.quiz-more textarea {
  width: 100%; min-height: 5.5rem; resize: vertical;
  background: #FFFFFF; color: var(--palette-card-text);
  border: 0; border-radius: 12px; padding: 0.9rem 1.1rem;
  font: inherit; font-size: 1rem; line-height: 1.5;
}
.quiz-more-count { font-size: 0.85rem; color: #5c4a40; margin: 0.35rem 0 0; min-height: 1.2em; }
.quiz-continue:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Sliders. Each statement scores one archetype, and the point for the
   screen is split in proportion to how far each was dragged. */
.quiz-sliders { display: flex; flex-direction: column; gap: var(--space-lg); }
.quiz-slider-row {
  background: #FFFFFF; border-radius: 12px;
  padding: 1.1rem 1.3rem; text-align: left;
}
.quiz-slider-label {
  display: block; font-size: 1rem; line-height: 1.45;
  margin-bottom: 0.9rem;
}
/* Built from a gradient rather than accent-color, because the browser
   default for the unfilled half renders near-black on a white card. */
.quiz-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; display: block; height: 6px; border-radius: 999px;
  cursor: pointer; outline: none; margin: 0.9rem 0;
  background: linear-gradient(
    to right,
    var(--palette-copper) 0%,
    var(--palette-copper) var(--fill, 50%),
    rgba(61,40,32,0.16) var(--fill, 50%),
    rgba(61,40,32,0.16) 100%
  );
}
.quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--palette-copper); cursor: pointer;
}
.quiz-slider::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: var(--palette-copper); cursor: pointer;
}
.quiz-slider:focus-visible { box-shadow: 0 0 0 3px rgba(208,117,83,0.35); }
.quiz-slider-scale {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: #5c4a40; margin-top: 0.25rem;
}
.quiz-slider-val {
  font-weight: 600; color: var(--palette-copper-deep); font-size: 0.95rem;
}
.quiz-continue { margin-top: var(--space-lg); }

/* Emoji check-in. Captured for Maija, deliberately not scored. */
/* A 2 x 2 grid rather than a flex row, because four options with labels
   of different lengths wrap to an untidy 3 + 1. */
.quiz-emoji-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem; max-width: 440px; margin: 0 auto;
}
.quiz-emoji {
  background: #FFFFFF; border: 0; border-radius: 12px;
  padding: 1.1rem 0.9rem; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.5rem; min-height: 6.5rem;
  transition: transform .12s ease, background .12s ease;
}
.quiz-emoji:hover { transform: translateY(-2px); background: #fffdfb; }
.quiz-emoji.is-chosen { background: var(--palette-copper); }
.quiz-emoji.is-chosen .quiz-emoji-label { color: #FFFFFF; }
.quiz-emoji-glyph { font-size: 2rem; line-height: 1; }
.quiz-emoji-label { font-size: 0.85rem; color: var(--palette-card-text); }

.quiz-back {
  background: none; border: 0; color: #5c4a40;
  cursor: pointer; font: inherit; margin-top: var(--space-md);
}

/* Capture form */
.quiz-form { max-width: 460px; margin: 0 auto; text-align: left; }
.quiz-field { margin-bottom: var(--space-md); }
.quiz-field label { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.quiz-field input { width: 100%; background: #FFFFFF; color: var(--palette-card-text); }
.quiz-optional { color: #5c4a40; }
.quiz-consent { font-size: 0.9rem; color: #5c4a40; margin: var(--space-md) 0; }
.quiz-testmode {
  font-size: 0.85rem; color: var(--palette-copper-deep);
  background: #FFFFFF; border-radius: 10px; padding: 0.7rem 0.9rem;
  margin-bottom: var(--space-md);
}
.quiz-error { color: var(--color-error); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.quiz-form .btn { width: 100%; }

/* Result */
.quiz-result .archetype {
  font-family: var(--font-accent); font-style: italic;
  color: var(--palette-copper-deep);
}
.quiz-breakdown { max-width: 520px; margin: 0 auto var(--space-lg); }
.quiz-breakdown-line {
  font-family: var(--font-display); font-size: 1.15rem;
  margin-bottom: var(--space-md);
}
.quiz-bar-row {
  display: grid; grid-template-columns: 9.5rem 1fr 3rem;
  align-items: center; gap: 0.75rem; margin-bottom: 0.5rem;
}
.quiz-bar-label { font-size: 0.9rem; text-align: left; }
.quiz-bar-track {
  height: 8px; background: rgba(61,40,32,0.14);
  border-radius: 999px; overflow: hidden;
}
.quiz-bar-fill { display: block; height: 100%; background: var(--palette-copper); border-radius: 999px; }
.quiz-bar-pct { font-size: 0.9rem; text-align: right; }

.quiz-opener {
  max-width: 640px; margin: 0 auto var(--space-lg);
  font-size: 1.0625rem; line-height: 1.7;
}
/* Her own words, matched to the "what you told me" card so quoted
   answers read the same everywhere on the page. */
.quiz-opener em { font-family: var(--font-body); font-style: normal; font-weight: 500; }

/* Her own answers, quoted back to her. */
.quiz-echo {
  max-width: 640px; margin: 0 auto var(--space-xl);
  background: #FFFFFF; border-radius: 12px;
  padding: var(--space-lg); text-align: left;
}
.quiz-echo ul { list-style: none; margin: 0; padding: 0; }
.quiz-echo li { margin-bottom: var(--space-md); }
.quiz-echo li:last-child { margin-bottom: 0; }
.quiz-echo-label {
  display: block; font-size: 0.8rem; color: #5c4a40;
  text-transform: lowercase; letter-spacing: 0.02em; margin-bottom: 0.2rem;
}
.quiz-echo-answer {
  display: block; font-family: var(--font-body); font-style: normal;
  font-weight: 500; font-size: 1.05rem; line-height: 1.5;
}
/* What she typed, set apart from the options she picked. */
.quiz-echo-answer.quiz-echo-typed { font-style: italic; font-weight: 400; }
.quiz-echo-note {
  font-size: 0.95rem; color: #5c4a40;
  margin: var(--space-md) 0 0; line-height: 1.5;
}

/* What she typed, quoted back on the result page. */
.quiz-words {
  max-width: 640px; margin: 0 auto var(--space-xl);
  background: #FFFFFF; border-radius: 12px;
  padding: var(--space-lg); text-align: left;
}
.quiz-words-quote {
  font-family: var(--font-body); font-weight: 500;
  font-size: 1.05rem; line-height: 1.55; margin: 0 0 var(--space-sm);
}
.quiz-words-quote:last-of-type { margin-bottom: 0; }
.quiz-words-note {
  font-size: 0.95rem; color: #5c4a40;
  margin: var(--space-md) 0 0; line-height: 1.5;
}

/* Long-form result copy. Left aligned, because centred body text is
   unreadable past a couple of paragraphs. */
.quiz-copy { text-align: left; max-width: 640px; margin: 0 auto; }
.quiz-copy p { margin-bottom: var(--space-md); line-height: 1.7; }
.quiz-copy h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-top: var(--space-lg); margin-bottom: var(--space-sm);
  color: var(--palette-copper-deep);
}
.quiz-copy em { font-family: var(--font-accent); font-style: italic; }
.quiz-secondary { margin-top: var(--space-lg); }

.quiz-inbox-box {
  max-width: 640px; margin: var(--space-xl) auto 0;
  background: var(--palette-deep); border-radius: 16px;
  padding: var(--space-lg); text-align: center;
}
.quiz-inbox-box .quiz-inbox-line {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1.15rem; line-height: 1.5;
  color: var(--palette-cream); margin: 0 0 var(--space-md);
}
.quiz-inbox-label {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--palette-tan); margin: 0 0 0.75rem;
}
.quiz-inbox-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
/* The outline button is built for the cream card and all but vanishes on
   this dark box, so it gets cream instead. */
.quiz-inbox-box .btn-outline {
  background: transparent; color: var(--palette-cream);
  border: 2px solid var(--palette-cream);
}
.quiz-inbox-box .btn-outline:hover {
  background: var(--palette-cream); color: var(--palette-deep);
}
.quiz-inbox-line {
  max-width: 640px; margin: var(--space-lg) auto 0;
  font-family: var(--font-accent); font-style: italic; font-size: 1.05rem;
}

/* Stands out on its own, without becoming a second button competing with
   the one above it. */
.quiz-support {
  max-width: 640px; margin: var(--space-xl) auto 0;
  font-size: 1.1rem; line-height: 1.6;
}
.quiz-support a {
  color: var(--palette-copper-deep); font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.2em;
}
.quiz-support a:hover { color: var(--palette-copper); }

.hidden { display:none !important; }

/* RESPONSIVE for custom components */
@media (max-width: 880px) {
  .testi-grid { columns: 2; }
}
@media (max-width: 768px) {
  .quiz-card { padding: var(--space-xl) var(--space-md); }
  .quiz-card .btn-lg { width: 100%; }
  .quiz-social { grid-template-columns: 1fr; }
  .quiz-bar-row { grid-template-columns: 1fr 3rem; }
  .quiz-bar-track { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-photo { order: 0; }
  .split-photo { min-height: 280px; }
  .faq-grid { columns: 1; }
  .testi-grid { columns: 1; }
}

