/* ============================================================
   Art of Accomplishment — Money lead magnet
   Mobile-first. Tokens pulled verbatim from the
   live AOA design system (Webflow client-first).
   ============================================================ */

:root {
  /* Brand primitives */
  --offwhite: #fafafa;
  --slate:    #34465c;
  --orange:   #f5931b;
  --midnight: #323d4d;
  --white:    #ffffff;
  --cobalt-light: #eaeff5;
  --cobalt:   #026696;
  --blue:     #2d62ff;

  /* Neutral ramp */
  --n-900: #111;
  --n-700: #444;
  --n-500: #666;
  --n-300: #aaa;
  --n-200: #ccc;
  --n-100: #eee;

  /* Semantic */
  --bg: var(--offwhite);
  --surface: var(--white);
  --ink: var(--slate);
  --ink-soft: #41526a;
  --muted: #5a6677;
  --line: #e3e8ef;
  --cta: var(--orange);

  /* Shape */
  --radius-card: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-pill: 2rem;

  /* Layout */
  --pad-x: 1.25rem;          /* AOA mobile horizontal padding */
  --content: 30rem;          /* readable column on mobile */
  --section-y: 3.25rem;

  --shadow-soft: 0 1px 2px rgba(52,70,92,.05), 0 8px 24px rgba(52,70,92,.07);
  --shadow-card: 0 1px 2px rgba(52,70,92,.06), 0 12px 30px rgba(52,70,92,.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Accessibility utilities ---------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.section--dark :focus-visible, .player :focus-visible, .proto-switch :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
#email, #email2 { scroll-margin: 6rem 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--cobalt-light); }
.section--dark { background: var(--midnight); color: #eef1f5; }
.section--dark .eyebrow { color: #aebccd; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .9rem;
}
.h1 {
  font-weight: 300;
  font-size: clamp(2.05rem, 8.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
}
.h2 {
  font-weight: 400;
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .85rem;
  color: var(--ink);
}
.h3 {
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.lede { font-size: 1.075rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.micro { font-size: .8rem; color: var(--muted); line-height: 1.5; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
strong { font-weight: 600; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 500; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  transition: filter .2s ease, transform .12s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--cta { background: var(--cta); color: var(--offwhite); }
.btn--cta:hover { filter: brightness(1.06); }
.btn--block { width: 100%; }
.btn--outline { background: transparent; border-color: var(--slate); color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: var(--offwhite); }
.btn--ghost { background: transparent; color: var(--slate); border-color: transparent; padding-inline: .5rem; }
.btn--ghost:hover { color: var(--orange); }
.section--dark .btn--outline { border-color: rgba(255,255,255,.55); color: #fff; }
.section--dark .btn--outline:hover { background: #fff; color: var(--midnight); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--midnight) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; }
.wordmark { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.wordmark .dot { width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--orange), #d97a08); flex: none; }
.wordmark .name { font-weight: 500; font-size: .9rem; letter-spacing: .01em; }
.site-header .wordmark .name { color: #fff; }
.header-note { font-size: .72rem; color: #aebccd; }

/* ---------- Hero (dark, matches AOA lead-magnet pages) ---------- */
.hero { padding-top: 2.75rem; padding-bottom: 2.75rem; background: var(--midnight); }
.hero .eyebrow { color: #aebccd; }
.hero .h1 { margin-bottom: 1.1rem; color: #fff; }
.hero .lede { color: #c8d2dd; }
.hero .lead-form label { color: #eef1f5; }
.hero .reassure .micro { color: #aebccd; }
.hero .dotsep { color: rgba(255,255,255,.32); }
.hero .hero-foot .who { color: #aebccd; }
.hero .hero-foot .who b { color: #fff; }
.hero .avatar { box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.hero-media { display: none; } /* shown only on desktop split hero */
.hero-foot { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--slate), var(--midnight)); }
.hero-foot .who { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.hero-foot .who b { color: var(--ink); font-weight: 600; }

/* ---------- Email form (merged pill, AOA style) ---------- */
.lead-form label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink); margin-bottom: .5rem; }
/* Mobile-first: stacked full-width input + button (big tap targets, full placeholder) */
.pill-field { display: flex; flex-direction: column; gap: .55rem; }
.pill-field input {
  width: 100%; min-width: 0;
  border: 1.5px solid var(--line); outline: 0; background: var(--white);
  border-radius: var(--radius-pill);
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .92rem 1.2rem; box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pill-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,147,27,.18); }
.pill-field .btn { width: 100%; }

/* >=480px: merge into the signature single AOA pill (input + submit) */
@media (min-width: 480px) {
  .pill-field {
    flex-direction: row; align-items: stretch; gap: 0;
    background: var(--white); border: 1.5px solid var(--line);
    border-radius: var(--radius-pill); padding: .35rem; box-shadow: var(--shadow-soft);
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .pill-field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,147,27,.18); }
  .pill-field input { flex: 1 1 auto; border: 0; box-shadow: none; background: transparent; padding: .55rem .4rem .55rem 1rem; }
  .pill-field input:focus { box-shadow: none; }
  .pill-field .btn { flex: none; width: auto; padding: .8rem 1.35rem; white-space: nowrap; }
}
.reassure { margin-top: .7rem; display: flex; gap: .5rem; align-items: center; justify-content: flex-start; }
.reassure .micro { margin: 0; }
.dotsep { color: var(--n-200); }

/* ---------- "What's inside" ---------- */
.inside-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.inside-item {
  display: flex; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1rem 1.1rem; box-shadow: var(--shadow-soft);
}
.inside-item .ix {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--cobalt-light); color: var(--slate);
  display: grid; place-items: center; font-weight: 600; font-size: .92rem;
}
.inside-item h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.inside-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 1.4rem 1.3rem; box-shadow: var(--shadow-card);
}
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.06rem; line-height: 1.5; color: var(--ink); font-weight: 300; }
.testimonial .who { display: flex; align-items: center; gap: .7rem; }
.testimonial .who .name { font-size: .85rem; font-weight: 600; color: var(--ink); }
.testimonial .who .role { font-size: .78rem; color: var(--muted); }

/* ---------- Placeholder flag ---------- */
.ph { position: relative; }
.ph-tag {
  display: inline-block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: #9a6a12; background: #fdeccb; border: 1px solid #f6d79a;
  padding: .12rem .45rem; border-radius: 999px; font-weight: 600; vertical-align: middle;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: .7rem var(--pad-x) calc(.7rem + env(safe-area-inset-bottom));
  transform: translateY(120%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* ---------- Jump-nav chips (resource — quick-nav into the accordion) ---------- */
.toc-wrap { padding-block: 1.6rem .4rem; }
.toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.toc a {
  text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: .85rem 1rem; font-size: .95rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow-soft);
  transition: border-color .15s ease, transform .12s ease;
}
.toc a:hover { border-color: var(--orange); transform: translateY(-1px); }
.toc a .n { color: var(--orange); font-weight: 600; font-size: 1.05rem; }

/* ---------- Unlocked banner ---------- */
.unlocked {
  background: #eaf6ea; border-bottom: 1px solid #cfe8cf; color: #2f5d2c;
  font-size: .82rem; text-align: center; padding: .6rem var(--pad-x);
}
.unlocked b { color: #224a20; }

/* ---------- Accordion sections (resource) ---------- */
.acc-list { padding-top: .5rem; padding-bottom: .5rem; }
.acc { border-top: 1px solid var(--line); scroll-margin-top: 4.5rem; }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 0; text-align: left; color: var(--ink);
}
.acc-titles { flex: 1 1 auto; min-width: 0; }
.acc-eyebrow { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: .35rem; }
.acc-title { display: block; font-size: 1.4rem; font-weight: 400; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
.acc-meta { flex: none; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.acc-chev { flex: none; color: var(--muted); transition: transform .28s ease; }
.acc[data-open="true"] .acc-chev { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.acc[data-open="true"] .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility .3s; }
.acc[data-open="true"] .acc-panel-inner { visibility: visible; }
.acc-body { padding-bottom: 2rem; }

/* ---------- Essay (embedded read) ---------- */
.essay { font-size: 1.02rem; }
.essay > h3 { margin-top: 1.8rem; }
.essay .insight { display: flex; gap: .7rem; margin-top: 2rem; align-items: baseline; }
.essay .insight .num {
  color: var(--slate); font-weight: 600; font-size: 1.05rem; flex: none;
}
.essay .insight h3 { margin: 0; }
.essay ul.signs { margin: .4rem 0 0; padding-left: 1.1rem; }
.essay ul.signs li { margin-bottom: .3rem; color: var(--ink-soft); }
.essay .arrows { list-style: none; padding: 0; margin: .2rem 0 0; }
.essay .arrows li { color: var(--ink-soft); }
.essay .arrows li::before { content: "→ "; color: var(--slate); }
.try-this {
  margin-top: 1.1rem; background: var(--cobalt-light);
  border-left: 3px solid var(--slate); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .9rem 1.1rem;
}
.try-this .lab { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--slate); display: block; margin-bottom: .3rem; }
.try-this p { margin: 0; font-size: .95rem; color: var(--ink); }
.closing-note { margin-top: 2rem; font-style: italic; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.3rem; }
.download-row { margin-top: 1.8rem; }

/* ---------- "What you'll need" callout ---------- */
.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-soft); margin-bottom: 1.4rem;
}
.callout h3 { margin: 0 0 .6rem; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.callout ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.callout li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.callout li svg { flex: none; margin-top: .15rem; }

/* ---------- Audio / loop players ---------- */
.player {
  background: var(--midnight); color: #eef1f5;
  border-radius: var(--radius-card); padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}
.player.player--loop { background: var(--slate); }
.player .p-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.player .p-title { font-size: .95rem; font-weight: 500; }
.player .p-sub { font-size: .76rem; color: #aebccd; margin-top: .1rem; }
.player .p-row { display: flex; align-items: center; gap: .9rem; }
.play-btn {
  flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  transition: filter .15s ease, transform .12s ease;
}
.play-btn:hover { filter: brightness(1.07); }
.play-btn:active { transform: scale(.96); }
.play-btn svg { display: block; }
.p-track { flex: 1 1 auto; }
.p-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; touch-action: none; }
.p-bar::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 30px; } /* enlarged touch zone */
.p-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--orange); border-radius: 99px; }
.p-time { display: flex; justify-content: space-between; font-size: .72rem; color: #aebccd; margin-top: .45rem; font-variant-numeric: tabular-nums; }
.loop-flag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: #cfe9d6; margin-top: .85rem; }

/* Loop "follow along" cue — gentle breathing pulse while playing */
.loop-cue { display: flex; align-items: center; gap: .75rem; margin-top: 1.05rem; font-size: .82rem; color: #c3cedb; }
.loop-cue .pulse { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); flex: none; }
.loop-cue .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); opacity: .55; }
.player.is-playing .loop-cue .pulse::after { animation: loop-breathe 3.6s ease-in-out infinite; }
@keyframes loop-breathe { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .player.is-playing .loop-cue .pulse::after { animation: none; } }

/* Soft "go deeper" seed after the exercise */
.soft-nudge { margin-top: 1.8rem; font-size: .95rem; }
.soft-nudge a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .15s ease; }
.soft-nudge a:hover { border-color: var(--orange); }
#godeeper { scroll-margin-top: 4.5rem; }

/* ---------- Step guide ---------- */
.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: s; display: grid; gap: .7rem; }
.steps li {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: .95rem 1.05rem;
}
.steps li .sn {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--slate); color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 600;
}
.steps li .st { font-weight: 600; font-size: .96rem; color: var(--ink); }
.steps li .sd { font-size: .86rem; color: var(--muted); margin-top: .1rem; }
.steps li.extra { background: var(--cobalt-light); border-style: dashed; }
.steps li.extra .sn { background: var(--slate); }

/* ---------- Video cards ---------- */
.videos { display: grid; gap: 1rem; margin-top: 1.4rem; }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-soft); }
.vthumb {
  aspect-ratio: 16 / 9; position: relative;
  background: linear-gradient(135deg, #3a4d66, #26303f);
  display: grid; place-items: center;
}
.vthumb .vlabel { position: absolute; left: .8rem; bottom: .7rem; right: .8rem; color: #dfe6ef; font-size: .76rem; }
.vthumb .vplay {
  width: 3.1rem; height: 3.1rem; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: var(--slate);
}
.vbody { padding: .9rem 1rem 1rem; }
.vbody .vk { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.vbody h3 { margin: .3rem 0 .25rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.vbody p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Final CTA ---------- */
.gd-card { text-align: center; }
.gd-card .h2 { color: #fff; }
.gd-card p { color: #c7d0db; }
.gd-actions { display: grid; gap: .7rem; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: #aebccd; padding-block: 2.4rem 6rem; font-size: .82rem; }
.site-footer .wordmark .name { color: #eef1f5; }
.site-footer .fnav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.1rem; }
.site-footer a { color: #aebccd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { margin-top: 1.3rem; color: #9aa7b8; }

/* ============================================================
   DESKTOP / wide screens
   ============================================================ */
@media (min-width: 880px) {
  :root { --pad-x: 2rem; }
  body { font-size: 18px; }

  /* Containers: wide for header/footer, readable column for body */
  .site-header .wrap, .site-footer .wrap { max-width: 64rem; }
  .wrap { max-width: 42rem; }

  /* ---------- GATE: split hero (copy/form + image) ---------- */
  .hero { padding-block: 5rem; }
  .hero--split .wrap { max-width: 64rem; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
  .hero-copy { max-width: 33rem; }
  .hero .h1 { font-size: clamp(2.7rem, 3.4vw, 3.5rem); letter-spacing: -0.02em; }
  .hero .lede { font-size: 1.15rem; }
  .hero-media { display: block; }
  .hero-media-frame {
    position: relative; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden;
    background: radial-gradient(120% 80% at 70% 12%, rgba(110,130,158,.5), transparent 60%),
                linear-gradient(155deg, #3c4f69, #202834);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    display: grid; align-content: end; padding: 1.1rem;
  }
  .hero-media-tag {
    justify-self: start; font-size: .72rem; color: #c3cedb;
    background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14);
    padding: .3rem .65rem; border-radius: 999px;
  }

  /* Gate "what you'll get": two-up grid */
  .inside-list { grid-template-columns: 1fr 1fr; }

  /* ---------- RESOURCE: centered single column ---------- */
  .hero:not(.hero--split) .wrap { max-width: 46rem; }
  .acc-list, .toc-wrap { max-width: 46rem; }
  .toc { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
  .toc-wrap {
    position: sticky; top: 3.25rem; z-index: 30;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(8px);
  }
  .acc-head { padding: 1.7rem 0; }
  .acc-title { font-size: 1.55rem; }
}

@media (min-width: 1200px) {
  .site-header .wrap, .site-footer .wrap, .hero--split .wrap { max-width: 68rem; }
}
