/* DitchTheGrind — BEM mobile-first stylesheet */

/* ─── Custom properties ──────────────────────────────────────────────────── */
:root {
  /* Warm, paper-cream palette — replaces flat white. The page now reads like
     considered print, not a blank document. */
  --bg:             #FBF6EC;
  --bg-deep:        #F3EBD9;
  --surface:        #FFFFFF;
  --surface-warm:   #FFFBF3;
  --border:         #E8DFCA;
  --border-soft:    rgba(60, 40, 15, 0.08);
  --primary:        #E8572A;
  --primary-hover:  #D44820;
  --primary-soft:   #FFF1E8;
  --text:           #1F160A;
  --ink:            #1F160A;
  --muted:          #7A6E5C;
  --success:        #2D8A5E;
  --error:          #C0392B;
  --radius:         12px;
  --radius-lg:      18px;
  --max-w:          720px;
  --pad:            24px;
  --transition:     0.25s ease;
  /* Warm shadow stack — every shadow in the refresh uses these rather than
     cool grey so the depth reads as ink on paper. */
  --shadow-soft:    0 1px 2px rgba(56, 30, 10, 0.04), 0 8px 24px rgba(56, 30, 10, 0.06);
  --shadow-lift:    0 2px 4px rgba(56, 30, 10, 0.06), 0 16px 40px rgba(56, 30, 10, 0.09);
  --shadow-cta:     0 2px 0 rgba(140, 60, 20, 0.18), 0 14px 28px rgba(232, 87, 42, 0.22);
  /* Display and body face. Fraunces is an optical-size serif — we use heavier
     optical sizes and the SOFT axis for the hero. Body stays Jakarta Sans. */
  --font-display:   'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  --font-body:      'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ─── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Prevent iOS pull-to-refresh from wiping app state */
  overscroll-behavior-y: none;
  /* Ensure sticky header never clips scrolled-to content */
  scroll-padding-top: 68px;
}

/* Same flags on body: Android Chrome sometimes applies “font inflation” to body
   even when html is set; this keeps our px/rem closer to iOS. */
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--font-body);
  background-color: var(--bg);
  /*
   * Layered paper feel:
   *   1. A very subtle warm-to-cooler-cream vertical wash so the top of the
   *      hero sits on a slightly warmer ground than content further down.
   *   2. An inline SVG grain that adds <2% noise — invisible in isolation, but
   *      kills the "blank PDF" feeling on large flat areas.
   * Both are fixed so scroll feels like paper sliding past, not a repeating tile.
   */
  background-image:
    radial-gradient(ellipse 1200px 700px at 50% -10%, rgba(232, 87, 42, 0.055), transparent 60%),
    linear-gradient(180deg, #FDF9F0 0%, var(--bg) 38%, var(--bg) 100%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.10 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  background-size: auto, auto, 220px 220px;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Translucent warm white — picks up the cream ground beneath it so the bar
     feels like paper stock, not a glued-on panel. Safari-safe via -webkit. */
  background: rgba(255, 251, 243, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow:
    0 1px 0 rgba(56, 30, 10, 0.03),
    0 6px 18px rgba(56, 30, 10, 0.06),
    0 12px 30px rgba(56, 30, 10, 0.04);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Viewports up to small tablet / phone landscape: pin header using native window scroll + sticky. */
@media (max-width: 1024px) {
  /*
   * CRITICAL: do NOT set overflow (even overflow-x: hidden) on html or body.
   * iOS Safari silently disables `position: sticky` on descendants whenever html
   * or body has any non-visible overflow value — the header appears to scroll
   * away with the page. Horizontal overflow, if any, must be contained at a
   * deeper wrapper (e.g. `.funnel`), never on the root elements.
   *
   * Sticky + native window scroll is the most reliable header pin on iOS. No
   * body-scroll hack, no position: fixed rubber-band bug, no JS needed.
   */
  .header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    max-width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    /* Keep brand + nav on one row; buttons can otherwise wrap (esp. Android). */
    flex-wrap: nowrap;
  }

  .header__logo {
    white-space: nowrap;
  }

  /* Sticky header occupies natural flow space; no padding offset needed */
  main.funnel {
    padding-top: 0;
    /* Contain horizontal overflow here instead of on html/body (see note above) */
    overflow-x: hidden;
  }

  .static-page__content {
    padding: 48px 24px 80px;
    overflow-x: hidden;
  }

  /*
   * Ensure every active step fills the viewport below the header.
   * Use dvh (dynamic viewport height) so iOS Safari's address-bar show/hide
   * behaviour doesn't leave content taller than the visible area — otherwise
   * the body becomes scrollable and the fixed header rubber-bands off screen.
   * vh fallback for older browsers.
   */
  .step--active {
    min-height: calc(100vh - var(--site-header-offset, 104px));
    min-height: calc(100dvh - var(--site-header-offset, 104px));
  }
}

@media (max-width: 560px) {
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    min-height: 56px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 10px;
    padding-left: var(--pad);
    padding-right: var(--pad);
    gap: 12px;
  }
}

.header__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft, rgba(56, 30, 10, 0.15));
  background: var(--surface);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.header__link:hover,
.header__link:focus-visible {
  color: var(--primary);
  border-color: rgba(232, 87, 42, 0.45);
  background: rgba(255, 246, 232, 0.85);
  outline: none;
}

.header__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.2);
}

.header__static-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__link--current {
  cursor: default;
  pointer-events: none;
  color: var(--primary);
  border-color: rgba(232, 87, 42, 0.4);
  background: rgba(255, 246, 232, 0.9);
}

/* Mobile: text link only — an orange header pill clashed with the hero
   "magic button" when the headline wraps to two lines. */
@media (max-width: 560px) {
  .header__link {
    font-size: 13px;
    padding: 10px 6px;
    line-height: 1.2;
    font-weight: 600;
    background: transparent;
    color: var(--ink);
    border: none;
    text-decoration: underline;
    text-decoration-color: rgba(31, 22, 10, 0.35);
    text-underline-offset: 0.2em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
  }

  .header__link:hover,
  .header__link:focus-visible {
    color: var(--ink);
    background: transparent;
    border: none;
    text-decoration-color: rgba(31, 22, 10, 0.65);
    outline: none;
  }

  .header__link:focus-visible {
    box-shadow: 0 0 0 2px rgba(31, 22, 10, 0.18);
  }

  .header__link--current {
    background: transparent;
    color: var(--ink);
    border: none;
    font-weight: 700;
    text-decoration: none;
  }
}

.header__logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
  word-spacing: 0;
  max-width: 100%;
}

.header__logo:hover .header__logo-grind {
  letter-spacing: -0.01em;
}

.header__logo-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-icon img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 2px 4px rgba(232, 87, 42, 0.25));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header__logo:hover .header__logo-icon img {
  transform: rotate(-4deg);
  filter: drop-shadow(0 3px 8px rgba(232, 87, 42, 0.35));
}

.header__logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  /* Wordmark only — icon stays 38×38; do not set font-size on .header__logo. */
  font-size: clamp(18px, 2.15vw, 24px);
}

/* "DitchThe" — medium weight, dark, sets up the contrast */
.header__logo-ditch {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* "Grind" — max weight, upright, orange with stroke for extra punch */
.header__logo-grind {
  color: var(--primary);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 0.6px var(--primary);
  display: inline-block;
  transition: letter-spacing 0.2s ease;
}

/* ─── Chromium / Android (html.device-android in head) ─
   CSS width is in device-independent pixels (not mm of glass). Chrome can still
   inflate text via accessibility + different metrics vs WebKit — we already set
   text-size-adjust on html + body for everyone; here we only cap header sizes
   with clamp() so large viewports do not outgrow the iPhone bar. Not a second
   “mobile design”, just matching the same layout rules. */
html.device-android,
html.device-android body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.device-android .header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
  padding-bottom: 6px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  gap: 6px;
}

html.device-android .header__logo {
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  gap: 8px;
}

/* Smaller wordmark only — match iOS: same 38px favicon as everywhere. */
html.device-android .header__logo-text {
  font-size: clamp(15px, 2.35vw, 21px);
}

html.device-android .header__logo-icon img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

html.device-android .header__logo-grind {
  -webkit-text-stroke: 0.4px var(--primary);
}

html.device-android .header__link {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

@media (min-width: 561px) {
  html.device-android .header__link {
    padding: 3px 8px;
  }
}

@media (max-width: 560px) {
  html.device-android .header__link {
    padding: 5px 3px;
  }
}

html.device-android .header__nav {
  align-self: center;
  flex-shrink: 0;
}

html.device-android {
  scroll-padding-top: 52px;
}

/* Static /legal pages: subnav block matched desktop padding; re-assert compact bar on Android. */
html.device-android body.static-page .header.header--static-subnav {
  min-height: 44px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 6px);
  padding-bottom: 6px;
  gap: 6px;
}

html.device-android .problem__subheading {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 8px;
}

html.device-android .problem__textarea {
  font-size: 14px;
  line-height: 1.32;
  min-height: 126px;
  padding: 12px 14px 20px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Android Chrome: empty field + long placeholder must not show an inner scrollbar. */
html.device-android .problem__textarea:placeholder-shown {
  overflow-y: hidden;
}

html.device-android .problem__textarea:not(:placeholder-shown) {
  overflow-y: auto;
}

html.device-android .problem__textarea::placeholder {
  font-size: 12.5px;
  line-height: 1.35;
  font-style: normal;
  font-weight: 500;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* ─── Funnel container ───────────────────────────────────────────────────── */
.funnel {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 60px;
}

/* ─── Step visibility & transitions ─────────────────────────────────────── */
.step {
  display: none;
  opacity: 0;
}

.step--active {
  display: block;
  animation: fadeIn var(--transition) forwards;
}

.step--exit {
  animation: fadeOut var(--transition) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── Shared button ──────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform 0.15s ease;
}

.btn--primary {
  /* Subtle top-lit gradient — the fill now has a direction of light, not a
     flat solid — plus a warm double shadow giving the button real presence. */
  background-image: linear-gradient(180deg, #EE6538 0%, var(--primary) 55%, #DE4E22 100%);
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-image: linear-gradient(180deg, #F07143 0%, #E85A2D 55%, #CE4219 100%);
  box-shadow:
    0 3px 0 rgba(140, 60, 20, 0.22),
    0 18px 34px rgba(232, 87, 42, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(140, 60, 20, 0.2), 0 6px 14px rgba(232, 87, 42, 0.18);
}

/*
 * Disabled = "not yet", not "broken". Muted warm outline with italic-serif
 * wouldn't fit the button voice, so we use a soft outline that clearly reads
 * as locked without looking like a greyed-out error. No solid slab.
 */
.btn--primary:disabled {
  opacity: 1;
  background-image: none;
  background-color: transparent;
  color: #A6927A;
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn--primary:disabled:hover,
.btn--primary:disabled:focus-visible {
  background-image: none;
  background-color: transparent;
  color: #A6927A;
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.btn--outline-primary {
  background-color: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn--outline-primary:hover,
.btn--outline-primary:focus-visible {
  background-color: rgba(232, 87, 42, 0.08);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn--outline-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--outline-primary:disabled:hover,
.btn--outline-primary:disabled:focus-visible {
  background-color: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--ghost {
  background-color: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 15px;
  min-height: 44px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--text);
  border-color: var(--muted);
}

/* ─── Loader ─────────────────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
  min-height: 28px;
}

.loader--hidden { display: none; }

.loader__dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  transform: translate3d(0, 0, 0);
  animation: dtg_loader_dot 0.9s infinite ease-in-out;
  will-change: transform, opacity;
}

.loader__dot:nth-child(2) { animation-delay: 0.15s; }
.loader__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dtg_loader_dot {
  0%,
  60%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.35;
  }
  30% {
    transform: translate3d(0, -10px, 0);
    opacity: 1;
  }
}

/* ─── Error message ──────────────────────────────────────────────────────── */
.error-message {
  margin-top: 16px;
  padding: 16px;
  background-color: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.error-message--hidden { display: none; }

.error-message__text {
  color: var(--error);
  font-size: 15px;
  margin-bottom: 12px;
}

.error-message__retry {
  display: inline-block;
  width: auto;
  padding: 8px 20px;
}

/* ─── Step 1: Problem ────────────────────────────────────────────────────── */
.problem {
  padding-top: 16px;
}

.problem__headline {
  /* Body stack for maximum legibility on small screens; Fraunces stays on
     subheads and display moments elsewhere. */
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-variation-settings: normal;
  font-size: clamp(26px, 5.8vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: -0.012em;
}

.problem__headline-magic {
  display: inline-block;
  color: #fff;
  background-color: var(--primary);
  font-weight: 800;
  padding: 0.05em 0.28em 0.08em;
  border-radius: 0.2em;
  line-height: 1.1;
  vertical-align: 0.02em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Narrow screens: "work," moves to the second line (see index markup). */
.problem__headline-fragment--workcomma-desk {
  display: none;
}
.problem__headline-fragment--workcomma-mob {
  display: inline;
}

.problem__headline-line {
  display: block;
  /* Allow wrapping: nowrap + overflow hidden on .problem was clipping
     the end of the first line on narrow phones (e.g. "work" missing). */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Hand-drawn underswoosh under "at work?" — subtle orange brushstroke that
   gives the H1 a crafted, editorial feel without adding noise. */
.problem__headline-line:last-child {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}
.problem__headline-line:last-child::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -0.05em;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 40 2, 80 9, 120 4 S 180 2, 198 6' stroke='%23E8572A' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.problem__subheading {
  font-size: 19px;
  color: #3a362e;
  margin-bottom: 14px;
  line-height: 1.55;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* Plain follow-on: what they actually get, no tech jargon */
.problem__plain-result {
  font-size: 16px;
  color: var(--muted);
  margin: 0 auto 20px;
  line-height: 1.6;
  text-align: center;
  max-width: 33rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Narrow viewports: larger two-line hero (lines split in markup); subheading tighter */
@media (max-width: 640px) {
  .problem {
    overflow-x: hidden;
    /* Base 16px + 10px air under the sticky header (iPhone / Android phones). */
    padding-top: 26px;
  }

  .problem__headline {
    /* Slightly under default narrow clamp (~1px) so "…button at" / "work, what…" can sit on two lines. */
    font-size: clamp(23px, 6.4vw, 33px);
    letter-spacing: -0.02em;
    line-height: 1.18;
    font-weight: 800;
  }

  .problem__subheading {
    line-height: 1.28;
  }

  .problem__plain-result {
    line-height: 1.5;
    margin-bottom: 18px;
  }
}

/* Android narrow: smaller hero than iPhone so the first block stays one line
   (otherwise "If you had a … at" wraps to two + second block = 3 lines). */
@media (max-width: 640px) {
  html.device-android .problem__headline {
    font-size: clamp(19px, 4.9vw, 28px);
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html.device-android .problem__headline-magic {
    padding: 0.04em 0.22em 0.07em;
    line-height: 1.05;
  }
}

/* Desktop / tablet: original break — "at work," on the first line, question on the second. */
@media (min-width: 641px) {
  .problem__headline-fragment--workcomma-desk {
    display: inline;
  }
  .problem__headline-fragment--workcomma-mob {
    display: none;
  }
}

.problem__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem__input-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  /* border and shadow normally come from the textarea; here we proxy them
     so the too-vague panel clips inside the same rounded corners */
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Let focus glow show past the wrap edge; default stays clipped for panels. */
.problem__input-wrap:focus-within {
  overflow: visible;
  z-index: 2;
}

.problem__input-wrap .problem__textarea {
  /* Match vertical rhythm; in-field control removed, spell check runs on Let's go. */
  padding-bottom: 22px;
}

.problem__loader {
  padding: 8px 0 2px;
}

.problem__textarea {
  width: 100%;
  min-height: 128px;
  padding: 18px 18px 22px;
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-soft);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* When too-vague panel is visible the wrap handles the border and radius;
   the textarea's bottom corners must be square so there's no gap. */
.problem__input-wrap:has(.too-vague:not([hidden])) .problem__textarea {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Phones / narrow funnel: taller than desktop default (iPhone; Android uses html.device-android rules below). */
@media (max-width: 1024px) {
  .problem__textarea {
    min-height: 186px;
  }

  .problem__textarea:placeholder-shown {
    overflow-y: hidden;
  }

  .problem__textarea:not(:placeholder-shown) {
    overflow-y: auto;
  }

  .problem__textarea::placeholder {
    line-height: 1.45;
  }
}

.problem__textarea::placeholder {
  color: #A69683;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-body);
  font-size: 0.97em;
  opacity: 1;
}

.problem__textarea:hover {
  border: 2px solid rgba(232, 87, 42, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(56, 30, 10, 0.05),
    0 20px 40px rgba(56, 30, 10, 0.08);
  transform: translateY(-1px);
}

.problem__textarea:focus {
  outline: none;
  border: 2px solid var(--primary);
  /* Full perimeter brand colour + soft orange glow; outer ring visible past 2px border. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(232, 87, 42, 0.35),
    0 0 0 4px rgba(232, 87, 42, 0.14),
    0 0 24px rgba(232, 87, 42, 0.28);
  transform: translateY(-1px);
}

.problem__disclaimer {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ─── Trust strip (below the CTA) ────────────────────────────────────────── */
/*
 * Three small promise chips sat on the page like a watermark. They're not a
 * call to action — they're tiny visual anchors that say "this is a real
 * product, this is what you get". Warm cream surface, hairline border, ink-
 * weighted copy; on hover the cream lifts very slightly.
 */
.trust-strip {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.trust-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: var(--surface-warm);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(56, 30, 10, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.trust-strip__item:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 87, 42, 0.24);
  box-shadow: 0 2px 0 rgba(56, 30, 10, 0.04), 0 6px 14px rgba(56, 30, 10, 0.05);
}

.trust-strip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  flex-shrink: 0;
}

/* Step 1: roomier layout on large screens */
@media (min-width: 1025px) {
  .funnel {
    max-width: 920px;
  }

  .problem {
    padding-top: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .problem__headline-line {
    display: block;
    white-space: normal;
  }

  .problem__headline {
    margin-bottom: 22px;
    white-space: normal;
    font-size: clamp(34px, 4.4vw, 46px);
    letter-spacing: -0.014em;
  }

  .problem__subheading {
    margin-bottom: 28px;
    font-size: 20px;
    line-height: 1.5;
    /* Match textarea width — the textarea fills the funnel container, so let the
       subheading do the same rather than capping it narrower than the input. */
    max-width: 100%;
  }

  .problem__form {
    gap: 18px;
  }

  .problem__textarea {
    padding: 22px;
    min-height: 148px;
    font-size: 17px;
  }

  .problem__input-wrap .problem__textarea {
    padding-bottom: 24px;
  }

  .problem__disclaimer {
    margin-top: 6px;
  }
}

/* ─── Step 2: Questions ──────────────────────────────────────────────────── */
.questions {
  padding-top: 32px;
}

.questions__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 0 0 28px;
  line-height: 1.18;
  text-align: center;
  transition: color 0.2s ease;
}

.questions__title--accent {
  color: var(--primary);
}

.questions__problem-recap {
  font-size: 14px;
  color: var(--muted);
  background-color: var(--surface);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 32px;
  line-height: 1.5;
}

.questions__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
}

.question-block__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.question-block__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.option-btn:hover,
.option-btn:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.option-btn--selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
}

.option-btn--other {
  color: var(--muted);
  font-style: italic;
}

.option-btn--other.option-btn--selected {
  color: #FFFFFF;
  font-style: normal;
}

.option-other-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

.option-other-wrap--hidden {
  display: none;
}

.option-other-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  font-family: inherit;
  /* Must be >=16px — anything smaller triggers iOS Safari auto-zoom on focus
     which shifts the viewport and visually pushes the sticky header off-screen. */
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}

.option-other-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,87,42,0.12);
}

.option-other-confirm {
  padding: 12px 20px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.option-other-confirm:hover {
  opacity: 0.88;
}

.questions__submit--hidden { display: none; }

.questions__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

.questions__summary-row {
  font-size: 14px;
  line-height: 1.5;
}

.questions__summary-q {
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}

.questions__summary-a {
  color: var(--primary);
  font-weight: 700;
}

/* ─── Step 2: Thinking indicator ────────────────────────────────────────── */
/* Kept for any older markup that still uses it; the main experience is
   `.think-scene` below. */
.thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 0 12px;
}

.thinking__label {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px;
}

/* ─── Step 2: Thinking bulb scene ───────────────────────────────────────── */
/*
 * A small animated vignette shown while Claude drafts the solution. It runs
 * on pure CSS — one bulb SVG, a pulsing halo, a flickering filament, and
 * six absolutely-positioned sparks firing outwards at staggered delays.
 * A JS timer swaps the status copy every 1.8s so the page reads as alive.
 */
.think-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 36px;
}

.think-scene__stage {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.think-scene__bulb {
  width: 150px;
  height: 200px;
  animation: sfBulbBob 3.2s ease-in-out infinite;
}

.think-scene__bulb svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Warm halo behind the glass: scale + opacity pulse in sync with a bulb
   that's thinking hard. */
.think-scene__halo {
  transform-origin: 60px 60px;
  transform-box: fill-box;
  animation: sfBulbHalo 2.2s ease-in-out infinite;
}

/* The filament flickers: mostly full on, occasional sharp dips, like an
   old incandescent that's working overtime. keyframe percentages are
   intentionally uneven to avoid a metronome feel. */
.think-scene__filament,
.think-scene__filament-node {
  filter: drop-shadow(0 0 4px rgba(232, 87, 42, 0.55));
  animation: sfBulbFlicker 2.6s linear infinite;
}

/* Glass itself sits still — the bob moves the whole bulb together. */
.think-scene__glass {
  transform-origin: 60px 75px;
}

/* Sparks: small warm dots that spawn near the bulb centre and fly outward
   before fading. Each spark gets a unique direction/delay via BEM modifier. */
.think-scene__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFD27A 0%, #FF8436 60%, rgba(255, 132, 54, 0) 100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.think-scene__spark--1 { animation: sfSpark1 2.4s ease-out infinite; animation-delay: 0.00s; }
.think-scene__spark--2 { animation: sfSpark2 2.6s ease-out infinite; animation-delay: 0.35s; }
.think-scene__spark--3 { animation: sfSpark3 2.8s ease-out infinite; animation-delay: 0.75s; }
.think-scene__spark--4 { animation: sfSpark4 2.5s ease-out infinite; animation-delay: 1.10s; }
.think-scene__spark--5 { animation: sfSpark5 2.7s ease-out infinite; animation-delay: 1.55s; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.think-scene__spark--6 { animation: sfSpark6 2.3s ease-out infinite; animation-delay: 1.95s; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }

.think-scene__label {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  text-align: center;
  letter-spacing: 0;
  min-height: 1.4em;
  opacity: 1;
  transition: opacity 0.28s ease;
}

/* Fade helper for the rotating copy — added on next frame after text swap. */
.think-scene__label--in {
  opacity: 1;
}

.think-scene__label:not(.think-scene__label--in) {
  opacity: 0;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */

@keyframes sfBulbBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes sfBulbHalo {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50%      { opacity: 0.95; transform: scale(1.08); }
}

/* Mostly 1, with two quick dips. Mimics a real flicker — the dips land at
   odd beats (17%, 19%, 42%, 44%) so it reads as unpredictable. */
@keyframes sfBulbFlicker {
  0%, 16%, 20%, 41%, 45%, 100% { opacity: 1; }
  17%, 19% { opacity: 0.35; }
  42%, 44% { opacity: 0.55; }
  62%      { opacity: 0.8; }
}

/*
 * Each spark has its own flight path — angle, distance, and size vary so the
 * cluster feels organic. Center of the stage is the launch point; we
 * translate outward then fade.
 */
@keyframes sfSpark1 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(72px, -86px) scale(0.4); opacity: 0; }
}
@keyframes sfSpark2 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(-78px, -74px) scale(0.4); opacity: 0; }
}
@keyframes sfSpark3 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(92px, -30px) scale(0.4); opacity: 0; }
}
@keyframes sfSpark4 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(-90px, -34px) scale(0.4); opacity: 0; }
}
@keyframes sfSpark5 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(42px, -100px) scale(0.35); opacity: 0; }
}
@keyframes sfSpark6 {
  0%   { transform: translate(0, 0) scale(0.2);  opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(-46px, -96px) scale(0.35); opacity: 0; }
}

/* Honour user's motion preferences — keep the bulb visible but stop the
   animations if they asked the OS not to animate. */
@media (prefers-reduced-motion: reduce) {
  .think-scene__bulb,
  .think-scene__halo,
  .think-scene__filament,
  .think-scene__filament-node,
  .think-scene__spark {
    animation: none;
  }
  .think-scene__halo { opacity: 0.7; }
  .think-scene__spark { display: none; }
}

/* ─── Step 2: Reflection teaser ──────────────────────────────────────────── */
/*
 * One centred column: small idea-bulb, reflection paragraph, CTA, security
 * seal. Deliberately quiet — no dividers, no secondary copy, nothing between
 * the reflection and the button so the read-to-click motion is frictionless.
 */
.reflection-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
  text-align: center;
}

/* Small idea-bulb that sits above the reflection. Faint warm shadow below
   so it looks like it's resting on the paper, plus a very gentle glow pulse
   on the halo behind it. */
.reflection-teaser__bulb {
  width: 56px;
  height: 70px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 8px rgba(232, 87, 42, 0.18));
  animation: sfMiniBulbGlow 3s ease-in-out infinite;
}

.reflection-teaser__bulb svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes sfMiniBulbGlow {
  0%, 100% { filter: drop-shadow(0 4px 8px rgba(232, 87, 42, 0.18)); }
  50%      { filter: drop-shadow(0 5px 14px rgba(232, 87, 42, 0.35)); }
}

.reflection-teaser__text {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-variation-settings: normal;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  font-style: normal;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 36rem;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
  .reflection-teaser__text {
    font-size: 17px;
    line-height: 1.68;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* CTA — tighter than the Step-1 full-width slab. Natural width, pill shape,
   subtle arrow that nudges right on hover. */
.reflection-teaser__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-width: 260px;
  max-width: 100%;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.005em;
  margin: 0 auto;
}

.reflection-teaser__btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.reflection-teaser__btn:hover .reflection-teaser__btn-arrow,
.reflection-teaser__btn:focus-visible .reflection-teaser__btn-arrow {
  transform: translateX(3px);
}

/* ─── Security seal (wax-stamp style trust mark) ─────────────────────────── */
/*
 * Embossed-look seal that sits quietly under the CTA. Not interactive, not
 * distracting — it reads in peripheral vision as "this is a real, considered
 * operation" at exactly the moment the visitor is about to look at pricing.
 */
.security-seal {
  width: 110px;
  height: 110px;
  margin: 36px auto 8px;
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.security-seal:hover {
  opacity: 1;
  transform: rotate(-3deg);
}

.security-seal svg {
  width: 100%;
  height: 100%;
  display: block;
  /* Soft warm drop-shadow so the seal sits on the page like pressed paper,
     not a flat SVG layer. */
  filter: drop-shadow(0 2px 3px rgba(56, 30, 10, 0.12));
}

/* ─── Step 3: Solution deck (2×3 stamp-tile grid + shared stage) ──────────
 *
 * Each tile is a warm paper card carrying a "wax stamp" illustration —
 * a cream circle with dashed inner & outer rings, orange icon centred,
 * mirroring the security seal and light-bulb aesthetic used elsewhere.
 * Clicking a tile reveals its content in the stage below; only one
 * panel is open at any time, so every section gets calm, focused room.
 */
.sol-deck {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

/* Desktop and tablet: overlay is a pass through wrapper, stage sits under the grid. */
@media (min-width: 768px) {
  .sol-deck__overlay {
    display: block;
  }

  .sol-deck__overlay-scrim {
    display: none;
  }
}

/* Narrow viewports: full screen lightbox; overlay hidden until a tile opens it. */
@media (max-width: 767px) {
  .sol-deck__overlay:not(.sol-deck__overlay--open) {
    display: none;
  }

  .sol-deck__overlay--open {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    /* Full-viewport "page" — no dimmer peeking through behind tiles (overlay
       must be a direct child of body: see index.html). */
    background-color: var(--bg);
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    /* This layer does not scroll; only .sol-deck__stage may. Stops the empty
       flex area from becoming a second scroll that rubber-bands to the page. */
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .sol-deck__overlay--open .sol-deck__overlay-scrim {
    /* Tap-out target removed: layer is document-rooted, solid bg covers the
       app; close = header control or system back. */
    display: none;
  }

  .sol-deck__overlay--open .sol-deck__stage {
    position: relative;
    z-index: 1;
    /* Shrink to content when short: no “scroll” through empty space. */
    flex: 0 1 auto;
    align-self: stretch;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 0;
    /* Fill overlay’s padded inner box; only scroll when content exceeds it. */
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    /* Allow vertical scroll in the stage even when the page uses touch-action on host. */
    touch-action: pan-y;
    /* Edge-to-edge sheet, reads as one continuous page, not a floating card. */
    border-radius: 0;
    box-shadow: none;
  }
}

/* Mobile scroll lock (pairs with app.js: body is position:fixed + top offset) */
html.sol-deck-modal-open {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.sol-deck-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.sol-deck__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 560px) {
  .sol-deck__grid { grid-template-columns: 1fr; }
}

.sol-deck__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft, rgba(56, 30, 10, 0.12));
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-soft, 0 1px 2px rgba(56, 30, 10, 0.06), 0 6px 16px -6px rgba(56, 30, 10, 0.10));
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
}

/* Gentle warm halo on hover — like a card being lifted off the desk. */
.sol-deck__tile:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 87, 42, 0.35);
  box-shadow: 0 3px 6px rgba(56, 30, 10, 0.08), 0 14px 28px -10px rgba(232, 87, 42, 0.22);
}

.sol-deck__tile:hover .sol-stamp { transform: rotate(-4deg) scale(1.03); }
.sol-deck__tile:hover .sol-stamp__icon { color: #D64E23; }

.sol-deck__tile:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.18), var(--shadow-soft);
}

/* Active state: this tile owns the stage right now. */
.sol-deck__tile--active {
  background: linear-gradient(180deg, rgba(255, 246, 232, 0.9) 0%, rgba(255, 251, 243, 0.9) 100%);
  border-color: rgba(232, 87, 42, 0.55);
  box-shadow:
    0 2px 4px rgba(56, 30, 10, 0.08),
    0 14px 32px -12px rgba(232, 87, 42, 0.30),
    inset 0 0 0 1px rgba(232, 87, 42, 0.25);
}

.sol-deck__tile--active .sol-stamp { transform: rotate(-6deg); }

.sol-deck__tile-title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-variation-settings: 'opsz' 60;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

.sol-deck__tile-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  max-width: 22ch;
}

/* ─── Wax-stamp illustration (used on tiles + stage header) ────────────── */
.sol-stamp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 246, 232, 0.9) 45%, rgba(251, 231, 205, 0.85) 100%);
  border: 1.5px solid rgba(47, 38, 26, 0.55);
  filter: drop-shadow(0 3px 6px rgba(56, 30, 10, 0.14));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Dashed inner ring — gives the stamp its embossed feel. */
.sol-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 38, 26, 0.32);
  pointer-events: none;
}

/* Hairline outer ring — completes the seal silhouette. */
.sol-stamp::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 38, 26, 0.22);
  pointer-events: none;
}

.sol-stamp__icon {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  color: var(--primary, #E8572A);
  transition: color 0.18s ease, transform 0.25s ease;
}

.sol-stamp__icon i { color: inherit; }

/* ─── Stage: shared panel area below the grid ───────────────────────────── */
.sol-deck__stage {
  background: var(--surface);
  border: 1.5px solid var(--border-soft, rgba(56, 30, 10, 0.12));
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow-lift, 0 4px 10px rgba(56, 30, 10, 0.08), 0 24px 48px -18px rgba(56, 30, 10, 0.18));
  padding: 22px 24px 26px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sol-deck__stage--open {
  opacity: 1;
  transform: translateY(0);
}

.sol-deck__stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft, rgba(56, 30, 10, 0.12));
}

.sol-deck__stage-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Miniature stamp in the stage header, echoing the tile you just pressed. */
.sol-deck__stage-stamp {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 246, 232, 0.9) 45%, rgba(251, 231, 205, 0.85) 100%);
  border: 1.25px solid rgba(47, 38, 26, 0.55);
  filter: drop-shadow(0 2px 4px rgba(56, 30, 10, 0.14));
}

.sol-deck__stage-stamp::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 38, 26, 0.3);
}

.sol-deck__stage-stamp .sol-stamp__icon {
  font-size: 17px;
}

.sol-deck__stage-title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-variation-settings: 'opsz' 72;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

.sol-deck__stage-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.25px solid var(--border-soft, rgba(56, 30, 10, 0.15));
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sol-deck__stage-close:hover {
  background: rgba(232, 87, 42, 0.08);
  border-color: rgba(232, 87, 42, 0.4);
  color: var(--primary);
  transform: rotate(90deg);
}

.sol-deck__stage-close:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.2);
}

.sol-deck__panel {
  padding: 4px 0 0;
  animation: fadeIn 0.28s ease forwards;
}

@media (max-width: 560px) {
  .sol-deck__stage { padding: 18px 18px 22px; }
  .sol-deck__stage-title { font-size: 20px; }
  .sol-deck__stage-stamp { width: 38px; height: 38px; }
  .sol-deck__stage-stamp .sol-stamp__icon { font-size: 14px; }
  .sol-deck__tile { padding: 18px 14px 16px; }
  .sol-stamp { width: 66px; height: 66px; }
  .sol-stamp__icon { font-size: 24px; }
  .sol-deck__tile-title { font-size: 18px; }
  .sol-deck__tile-hint { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-deck__tile,
  .sol-deck__stage,
  .sol-stamp,
  .sol-deck__stage-close { transition: none; }
  .sol-deck__tile:hover { transform: none; }
  .sol-deck__tile:hover .sol-stamp,
  .sol-deck__tile--active .sol-stamp { transform: none; }
  .sol-deck__panel { animation: none; }
}

/* ─── Step 3: Solution ───────────────────────────────────────────────────── */
.solution {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Proposal-first: short summary + CTAs. Tile deck hidden until plan mode. */
.solution:not(.solution--plan-mode) .sol-deck {
  display: none;
}

.solution--plan-mode .solution__proposal {
  display: none;
}

.solution--plan-mode .sol-deck {
  display: flex;
}

.solution__proposal {
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
  padding: 22px 20px 24px;
  background: var(--card-bg, #fffdf8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 1px 0 rgba(47, 38, 26, 0.04), 0 12px 32px -18px rgba(47, 38, 26, 0.18);
}

.solution__proposal-kicker {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.25;
}

.solution__proposal-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
  font-weight: 500;
}

.solution__proposal-build {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.4;
}

.solution__proposal-build-label {
  font-weight: 700;
  margin-right: 0.25em;
}

.solution__proposal-build-value {
  color: var(--primary);
  font-weight: 800;
}

.solution__proposal-ownership {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 16px;
}

.solution__proposal-prompt {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 500;
}

.solution__proposal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.solution__proposal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.solution__proposal-cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.solution__proposal-cta:hover .solution__proposal-cta-arrow,
.solution__proposal-cta:focus-visible .solution__proposal-cta-arrow {
  transform: translateX(3px);
}

.solution__proposal-micro {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 6px;
}

.solution__proposal-plan {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.solution__proposal-plan:hover,
.solution__proposal-plan:focus-visible {
  color: var(--text);
  border-color: var(--ink);
  background-color: rgba(47, 38, 26, 0.03);
  outline: none;
}

@media (min-width: 560px) {
  .solution__proposal {
    padding: 26px 28px 28px;
  }
}

/* ─── Solution: header & problem summary ─────────────────────────────────── */
.solution__header {}

.solution__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.solution__problem-summary {
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 600;
}

/* ─── Solution: single scroll (no tabs) ─────────────────────────────────── */
.solution__section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.2;
}

.solution__tab-panel {
  padding: 8px 4px 4px;
  border: none;
  background: transparent;
}

.solution__tab-panel + .solution__tab-panel {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.solution__tab-panel--hidden {
  display: none;
}

/* ─── Solution: empathetic reflection ───────────────────────────────────── */
.solution__reflection-wrap {
  margin: 0;
}

.solution__reflection {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  color: var(--text);
  font-style: normal;
  font-weight: 400;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 1024px) {
  .solution__reflection {
    font-size: 16px;
    line-height: 1.68;
    font-weight: 500;
  }
}

/* ─── Questions: open-text input (static Q3 / Q4) ───────────────────────── */
.option-text-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .option-text-wrap {
    flex-direction: column;
  }

  .option-text-confirm {
    width: 100%;
  }
}

.option-text-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  font-family: inherit;
  /* Must be >=16px — anything smaller triggers iOS Safari auto-zoom on focus
     which shifts the viewport and visually pushes the sticky header off-screen. */
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}

.option-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,87,42,0.12);
}

.option-text-confirm {
  padding: 12px 20px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.option-text-confirm:hover {
  opacity: 0.88;
}

/* ─── Solution: how it works ─────────────────────────────────────────────── */
/* ── Requirements tab ──────────────────────────────────────────────────── */
.req__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.req__block {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.req__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.req__problem {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.req__answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.req__row {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.req__question {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.req__answer {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── How it works ──────────────────────────────────────────────────────── */
.solution__how-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  margin-top: 16px;
}

.solution__how-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: howsteps;
  padding: 0;
  margin: 0;
}

.solution__how-steps li {
  counter-increment: howsteps;
  display: flex;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.solution__how-steps li::before {
  content: counter(howsteps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background-color: var(--primary);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Demo before/after blocks ───────────────────────────────────────────── */
.demo {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.demo__block {
  border-radius: var(--radius);
  overflow: hidden;
}

.demo__block--before {
  border: 1px solid #F0D9C8;
  background-color: #FDF6F0;
}

.demo__block--after {
  border: 1px solid #C2E0D0;
  background-color: #EDF7F2;
}

.demo__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B85C2A;
  padding: 10px 16px 6px;
  border-bottom: 1px solid #F0D9C8;
  background-color: rgba(232, 87, 42, 0.05);
}

.demo__label--after {
  color: var(--success);
  border-bottom-color: #C2E0D0;
  background-color: rgba(45, 138, 94, 0.05);
}

.demo__content {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
  padding: 14px 16px;
  margin: 0;
  color: var(--text);
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo__content--after {
  color: var(--text);
  max-height: none;
}

.demo__text {
  white-space: pre-wrap;
  display: block;
}

/* Photo placeholder box */
.demo__photo {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  max-width: 220px;
  margin: 0;
}

.demo__photo-frame {
  width: 200px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px dashed var(--border);
  background-color: rgba(0, 0, 0, 0.02);
}

.demo__block--before .demo__photo-frame {
  border-color: #E0B89A;
  background-color: rgba(232, 87, 42, 0.05);
}

.demo__block--after .demo__photo-frame {
  border-color: #9FCFB8;
  background-color: rgba(45, 138, 94, 0.05);
}

.demo__photo-icon {
  font-size: 28px;
  line-height: 1;
  opacity: 0.6;
  color: inherit;
}

.demo__photo-caption {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-style: italic;
  max-width: 200px;
}

.demo__block--before .demo__photo-caption {
  color: #B85C2A;
}

.demo__block--after .demo__photo-caption {
  color: var(--success);
}

@media (max-width: 480px) {
  .demo__photo-frame {
    width: 100%;
    max-width: 260px;
    height: 120px;
  }
  .demo__photo,
  .demo__photo-caption {
    max-width: 100%;
  }
}

.demo__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.demo__divider::before,
.demo__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.demo__divider-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  white-space: nowrap;
}

/* ─── Tier badge ─────────────────────────────────────────────────────────── */
.solution__tier-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 16px;
}

.solution__tier-badge:empty {
  display: none;
}

.solution__currency-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 12px;
  max-width: 480px;
}

.solution__currency-note--hidden {
  display: none;
}

/* ─── Investment block ───────────────────────────────────────────────────── */
.solution__investment {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.solution__investment-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.solution__investment-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.solution__investment-row:last-of-type {
  border-bottom: none;
}

.solution__investment-label {
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.solution__investment-sublabel {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  opacity: 0.75;
}

.solution__investment-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.solution__investment-value--ongoing {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  text-align: right;
  max-width: 58%;
  white-space: pre-line;
}

@media (max-width: 599px) {
  .solution__investment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .solution__investment-value,
  .solution__investment-value--ongoing {
    max-width: 100%;
    line-height: 1.45;
    text-align: left;
  }
}

.solution__roi {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

.solution__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.solution__cta {
  margin-top: 0;
}

/* Full-bleed footer inside funnel (match homepage bar) */
.solution__site-footer,
.funnel__site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
}

.solution__site-footer {
  margin-top: 28px;
}

.funnel__site-footer {
  margin-top: 40px;
  padding-bottom: 8px;
}

/* ─── Step 4: Contact ────────────────────────────────────────────────────── */
.contact {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact__heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.contact__subheading {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.contact__back {
  align-self: flex-start;
  width: auto;
  min-height: 44px;
  padding: 10px 20px;
  margin-bottom: 20px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.contact__optional {
  font-weight: 400;
  color: var(--muted);
}

.contact__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  transition: border-color var(--transition);
}

.contact__input:focus {
  outline: none;
  border-color: var(--primary);
}

.contact__input::placeholder { color: var(--muted); }

.contact__field--consent {
  gap: 10px;
}

.contact__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
}

.contact__consent-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ─── Thank you ──────────────────────────────────────────────────────────── */
.thankyou {
  padding-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.thankyou--hidden { display: none; }

.thankyou__icon {
  width: 64px;
  height: 64px;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.thankyou__icon i {
  line-height: 1;
}

.thankyou__heading {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.thankyou__message {
  font-size: 18px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.6;
}

.thankyou__close {
  margin-top: 8px;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

/* ─── Modals ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal--hidden { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 8, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.2s ease forwards;
}

.modal__icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.modal__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal__message {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal__close {
  max-width: 280px;
  margin: 0 auto;
}

.modal__countdown {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
}

/* ─── Too-vague inline feedback (step 1) ────────────────────────────────── *
 * Lives inside .problem__input-wrap so it visually attaches to the textarea.
 * When visible, the parent wrap gets a warm orange border via the sibling
 * selector below to signal the textarea needs more detail.
 */
.too-vague {
  border-top: 1px solid rgba(232, 87, 42, 0.22);
  background: rgba(255, 248, 240, 0.95);
  padding: 14px 16px 16px;
  border-radius: 0 0 var(--radius-lg, 18px) var(--radius-lg, 18px);
  animation: fadeIn 0.2s ease forwards;
}

.too-vague[hidden] { display: none; }

/* Highlight the whole input box when the hint is showing */
.problem__input-wrap:has(.too-vague:not([hidden])) {
  border: 2px solid rgba(232, 87, 42, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.10), var(--shadow-lift) !important;
}

.too-vague__message {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 10px;
}

.too-vague__suggestion-wrap { margin: 0; }
.too-vague__suggestion-wrap[hidden] { display: none; }

/* Suggestion — looks like a small ghost button with a try-this arrow */
.too-vague__suggestion-btn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: #fff;
  border: 1.5px solid rgba(232, 87, 42, 0.3);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.too-vague__suggestion-btn::before {
  content: "→";
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
  margin-top: 1px;
}

.too-vague__suggestion-btn:hover {
  border-color: var(--primary);
  background: rgba(232, 87, 42, 0.04);
}

.too-vague__suggestion-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.18);
}

/* ─── Too-broad modal extras ─────────────────────────────────────────────── */
.broad-modal__box {
  max-width: 480px;
  text-align: left;
}

.broad-modal__icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.broad-modal__title {
  color: var(--text);
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-variation-settings: 'opsz' 60;
  font-size: 22px;
}

.broad-modal__message {
  text-align: left;
  margin-bottom: 18px;
}

.broad-modal__examples {
  margin-bottom: 22px;
}

.broad-modal__examples-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.broad-modal__examples-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.broad-modal__example-btn {
  width: 100%;
  text-align: left;
  padding: 11px 14px 11px 38px;
  background: var(--surface-warm, #FFF8F0);
  border: 1.5px solid var(--border-soft, rgba(56,30,10,0.12));
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  position: relative;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.12s ease;
  line-height: 1.4;
}

/* Arrow prefix */
.broad-modal__example-btn::before {
  content: "→";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--primary);
  transition: transform 0.15s ease;
}

.broad-modal__example-btn:hover {
  border-color: rgba(232, 87, 42, 0.45);
  background: rgba(232, 87, 42, 0.05);
  transform: translateX(2px);
}

.broad-modal__example-btn:hover::before {
  transform: translateY(-50%) translateX(3px);
}

.broad-modal__example-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.18);
}

.broad-modal__close {
  max-width: 100%;
  width: 100%;
}

/* ─── Back button (above every question) ────────────────────────────────── */
.question-block__back-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.question-block__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.question-block__back:hover,
.question-block__back:focus-visible {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--text);
  border-color: var(--text);
  outline: none;
}

.question-block__back-arrow {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ─── Question progress indicator ───────────────────────────────────────── */
.question-block__progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.question-block__progress-bar {
  width: 100%;
  height: 3px;
  background-color: var(--border);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.question-block__progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─── ROI panel ──────────────────────────────────────────────────────────── */
/* ── Next steps tab ────────────────────────────────────────────────────── */
.next__panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.next__notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: rgba(232, 87, 42, 0.05);
  border: 1px solid rgba(232, 87, 42, 0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.next__notice-icon {
  color: var(--primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.next__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.next__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.next__step:last-child {
  border-bottom: none;
}

.next__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.next__step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next__step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.next__step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Next steps CTA row ─────────────────────────────────────────────────── */
/*
 * Two-button row that lives at the bottom of the Next steps panel. Primary
 * "Discuss further" is the warm orange gradient CTA, matching the hero
 * button. Secondary "Not for me" is a quiet ghost — it sits next to the
 * primary, same height, but clearly subordinate.
 */
.next__cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.next__cta {
  /* Base overrides on top of .btn — pill shape, natural weight, matching
     letter-spacing with the hero CTA. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 999px;
  min-height: 52px;
  font-size: 16px;
  letter-spacing: 0.005em;
}

.next__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.next__cta--primary:hover .next__cta-arrow,
.next__cta--primary:focus-visible .next__cta-arrow {
  transform: translateX(3px);
}

/* "Not for me" — deliberately quiet. No solid fill, warm border, muted copy.
   On hover picks up a touch of ink so it still reads as interactive. */
.next__cta--decline {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-weight: 600;
  box-shadow: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.next__cta--decline:hover,
.next__cta--decline:focus-visible {
  color: var(--text);
  border-color: var(--ink);
  background-color: rgba(47, 38, 26, 0.03);
  outline: none;
}

.next__cta--decline[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--ink);
  background-color: rgba(47, 38, 26, 0.04);
}

@media (min-width: 560px) {
  .next__cta-row { flex-direction: row; }
  .next__cta     { flex: 1; width: auto; }
}

/* ─── Decline feedback card ──────────────────────────────────────────────── */
/*
 * Decline modal — shown as a centred popup when "Not for me" is clicked.
 * The modal shell (.decline-modal) handles the overlay + focus trap;
 * the inner .decline-feedback holds the reason chips and textarea.
 */

/* ── Modal shell ─────────────────────────────────────────────────────────── */
.decline-modal {
  position: fixed;
  inset: 0;
  /* Must sit above #sol-deck-overlay (z-index 10000) when "Not for me" opens. */
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.decline-modal[hidden] { display: none !important; }

.decline-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.55);
  backdrop-filter: blur(3px);
  animation: sfBackdropIn 0.2s ease forwards;
}

@keyframes sfBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.decline-modal__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg, #FAF7F2);
  border-radius: var(--radius-lg, 18px);
  box-shadow:
    0 8px 24px rgba(30, 20, 10, 0.18),
    0 32px 64px rgba(30, 20, 10, 0.24);
  animation: sfSheetIn 0.28s cubic-bezier(0.34, 1.36, 0.64, 1) forwards;
}

@keyframes sfSheetIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.decline-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.decline-modal__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-variation-settings: 'opsz' 60;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.decline-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.25px solid var(--border-soft, rgba(56, 30, 10, 0.15));
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.decline-modal__close:hover {
  background: rgba(232, 87, 42, 0.08);
  color: var(--primary);
  transform: rotate(90deg);
}

.decline-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.25);
}

/* ── Inner feedback form (same structure as before) ──────────────────────── */
.decline-feedback {
  padding: 16px 24px 24px;
}

.decline-feedback__lead {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 48;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 16px;
}

.decline-feedback__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.decline-feedback__option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease,
              box-shadow 0.18s ease, transform 0.12s ease;
}

.decline-feedback__option:hover,
.decline-feedback__option:focus-visible {
  border-color: rgba(232, 87, 42, 0.4);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.08);
  outline: none;
}

.decline-feedback__option--selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.15);
}

.decline-feedback__option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.decline-feedback__option--selected .decline-feedback__option-icon {
  background: var(--primary);
  color: #ffffff;
}

.decline-feedback__option-label {
  flex: 1;
}

.decline-feedback__text-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.decline-feedback__text-optional {
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}

.decline-feedback__text {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.decline-feedback__text::placeholder {
  color: #A69683;
  font-style: italic;
}

.decline-feedback__text:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.14);
}

.decline-feedback__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.decline-feedback__submit {
  width: auto;
  min-width: 180px;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 15px;
}

.decline-feedback__thanks {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(45, 138, 94, 0.08);
  border: 1px solid rgba(45, 138, 94, 0.25);
  border-radius: 10px;
  margin-top: 10px;
  animation: fadeIn 0.35s ease;
}

.decline-feedback__thanks[hidden] { display: none; }

.decline-feedback__thanks-icon {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
}

.decline-feedback__thanks p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ─── Desktop refinements (min 600px) ───────────────────────────────────── */
@media (min-width: 600px) {
  .question-block__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .option-btn {
    min-width: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING EXTRAS — below-fold sections (examples, how it works, footer)
   ══════════════════════════════════════════════════════════════════════════ */

.landing-extras { }
.landing-extras--hidden { display: none; }

/* ─── Examples strip ────────────────────────────────────────────────────── */
.examples {
  /* Very subtle band — a hair deeper than the hero cream, with a hairline
     top divider. Gives the section the feel of a new page fold rather than
     just scrolling into more of the same. */
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding: 72px 24px;
}

.examples__inner {
  max-width: 680px;
  margin: 0 auto;
}

.examples__heading {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 72;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.examples__lede {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 36px;
}

.examples__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.examples__card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.5s ease, transform 0.4s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
  cursor: default;
}

.examples__card:hover {
  box-shadow: var(--shadow-lift);
  border-left-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* JS animation — cards start hidden, fade in on scroll */
.examples--js .examples__card {
  opacity: 0;
  transform: translateY(12px);
}

.examples--js .examples__card--visible {
  opacity: 1;
  transform: translateY(0);
}

.examples--js .examples__card--visible:hover {
  transform: translateY(-2px);
}

/* Mobile: stat on top, centred */
.examples__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  order: -1;
}

.examples__stat-num {
  font-size: 60px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -2px;
}

.examples__stat-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.examples__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.examples__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.examples__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.examples__input {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.examples__result {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.6;
}

/* Desktop: side-by-side 70/30 */
@media (min-width: 640px) {
  .examples__card {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .examples__body {
    flex: 0 0 70%;
    padding-right: 28px;
    border-right: 1px solid var(--border);
  }

  .examples__stat {
    flex: 0 0 30%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 24px;
    border-bottom: none;
    order: 0;
    gap: 6px;
  }

  .examples__stat-num { font-size: 68px; }
}

/* ─── About (home teaser + /about.html product blocks) ─────────────────── */
.about-dtg {
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 60px;
}

.about-dtg__inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-dtg__heading {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 72;
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.about-dtg__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  text-align: center;
}

.about-dtg__link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.about-dtg__link:hover {
  text-decoration: underline;
}

.about-dtg__product {
  margin: 0;
}

.about-dtg__product + .about-dtg__product {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 30, 10, 0.1);
}

.about-dtg__product-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.about-dtg__product-link {
  color: var(--primary);
  text-decoration: none;
}

.about-dtg__product-link:hover {
  text-decoration: underline;
}

.about-dtg__product-desc {
  text-align: left;
}

/* ─── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
  background: #F7F8FA;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-it-works__inner {
  max-width: 720px;
  margin: 0 auto;
}

.how-it-works__heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile: stacked with horizontal rule between */
.how-it-works__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.how-it-works__step:first-child { padding-top: 0; }
.how-it-works__step:last-child  { border-bottom: none; padding-bottom: 0; }

.how-it-works__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works__icon svg {
  width: 32px;
  height: 32px;
}

.how-it-works__num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 87, 42, 0.30);
}

.how-it-works__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}

.how-it-works__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.how-it-works__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Desktop: horizontal 3-column with vertical dividers */
@media (min-width: 640px) {
  .how-it-works__steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }

  .how-it-works__step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 36px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    gap: 10px;
  }

  .how-it-works__step:first-child { padding-left: 0; }
  .how-it-works__step:last-child  { border-right: none; padding-right: 0; padding-bottom: 0; }

  .how-it-works__icon {
    width: 48px;
    height: 48px;
  }

  .how-it-works__icon svg {
    width: 38px;
    height: 38px;
  }

  .how-it-works__num {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .how-it-works__body {
    align-items: center;
    padding-top: 0;
    gap: 6px;
  }
}

/* ─── Second CTA ─────────────────────────────────────────────────────────── */
.second-cta {
  background: var(--bg);
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.second-cta__nudge {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.second-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.second-cta__btn {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* ─── Trust line ─────────────────────────────────────────────────────────── */
.trust-line {
  background: var(--bg);
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.trust-line__text {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Site footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.site-footer__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.site-footer__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.site-footer__copy {
  font-size: 12px;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer__sep {
  font-size: 11px;
  color: var(--border);
}

.site-footer__legal {
  font-size: 11px;
  color: var(--border);
  line-height: 1.5;
}

/* ─── Cookie bar (floating warm pill, bottom-left) ──────────────────────── */
/*
 * Replaced the full-width black slab. The old bar dominated every screenshot
 * and fought the cream palette; this version sits like a business card —
 * warm paper, hairline border, warm shadow, small and out of the way.
 */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 440px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  z-index: 9000;
}

.cookie-bar--hidden { display: none; }

.cookie-bar__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
  margin: 0;
}

.cookie-bar__link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cookie-bar__btn:hover { background: #000; transform: translateY(-1px); }

@media (min-width: 640px) {
  .cookie-bar {
    right: auto;
    max-width: 420px;
  }
}

/* ─── Static pages (privacy, terms) ─────────────────────────────────────── */
.static-page {
  background: var(--bg);
}

.static-page__content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.static-page__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.static-page__section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.static-page__section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.static-page__list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.static-page__list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.static-page__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}

.static-page__text:last-child {
  margin-bottom: 0;
}

.static-page__content--about {
  max-width: 720px;
}

.static-page__back {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.static-page__back:hover { text-decoration: underline; }

/* Static legal pages: explicit Close control next to logo (cookie bar links here). */
body.static-page .header.header--static-subnav {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: 12px;
}

@media (max-width: 560px) {
  body.static-page .header.header--static-subnav {
    flex-direction: row;
    height: auto;
    min-height: 56px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 12px;
  }
}

.header__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.header__close:hover,
.header__close:focus-visible {
  color: var(--primary);
  border-color: rgba(232, 87, 42, 0.45);
  background: var(--primary-soft);
  outline: none;
}

