/* ── The Mum's Side Hustle ─ production styles ─────────────────
   Ported from prototype styles.css.
   Stripped: stage, iphoto, image-slot custom element, palette
   overrides, in-phone .screen / .scroll containers, font overrides.
   Adapted: page background is cream paper (not dark surround).
   ────────────────────────────────────────────────────────────── */

/* ── fonts (self-hosted Fraunces variable) ───────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Fraunces-VariableFont.woff2') format('woff2-variations'),
       url('fonts/Fraunces-VariableFont.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Fraunces-Italic-VariableFont.woff2') format('woff2-variations'),
       url('fonts/Fraunces-Italic-VariableFont.woff2') format('woff2');
}

:root {
  --bg:        #ECE4D3;
  --bg-deep:   #E2D8C2;
  --bg-card:   #F5EFE2;
  --terra:     #C14E1E;
  --sienna:    #9E5B3F;
  --moss:      #586549;
  --ink:       #231D17;
  --ink-soft:  #4A3F35;
  --ink-mute:  #7A6F62;
  --rule:      rgba(35,29,23,0.16);
  --rule-strong: rgba(35,29,23,0.34);

  --serif: 'Fraunces', 'Tiempos Headline', Georgia, serif;
  --eye:   'Fraunces', Georgia, serif;
  /* clean system sans — used for button labels so CTAs read as actions,
     not as more body copy */
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* page max content width — narrow editorial column on all viewports */
  --content-max: 560px;
}

/* ── reset & base ────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* keyboard skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 10px 14px; z-index: 100;
  font-size: 14px;
}
.skip:focus { left: 8px; top: 8px; }

/* focus styles — on-brand, never stripped without replacement */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

/* ── page layout container ───────────────────────────────────── */
.page {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
}

/* ── editorial primitives (unchanged from prototype) ─────────── */
.eyebrow {
  font-family: var(--eye);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-feature-settings: "ss01";
}
.eyebrow-rule {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-mute);
}
.eyebrow-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.eyebrow-rule.center { justify-content: center; }
.eyebrow-rule.center::before {
  content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 32px;
}
.eyebrow-rule.center::after { max-width: 32px; }

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 0;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: pretty;
  hyphens: none;
}
.display em, .display .it {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 380;
}
.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 90;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: 32px;
  color: var(--ink);
  text-wrap: pretty;
}
.h3 {
  font-family: var(--serif);
  font-weight: 480;
  font-variation-settings: "opsz" 36;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink);
}
.body {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 14;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body em { font-style: italic; }
.body-sm { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.cap {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-mute);
  font-style: italic;
}

.numeral {
  font-family: var(--serif);
  font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-feature-settings: "lnum", "tnum";
  font-size: 44px;
  line-height: 1;
  color: var(--terra);
}
.numeral.ink { color: var(--ink); }

.rule { height: 1px; background: var(--rule); margin: 0; border: 0; }
.rule.thick { height: 2px; background: var(--ink); opacity: 0.85; }
.rule.dotted {
  height: 0; border-top: 1px dashed var(--rule-strong); background: none;
}

.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--terra);
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px; /* 44px+ tap target with comfortable padding */
  padding: 18px 22px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-variation-settings: normal;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-align: left;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease;
  cursor: pointer;
}
.btn, .btn:link, .btn:visited, .btn span { text-decoration: none; }
.btn .arrow { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn.terra { background: var(--terra); color: #FBF7EE; }
.btn.terra:hover { background: #B0461A; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
/* Apple Pay — shown only on capable devices (see bundle page JS).
   Routes to the Stripe checkout, where Apple Pay is offered one-tap. */
.btn.applepay {
  background: #000; color: #fff;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px; /* Apple's buttons are softly rounded — keeps it recognisable */
  padding: 14px 22px;
}
.btn.applepay:hover { background: #111; }
.btn.applepay .ap-mark {
  height: 24px; width: auto; display: block;
  /* official Apple Pay mark, white on the black button */
}
/* [hidden] must beat .btn's display:inline-flex, or the button leaks in */
.btn[hidden] { display: none; }

/* ── chip ───────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 4px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

/* ── pull quote ─────────────────────────────────────────────── */
.pull {
  font-family: var(--serif);
  font-weight: 360;
  font-variation-settings: "opsz" 90, "SOFT" 100;
  font-style: italic;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.pull-attr {
  font-family: var(--serif);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 14px;
}

/* ── image placeholder (real photo TK) ──────────────────────── */
.img-placeholder {
  background: #d8cdb4;
  position: relative;
  overflow: hidden;
}
.img-placeholder.circle { border-radius: 50%; }
.img-placeholder.rect { border-radius: 2px; }

/* ── sales-page sectionalisation ────────────────────────────── */
.section { padding: 56px 24px; }
.section + .section { padding-top: 0; }
.section.dark { background: var(--ink); color: var(--bg-card); }
.section.dark .body { color: rgba(245,239,226,0.78); }
.section.dark .display { color: var(--bg-card); }
.section.dark .eyebrow { color: rgba(245,239,226,0.55); }
.section.dark .rule { background: rgba(245,239,226,0.18); }
.section.dark .cap { color: rgba(245,239,226,0.6); }
.section.cream { background: #F4ECD8; }

/* dark sections must extend full-bleed even with narrow content column */
.section.dark, .section.cream {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - (var(--content-max) / 2) + 24px);
  padding-right: calc(50vw - (var(--content-max) / 2) + 24px);
}
@media (max-width: 600px) {
  .section.dark, .section.cream {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── faq ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-family: var(--serif);
  font-weight: 460;
  font-size: 18px;
  font-variation-settings: "opsz" 36;
  color: var(--ink);
  letter-spacing: -0.005em;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-mark {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--terra); flex-shrink: 0;
  transition: transform 200ms ease;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-item .faq-body {
  padding-top: 12px;
  font-family: var(--serif); font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
}

/* ── bundle card ────────────────────────────────────────────── */
.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 22px 22px 24px;
  position: relative;
}
.bundle-card .bundle-num {
  position: absolute;
  top: -14px; left: 18px;
  background: var(--bg-card);
  padding: 0 8px;
  font-family: var(--serif);
  font-style: italic; font-feature-settings: "lnum";
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--terra);
}
.bundle-card .bundle-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 10px; margin-top: 4px;
}
.bundle-card .bundle-head .h3 { margin: 0; padding-right: 8px; }
.bundle-card .bundle-head .cap {
  flex-shrink: 0; font-style: normal; letter-spacing: 0.1em;
}
.bundle-card .body-sm { margin: 0; }

/* ── testimonial ────────────────────────────────────────────── */
.testimonial {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.testimonial .tphoto {
  width: 56px; height: 56px; border-radius: 50%;
  flex-shrink: 0;
  background: #d8cdb4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── testimonial carousel — real customer chat screenshots ─────
   Single-image carousel: clean, space-efficient. Prev/next arrows
   and dot indicators below. Wraps at endpoints. Supports keyboard
   (arrow keys) and touch swipe. ─────────────────────────────── */
.testimonial-carousel {
  position: relative;
  padding: 0;
}
.testimonial-carousel:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 8px;
  border-radius: 6px;
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  /* breathing room so the image's shadow doesn't clip */
  padding: 8px;
}
.carousel-track {
  display: flex;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.carousel-slide img {
  width: 100%;
  max-height: min(540px, 70vh);
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow:
    0 18px 36px rgba(35, 29, 23, 0.14),
    0 4px 10px  rgba(35, 29, 23, 0.08);
  pointer-events: none; /* swipe lands on the track, not the img */
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.carousel-arrow {
  -webkit-appearance: none; appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  font-size: 26px;
  line-height: 1;
  color: var(--terra);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0 2px; /* nudge the glyph optically */
  transition: background 160ms ease, border-color 160ms ease, transform 100ms ease;
}
.carousel-arrow:hover { background: var(--bg-card); border-color: var(--terra); }
.carousel-arrow:active { transform: scale(0.94); }
.carousel-arrow:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.carousel-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  font-feature-settings: "lnum", "tnum";
  white-space: nowrap;
  padding: 0 2px;
}
.carousel-count [data-carousel-current] {
  color: var(--terra);
  font-weight: 460;
}
.carousel-dot {
  -webkit-appearance: none; appearance: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.carousel-dot.on {
  background: var(--terra);
  border-color: var(--terra);
  transform: scale(1.18);
}
.carousel-dot:hover:not(.on) { border-color: var(--ink-soft); }
.carousel-dot:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .carousel-viewport { max-width: 100%; }
  .carousel-controls { gap: 18px; margin-top: 22px; }
}

/* ── proof strips — scalable, categorised social proof ─────────
   Horizontal scroll-snap rows. Add any number of <figure> blocks;
   no JS, no dot-syncing. Mixed aspect ratios are fine. ────────── */
.proof-group { margin-bottom: 30px; }
.proof-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
}
.proof-strip figure {
  flex: 0 0 auto;
  width: min(78vw, 300px);
  margin: 0;
  scroll-snap-align: center;
}
.proof-strip img,
.proof-strip .img-placeholder {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow:
    0 18px 36px rgba(35, 29, 23, 0.14),
    0 4px 10px  rgba(35, 29, 23, 0.08);
}
.proof-strip figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}

/* ── mobile sticky CTA ──────────────────────────────────────────
   Slides up once the price block scrolls off; hides at the final CTA.
   Sits below the cookie banner (z 50) so consent always wins. ─── */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--bg-card);
  border-top: 1px solid var(--rule-strong);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(35, 29, 23, 0.12);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 280ms;
}
.sticky-cta.on { transform: none; visibility: visible; }
.sticky-cta-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.sticky-cta .sc-meta {
  display: flex; flex-direction: column; line-height: 1.1;
  flex-shrink: 0;
}
.sticky-cta .sc-label {
  font-family: var(--eye); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.sticky-cta .sc-price {
  font-family: var(--serif); font-style: italic; font-weight: 360;
  font-variation-settings: "opsz" 90, "SOFT" 100;
  font-size: 26px; color: var(--terra); line-height: 1;
}
.sticky-cta .btn {
  width: auto; flex: 1;
  min-height: 50px; padding: 12px 18px;
}
/* phones only — the column is already narrow, a fixed bar on desktop is noise */
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* ── guarantee ──────────────────────────────────────────────── */
.guarantee {
  border: 2px solid var(--ink);
  padding: 32px 26px;
  text-align: center;
  background: var(--bg-card);
}
.guarantee .gnum {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 64px;
  line-height: 1;
  color: var(--terra);
}

/* ── numbered list (landing) ────────────────────────────────── */
.numlist {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 22px;
}
.numlist li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
}
.numlist .body { margin: 0; }

/* ── lowercase-roman bullet list ────────────────────────────── */
.bulletlist {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 22px;
}
.bulletlist li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start;
}
.bulletlist .roman {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--terra);
  padding-top: 1px;
  font-feature-settings: "lnum";
}
.bulletlist .h3 { margin-bottom: 4px; }
.bulletlist .body-sm { margin: 0; }

/* ── masthead ───────────────────────────────────────────────── */
.masthead {
  padding: 24px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.masthead a.wm { text-decoration: none; }

/* ── hero (full-bleed image, overlay masthead + headline) ──── */
.hero {
  position: relative;
  width: 100%;
  height: min(60vh, 660px);
  min-height: 420px;
  background: var(--bg); /* transparent areas of finalimg.png blend into page cream */
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  z-index: 0;
}
/* Gradient: pure cream, transparent → opaque, with a THIN transition zone.
   Full cream is reached by ~hero-y 58%, so the eyebrow + headline sit on
   solid background (not translucent mid-fade), giving max contrast. */
.hero-fade {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 60%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(236, 228, 211, 0)   0%,
    var(--bg)                40%,
    var(--bg)               100%
  );
  pointer-events: none;
}
/* masthead overlay: cream wordmark, light eyebrow, anchored to top */
.hero-masthead {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding: 18px 24px 0;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero-masthead .hero-eyebrow {
  color: var(--terra);
}
/* headline overlay: anchored low over the gradient (cream-leaning area) */
.hero-content {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 24px 28px;
  max-width: var(--content-max);
  margin: 0 auto;
}
.hero-headline {
  font-size: 46px;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.hero-content .eyebrow-rule,
.hero-content .eyebrow-rule .eyebrow {
  color: var(--terra);
}
.hero-content .eyebrow-rule::after {
  background: rgba(193, 78, 30, 0.42); /* terra-tinted hairline for legibility */
}
/* small screens — tighten the height + headline.
   Pin the hero to finalimg.png's real aspect ratio (1192×1207) so the whole
   image — including the "jess (me)" mark on the right — always shows with NO
   side-cropping, on every phone width. (object-fit:cover can't crop when the
   box matches the image ratio.) Fixes iOS Safari zooming/clipping the square. */
@media (max-width: 600px) {
  .hero { height: auto; min-height: 0; aspect-ratio: 1192 / 1207; }
  .hero-headline { font-size: 38px; }
  .hero-content { padding: 0 22px 22px; }
}
@media (max-width: 380px) {
  .hero-headline { font-size: 34px; }
}

/* ── brand wordmark (per logo system v1.0) ──────────────────────
   Mums. — Fraunces 520, opsz 90, SOFT 60. Italic terracotta period
   is part of the mark; never decorative, never optional. */
.wm {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 520;
  font-variation-settings: "opsz" 90, "SOFT" 60, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--terra);
  white-space: nowrap;
  font-size: 22px; /* default masthead size — override on larger surfaces */
}
.wm .dot {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 420;
  margin-left: -0.02em;
  color: var(--terra);
}
.wm.ink, .wm.ink .dot { color: var(--ink); }
.wm.ink .dot { color: var(--terra); } /* keep italic period in terra even on ink wordmark */
.wm.cream, .wm.cream .dot { color: var(--bg-card); }
.wm.cream .dot { color: var(--terra); }

/* ── icon mark (per logo system v1.0) ───────────────────────────
   M. fleuron-monogram. Used for favicon / avatar surfaces.
   When typography-rendered, opsz 144 SOFT 80 + italic drop. */
.ico {
  font-family: var(--serif);
  font-weight: 540;
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 0;
  letter-spacing: -0.04em;
  line-height: 0.78;
  display: inline-flex;
  align-items: baseline;
  color: var(--terra);
  white-space: nowrap;
}
.ico i {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 460;
  margin-left: -0.04em;
  color: inherit;
}
.ico.s {
  font-variation-settings: "opsz" 60, "SOFT" 100;
  font-weight: 600;
  letter-spacing: -0.05em;
}

/* ── footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 40px 24px 32px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.site-footer .footer-grid {
  display: grid; gap: 18px;
}
.site-footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.site-footer .legal { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; }

/* ── cookie banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  background: var(--ink); color: var(--bg-card);
  padding: 18px 18px 16px;
  border: 1px solid rgba(245,239,226,0.18);
  max-width: 520px; margin: 0 auto;
  z-index: 50;
  display: none; /* shown via JS only when consent unrecorded */
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.cookie-banner[data-visible="true"] { display: block; }
.cookie-banner p {
  font-family: var(--serif); font-size: 14px; line-height: 1.45;
  margin: 0 0 12px; color: rgba(245,239,226,0.85);
}
.cookie-banner p a { color: var(--bg-card); }
.cookie-banner .actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.04em;
  padding: 10px 14px;
  border: 1px solid rgba(245,239,226,0.4);
  background: transparent;
  color: var(--bg-card);
  cursor: pointer;
  min-height: 44px;
}
.cookie-banner button.primary {
  background: var(--terra); border-color: var(--terra); color: #FBF7EE;
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .display { font-size: 38px !important; }
  .h2 { font-size: 28px; }
  .section { padding: 44px 20px; }
  .masthead { padding-left: 20px; padding-right: 20px; }
}

/* ── quiz overlay ───────────────────────────────────────────── */
.quiz-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: quiz-in 240ms ease-out;
}
@keyframes quiz-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.quiz-top {
  padding: 18px 24px 8px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--content-max); margin: 0 auto;
}
.quiz-close {
  background: transparent; border: 0; padding: 8px 0;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-mute);
  cursor: pointer; min-height: 44px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.quiz-close .quiz-x {
  font-style: normal; font-size: 22px; line-height: 1;
  color: var(--ink-soft);
}

.quiz-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 24px 56px;
}

.qback {
  background: transparent; border: 0; padding: 8px 0;
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--ink-mute);
  cursor: pointer; min-height: 44px;
  margin-bottom: 6px;
}

/* progress dots */
.qhead { margin-bottom: 22px; }
.qprog {
  display: flex; align-items: center; gap: 8px;
}
.qprog-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule-strong);
}
.qprog-dot.on   { background: var(--terra); border-color: var(--terra); }
.qprog-dot.done { background: var(--ink); border-color: var(--ink); }
.qprog-num {
  margin-left: auto;
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-mute);
  font-feature-settings: "lnum";
}

.qtitle { font-size: 28px; margin: 0 0 8px; }
.qhint  { margin: 0 0 22px; }

.qopts { display: grid; gap: 12px; margin: 18px 0 0; }

/* single-select chips */
.qtap {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--serif);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}
.qtap:active { transform: translateY(1px); }
.qtap.on {
  background: #FBF6E9;
  border-color: var(--terra);
  box-shadow: inset 0 0 0 1px var(--terra);
}
.qtap-label {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 17px; font-weight: 460;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
}
.qtap-meta {
  font-size: 13px; font-style: italic; font-weight: 400;
  color: var(--ink-mute);
}
.qtap-mark {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; color: var(--terra);
  width: 24px; text-align: right;
}

/* multi-select rows */
.qcheck {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: var(--serif);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
}
.qcheck:active { transform: translateY(1px); }
.qcheck.on { background: #FBF6E9; border-color: var(--terra); }
.qcheck-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
  background: var(--bg);
}
.qcheck.on .qcheck-box { background: var(--terra); border-color: var(--terra); }
.qcheck.on .qcheck-box::after {
  content: ""; position: absolute;
  left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #FBF7EE; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.qcheck-label {
  font-size: 17px; font-weight: 460;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.005em;
}

.qfoot { margin-top: 36px; }
.qfoot-cap { margin: 12px 0 0; text-align: center; }

.btn.is-disabled {
  opacity: 0.42; cursor: not-allowed;
  pointer-events: none;
}

/* result + confirm */
/* Archetype mark — small medallion sitting inline with the "Your match"
   eyebrow + hairline. SVG tints via currentColor (set by `color` here). */
.qresult-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(193, 78, 30, 0.10);
  color: var(--terra);
  display: inline-flex; align-items: center; justify-content: center;
}
.qresult-icon svg { width: 27px; height: 27px; display: block; }
.qresult-title { font-size: 40px; margin: 0 0 16px; }
.qresult-name { color: var(--terra); }

/* Archetype photo above the strengths box — full column width, natural ratio */
.qresult-figure { margin: 0 0 28px; }
.qresult-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--rule);
}
.qblurb { font-size: 18px; margin: 0 0 28px; }

.qarchetype {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 22px 22px 24px;
  position: relative;
}
.qarchetype-num {
  position: absolute; top: -12px; left: 18px;
  background: var(--bg-card); padding: 0 8px;
  font-family: var(--serif); font-style: italic;
  font-size: 14px; letter-spacing: 0.12em;
  color: var(--terra);
}
.qsteps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 14px;
}
.qsteps li {
  display: grid; grid-template-columns: 32px 1fr; gap: 10px;
  align-items: start;
  font-family: var(--serif); font-size: 16px; line-height: 1.45;
  color: var(--ink-soft);
}
.qsteps-ix {
  font-style: italic; color: var(--terra);
  font-feature-settings: "lnum";
}

.qform-wrap { padding: 36px 0 0; }
.qform { display: grid; gap: 12px; }
.qfield {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 17px; color: var(--ink);
  letter-spacing: -0.005em;
}
.qfield:focus-visible {
  outline: 2px solid var(--terra); outline-offset: 1px;
}
.qfield::placeholder { color: var(--ink-mute); font-style: italic; }

.qsecondary {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

/* tighten on very small screens */
@media (max-width: 380px) {
  .qresult-title { font-size: 34px; }
  .qtitle { font-size: 26px; }
}
