/* Shared funnel styles (every niche). Colours come from each niche's config.theme.
   Graphite surfaces, one signal-yellow accent reserved for action + price,
   condensed display type, mono labels like a parts catalogue.           */
:root {
  --bg: #0f1113;
  --bg-2: #14171a;
  --card: #181c20;
  --line: #2a3036;
  --line-2: #363d45;
  --text: #ecebe6;
  --muted: #a3a7ad;
  --dim: #6f757c;
  --accent: #ffc629;      /* signal yellow: CTA, price, key markers only */
  --accent-ink: #141414;
  --alt: #c6f36b;         /* lime: "green" add-on offers */
  --alt-ink: #142006;
  --ok: #5ee08a;
  --radius: 10px;
  --maxw: 560px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* blueprint grid behind hero, fading out so it never fights the copy */
.hero { position: relative; border-top: 0; padding-top: 36px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: center top; opacity: .6;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.hero > .wrap { position: relative; }

/* bars */
.statusbar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; border-bottom: 1px solid var(--line); background: var(--bg); }
.statusbar .ok { color: var(--ok); white-space: nowrap; }
.statusbar .muted { text-align: right; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.logo { font: 800 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.logo i { width: 18px; height: 18px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.btn-ghost { white-space: nowrap; flex: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; font: 500 12px var(--mono); text-decoration: none; color: var(--muted); }

/* type */
.kicker { font: 700 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.green .kicker::before { background: var(--alt); }
.center .kicker, .kicker.center { justify-content: center; display: flex; }
h1 { font: 800 clamp(40px, 11vw, 54px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin: 14px 0 18px; }
h1 .accent { color: var(--accent); display: block; margin-top: 4px; }
.green h1 .accent { color: var(--alt); }
h2 { font: 700 32px/1.05 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 8px 0 22px; }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }

/* cover: a printed shop manual */
.cover { position: relative; width: 200px; aspect-ratio: 3/4; margin: 26px auto 22px; border-radius: 3px 8px 8px 3px; background: #1b1f23; border: 1px solid var(--line-2); box-shadow: 0 30px 50px -12px rgba(0,0,0,.7), inset 10px 0 0 #121417; display: flex; flex-direction: column; justify-content: center; padding: 22px 18px 22px 26px; overflow: hidden; text-align: left; }
.cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 14px 14px; opacity: .55; }
.cover > * { position: relative; }
.cover .pn { position: absolute; top: 14px; left: 26px; right: 12px; font: 700 7px/1.3 var(--mono); letter-spacing: .12em; color: var(--dim); font-style: normal; }
.cover .band { position: absolute; left: 10px; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(-45deg, var(--accent) 0 9px, #141414 9px 18px); }
.green .cover .band { background: repeating-linear-gradient(-45deg, var(--alt) 0 9px, #141414 9px 18px); }
.cover span { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; }
.cover span:nth-of-type(1) { font-size: 16px; color: var(--muted); letter-spacing: .08em; }
.cover span:nth-of-type(2) { font-size: 56px; color: var(--accent); }
.cover span:nth-of-type(3) { font-size: 28px; }
.green .cover span:nth-of-type(2) { color: var(--alt); }
.cover.small { width: 110px; margin: 0; padding: 12px 8px 12px 16px; }
.cover.small .pn { font-size: 4px; top: 8px; left: 16px; }
.cover.small .band { height: 9px; background-size: auto; }
.cover.small span:nth-of-type(1) { font-size: 9px; }
.cover.small span:nth-of-type(2) { font-size: 27px; }
.cover.small span:nth-of-type(3) { font-size: 15px; }
.badges { display: flex; justify-content: center; gap: 8px; margin: -4px 0 18px; flex-wrap: wrap; }
.badge { font: 700 10px var(--mono); letter-spacing: .1em; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 10px; }

/* price + CTA */
.price-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 4px; }
.price { font: 800 54px/1 var(--display); letter-spacing: -.01em; color: var(--text); }
.was { color: var(--dim); font-size: 20px; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-family: var(--display); font-weight: 700; }
.was s { text-decoration-thickness: 2px; text-decoration-color: var(--muted); }
.was-label { font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.cta { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 19px 18px; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 10px 28px -8px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .08s, filter .15s; }
.cta:hover { filter: brightness(1.07); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible, .decline:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.green .cta { background: var(--alt); color: var(--alt-ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--alt) 40%, transparent), 0 10px 28px -8px color-mix(in srgb, var(--alt) 40%, transparent); }
.decline { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; }
.fineprint { font-size: 12px; color: var(--dim); text-align: center; margin: 10px 0 0; }

/* timer */
.timer { border: 1px solid var(--line-2); border-radius: 6px; padding: 9px; text-align: center; font: 500 13px var(--mono); margin: 18px 0 6px; color: var(--muted); }
.timer b { color: var(--text); font-variant-numeric: tabular-nums; }
.expired { background: #22190a; border: 1px solid #5a4410; border-radius: 8px; padding: 12px; text-align: center; font-size: 14px; }

/* lists & cards */
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 26px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin: 0; padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 700 13px/1 var(--mono); color: var(--accent); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 7px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 14px 0; }
.card .label, .bonus .label { font: 700 11px var(--mono); letter-spacing: .12em; color: var(--dim); margin-bottom: 6px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 6px 0; }
.card li::marker { color: var(--dim); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .card { margin: 0; }
.stat { text-align: center; }
.stat b { display: block; font: 800 40px/1 var(--display); color: var(--text); margin-bottom: 4px; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--card); padding: 18px 20px; border-radius: 4px var(--radius) var(--radius) 4px; margin-top: 14px; }
.green .callout { border-left-color: var(--alt); }
.preview-img { aspect-ratio: 4/3; border-radius: 6px; background: #121518; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; display: grid; place-items: center; color: var(--dim); font: 500 11px var(--mono); padding: 12px; text-align: center; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); }
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
.offer-head { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; margin: 22px 0; text-align: left; }
.offer-head .checks { margin: 0; font-size: 14px; }
.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); margin: 20px 0; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* bonuses: parts-list rows */
.bonus-list { border-top: 1px solid var(--line); }
.bonus { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bonus .label { color: var(--accent); padding-top: 3px; }
.bonus p { margin: 0; font-size: 15px; }

/* accordion */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details > div { padding-top: 10px; color: var(--muted); }
details .checks { margin: 4px 0 0; }
.idx { font: 700 11px var(--mono); font-style: normal; color: var(--dim); letter-spacing: .08em; margin-right: 12px; }

/* guarantee */
.guarantee { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; }
.seal { width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--text); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--line-2); display: grid; place-content: center; text-align: center; font: 800 26px/1 var(--display); }
.seal small { display: block; font: 700 8px var(--mono); letter-spacing: .14em; margin-top: 2px; color: var(--muted); }

/* forms */
label { display: block; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
input { width: 100%; padding: 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #0b0d0f; color: var(--text); font-size: 16px; }
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.demo-note { border: 1px dashed var(--accent); color: var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 16px 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 96px; font-size: 12px; color: var(--dim); text-align: center; }
footer b { font: 800 16px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
footer a { margin: 0 6px; }

/* sticky mobile CTA */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgba(15,17,19,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; z-index: 10; }
.sticky.show { transform: none; }
.sticky .wrap { display: flex; align-items: center; gap: 14px; padding: 0; }
.sticky .cta { padding: 14px; font-size: 18px; }
.sticky .p { font: 800 28px/1 var(--display); white-space: nowrap; }

/* thank-you page (light) */
body.light { background: #efeee9; color: #16181a; }
.ty { max-width: 520px; margin: 40px auto; background: #fff; border-radius: 14px; padding: 34px 22px; border: 1px solid #e2e0d8; }
.ty .tick { width: 80px; height: 80px; border-radius: 50%; background: #e3f7e9; color: #15803d; display: grid; place-items: center; font-size: 38px; margin: 0 auto 16px; }
.ty h1 { font-size: 40px; text-align: center; margin: 0 0 8px; }
.ty .box { background: #f7f6f2; border-radius: 10px; padding: 16px; margin: 22px 0; }
.ty .box h4 { margin: 0 0 8px; font: 700 11px var(--mono); letter-spacing: .12em; color: #6b6f75; }
.ty .summary-row.total { border-color: #e2e0d8; }
.dl { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #e2e0d8; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.dl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dl a { background: #16181a; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ty .cta { box-shadow: none; }
.info { background: #fdf7e3; border: 1px solid #f1df9e; color: #5c4708; border-radius: 8px; padding: 14px; text-align: center; margin: 20px 0; }

@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } .price { font-size: 46px; } }

/* =========================== DESKTOP / TABLET =========================== */
.lead { font-size: 17px; }
.narrow, .narrow-faq { max-width: var(--maxw); }

@media (min-width: 760px) {
  .wrap { max-width: 720px; padding: 0 32px; }
  .section { padding: 72px 0; }
  h2 { font-size: 40px; }
  .previews, .offer-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .previews { grid-template-columns: repeat(3, 1fr); }
  .previews .card, .offer-cards .card { margin: 0; }
  .offer-cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .narrow-cta { max-width: 440px; margin-left: auto; margin-right: auto; }
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .pricebox { max-width: 480px; margin: 0 auto; }
  .sticky .wrap { max-width: 560px; }
}

@media (min-width: 1000px) {
  :root { --maxw: 1160px; }
  .wrap { max-width: 1160px; padding: 0 40px; }
  .nav, .statusbar { padding-left: max(40px, calc((100vw - 1160px) / 2 + 40px)); padding-right: max(40px, calc((100vw - 1160px) / 2 + 40px)); }

  /* landing hero: copy left, product + price right */
  .hero { padding: 80px 0 72px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; text-align: left; }
  .hero-copy .kicker { display: inline-flex; }
  .hero-grid h1 { font-size: clamp(64px, 6vw, 84px); }
  .hero-grid .lead { font-size: 19px; max-width: 34em; }
  .hero-buy { background: rgba(24,28,32,.85); border: 1px solid var(--line); border-radius: 14px; padding: 8px 32px 32px; text-align: center; backdrop-filter: blur(4px); }
  .hero-buy .cover { width: 220px; }

  /* steps become a row */
  .steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps-row li { border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 64px; }
  .steps-row li::before { left: 20px; top: 4px; }

  .previews, .offer-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .offer-cards .card:last-child:nth-child(odd) { grid-column: auto; }
  .modules { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .modules details:nth-child(2) { border-top: 1px solid var(--line); }
  .bonus-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .bonus-list .bonus:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .narrow { max-width: 620px; }
  .narrow-faq { max-width: 780px; }

  /* upsell pages stay a focused, centred column */
  body.green .section > .wrap, body.orange .section > .wrap { max-width: 1000px; }
  body.green .hero > .wrap, body.orange .hero > .wrap { max-width: 760px; }
  body.green h1, body.orange h1 { font-size: 68px; }
  .offer-cards { grid-template-columns: repeat(3, 1fr); }
  body.green .section:last-of-type > .wrap, body.orange .section:last-of-type > .wrap { max-width: 780px; }

  .sticky { display: none; }
  .nav { position: sticky; top: 0; z-index: 20; background: rgba(15,17,19,.92); backdrop-filter: blur(10px); }
  .nav .btn-ghost { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
}

/* ---- reference-style framing elements ---- */
.urgent { background: var(--accent); color: var(--accent-ink); text-align: center; font: 800 15px/1.2 var(--display); letter-spacing: .08em; padding: 11px 16px; text-transform: uppercase; }
.confirm { background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; font-size: 14px; text-align: center; margin: 0 auto 18px; max-width: 460px; }
.pill { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 5px 14px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }
.save { display: inline-block; background: #1f3a26; color: var(--ok); border-radius: 4px; padding: 5px 12px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 4px 0; }
.cover-wrap { position: relative; width: fit-content; margin: 0 auto; }
.burst { position: absolute; top: 18px; right: -26px; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-content: center; text-align: center; font: 800 24px/1 var(--display); transform: rotate(12deg); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.burst small { display: block; font: 700 9px var(--mono); letter-spacing: .1em; }
.video-cap { color: var(--accent); font-weight: 600; font-size: 14px; margin: -8px 0 8px; }
.see-inside { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); text-decoration: none; }
.pricebox.boxed { border: 1px solid var(--accent); border-radius: 12px; padding: 22px 18px; background: var(--card); }
.last-chance .pricebox { border: 1px dashed var(--accent); border-radius: 12px; padding: 24px 18px; }
.last-chance h2 { color: var(--text); }
.card-mods { margin-top: 26px; }
.cmod { margin: 22px 0; }
.cmod-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.cmod-head b { font: 700 18px var(--display); text-transform: uppercase; letter-spacing: .03em; }
.cmod-head span { font: 500 11px var(--mono); color: var(--dim); }
.cmod-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { background: #f4f2ea; color: #16181a; border-radius: 6px; padding: 9px 9px 12px; font-size: 12px; font-weight: 700; line-height: 1.3; border-top: 4px solid var(--accent); }
.mini i { display: block; font: 700 9px var(--mono); font-style: normal; color: #6b6f75; margin-bottom: 5px; }
.cmod:nth-child(2) .mini { border-top-color: #ff7a45; }
.cmod:nth-child(3) .mini { border-top-color: #ffd23f; }
.cmod:nth-child(4) .mini { border-top-color: #4aa8ff; }
.cmod:nth-child(5) .mini { border-top-color: #5ee08a; }
.cmod:nth-child(6) .mini { border-top-color: #b48cff; }
@media (min-width: 1000px) { .card-mods { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; } }
