/* ==========================================================================
   She Thrives Club — "What Happens After “I Want This”?"
   Single warm-light brand theme (deliberate). All colours are tokens below.
   ========================================================================== */

:root {
  --paper: #f4eee7;
  --paper-deep: #ebe2d8;
  --surface: #fbf8f4;
  --ink: #2b2127;
  --ink-soft: #54464d;
  --muted: #74656b;
  --line: #dccfc5;
  --line-strong: #c4b2a6;
  --accent: #6b3350;        /* mulberry ink */
  --accent-hover: #582842;
  --accent-soft: #efe1e3;   /* selected fill */
  --on-accent: #fbf8f4;
  --error: #9b2c2c;

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --radius: 14px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; }
em { font-style: italic; }
strong { font-weight: 600; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
[data-focus]:focus { outline: none; }

/* ---------- frame ---------- */

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 76rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem 0.5rem;
}

.brand {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  outline: none;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: enter 0.55s var(--ease) both;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.screen.is-leaving { opacity: 0; transform: translateY(-6px); }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.btn--primary { background: var(--ink); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: 0.7; cursor: progress; }
.btn--block { width: 100%; }

.btn-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem;
  min-height: 2.75rem;
  font: 500 0.9375rem/1 var(--sans);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
.btn-link:hover { color: var(--ink); }
.btn-link--next { color: var(--accent); }

.eyebrow {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- landing ---------- */

.landing {
  flex: 1;
  display: grid;
  gap: 2rem;
  align-content: center;
  padding-block: 2.5rem 3.5rem;
}

.landing__title {
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  font-size: clamp(2.75rem, 12.5vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.landing__title em { color: var(--accent); font-weight: 350; }

.landing__copy {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  color: var(--ink-soft);
}
.landing__lead {
  display: grid;
  gap: 0.15rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.landing__lead strong { font-weight: 500; }
.landing__promise {
  padding-top: 1.1rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.landing__promise strong { font-weight: 600; }
.landing__copy .btn { justify-self: start; margin-top: 0.75rem; }

@media (min-width: 900px) {
  .landing {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 4.5rem;
    padding-block: 4rem 6rem;
  }
  .landing__title { font-size: clamp(4.25rem, 6.6vw, 6.25rem); }
}

/* ---------- intro ---------- */

.intro {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 1.5rem;
  max-width: 38rem;
  padding-block: 3rem 4rem;
}
.intro__heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro__copy { display: grid; gap: 1.1rem; max-width: 32rem; }
.intro__text { color: var(--ink-soft); }
.intro__emphasis {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
.intro__actions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

@media (min-width: 900px) {
  .intro { margin-inline: auto; text-align: left; }
}

/* ---------- progress ---------- */

.progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font: 500 0.8125rem/1 var(--sans);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress__now { color: var(--ink); }
.progress__sep { margin-inline: 0.2em; opacity: 0.6; }
.progress__track {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  min-width: 4rem;
}
.progress__fill {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: var(--accent);
  transition: transform 0.6s var(--ease);
}

/* ---------- question ---------- */

.screen--question {
  display: grid;
  align-content: start;
  gap: 1.75rem;
  padding-block: 0.75rem 3rem;
}
.q-aside__title { display: none; }

.q-main { display: grid; gap: 1.25rem; max-width: 40rem; }

.q-setup {
  display: grid;
  gap: 0.45rem;
  margin-bottom: -0.35rem; /* sit close to the question it introduces */
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.q-prompt {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.q-prompt__aside {
  display: block;
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 0.8em;
  line-height: 1.3;
  color: var(--ink-soft);
}

.options { display: grid; gap: 0.625rem; }

.option {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.95rem 1.1rem;
  text-align: left;
  font: 400 1.0625rem/1.45 var(--sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(43, 33, 39, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
  animation: enter 0.5s var(--ease) both;
}
.options .option:nth-child(1) { animation-delay: 0.04s; }
.options .option:nth-child(2) { animation-delay: 0.08s; }
.options .option:nth-child(3) { animation-delay: 0.12s; }
.options .option:nth-child(4) { animation-delay: 0.16s; }
.options .option:nth-child(5) { animation-delay: 0.20s; }
.options .option:nth-child(6) { animation-delay: 0.24s; }

@media (hover: hover) {
  .option:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -12px rgba(43, 33, 39, 0.35);
  }
}
.option:active { transform: translateY(0); }
.option:focus-visible { outline-offset: 2px; border-radius: var(--radius); }

.option__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font: 600 0.75rem/1 var(--sans);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.option__text { padding-top: 0.05rem; }

.option.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option.is-selected .option__key {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .screen--question {
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.45fr);
    gap: 5rem;
    padding-block: 4rem 5rem;
  }
  .q-aside {
    position: sticky;
    top: 3rem;
    align-self: start;
    display: grid;
    gap: 2rem;
  }
  .q-aside__title {
    display: block;
    font-family: var(--serif);
    font-weight: 350;
    font-size: 2.1rem;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink-soft);
    text-wrap: balance;
  }
  .q-aside__title em { color: var(--accent); }
  .q-prompt { font-size: 2.2rem; }
  .q-setup { font-size: 1.3125rem; }
}

/* ---------- email ---------- */

.email {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding-block: 3rem 4rem;
}
.email__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.email__body { display: grid; gap: 0.75rem; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.55; }
.email__form { display: grid; gap: 1rem; margin-top: 0.75rem; }
.email > .btn-link { justify-self: start; }
.email__consent { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.email__consent a, .email__consent span { white-space: nowrap; }
.email__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.field { display: grid; gap: 0.4rem; }
.field label { font: 500 0.875rem/1.2 var(--sans); color: var(--ink-soft); }
.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  font: 400 1.0625rem/1 var(--sans); /* ≥16px avoids iOS zoom */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 51, 80, 0.15);
}
.field input[aria-invalid='true'] { border-color: var(--error); }
.field__error { font-size: 0.875rem; color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- result ---------- */

.result {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-block: 2rem 3rem;
  display: grid;
  gap: 0;
}

.card { display: grid; gap: 0; }
.card .eyebrow { margin-bottom: 1.25rem; }

.card__title { margin: 0; font-weight: 400; }
.card__lead {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--muted);
}
.card__name {
  display: block;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.7rem, 12vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
  margin-top: 0.2rem;
}

.recognition {
  margin-block: 2rem 2.25rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
}
.recognition__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.recognition__line {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.2vw, 2.15rem);
  line-height: 1.22;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.card__body {
  display: grid;
  gap: 1.1rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.thoughts {
  display: grid;
  gap: 0.35rem;
  margin-block: 0.4rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
}
.thought {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--ink);
}
.thought-aside {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  padding-block: 0.1rem;
}

.one-question {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.one-question__label {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.one-question__text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 5.6vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.secondary {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  position: relative;
}
.secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}
.secondary__label {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.secondary__text {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 36rem;
}
.secondary__text strong { color: var(--ink); font-weight: 600; }

.context-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  position: relative;
}
.context-note__label {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.context-note__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.context-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

/* ties */
.tie-head { display: grid; gap: 0.9rem; margin-bottom: 3.25rem; padding-bottom: 2rem; border-bottom: 2px solid var(--ink); }
.tie-head__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.tie-cards { display: grid; }
.tie-cards .card__name { font-size: clamp(2.3rem, 10vw, 3.6rem); }
.card-sep {
  height: 1px;
  background: var(--line-strong);
  margin-block: 3.5rem;
}

/* bridge to The Next Move Method */
.bridge {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  position: relative;
}
.bridge::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.bridge__lead {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5.6vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.bridge__intro { font-weight: 600; color: var(--ink); margin-top: 0.4rem; }
.bridge__body { color: var(--ink-soft); }
.bridge .btn { justify-self: start; margin-top: 0.75rem; }

.restart { margin-top: 3rem; }
.restart .btn-link { font-size: 0.875rem; }

@media (max-width: 420px) {
  .bridge .btn { width: 100%; }
}

/* ---------- screen-specific topbar ---------- */
body[data-screen='result'] .topbar { padding-bottom: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}
