/* =========================================================================
   @psychologymatt — Memory Course funnel
   Shared brand system. Matches the lead-magnet cover:
   white paper + faint graph grid, ExtraBold navy headlines,
   royal-blue "tick" accent, muted slate body, mono utility type.
   ========================================================================= */

:root {
  /* Color */
  --paper:      #ffffff;
  --grid:       #ecedf5;   /* faint graph-paper lines */
  --ink:        #16202e;   /* ExtraBold navy headlines */
  --ink-soft:   #2b3545;   /* strong body text */
  --slate:      #5b6675;   /* muted body / captions */
  --slate-2:    #8b94a3;   /* faint labels, footer */
  --accent:     #2f54ff;   /* royal-blue tick mark + links */
  --accent-ink: #1c3ce0;   /* accent hover */
  --line:       #e4e7ef;   /* hairline dividers, card borders */
  --panel:      #f7f8fb;   /* subtle raised panels */
  --good:       #14794a;   /* guarantee / positive */

  /* Type */
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --maxw: 760px;        /* editorial single-column measure */
  --maxw-wide: 1040px;  /* hero + grids */
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink-soft);
  background-color: var(--paper);
  /* signature: graph-paper grid */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---- layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- the signature tick + eyebrow ---- */
.tick { display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 22px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 14px;
}

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--slate); margin: 0 0 28px; }
.muted { color: var(--slate); }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 700; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.08rem;
  color: #fff; background: var(--accent);
  padding: 17px 30px; border-radius: var(--radius-sm); border: 0;
  cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  box-shadow: 0 10px 24px -12px rgba(47,84,255,.7);
}
.btn:hover { background: var(--accent-ink); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[aria-disabled="true"] { background: var(--slate-2); box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-note { font-family: var(--mono); font-size: 12.5px; color: var(--slate-2); margin-top: 12px; }

/* ---- hero ---- */
.hero { padding: 92px 0 60px; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 620px; }

/* ---- VSL slot ---- */
.vsl {
  aspect-ratio: 16 / 9; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--slate-2); font-family: var(--mono); font-size: 13px; text-align: center;
}
.vsl .play { width: 64px; height: 64px; border-radius: 999px; background: var(--accent); display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 28px -12px rgba(47,84,255,.7); }
.vsl .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }

/* ---- problem list ---- */
.pains { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.pains li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.pains li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #c4423a; font-weight: 700; }

/* ---- numbered steps (real sequence) ---- */
.steps { counter-reset: step; display: grid; gap: 22px; margin-top: 8px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step .n {
  counter-increment: step; font-family: var(--mono); font-weight: 600;
  width: 42px; height: 42px; border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--slate); }

/* ---- stack / what's inside ---- */
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stack li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.stack li:last-child { border-bottom: 0; }
.stack .name { color: var(--ink); font-weight: 700; }
.stack .name small { display: block; font-weight: 400; color: var(--slate); font-size: .82em; margin-top: 2px; }
.stack .val { font-family: var(--mono); color: var(--slate-2); font-size: 14px; white-space: nowrap; }
.stack .total { background: var(--panel); }
.stack .total .name { font-family: var(--display); font-weight: 800; }
.stack .total .val { color: var(--ink); font-size: 16px; }

/* ---- testimonial ---- */
.quotes { display: grid; gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote p { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 12px; }
.quote .who { font-family: var(--mono); font-size: 12.5px; color: var(--slate-2); text-transform: uppercase; letter-spacing: .08em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---- guarantee ---- */
.guarantee { border: 1.5px solid var(--line); border-left: 5px solid var(--good); border-radius: var(--radius); padding: 28px; background: #fff; }
.guarantee h3 { color: var(--good); }

/* ---- price / offer box ---- */
.offer { text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 40px 28px; box-shadow: 0 30px 60px -40px rgba(22,32,46,.5); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 6px 0 4px; }
.price .now { font-family: var(--display); font-weight: 900; font-size: 3.4rem; color: var(--ink); letter-spacing: -0.03em; }
.price .was { font-family: var(--mono); color: var(--slate-2); text-decoration: line-through; font-size: 1.1rem; }
.offer .fine { font-family: var(--mono); font-size: 12px; color: var(--slate-2); margin-top: 16px; }

/* ---- thank-you ---- */
.center { text-align: center; }
.checkmark { width: 76px; height: 76px; border-radius: 999px; background: rgba(20,121,74,.1); color: var(--good); display: flex; align-items: center; justify-content: center; font-size: 38px; margin: 0 auto 24px; }

/* ---- legal pages ---- */
.legal { padding: 64px 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--slate-2); text-transform: uppercase; letter-spacing: .08em; }

/* ---- header / footer ---- */
.site-head { padding: 22px 0; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--mono); font-size: 14px; color: var(--ink); letter-spacing: .02em; text-decoration: none; font-weight: 500; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .dot { color: var(--accent); }

.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot a { font-family: var(--mono); font-size: 12.5px; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.site-foot .handle { font-family: var(--mono); font-size: 12.5px; color: var(--slate-2); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- helpers ---- */
.stack-gap > * + * { margin-top: 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }

@media (max-width: 640px) {
  body { font-size: 17px; background-size: 22px 22px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .price .now { font-size: 2.8rem; }
}
