/* =========================================================
   PowerPocketz — main.css
   Global design system + page components. Handwritten, no framework.
   Sections:
   01 Tokens · 02 Reset & base · 03 Typography · 04 Layout
   05 Header · 06 Hero · 07 Quick-win · 08 Receipt · 09 Flags
   10 Steps · 11 Opt-in & forms · 12 FAQ · 13 Related · 14 Footer
   15 Sticky bar · 16 Utilities
   ========================================================= */

/* ---------- 01 Tokens ---------- */
:root {
  /* palette */
  --cream: #FAF6F1;
  --ink: #2B2B2B;
  --body: #4A4440;
  --soft: #6B6560;
  --blush: #E8B4B8;
  --blush-deep: #D89AA0;
  --beige: #EDE4D8;
  --card: #FFFFFF;
  --sage: #A8B8A0;

  /* derived */
  --hairline: rgba(43, 43, 43, .10);
  --hairline-soft: rgba(43, 43, 43, .06);
  --rose-quiet: #8A5B60; /* deepened from the blush family so annotations pass contrast */

  /* type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --fs-h1: clamp(2rem, 6vw, 3.2rem);
  --fs-h2: clamp(1.5rem, 4vw, 2.1rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  /* spacing — 8px scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* structure */
  --measure: 680px;
  --measure-wide: 840px;
  --gutter: var(--sp-3);
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(43, 43, 43, .07);
  --head-h: 60px;
}

/* ---------- 02 Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + var(--sp-2));
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

figure { margin: 0; }

a { color: inherit; }

button,
input {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

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

::selection {
  background: var(--blush);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 03 Typography ---------- */
h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 var(--sp-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -.02em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.005em;
}

p {
  margin: 0 0 var(--sp-3);
  max-width: 65ch;
}

p:last-child { margin-bottom: 0; }

strong {
  font-weight: 700;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 var(--sp-2);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
}

.lede {
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
}

.fine {
  margin: 0;
  color: var(--soft);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 62ch;
}

/* handwritten micro-note — annotations only, never paragraphs */
.hand {
  display: inline-block;
  color: var(--rose-quiet);
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
}

/* thin blush underline, slightly offset, under key H2s */
.ul-blush {
  position: relative;
  display: inline-block;
}

.ul-blush::after {
  content: "";
  position: absolute;
  left: 3px;
  right: -8px;
  bottom: -8px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--blush);
  transform: rotate(-.4deg);
}

/* ---------- 04 Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide { max-width: var(--measure-wide); }

.section { padding-block: var(--sp-8); }

.section-tight { padding-block: var(--sp-6); }

.band { background: var(--beige); }

.band-cream { background: var(--cream); }

.rule {
  width: 56px;
  height: 2px;
  margin: 0 0 var(--sp-4);
  border: 0;
  background: var(--beige);
}

@media (min-width: 760px) {
  :root { --gutter: var(--sp-4); }
  .section { padding-block: var(--sp-10); }
  .section-tight { padding-block: var(--sp-8); }
}

/* ---------- 05 Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-head.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 18px rgba(43, 43, 43, .04);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--head-h);
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  text-decoration: none;
}

.wordmark:hover { color: var(--rose-quiet); }

.head-link {
  color: var(--soft);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 5px;
}

.head-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--blush);
  text-decoration-thickness: 2px;
}

/* ---------- 06 Hero ---------- */
.hero { padding-block: var(--sp-6) var(--sp-4); }

.hero h1 { margin-bottom: var(--sp-3); }

.hero .lede { margin-bottom: var(--sp-4); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.ic {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--sage);
}

/* Shared image card. No forced aspect-ratio: the width/height attributes on each
   <img> reserve the right box, so nothing is cropped and nothing shifts on load. */
.img-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--beige);
  box-shadow: var(--shadow-soft);
}

.img-card img { width: 100%; }

.img-card--hero { margin-bottom: var(--sp-3); }

.img-card--body { margin-top: var(--sp-5); }

.disclosure {
  margin: 0;
  color: var(--soft);
  font-size: .8125rem;
  line-height: 1.6;
  max-width: 68ch;
}

@media (min-width: 760px) {
  .hero { padding-block: var(--sp-8) var(--sp-5); }
}

/* ---------- 07 Quick-win box ---------- */
.quickwin {
  position: relative;
  background: var(--cream);
  border-left: 6px solid var(--blush);
  border-radius: 4px var(--radius-card) var(--radius-card) 4px;
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-soft);
}

.quickwin > .hand {
  display: block;
  margin-bottom: var(--sp-1);
  text-align: right;
  transform: rotate(-2deg);
}

.quickwin h2 { margin-bottom: var(--sp-3); }

.rules {
  margin: var(--sp-3) 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules li {
  position: relative;
  counter-increment: rule;
  margin-bottom: var(--sp-2);
  padding-left: 38px;
  max-width: 62ch;
}

.rules li:last-child { margin-bottom: 0; }

.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}

.close-line {
  margin: 0;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 760px) {
  .quickwin { padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-4); }
  .quickwin > .hand {
    position: absolute;
    top: -18px;
    right: 22px;
    margin: 0;
    transform: rotate(-4deg);
  }
}

/* ---------- 08 Receipt ---------- */
.receipt-holder {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-block: var(--sp-4);
}

.receipt {
  background: var(--card);
  border-top: 2px dashed var(--beige);
  border-bottom: 2px dashed var(--beige);
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  box-shadow: var(--shadow-soft);
}

.receipt-title {
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.receipt-rows {
  margin: 0;
  border-top: 1px solid var(--hairline-soft);
}

.receipt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-block: 13px;
  border-bottom: 1px dotted rgba(43, 43, 43, .18);
}

.receipt-row:last-child { border-bottom: 0; }

.receipt-row dt {
  color: var(--body);
  font-size: .96rem;
  line-height: 1.4;
}

.receipt-row dd {
  margin: 0;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: .96rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
  white-space: normal;
  overflow-wrap: break-word;
}

.receipt-note {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.receipt-holder .hand {
  align-self: flex-end;
  transform: rotate(-2.5deg);
}

@media (min-width: 760px) {
  .receipt { padding: var(--sp-4) var(--sp-4) var(--sp-3); }
}

/* ---------- 09 Flags (two columns) ---------- */
.flags {
  display: grid;
  gap: var(--sp-3);
  margin-block: var(--sp-4);
}

.flag-col {
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
}

.flag-col h3 {
  margin-bottom: var(--sp-2);
  font-size: 1.05rem;
}

.flag-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.flag-col li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  font-size: .98rem;
  line-height: 1.6;
}

.flag-col li:last-child { margin-bottom: 0; }

.flag-bad li::before,
.flag-good li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.flag-bad li::before {
  content: "\00D7";
  color: var(--rose-quiet);
  font-size: 1.15rem;
  line-height: 1.45;
}

.flag-good li::before {
  content: "\2713";
  color: var(--sage);
  line-height: 1.55;
}

.flag-bad { border-top: 3px solid var(--blush); }

.flag-good { border-top: 3px solid var(--sage); }

@media (min-width: 700px) {
  .flags { grid-template-columns: 1fr 1fr; }
}

/* ---------- 10 Steps ---------- */
.steps {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  margin-bottom: var(--sp-3);
  padding: 0 0 var(--sp-3) 52px;
  border-bottom: 1px solid var(--beige);
  max-width: 65ch;
}

.steps li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--blush);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 11 Opt-in & forms ---------- */
.optin {
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-soft);
}

.optin h3 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3.6vw, 1.7rem);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.optin p { margin-bottom: var(--sp-3); }

.optin-maya {
  background: var(--card);
  display: grid;
  gap: var(--sp-3);
}

.optin-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--beige);
}

.optin-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.optin-form {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.field {
  width: 100%;
  padding: 15px 18px;
  background: var(--card);
  border: 1.5px solid #D6C9BA;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field::placeholder { color: #9C948E; }

.field:focus {
  border-color: var(--blush-deep);
  box-shadow: 0 0 0 4px rgba(232, 180, 184, .28);
  outline: none;
}

.field[aria-invalid="true"] { border-color: var(--rose-quiet); }

.btn {
  display: inline-block;
  padding: 18px 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blush-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(216, 154, 160, .32);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  background: var(--blush);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(216, 154, 160, .38);
}

.btn:active { transform: translateY(0); }

.btn[disabled] {
  opacity: .72;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.form-error {
  margin: 0;
  color: #A4585E;
  font-size: var(--fs-small);
  font-weight: 500;
}

.form-error[hidden] { display: none; }

.consent { margin-top: var(--sp-1); }

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--sp-3) 0 0;
  color: var(--soft);
  font-size: var(--fs-small);
  text-decoration: none;
  width: max-content;
}

.byline img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--card);
  box-shadow: 0 2px 8px rgba(43, 43, 43, .12);
}

.byline:hover { color: var(--ink); }

@media (min-width: 700px) {
  .optin { padding: var(--sp-5); }
  .optin-maya { grid-template-columns: 220px 1fr; align-items: start; }
  .optin-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .optin-form .field { flex: 1 1 260px; min-width: 0; }
  .optin-form .btn { flex: 0 0 auto; }
  .optin-form .form-error,
  .optin-form .fine { flex: 1 1 100%; }
}

/* ---------- 12 FAQ ---------- */
.faq { margin-top: var(--sp-4); }

.faq details {
  border-bottom: 1px solid var(--beige);
  background: transparent;
}

.faq details:first-of-type { border-top: 1px solid var(--beige); }

.faq summary {
  position: relative;
  display: block;
  padding: var(--sp-3) 44px var(--sp-3) 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::marker { content: ""; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--rose-quiet);
  border-bottom: 2px solid var(--rose-quiet);
  transform: rotate(45deg);
  transition: transform .22s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq summary:hover { color: var(--rose-quiet); }

.faq .answer {
  margin: 0;
  padding: 0 0 var(--sp-3);
  color: var(--body);
}

/* ---------- 13 Related ---------- */
.related h3 {
  margin-bottom: var(--sp-2);
  color: var(--soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li { border-bottom: 1px solid var(--beige); }

.related li:first-child { border-top: 1px solid var(--beige); }

.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 15px 2px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.related a span {
  color: var(--blush-deep);
  transition: transform .2s ease;
}

.related a:hover { color: var(--rose-quiet); }

.related a:hover span { transform: translateX(4px); }

/* ---------- 14 Footer ---------- */
.site-foot {
  background: var(--beige);
  padding-block: var(--sp-5);
}

.site-foot .disclosure {
  margin-bottom: var(--sp-2);
  color: var(--soft);
  font-size: .8125rem;
}

.foot-links {
  margin: 0;
  color: var(--soft);
  font-size: var(--fs-small);
}

.foot-links a {
  color: var(--soft);
  text-decoration: none;
  text-underline-offset: 4px;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- 15 Mobile sticky bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  align-items: center;
  gap: var(--sp-1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px rgba(43, 43, 43, .08);
  visibility: hidden;
  transform: translateY(110%);
  transition: transform .3s ease, visibility .3s ease;
}

.sticky-cta.is-visible {
  visibility: visible;
  transform: translateY(0);
}

.sticky-btn {
  flex: 1 1 auto;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blush-deep);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(216, 154, 160, .32);
}

.sticky-x {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--soft);
  font-size: 1.3rem;
  line-height: 1;
}

.sticky-x:hover {
  background: var(--beige);
  color: var(--ink);
}

@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 74px; }
}

/* ---------- 16 Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 var(--radius-card) 0;
}

.skip:focus {
  left: 0;
  box-shadow: var(--shadow-soft);
}

/* ===== START PAGE ===== */
/* Scoped to /start/ (body.start-page) or built from class names that exist
   nowhere in Session 1. Reuses tokens and components; overrides nothing. */

/* --- frame --- */
.start-head {
  padding-block: 14px;
  border-bottom: 1px solid var(--hairline-soft);
}

.start-hand {
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-3);
  transform: rotate(-1.5deg);
}

.start-hero .disclosure { margin-top: var(--sp-1); }

/* margin-noted heading (inoculation block) */
.noted { position: relative; }

.noted > .hand {
  display: block;
  margin-bottom: var(--sp-1);
  transform: rotate(-2deg);
}

@media (min-width: 760px) {
  .noted > .hand {
    position: absolute;
    top: -34px;
    right: 0;
    margin: 0;
    transform: rotate(-3deg);
  }
}

/* --- progress counter + bar --- */
.progress { margin-bottom: var(--sp-4); }

.progress-text {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  max-width: 65ch;
}

.progress-bar {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--beige);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--blush-deep);
  transition: width .35s ease;
}

/* mobile-only sticky strip; retired once all four are started */
.progress-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px var(--sp-2);
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 6px 18px rgba(43, 43, 43, .06);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-110%);
  transition: transform .3s ease;
}

.progress-hud .progress-bar { flex: 1 1 auto; height: 5px; }

@media (max-width: 767px) {
  .progress-hud { display: flex; }
  .progress-hud.is-visible { transform: translateY(0); }
}

/* --- door cards --- */
.door {
  position: relative;
  margin-top: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-left: 5px solid var(--beige); /* fixed-width spine: no layout shift when it turns sage */
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
  transition: opacity .4s ease, background-color .3s ease, border-color .3s ease;
}

.door--primary {
  margin-top: 0;
  padding: var(--sp-4) var(--sp-3);
  border-color: var(--beige);
  border-left-color: var(--beige);
}

@media (min-width: 760px) {
  .door--primary { padding: var(--sp-5); }
}

.door-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.door-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--beige);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}

.door--primary .door-label { background: var(--blush); }

.door-badge {
  display: none;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1;
}

.door.is-done {
  border-left-color: var(--sage);
  background: #F6F8F2;
}

.door.is-done .door-badge { display: grid; }

.door-meta {
  margin: 0 0 var(--sp-3);
  color: var(--soft);
  font-size: var(--fs-small);
  font-weight: 500;
}

.btn-door {
  display: block;
  width: 100%;
}

/* the one loud element on the page */
.btn-door--primary {
  padding: 22px 32px;
  font-size: 1.2rem;
  box-shadow: 0 14px 30px rgba(216, 154, 160, .45);
}

.btn-quiet {
  display: inline-block;
  padding: 15px 28px;
  border: 2px solid var(--blush-deep);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-quiet:hover {
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-2px);
}

.btn-quiet:active { transform: translateY(0); }

.door-note {
  margin-top: var(--sp-1);
  text-align: center;
}

.door-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.door-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--sage);
  cursor: pointer;
}

.door-reward {
  margin: var(--sp-2) 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(168, 184, 160, .18);
  color: var(--ink);
  font-weight: 500;
  max-width: none;
}

/* steps 2–4 sit quiet until step 1 is done — dimmed, never disabled */
.start-page .door--quiet { opacity: .72; }

.start-page.d1-done .door--quiet,
.start-page .door--quiet.is-done { opacity: 1; }

/* --- implementation intention --- */
.when { margin-top: var(--sp-6); }

.when h3 { margin-bottom: var(--sp-1); }

.when-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.pill-btn {
  padding: 12px 22px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--body);
  font-size: .95rem;
  font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.pill-btn:hover {
  border-color: var(--blush-deep);
  color: var(--ink);
}

.pill-btn.is-active {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--ink);
}

.when-msg {
  margin: var(--sp-2) 0 0;
  color: var(--body);
  font-weight: 500;
}

/* --- calculator --- */
.calc {
  margin-block: var(--sp-4);
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 760px) {
  .calc { padding: var(--sp-4); }
}

.calc-label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--ink);
  font-weight: 600;
}

.calc input[type="range"] {
  width: 100%;
  margin: 0 0 var(--sp-2);
  accent-color: var(--blush-deep);
  cursor: pointer;
}

.calc-out {
  margin: 0 0 var(--sp-2);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- maya block + receipts --- */
.maya-grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 700px) {
  .maya-grid {
    grid-template-columns: 250px 1fr;
    align-items: start;
  }
}

.proof-grid {
  display: grid;
  gap: var(--sp-3);
  margin-block: var(--sp-4);
}

@media (min-width: 700px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}

.proof-fig {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.proof-fig img { width: 100%; }

.proof-fig figcaption {
  padding: 12px 16px;
  color: var(--soft);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.55;
}

/* ===== SAP PAGE + HEADER LOGO ===== */
/* New selectors only. .brand-name duplicates the Fraunces wordmark styling
   exactly; the old .wordmark rules remain but are no longer referenced. */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
}

.brand:hover .brand-name { color: var(--rose-quiet); }

@media (max-width: 379px) {
  .brand-name { font-size: 1.05rem; }
}

/* muted caption for in-article image cards */
.img-card figcaption {
  padding: 12px 16px;
  color: var(--soft);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.55;
}

/* ===== HOME + ABOUT + LEGAL ===== */
/* New selectors only; reuses existing tokens and components. */

/* homepage hero buttons */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

/* generic in-content text link (base `a` inherits color, so links need this) */
.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--blush-deep);
  text-underline-offset: 4px;
  transition: color .18s ease;
}

.link:hover { color: var(--rose-quiet); }

/* "Start with these" cards */
.cards {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(43, 43, 43, .10);
}

.card h3 {
  margin: 0 0 var(--sp-1);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--body);
  font-size: .95rem;
  max-width: none;
}

.card .card-arrow { color: var(--rose-quiet); white-space: nowrap; }

.card--soon {
  background: var(--beige);
  border: 1px dashed rgba(43, 43, 43, .18);
  box-shadow: none;
}

.card--soon h3 { color: var(--body); }

/* legal pages */
.updated {
  margin-top: calc(-1 * var(--sp-2));
  color: var(--soft);
  font-size: var(--fs-small);
}

.legal-list {
  margin: var(--sp-2) 0 var(--sp-3);
  padding-left: 1.25em;
}

.legal-list li {
  margin-bottom: var(--sp-1);
  max-width: 65ch;
}

.legal-list li::marker { color: var(--blush-deep); }

/* ===== SPOKE LISTS: BADGES + FILTER ===== */
/* Entry-fee badges, group band headers, list item cards, and the filter bar
   for the spoke list pages. New selectors only; .pill-btn is reused as-is. */

/* --- badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ECEAE7; /* light gray tint: skill / audience / cash / out / camera */
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.badge--zero,
.badge--silent { background: rgba(168, 184, 160, .28); } /* sage tint */

.badge--fast { background: rgba(232, 180, 184, .42); } /* blush tint */

.badge--slow { background: var(--beige); }

.badge--camera { border-color: #A9A29B; border-style: dashed; } /* subtle crossed-out cue */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}

/* --- group band headers --- */
.group-head {
  margin: var(--sp-6) 0 var(--sp-3);
  padding: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-left: 5px solid var(--hairline);
  border-radius: var(--radius-card);
}

.group-head--a {
  background: rgba(168, 184, 160, .16);
  border-color: rgba(168, 184, 160, .35);
  border-left-color: var(--sage);
}

.group-head--b {
  background: var(--beige);
  border-color: #E2D8CB;
  border-left-color: #D6C9BA;
}

.group-label {
  margin: 0 0 4px;
  color: var(--soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.group-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.group-sub { margin: 0; color: var(--body); }

/* --- list item cards --- */
.item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  padding: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-card);
  transition: opacity .2s ease;
}

.item.is-faded { opacity: 0; }
.item.is-gone { display: none; }

.item-num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blush-deep);
  line-height: 1;
}

.item-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.item-body p { margin: 0; max-width: none; }

.item-body p + p { margin-top: 8px; }

/* --- filter bar (revealed by JS; hidden markup stays hidden without it) --- */
.list-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin: var(--sp-4) 0 0;
}

.list-filter[hidden] { display: none; }

.list-filter-label {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
}

.list-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.list-filter .pill-btn { padding: 10px 18px; font-size: .9rem; }

/* ===== CALC READOUT ===== */
/* The calculator reads as a sentence with a live number in it.
   Overrides the earlier .calc-out block, which is why it appends last. */

.calc-line {
  margin: 0 0 var(--sp-3);
  color: var(--body);
  font-size: 1.05rem;
  line-height: 2;
  text-align: center;
}

.calc-mins {
  display: inline-block;
  padding: 0 2px;
  border-bottom: 3px solid var(--blush);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- range: 6px track, 28px thumb, comfortable on touch --- */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 12px 0; /* touch target without growing the visible track */
  background: transparent;
  cursor: pointer;
}

.calc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--beige);
}

.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--beige);
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px; /* centres the thumb on a 6px track */
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--blush-deep);
  box-shadow: 0 1px 4px rgba(43, 43, 43, .22);
}

.calc-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--blush-deep);
  box-shadow: 0 1px 4px rgba(43, 43, 43, .22);
}

.calc-range:focus-visible { outline: none; }

.calc-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(216, 154, 160, .45);
}

.calc-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(216, 154, 160, .45);
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--soft);
  font-size: .75rem;
}

.calc-result {
  margin: var(--sp-3) 0 var(--sp-2);
  text-align: center;
}

.calc-result-label {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.calc-out {
  display: block;
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  transition: color .18s ease, opacity .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .calc-out { transition: none; }
}

/* ===== ACCESS BAND ===== */
/* The arrival moment on /start/ — she just gave her email; this is the
   gate closing behind her. Sits above the H1 inside the hero column. */

.access-band {
  width: 100%;
  margin-bottom: var(--sp-4);
  padding: 28px 24px;
  background: var(--ink);
  border-radius: 16px;
  color: var(--cream);
  text-align: center;
  animation: accessIn .55s ease-out both;
}

@media (min-width: 700px) {
  .access-band { padding: 36px 32px; }
}

.access-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.access-title {
  margin: 0 0 10px;
  max-width: none;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
}

.access-line {
  max-width: 46ch;
  margin: 0 auto 8px;
  color: rgba(250, 246, 241, .92);
  font-size: 1.02rem;
}

.access-sub {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--blush);
  font-size: .9rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .access-band { animation: none; }
}
