/* MOE. simple: one clear path, phone first. Base tokens and components come from base.css. */

:root {
  --nav-h: 58px;
  --blue-text: #2449C9;     /* brand blue darkened for text: 6.6:1 on paper */
  --on-yellow: #15171C;
  --sec-pad: clamp(72px, 12vw, 152px);
  --bar-h: 76px;
}
:root[data-theme="dark"] { --blue-text: #8FA8F5; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper);
  font-weight: 800; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* The MOE. square full stop: blue on paper, yellow on ink and in dark mode */
.stop {
  display: inline-block; width: 0.17em; height: 0.17em; margin-left: 0.07em;
  background: var(--blue); color: transparent; overflow: hidden; vertical-align: baseline;
}
.on-ink .stop, [data-theme="dark"] .stop { background: var(--yellow); }

.mk { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.on-ink .mk { stroke: var(--yellow); }

.sec { padding-block: var(--sec-pad); scroll-margin-top: calc(var(--nav-h) - 1px); }
.sec-title, .sec-head { margin-bottom: clamp(32px, 6vw, 64px); }
.text-link {
  font-weight: 800; color: var(--blue-text);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.text-link:hover { text-decoration-thickness: 4px; }
.muted { color: var(--muted); }
.circled > svg.marker-loop { max-width: none; }

/* ---------- 1. Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 40px; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-title { font-size: clamp(3.4rem, 16.5vw, 8.4rem); line-height: 0.9; }
.hero-title .line { display: block; }
.hero-title .circled > svg.marker-loop path { stroke-width: 5; }
.hero-lede { font-size: clamp(1.2rem, 4.8vw, 1.5rem); max-width: 30ch; color: var(--ink); }
.hero-lede .hl { font-weight: 700; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-cta .btn { width: 100%; justify-content: center; padding-block: 1.15em; }
.hero-note { font-size: 0.95rem; color: var(--muted); }
.hero-ph { min-height: 0; aspect-ratio: 4 / 3; }
/* Moe's photos (15 Nov 2026): same frame as the old placeholders */
.photo-frame { display: block; min-width: 0; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); background: var(--paper-2); }

/* ---------- 2. Problem ---------- */
.problem { background: var(--paper-2); }
.problem-grid { display: grid; gap: 36px; }
.problem h2 { font-size: clamp(2.3rem, 9vw, 4.6rem); max-width: 17ch; }
.problem-for { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pains li {
  position: relative; padding: 18px 0 18px 30px;
  border-top: 2px solid var(--paper-3);
  font-size: 1.08rem; line-height: 1.5; color: var(--muted);
}
.pains li:last-child { border-bottom: 2px solid var(--paper-3); }
.pains li::before {
  content: ""; position: absolute; left: 2px; top: 1.55em;
  width: 12px; height: 12px; background: var(--blue);
}
[data-theme="dark"] .pains li::before { background: var(--yellow); }
.pains strong { color: var(--ink); font-weight: 800; }

/* ---------- 3. How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  gap: 4px 18px; padding: 26px 0; border-top: 2px solid var(--ink);
}
.step:last-child { border-bottom: 2px solid var(--ink); }
.step-num { grid-row: 1; font-size: 3rem; line-height: 0.85; color: var(--blue-text); }
.step-icon {
  grid-row: 2; width: 48px; height: 48px; margin-top: 10px;
  fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.step-text { grid-column: 2; grid-row: 1 / span 2; }
.step h3 { font-weight: 900; font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 52ch; }

/* ---------- 5. Moe 1:1 ---------- */
.program-grid { display: grid; gap: 48px; }
.program-main .lede { margin-top: 16px; }
.promise {
  margin-top: 28px; padding: 22px 22px 20px; border-radius: var(--radius);
  background: var(--yellow-soft);
}
.promise-head { display: flex; align-items: center; gap: 10px; font-weight: 900; margin-bottom: 10px; }
.promise-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 2px solid rgba(21, 23, 28, 0.14);
}
[data-theme="dark"] .promise-row { border-bottom-color: rgba(236, 234, 227, 0.16); }
.promise-len { font-weight: 800; }
.promise-kg { font-family: var(--display); font-size: 2rem; line-height: 1; text-align: right; }
.promise-kg small { display: block; margin-top: 4px; font-family: var(--body); font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.promise-len { white-space: nowrap; }
.promise-fine { margin-top: 12px; font-size: 0.95rem; color: var(--ink); }
.program-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; scroll-margin-top: 120px; }
.program-cta .btn { justify-content: center; }
.ph-tag { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ladder-line { margin-top: 22px; font-size: 0.95rem; max-width: 46ch; }

.program-list h3 { margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px; border-bottom: 2px solid var(--paper-3);
  font-weight: 700; font-size: 1.08rem;
}
.checks li:first-child { border-top: 2px solid var(--ink); }
.checks svg { width: 26px; height: 26px; flex: none; overflow: visible; }

/* ---------- 6. Proof ---------- */
.proof-head { margin-bottom: clamp(28px, 5vw, 56px); }
.proof-head p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shot { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot-tag {
  position: absolute; left: 8px; bottom: 8px; padding: 6px 10px 5px; border-radius: 6px;
  font-weight: 900; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
}
.shot-tag--after { background: var(--yellow); color: #15171C; }
[data-theme="dark"] .shot-tag:not(.shot-tag--after) { background: #F6F4EE; color: #15171C; }
/* Message screenshots: the first lines, then the full screenshot on tap */
.msg-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: #16171A; cursor: zoom-in; font: inherit; text-align: left;
}
.msg-open img { display: block; width: 100%; height: auto; }
.msg-peek { position: relative; display: block; }
.msg-peek::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, #16171A); pointer-events: none; }
.msg-more {
  margin: 4px 12px 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 8px; border-radius: 8px; background: #F6F4EE; color: #15171C;
  font-weight: 900; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.3s var(--ease-out);
}
.msg-more .sq { width: 8px; height: 8px; background: var(--blue); display: inline-block; }
.msg-open:hover .msg-more, .msg-open:focus-visible .msg-more { transform: translateY(-2px); }
.msg-open:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.msg-view { width: min(560px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 14px; background: #16171A; overflow: auto; overscroll-behavior: contain; }
.msg-view::backdrop { background: rgba(10, 11, 14, 0.82); }
.msg-view img { display: block; width: 100%; height: auto; }
.msg-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px; background: #16171A; }
.msg-view.is-wide { width: min(880px, 94vw); }
.msg-close {
  min-height: 42px; padding: 10px 16px; border: 0; border-radius: 8px; background: #F6F4EE; color: #15171C;
  font: inherit; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.pair--back { grid-template-columns: 493fr 641fr; align-items: end; }

/* Testimonial deck: one card at a time, swipe on phones, arrows and dots everywhere. The next card peeks in so the swipe is obvious. */
.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.deck-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.deck-dot { width: 12px; height: 12px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ease-out); }
.deck-dot[aria-current="true"] { background: var(--blue); border-color: var(--blue); transform: scale(1.25); }
.deck-arrows { display: flex; gap: 8px; }
.deck-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.deck-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.deck-prev svg { transform: scaleX(-1); }
.deck-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.deck-btn:disabled { opacity: 0.3; cursor: default; }
.deck-btn:focus-visible, .deck-dot:focus-visible, .deck-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.deck-track {
  position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  list-style: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
}
.deck-track::-webkit-scrollbar { display: none; }
.tcard { flex: 0 0 88%; scroll-snap-align: start; scroll-snap-stop: always; padding: 16px 14px 14px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-2); }
.tcard-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 0 4px 14px; border-bottom: 2px solid var(--paper-3); }
.tcard-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--blue); color: #F6F4EE; font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.tcard-name { font-family: var(--display); font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; }
.tcard-meta { margin-top: 4px; font-size: 0.92rem; font-weight: 700; color: var(--muted); line-height: 1.35; }
.tcard-src { display: inline-block; margin-left: 8px; padding: 2px 7px 1px; border-radius: 5px; background: var(--paper-3); color: var(--blue-text); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px; }
.tcard-result { margin: 0 4px 14px; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.05; text-transform: uppercase; }
.tcard--video video { display: block; width: min(100%, calc(64svh * 9 / 16)); height: auto; aspect-ratio: 9 / 16; margin-inline: auto; border-radius: 10px; background: #000; }

/* ---------- 7. About ---------- */
.about-grid { display: grid; gap: 32px; }
.about-ph { min-height: 0; aspect-ratio: 4 / 5; max-height: 520px; }
.about-text > * + * { margin-top: 20px; }
.about-bio { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.about-bio + .about-bio { margin-top: 14px; }
.creds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 900; }
.creds li { display: inline-flex; align-items: center; gap: 10px; }
.creds li::before { content: ""; width: 10px; height: 10px; background: var(--blue); flex: none; }
[data-theme="dark"] .creds li::before { background: var(--yellow); }
.about-why { color: var(--muted); max-width: 52ch; }

/* ---------- 8. FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-grid { display: grid; gap: 32px; }
.faq-head p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 2px solid var(--paper-3); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-weight: 800; font-size: 1.1rem; line-height: 1.3;
}
.faq-q:hover { color: var(--blue-text); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 8px 22px 2px; font-size: 1.05rem; color: var(--muted); max-width: 60ch; }
.faq-a .ph-text { color: var(--ink); font-weight: 700; }
.faq-a p:not(:last-child) { padding-bottom: 12px; }
.pm { width: 24px; height: 24px; flex: none; overflow: visible; }
.pm path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; transform-origin: 12px 12px; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
[aria-expanded="true"] > .pm .pm-v { transform: rotate(90deg) scaleY(0); opacity: 0; }
[aria-expanded="true"] > .pm .pm-h { stroke: var(--blue); }

/* ---------- 9. Reset ---------- */
.reset-grid { display: grid; gap: 32px; }
.reset h2 { max-width: 14ch; }
.reset .lede { margin-top: 18px; }
.reset .hl {
  color: var(--paper);
  background-image: linear-gradient(transparent 4%, var(--yellow) 4%, var(--yellow) 98%, transparent 98%);
  transition: background-size 0.9s var(--ease-marker), color 0.3s 0.35s;
}
.reset .hl.is-on, .no-motion .reset .hl { color: var(--ink); }
.reset-label { flex-basis: 100%; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-ink); }
.reset-form .btn { flex: 1 1 auto; justify-content: center; }
.reset-alt { margin-top: 18px; color: var(--text-on-ink); }
.reset-alt a { color: var(--yellow); font-weight: 800; }
.site-foot a { color: var(--paper); }

/* ---------- Sticky Reset bar (phones) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -1px 0 var(--paper-3), 0 -12px 28px -16px rgba(21, 23, 28, 0.35);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
[data-theme="dark"] .sticky-cta { box-shadow: 0 -1px 0 var(--paper-3), 0 -12px 28px -16px rgba(0, 0, 0, 0.8); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; justify-content: center; padding-block: 1em; }
.no-motion .sticky-cta { transition: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 700px) {
  .hero-cta { flex-direction: row; align-items: center; gap: 24px; }
  .hero-cta .btn { width: auto; }
  .program-cta { flex-direction: row; flex-wrap: wrap; }
  .steps .step { grid-template-columns: 90px 64px 1fr; grid-template-rows: auto; align-items: start; gap: 0 24px; }
  .step-num { font-size: 4rem; }
  .step-icon { grid-row: 1; grid-column: 2; margin-top: 4px; }
  .step-text { grid-column: 3; grid-row: 1; }
  .step h3 { font-size: 1.55rem; }
}

@media (min-width: 861px) {
  :root { --nav-h: 72px; }
  .sticky-cta { display: none; }
  .hero { min-height: min(100svh, 980px); display: flex; align-items: center; padding-bottom: 56px; }
  .hero .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
  .hero-title { font-size: clamp(4rem, 8vw, 8.4rem); }
  .hero-ph { aspect-ratio: 4 / 5; max-height: 640px; }
  .problem-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .pains li { font-size: 1.15rem; }

  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 44px; }
  .phases::before { left: 0; right: 0; top: 8px; bottom: auto; width: auto; height: 3px; }
  .phase { padding-left: 0; }
  .phase::before { top: -44px; }
  .phase-name { font-size: 2.6rem; }

  .program-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .program-list { padding-top: 12px; }
  .tcard { flex-basis: min(720px, 72%); padding: 22px 22px 20px; }
  .tcard-name { font-size: 2.1rem; }
  .tcard-n { width: 54px; height: 54px; font-size: 1.6rem; }
  .tcard--photos .pair { max-width: 560px; }
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
  .faq-q { font-size: 1.28rem; padding: 22px 2px; }
  .reset-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}

@media (max-width: 860px) {
  /* the hero button and the sticky bar carry the Reset on phones, so the nav stays quiet */
  .site-nav .nav-end > .btn, .site-nav > .btn { display: none; }
}


/* Reset sign up hidden until Kit is connected (15 Nov 2026); base.css display:flex would override [hidden] */
.reset-form[hidden] { display: none; }
.reset-side > .btn { justify-self: start; }
