/* css/landing.css — ad-destination landing pages
   Loaded AFTER site.css. Each page sets --c-ink / --c-tint on <body> so the
   whole funnel inherits its bundle's category colour. */

/* ── Hero ── */
.lp-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 88% 0%, var(--c-tint) 0%, transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
}
.lp-hero__in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
  padding-block: clamp(34px, 5.5vw, 74px);
}
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-tint); color: var(--c-ink);
  padding: 7px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.lp-kicker svg { width: 14px; height: 14px; }
.lp-hero h1 {
  font-size: clamp(31px, 4.6vw, 54px); letter-spacing: -.045em;
  line-height: 1.04; margin-top: 18px;
}
.lp-hero__sub { margin-top: 18px; font-size: clamp(15px, 1.35vw, 17.5px); color: var(--ink-3); max-width: 52ch; line-height: 1.6; }

/* Price block — the single most-read element on the page */
.lp-buy {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-lg);
}
.lp-buy__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lp-buy__price { font-size: clamp(36px, 4.6vw, 50px); font-weight: 800; color: var(--ink); letter-spacing: -.05em; line-height: 1; }
.lp-buy__was { font-size: 17px; color: var(--ink-4); text-decoration: line-through; }
.lp-buy__save {
  background: var(--c-ink); color: #fff; border-radius: 999px;
  padding: 5px 11px; font-size: 12px; font-weight: 800; letter-spacing: -.01em;
}
.lp-buy__note { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.lp-buy .btn { margin-top: 18px; padding: 16px; font-size: 15px; }
.lp-buy__eta {
  margin-top: 12px; display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-2);
}
.lp-buy__eta svg { width: 17px; height: 17px; color: var(--c-ink); flex: none; }
.lp-buy__assure { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.lp-buy__assure span { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lp-buy__assure svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.lp-buy__label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}

/* Applied code — the number people are actually reading, so it gets its own
   block rather than being folded into the headline price. */
.lp-buy__code {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r);
  background: var(--accent-3); color: var(--accent-ink);
  display: flex; flex-direction: column; gap: 6px;
}
.lp-buy__code-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.lp-buy__code-row svg { width: 15px; height: 15px; flex: none; color: var(--ok); }
.lp-buy__code-row b { font-family: var(--mono); font-weight: 700; }
.lp-buy__code-now { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.lp-buy__code-now small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0; opacity: .85; margin-top: 2px; }

/* ── Hero product showcase ──
   What you get, that each vial is verified, and what each part costs on its
   own — all before the fold, so the price card lands against something real. */
.lp-show { margin-top: 28px; }
.lp-show__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 12px 8px 11px;
  text-align: center; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.lp-chip:hover { border-color: var(--c-ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.lp-chip__art {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-sm);
  background: linear-gradient(158deg, var(--silver-a), var(--surface-2) 60%, var(--silver-b));
  overflow: hidden; margin-bottom: 7px;
}
.lp-chip__art > img, .lp-chip__art > svg {
  position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain;
}
.lp-chip__name {
  font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: -.025em;
  line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-chip__size { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.lp-chip__purity {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
  background: var(--c-tint); color: var(--c-ink); border-radius: 999px;
  padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .02em;
}
.lp-chip__purity svg { width: 11px; height: 11px; flex: none; }
.lp-chip__purity.is-solvent { background: var(--surface-2); color: var(--ink-2); }
.lp-chip__price { margin-top: 5px; font-size: 13px; font-weight: 800; color: var(--ink); }
.lp-show__foot {
  display: flex; gap: 9px; margin-top: 14px;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-3);
}
.lp-show__foot svg { width: 16px; height: 16px; flex: none; color: var(--c-ink); margin-top: 1px; }
.lp-show__foot b { color: var(--ink); }

@media (max-width: 900px) { .lp-hero__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .lp-show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lp-chip__name { font-size: 12px; }
  .lp-buy__code-now { font-size: 23px; }
}

/* ── Bundle contents ── */
.lp-items { display: grid; gap: 12px; }
.lp-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 18px 14px 14px;
  transition: border-color .18s, box-shadow .18s;
}
.lp-item:hover { border-color: var(--c-ink); box-shadow: var(--shadow-sm); }
.lp-item__art {
  width: 84px; height: 84px; border-radius: var(--r); position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--silver-a), var(--surface-2) 60%, var(--silver-b));
}
.lp-item__art > img, .lp-item__art > svg {
  position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain;
}
.lp-item__art { display: block; }
.lp-item__name { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -.028em; }
.lp-item__meta { display: block; font-size: 12px; color: var(--ink-4); font-family: var(--mono); margin-top: 2px; }
.lp-item__why { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.lp-item__price { display: block; font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.lp-item__price small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-4); text-align: right; }
@media (max-width: 620px) {
  .lp-item { grid-template-columns: 62px 1fr; padding: 12px; gap: 12px; row-gap: 8px; }
  .lp-item__art { width: 62px; height: 62px; }
  .lp-item__price { grid-column: 2; text-align: left; font-size: 15px; }
  .lp-item__price small { text-align: left; display: inline; margin-left: 6px; }
}

/* Totals bar */
.lp-total {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--c-tint); border: 1px solid var(--c-ink); border-radius: var(--r-lg);
  padding: 18px 22px; margin-top: 14px;
}
.lp-total__l { display: block; font-size: 14px; font-weight: 700; color: var(--c-ink); }
.lp-total__l small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.lp-total__r { display: block; text-align: right; }
.lp-total__was { display: block; font-size: 14px; color: var(--ink-4); text-decoration: line-through; }
.lp-total__now { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }

/* ── Pathway cards ── */
.lp-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.lp-path {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--c-ink); border-radius: var(--r-lg); padding: 22px 20px;
}
.lp-path h3 { font-size: 16px; letter-spacing: -.025em; margin-bottom: 8px; }
.lp-path p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

/* ── Problem / solution split ── */
.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-vs__col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--paper); }
.lp-vs__col--bad { background: var(--surface); }
.lp-vs__col h3 { font-size: 15px; margin-bottom: 14px; }
.lp-vs__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-vs__col li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.lp-vs__col li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lp-vs__col--bad li svg { color: var(--ink-4); }
.lp-vs__col--good li svg { color: var(--ok); }
@media (max-width: 700px) { .lp-vs { grid-template-columns: 1fr; } }

/* ── Sticky mobile buy bar ──
      Desktop keeps the price card in view; phones lose it after one scroll. */
.lp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 14px;
  box-shadow: 0 -4px 20px rgba(28,33,40,.10);
  transform: translateY(110%); transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.lp-sticky.is-up { transform: none; }
.lp-sticky__price { line-height: 1.15; }
.lp-sticky__price b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.035em; }
.lp-sticky__price span { font-size: 11.5px; color: var(--ink-4); text-decoration: line-through; }
.lp-sticky .btn { margin-left: auto; flex: 1; max-width: 220px; padding: 14px 18px; }
@media (max-width: 900px) {
  .lp-sticky { display: flex; }
  body.lp { padding-bottom: 76px; }
}

/* ── Final CTA band ── */
.lp-final { background: var(--ink); color: #C3CBD3; text-align: center; }
.lp-final h2 { color: #fff; }
.lp-final .lp-buy__price { color: #fff; }
.lp-final__box { max-width: 560px; margin-inline: auto; }

/* ═══════════════════  EDUCATION LAYER  ═══════════════════ */

/* Thesis */
.lp-thesis__in { max-width: 74ch; }
.lp-chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 8px; margin-top: 30px;
}
.lp-chain__step {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--c-tint); color: var(--c-ink);
  border-radius: 999px; padding: 9px 16px 9px 9px;
  font-size: 13px; font-weight: 800; letter-spacing: -.01em;
}
.lp-chain__n {
  width: 21px; height: 21px; border-radius: 50%; flex: none;
  background: var(--c-ink); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.lp-chain__arrow { color: var(--ink-4); font-size: 15px; }

/* Compound breakdown */
.lp-mech { display: grid; gap: 14px; }
.lp-mech__row {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 2.4vw, 30px);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(16px, 2vw, 24px);
}
.lp-mech__art {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r);
  background: linear-gradient(158deg, var(--silver-a), var(--surface-2) 60%, var(--silver-b));
  overflow: hidden;
}
.lp-mech__art > a { position: absolute; inset: 0; display: block; }
.lp-mech__art img, .lp-mech__art svg {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  object-fit: contain;
}
.lp-mech__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.lp-mech__head h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.03em; }
.lp-mech__head h3 a:hover { color: var(--c-ink); }
.lp-mech__stage {
  background: var(--c-ink); color: #fff; border-radius: 999px; padding: 4px 11px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.lp-mech__stage--mute { background: var(--ink-4); }
.lp-mech__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.lp-mech__role {
  margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--c-ink); letter-spacing: -.02em;
}
.lp-mech__dl { margin: 14px 0 0; display: grid; gap: 10px; }
.lp-mech__dl dt {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 3px;
}
.lp-mech__dl dd { margin: 0; font-size: 14px; line-height: 1.62; color: var(--ink-3); }
.lp-mech__refs {
  display: grid; gap: 7px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lp-mech__refs > span {
  color: var(--ink-4); font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.lp-mech__refs a {
  width: fit-content; color: var(--c-ink); font-size: 13px; font-weight: 700;
  line-height: 1.42; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-ink) 42%, transparent);
  text-underline-offset: 3px;
}
.lp-mech__refs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.lp-mech__refs b { display: inline-block; text-decoration: none; }

/* Unison flow */
.lp-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.lp-flow__item {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--c-ink);
  border-radius: var(--r-lg); padding: 20px 18px;
}
.lp-flow__badge {
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--c-tint); color: var(--c-ink); font-size: 12px; font-weight: 800;
}
.lp-flow__stage {
  display: block; margin-top: 12px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink);
}
.lp-flow__name {
  display: block; margin-top: 5px; font-size: 17px; font-weight: 800;
  color: var(--ink); letter-spacing: -.03em;
}
.lp-flow__role { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.lp-flow__link {
  position: absolute; top: 50%; right: -14px; width: 14px; height: 2px;
  background: var(--line-2);
}
@media (max-width: 760px) { .lp-flow__link { display: none; } }

/* ── Mobile ── */
@media (max-width: 700px) {
  .lp-mech__row { grid-template-columns: 92px 1fr; gap: 14px; padding: 14px; }
  .lp-mech__head h3 { font-size: 17px; }
  .lp-mech__role { font-size: 14px; }
  .lp-mech__dl dd { font-size: 13.5px; }
  .lp-chain { gap: 8px 6px; }
  .lp-chain__step { font-size: 12px; padding: 7px 13px 7px 7px; }
  .lp-chain__arrow { display: none; }
  .lp-flow { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .lp-mech__row { grid-template-columns: 1fr; }
  .lp-mech__art { width: 108px; }
}

/* ═══════════════════  SCROLL ANIMATION  ═══════════════════
   Light: a short rise + fade, staggered by --d. Never the only thing making
   content visible — see the failsafe in observeReveals(). */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1) var(--d, 0ms),
              transform .55s cubic-bezier(.22,.61,.36,1) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Direct COA access on the funnels ── */
.lp-item-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .18s, box-shadow .18s;
}
.lp-item-wrap:hover { border-color: var(--c-ink); box-shadow: var(--shadow-sm); }
.lp-item-wrap .lp-item { border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.lp-item-wrap .lp-item:hover { box-shadow: none; }
.lp-item__coa { padding: 0 18px 14px; }

.lp-mech__coa { margin-top: 12px; }

.lp-coas { display: grid; gap: 18px; }
@media (min-width: 1000px) { .lp-coas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-coa .coa-card { height: auto; }
