/* ==========================================================================
   Neurodyne Accelerator — funnel design system
   Shared by every page of the Accelerator funnel (upsell + 2 downsells) so the
   visitor always feels they are in the same checkout, never on a new site.

   To build a downsell from this file:
     1. swap the <body> theme class  → theme-step2 / theme-step3
     2. change the progress text and  --progress on .progress
     3. change the discount in .deal-pct
   Everything else (header, cards, CTA, guarantee) stays identical.

   Mobile-first (360 / 375 / 390 / 430) → tablet (768) → desktop.
   ========================================================================== */

:root{
  --bg:#f4f5f7;
  --page:#f7f8fa;
  --surface:#ffffff;
  --navy:#10233a;
  --body:#4b5563;
  --muted:#6b7280;
  --line:#e6e8eb;

  --green:#12a150;
  --green-dark:#0f8a4d;
  --green-soft:#e2f5ea;
  --red:#ef4444;
  --red-soft:#fde8e8;
  --amber:#e8801f;
  --amber-soft:#fdefdb;
  --gold:#f6d98a;

  --cta-from:#22c55e;
  --cta-to:#16a34a;

  --radius:16px;
  --radius-lg:20px;
  --shadow:0 4px 18px rgba(15,35,58,.06);
  --shadow-card:0 6px 22px rgba(15,35,58,.08);
}

/* ---------------------------------------------------------- funnel themes */
.theme-step1{ --top-from:#0f7a47; --top-to:#12a37c; --accent:#12a150; --accent-soft:#e2f5ea; --state:#0f8a4d; }
.theme-step2{ --top-from:#b91c1c; --top-to:#ea580c; --accent:#ef4444; --accent-soft:#fde8e8; --state:#b91c1c; }
.theme-step3{ --top-from:#6b0f0f; --top-to:#b91c1c; --accent:#b91c1c; --accent-soft:#fde8e8; --state:#991b1b; }

/* ---------------------------------------------------------- base */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--body);
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ max-width:100%; }
strong,b{ color:var(--navy); font-weight:700; }
.t-red{ color:var(--red)!important; }

.wrap{
  width:100%;
  max-width:620px;
  margin:0 auto;
  padding-left:18px;
  padding-right:18px;
}
main.page{
  background:var(--page);
  padding-top:22px;
  padding-bottom:44px;
}

/* ==========================================================================
   FUNNEL TOP — success title + step progress (identical on every page)
   ========================================================================== */
.ftop{
  background:linear-gradient(135deg,var(--top-from) 0%,var(--top-to) 100%);
  color:#fff;
  text-align:center;
  padding:18px 0 20px;
}
.ftop-title{
  margin:0 auto;
  max-width:460px;
  font-size:20px;
  line-height:1.32;
  font-weight:800;
  color:#fff;
  text-wrap:balance;
}
.ftop-check{
  display:inline-flex;
  align-items:center;justify-content:center;
  width:24px;height:24px;
  margin-right:6px;
  vertical-align:-5px;
  border-radius:50%;
  background:#fff;
  color:var(--top-from);
}

.progress{
  margin:16px auto 0;
  max-width:420px;
}
.progress-step{
  display:block;
  font-size:16.5px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#fff;
}
.progress-track{
  margin-top:8px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12);
  overflow:hidden;
}
.progress-fill{
  display:block;
  height:100%;
  width:var(--progress,35%);
  border-radius:inherit;
  background:
    repeating-linear-gradient(45deg,rgba(16,35,58,.10) 0 8px,transparent 8px 16px),
    #fff;
  background-size:32px 32px,100% 100%;
  box-shadow:0 0 10px rgba(255,255,255,.6);
  animation:fillIn 1.3s cubic-bezier(.2,.8,.2,1) both, stripes 1.2s linear infinite;
}

/* ==========================================================================
   NOTICE (red pulsing alert)
   ========================================================================== */
.notice{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--surface);
  border:1px solid #fbd5d5;
  border-left:5px solid var(--red);
  border-radius:12px;
  padding:16px 16px 16px 14px;
  box-shadow:var(--shadow);
}
.notice-ico{
  flex:0 0 auto;
  width:52px;height:52px;
  border-radius:50%;
  background:var(--red-soft);
  color:var(--red);
  display:flex;align-items:center;justify-content:center;
}
.notice-ico svg{ width:26px; height:26px; }
.notice-text{
  margin:0;
  font-size:18.5px;
  line-height:1.45;
  font-weight:600;
  color:var(--navy);
}
.notice-red{ color:var(--red); font-weight:800; }
.notice-orange{ color:var(--amber); font-weight:700; }

/* ==========================================================================
   HEADLINE / SUBHEAD / BYLINE
   ========================================================================== */
.headline{
  margin:26px 0 22px;
  text-align:center;
  font-size:29px;
  line-height:1.22;
  font-weight:800;
  color:var(--navy);
  letter-spacing:-.015em;
  text-wrap:balance;
}
.headline-cta{
  display:block;
  margin-top:10px;
  color:var(--green);
  font-size:1em;
  line-height:1.22;
}

/* ==========================================================================
   TEXT
   ========================================================================== */
.prose p{ margin:0 0 14px; }
.prose p:last-child{ margin-bottom:0; }
.prose.center{ text-align:center; }
.punch{
  font-size:19px;
  font-weight:700;
  line-height:1.4;
  color:var(--navy);
}

.block{ margin-top:36px; }

.sec-title{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 14px;
  font-size:25px;
  line-height:1.25;
  font-weight:800;
  color:var(--navy);
  letter-spacing:-.01em;
}
.sec-title.center{ display:block; text-align:center; text-wrap:balance; }
.sec-ico{
  flex:0 0 auto;
  width:42px;height:42px;
  margin-top:-1px;
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
}
.ico-red{ background:var(--red-soft); color:var(--red); }
.ico-amber{ background:var(--amber-soft); color:var(--amber); }
.ico-green{ background:var(--green-soft); color:var(--green); }

/* ==========================================================================
   LOCKED GATE figure
   ========================================================================== */
.gate{
  margin:18px 0;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:20px 18px;
  text-align:center;
}
.gate p{ margin:0 0 10px; font-size:17.5px; color:var(--navy); }
.gate p:last-child{ margin-bottom:0; }

/* ==========================================================================
   ABSORPTION bars
   ========================================================================== */
.absorb{
  margin:18px 0;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:18px 16px;
  display:grid;
  gap:18px;
}
.absorb-bar{
  position:relative;
  height:16px;
  border-radius:999px;
  background:#eef0f3;
  overflow:hidden;
}
.is-closed .absorb-bar{
  background:repeating-linear-gradient(135deg,#fde2e2 0 7px,#fbcaca 7px 14px);
}
.absorb-bar span{
  position:absolute;
  left:0;top:0;bottom:0;
  width:var(--w);
  border-radius:inherit;
  background:linear-gradient(90deg,#16c47f,#12a150);
  animation:fillIn 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.absorb-note{ margin:0 0 10px; font-size:16.5px; line-height:1.55; color:var(--navy); }

/* ==========================================================================
   PRODUCT (dark card) — reused on every Accelerator page
   ========================================================================== */
.product{
  margin-top:38px;
  background:linear-gradient(160deg,#13273e 0%,#0b1a2b 100%);
  color:#c7d0da;
  border-radius:var(--radius-lg);
  padding:26px 20px 24px;
  text-align:center;
  box-shadow:0 14px 36px rgba(11,26,43,.28);
}
.product strong{ color:#fff; }
.product h2{
  margin:0 0 18px;
  color:#fff;
  font-size:26px;
  line-height:1.22;
  font-weight:800;
  text-wrap:balance;
}
.product h2 span{
  display:block;
  margin-top:4px;
  font-size:16.5px;
  font-weight:600;
  color:#4ee39a;
}
.product p{ margin:0 0 12px; font-size:17px; }

.nopes{
  list-style:none;
  margin:4px 0 14px;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.nopes li{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:15px;
  font-weight:600;
  color:#e5ebf1;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  padding:6px 12px 6px 7px;
  border-radius:999px;
}
.nopes li::before{
  content:"✕";
  width:20px;height:20px;
  border-radius:50%;
  background:rgba(255,107,107,.18);
  color:#ff8a8a;
  font-size:11px;
  font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
}
.product .product-close{
  margin:0;
  color:#4ee39a;
  font-weight:700;
}

/* ==========================================================================
   3 STEPS
   ========================================================================== */
.steps{
  list-style:none;
  margin:16px 0 0;
  padding:0;
  display:grid;
  gap:12px;
}
.step{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:18px 16px;
  border-left:4px solid var(--green);
}
.step-num{
  flex:0 0 auto;
  width:34px;height:34px;
  border-radius:50%;
  background:linear-gradient(145deg,#22c55e,#0f8a4d);
  color:#fff;
  font-size:17px;
  font-weight:800;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 10px rgba(18,161,80,.3);
}
.step h3{ margin:3px 0 6px; font-size:19.5px; line-height:1.3; color:var(--navy); }
.step p{ margin:0; font-size:17px; line-height:1.55; }

/* ==========================================================================
   WITHOUT / WITH
   ========================================================================== */
.versus{ display:grid; gap:12px; margin-top:14px; }
.vs-card{
  border-radius:var(--radius);
  padding:18px 16px;
}
.vs-card p{ margin:0; font-size:17px; line-height:1.55; }
.vs-card.is-bad{ background:#fff5f5; border:1px solid #fbd0d0; }
.vs-card.is-good{ background:#effbf3; border:1px solid #bfe9cf; box-shadow:0 6px 20px rgba(18,161,80,.10); }
.vs-badge{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.is-bad .vs-badge{ color:#c81e1e; }
.is-bad .vs-badge::before{ content:"✕ "; }
.is-good .vs-badge::before{ content:"✓ "; }
.is-good .vs-badge{ color:var(--green-dark); }

/* ==========================================================================
   MISTAKES
   ========================================================================== */
.mistake{
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:20px 18px 18px;
  margin-top:14px;
}
.mistake-tag{
  display:inline-block;
  font-size:12.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  background:#f43f5e;
  padding:5px 12px;
  border-radius:999px;
  margin-bottom:10px;
}
.mistake h3{ margin:0 0 10px; font-size:21px; line-height:1.3; color:var(--navy); }
.mistake p{ margin:0 0 10px; font-size:17px; line-height:1.55; }
.mistake .mistake-fix{
  margin:12px 0 0;
  background:#effbf3;
  border-left:4px solid var(--green);
  border-radius:10px;
  padding:12px 14px;
  color:var(--navy);
  font-weight:500;
}

/* ==========================================================================
   OFFER + DEAL
   ========================================================================== */
.offer{
  margin-top:38px;
  background:#f6fdf8;
  border:2px solid var(--green);
  border-radius:var(--radius-lg);
  padding:22px 18px 24px;
  box-shadow:0 10px 30px rgba(18,161,80,.14);
}
.offer .prose p{ font-size:17px; }

.deal{
  text-align:center;
  margin:18px 0 16px;
}
.deal-kicker{
  display:block;
  font-size:14.5px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--navy);
}
.deal-pct{
  display:block;
  margin:2px 0 8px;
  font-size:68px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
  background:linear-gradient(120deg,#2fe07f 0%,#12a150 55%,#0b7d3a 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--green);
}
.deal-line{ margin:0; font-size:17px; line-height:1.5; }

/* ==========================================================================
   CTA (green, pulsing)
   ========================================================================== */
.cta{
  display:block;
  width:100%;
  margin-top:6px;
  border:0;
  cursor:pointer;
  background:linear-gradient(180deg,var(--cta-from) 0%,var(--cta-to) 100%);
  color:#fff;
  font-family:inherit;
  font-size:18px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.005em;
  text-align:center;
  padding:18px 18px;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(22,163,74,.35);
  animation:ctaPulse 1.6s ease-in-out infinite;
  -webkit-tap-highlight-color:transparent;
}
.cta:hover{ animation-play-state:paused; filter:brightness(1.04); }
.cta:active{ transform:translateY(1px); }
.cta:focus-visible{ outline:3px solid #0b5a36; outline-offset:3px; }
.cta-note{
  margin:10px 0 0;
  text-align:center;
  font-size:14.5px;
  font-style:italic;
  color:var(--muted);
}
main.page > .cta{ margin-top:22px; }

/* ==========================================================================
   GUARANTEE
   ========================================================================== */
.guarantee{
  margin-top:30px;
  background:var(--surface);
  border:1px solid #d6efe0;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:26px 20px 24px;
  text-align:center;
}
.seal{
  width:86px;height:86px;
  margin:0 auto 14px;
  border-radius:50%;
  background:linear-gradient(145deg,#16c47f,#0f8a4d);
  box-shadow:0 0 0 6px var(--green-soft), 0 10px 22px rgba(15,138,77,.3);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
}
.seal span{
  font-size:11.5px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.guarantee h2{
  margin:0 0 12px;
  font-size:23px;
  line-height:1.28;
  font-weight:800;
  color:var(--navy);
  text-wrap:balance;
}
.guarantee p{ margin:0 0 12px; font-size:17px; line-height:1.58; }
.guarantee .guarantee-close{
  margin:4px 0 0;
  font-size:18.5px;
  font-weight:800;
  color:var(--green-dark);
}

/* ==========================================================================
   DECLINE (tiny, discreet — only under the last CTA)
   ========================================================================== */
.decline{
  display:block;
  max-width:340px;
  margin:20px auto 6px;
  text-align:center;
  font-size:11.5px;
  line-height:1.5;
  color:#9aa1ab;
  text-decoration:underline;
  cursor:pointer;
}
.decline:hover{ color:#7b838f; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes ctaPulse{
  0%,100%{ transform:scale(1);    box-shadow:0 10px 26px rgba(22,163,74,.35); }
  50%    { transform:scale(1.03); box-shadow:0 14px 34px rgba(22,163,74,.55); }
}
@keyframes ringPulse{
  0%  { box-shadow:0 0 0 0 rgba(239,68,68,.45); }
  70% { box-shadow:0 0 0 12px rgba(239,68,68,0); }
  100%{ box-shadow:0 0 0 0 rgba(239,68,68,0); }
}
.pulse-ring{ animation:ringPulse 1.4s ease-out infinite; }
@keyframes fillIn{ from{ width:0; } }
@keyframes stripes{ to{ background-position:32px 0,0 0; } }

@media (prefers-reduced-motion:reduce){
  .cta,.pulse-ring,.progress-fill,.absorb-bar span{ animation:none; }
}

/* ==========================================================================
   SMALL PHONES
   ========================================================================== */
@media (max-width:359px){
  .wrap{ padding-left:14px; padding-right:14px; }
  .headline{ font-size:25px; }
  .ftop-title{ font-size:18px; }
  .sec-title{ font-size:22px; }
  .deal-pct{ font-size:58px; }
}

/* ==========================================================================
   TABLET +
   ========================================================================== */
@media (min-width:560px){
  .versus{ grid-template-columns:1fr 1fr; }
}
@media (min-width:768px){
  body{ font-size:18px; }
  .wrap{ padding-left:22px; padding-right:22px; }
  .headline{ font-size:36px; margin-top:32px; }
  .sec-title{ font-size:28px; }
  .product h2{ font-size:28px; }
  .deal-pct{ font-size:86px; }
  .cta{ font-size:19.5px; padding:20px 24px; }
  .block{ margin-top:44px; }
}

/* ==========================================================================
   SHARED PIECES — quote card, sub-headline, alert 2nd line, list items
   ========================================================================== */
.quote{
  margin:18px 0;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
  padding:20px 18px;
  border-left:5px solid var(--amber);
}
.quote p{ margin:0 0 10px; font-size:17px; line-height:1.55; color:var(--navy); }
.quote p:last-child{ margin-bottom:0; }
.quote.is-doctor{ border-left-color:var(--green); background:#f6fdf8; }
.quote.is-doctor p{ font-style:italic; }
.quote.is-center{ text-align:center; border-left:0; border-top:5px solid var(--green); }

.subhead{
  margin:0 auto 22px;
  max-width:540px;
  text-align:center;
  font-size:18px;
  line-height:1.5;
  font-weight:500;
  color:var(--body);
}
.notice-sub{
  display:block;
  margin-top:8px;
  font-size:16px;
  font-weight:600;
  color:var(--navy);
}
.step > p{ margin:3px 0 0; font-size:17px; line-height:1.55; }
.step-num.is-check{ font-size:16px; }
.deal-pct + .deal-kicker{ margin:2px 0 10px; font-size:16px; }
.offer.is-plain{ margin-top:14px; }

/* ==========================================================================
   PHOTOS (pages with [INSERT IMAGE] in the copy)
   ========================================================================== */
.photo{ margin:20px 0; }
.photo img{
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--radius);
  box-shadow:var(--shadow-card);
}
.photo.is-mockup img{
  max-width:300px;
  margin:0 auto;
  border-radius:0;
  box-shadow:none;
  filter:drop-shadow(0 14px 24px rgba(15,35,58,.18));
}
