/* Life in Color — design system matched to the original CF2.0 page.
   Exact values extracted from the CF snapshot CSS (docs/design-tokens.json)
   + the reference screenshots (docs/ in vault).
   Fonts: Ivy Presto Headline (display) + Inter (body). */

@font-face {
  font-family: "Ivy Presto Headline";
  src: url("/fonts/ivy-presto-headline.otf") format("opentype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: rgb(14, 23, 42);          /* headline navy (exact) */
  --body-ink: rgb(18, 18, 18);
  --muted: rgb(107, 107, 107);
  --gold: rgb(191, 175, 0);        /* headline highlight + checks (exact) */
  --gold-soft: #a5941c;            /* timer bar */
  --cream: #faf8f0;                /* page base */
  --cream-2: rgb(249, 249, 240);   /* bio band (exact) */
  --cream-3: rgb(252, 251, 249);   /* modules band (exact) */
  --card-bg: rgb(255, 255, 248);   /* module card (exact) */
  --card-border: rgb(240, 241, 227);
  --blue-bg: rgb(243, 246, 253);   /* bonuses band (exact) */
  --coral: rgb(255, 111, 97);      /* CTA card border (exact) */
  --grad-a: rgb(255, 163, 97);     /* button gradient (exact) */
  --grad-b: rgb(255, 111, 97);
  --green: #3ec463;                /* "Now Only $47" */
  --teal: rgb(103, 146, 168);      /* bonus 1 (exact) */
  --leaf: rgb(129, 168, 103);      /* bonus 2 (exact) */
  --plum: rgb(158, 103, 168);      /* bonus 3 (exact) */
  --dust: rgb(168, 103, 103);      /* time-limited bonus label (exact) */
  --navy-band: #1e293b;            /* guarantee header */
  --line: rgb(226, 232, 240);
  --max: 1080px;
  --narrow: 620px;                 /* original body copy column is narrow */
  --card-w: 894px;                 /* original module-card width */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Ivy Presto Headline", Georgia, serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.55rem); }
.gold { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap.narrow { max-width: var(--narrow); }
.wrap.mid { max-width: 800px; }
.center { text-align: center; }
.sub { color: var(--muted); }
.mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb1 { margin-bottom: 1rem; } .mb2 { margin-bottom: 2rem; }

/* bands matching the original section tints */
.band-cream2 { background: var(--cream-2); }
.band-cream3 { background: var(--cream-3); }
.band-blue { background: var(--blue-bg); }
/* scattered-illustration decoration behind the story copy */
.band-decor {
  background: url("/images/section-bg-decor.jpg") center top / 100% auto no-repeat;
}
/* yellow crayon-stroke band behind hero image / product mockups */
.crayon {
  background: url("/images/crayon-band.png") center 55% / 100% auto no-repeat;
  padding: 2rem 0;
}

.eyebrow {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .9rem;
  display: inline-block;
}
.section-icon { width: 44px; height: auto; margin: 0 auto .6rem; }

/* ---- check lists (gold circles; themable per card) ---- */
.checks { --check: var(--gold); list-style: none; margin: 1.25rem 0; text-align: left; }
.checks li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: .7rem;
  font-size: .95rem;
}
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: .1rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--check); color: #fff;
  font-size: .72rem; line-height: 1.25rem; text-align: center;
  font-weight: 700;
}
/* small gold dot list (invitation section) */
.dots { list-style: none; margin: 1rem 0; }
.dots li { padding-left: 1.3rem; position: relative; margin-bottom: .45rem; font-size: .95rem; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: .48rem;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold);
}

/* ---- CTA button: original orange gradient with inner subline ---- */
.btn {
  display: inline-block;
  width: 100%;
  background: linear-gradient(145deg, var(--grad-a) 0%, var(--grad-b) 70%);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  padding: 1rem 1.5rem .85rem;
  box-shadow: 0 6px 18px rgba(255, 111, 97, .35);
  transition: transform .12s ease, filter .12s ease;
  font-family: "Inter", sans-serif;
  /* original CF checkout: .elButtonText 28px desktop / 16px mobile, weight 700 */
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
@media (max-width: 770px) { .btn { font-size: 18px; } }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn .btn-main {
  display: block;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
}
.btn .btn-main::after { content: " ➜"; font-weight: 400; }
.btn .btn-inner-sub {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  opacity: .9;
  margin-top: .2rem;
}
.btn-fine { display: block; margin-top: .9rem; font-size: .8rem; color: var(--body-ink); font-style: italic; }

/* ---- CTA card (white, coral border) ---- */
.cta-card {
  background: #fff;
  border: 3px solid var(--coral);
  border-radius: 15px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 10px 30px rgba(14, 23, 42, .08);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.cta-card h3 { font-size: 1.5rem; line-height: 1.25; }
.value-line {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  color: var(--muted); font-size: .95rem; margin-top: .5rem;
}
.value-line.gold-label { color: var(--gold); font-weight: 600; }
.value-line::before, .value-line::after {
  content: ""; height: 1px; width: 3.5rem; background: var(--line);
}
.value-line s { color: inherit; }
.price-green {
  color: var(--green);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-family: "Inter", sans-serif;
  margin: .2rem 0 .4rem;
}
.cta-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.trust-img { max-width: 420px; margin: 1.1rem auto 0; }

/* ---- module / bonus cards (original: 894px, 3px pale border, 15px radius) ---- */
.mcard {
  --theme: var(--gold);
  background: var(--card-bg);
  border: 3px solid var(--card-border);
  border-radius: 15px;
  max-width: var(--card-w);
  margin: 2rem auto 0;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}
.mcard .mcard-label {
  font-family: "Ivy Presto Headline", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--theme);
}
.mcard .mcard-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.75rem; align-items: start; margin-bottom: .25rem; }
.mcard .mcard-top img { border-radius: 10px; }
.mcard h3 { margin: .15rem 0 .6rem; font-size: 1.5rem; }
.mcard p { font-size: .95rem; }
.mcard .checks { --check: var(--theme); margin-bottom: .5rem; }
.mcard .close-line { font-size: .93rem; font-weight: 700; font-style: italic; }
@media (max-width: 720px) { .mcard .mcard-top { grid-template-columns: 1fr; } }

.bonus-card { background: #fff; }
.bonus-card.t-teal { --theme: var(--teal); border-color: var(--teal); }
.bonus-card.t-leaf { --theme: var(--leaf); border-color: var(--leaf); }
.bonus-card.t-plum { --theme: var(--plum); border-color: var(--plum); }
.bonus-card .bonus-sub { font-weight: 700; font-style: italic; font-size: 1rem; }

/* ---- guarantee card (navy header band) ---- */
.guarantee-card {
  background: #fff;
  border-radius: 15px;
  border: 2px solid var(--line);
  max-width: var(--card-w);
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}
.guarantee-card .g-head {
  background: var(--navy-band);
  color: #fff;
  padding: 1.4rem 1.5rem;
}
.guarantee-card .g-head p { font-size: .9rem; opacity: .9; margin-bottom: .3rem; }
.guarantee-card .g-head h2 { color: #fff; font-size: 1.7rem; }
.guarantee-card .g-body { padding: 2rem clamp(1.25rem, 6vw, 4rem) 2.25rem; text-align: left; }
.guarantee-card .g-body img { width: 190px; margin: 0 auto 1.5rem; }
.guarantee-card .g-body p { font-size: .95rem; margin-top: .8rem; }
.guarantee-card .not-all {
  font-family: "Ivy Presto Headline", Georgia, serif;
  color: var(--gold); font-weight: 700; font-size: 1.25rem;
  text-align: center; margin-top: 1.5rem;
}

/* ---- value stack (icon list, not a table) ---- */
.stack-list { list-style: none; max-width: 640px; margin: 2rem auto 0; text-align: left; }
.stack-list li { padding-left: 2.1rem; position: relative; margin-bottom: 1.1rem; font-size: .95rem; }
.stack-list li .icon {
  position: absolute; left: 0; top: .1rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--gold); color: #fff;
  font-size: .75rem; line-height: 1.35rem; text-align: center; font-weight: 700;
}
.stack-list li .icon.gift { background: transparent; font-size: 1.15rem; line-height: 1.2; }
.stack-list li .price { display: block; font-weight: 700; margin-top: .15rem; }
.stack-list li .price s { color: var(--muted); }
.plus-bonuses {
  font-family: "Ivy Presto Headline", Georgia, serif;
  color: var(--gold); font-weight: 700; font-size: 1.2rem;
  text-align: center; margin: 1.75rem 0 1.25rem;
}

/* ---- FAQ (white card accordion, gold plus) ---- */
.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  max-width: var(--card-w);
  margin: 2rem auto 0;
  padding: .75rem 1.75rem;
}
.faq-card details { border-bottom: 1px solid var(--line); }
.faq-card details:last-child { border-bottom: none; }
.faq-card summary {
  list-style: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--body-ink);
  padding: .95rem 0 .95rem 1.7rem;
  position: relative;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::before {
  content: "+"; position: absolute; left: 0; top: .8rem;
  color: var(--gold); font-weight: 800; font-size: 1.2rem; line-height: 1.2;
}
.faq-card details[open] summary::before { content: "–"; }
.faq-card details p { padding: 0 0 1rem 1.7rem; font-size: .93rem; color: var(--body-ink); }

/* ---- footer (dark charcoal like the original) ---- */
footer {
  background: #333;
  color: #cfcfcf;
  padding: 2.25rem 1.25rem;
  text-align: center;
  font-size: .8rem;
  margin-top: 3rem;
}
footer a { color: #cfcfcf; }
footer .meta-disclaimer { max-width: 720px; margin: 1rem auto 0; font-size: .74rem; opacity: .85; }

/* ---- LTB countdown bar (unchanged mechanics, original look) ---- */
#lc-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: none; align-items: center; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--gold-soft); color: #fff;
  padding: .65rem 3.4rem .65rem 1rem;
  font-size: .95rem; font-weight: 600;
}
#lc-bar .seg { text-align: center; min-width: 3.2rem; }
#lc-bar .num { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
#lc-bar .lab { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
#lc-hide {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.18); color: #fff; border: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: .35rem .6rem; border-radius: 6px; cursor: pointer;
}
#lc-showtab {
  position: fixed; right: 1rem; bottom: 0; z-index: 999;
  display: none;
  background: var(--gold-soft); color: #fff; border: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: .45rem .8rem; border-radius: 8px 8px 0 0; cursor: pointer;
}

/* ---- checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: start; max-width: var(--max); margin: 0 auto; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .order-summary { order: -1; } }
.trust-strip {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  padding: .9rem 1rem; font-size: .88rem; font-weight: 600; color: var(--ink);
  background: #fff; border-bottom: 1px solid var(--line);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  box-shadow: 0 6px 24px rgba(14, 23, 42, .05);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; }
.field input {
  width: 100%; padding: .8rem 1rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: inherit;
}
.field input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.bump {
  border: 2px dashed var(--coral);
  background: #fff8f0;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  cursor: pointer;
  display: flex; gap: .9rem; align-items: flex-start;
}
.bump input[type="checkbox"] { margin-top: .3rem; width: 1.2rem; height: 1.2rem; accent-color: var(--coral); flex-shrink: 0; }
.bump .bump-img { width: 110px; flex-shrink: 0; border-radius: 8px; align-self: center; }
@media (max-width: 520px) { .bump .bump-img { display: none; } }
.bump .bump-title { font-weight: 800; font-size: .95rem; }
.bump .bump-title .arrow { color: var(--coral); }
.bump p { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
#payment-element { margin: 1.4rem 0; }
.pay-error { color: #b3261e; font-size: .92rem; margin-top: .8rem; min-height: 1.2em; }
.secure-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.order-summary .stack-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.order-summary .stack-row .val { white-space: nowrap; font-weight: 700; }
.order-summary .stack-row .val .free { color: var(--green); margin-left: .35rem; }
.order-summary .stack-row:last-of-type { border-bottom: none; }
.order-summary .total-row { font-size: 1.1rem; font-weight: 800; border-top: 2px solid var(--ink); }

/* price bits kept for checkout/upsell pages */
.price-strike { text-decoration: line-through; color: var(--muted); font-size: 1.3rem; }
.price-now { font-family: "Ivy Presto Headline", Georgia, serif; font-size: 2.8rem; font-weight: 700; color: var(--gold); }
.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.guarantee { display: grid; grid-template-columns: 170px 1fr; gap: 1.75rem; align-items: center; }
@media (max-width: 640px) { .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* legacy helper kept for generated pages */
.module { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center; margin-top: 2.5rem; }
.module img { border-radius: 12px; }
@media (max-width: 720px) { .module { grid-template-columns: 1fr; gap: 1.25rem; } }

/* spinner */
.spin {
  display: inline-block; width: 1em; height: 1em;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
