/*
 * ClipVault funnel styles.
 *
 * CONGRUENT WITH THE ADVERTORIAL BY CONSTRUCTION. Every token, the type scale,
 * the button and the nav below are lifted verbatim from
 * scripts/story-mockup.template.html — same values, not similar ones. A buyer
 * crossing from the landing page into checkout should not be able to tell that
 * anything changed but the content.
 *
 * If the advertorial's palette or button changes, change it here in the same
 * pass, or the seam comes back.
 */
:root {
  --void:    #FAF7F1;
  --void-2:  #F2ECE1;
  --void-3:  #E9E1D2;
  --line:    rgba(30,25,17,.13);
  --line-2:  rgba(30,25,17,.26);
  --cream:   #1C1810;
  --text:    #4A4133;
  --text-2:  #6B6152;
  --text-3:  #918878;
  --amber:   #B0700F;
  --amber-2: #8A5405;
  --amber-d: #6E4204;
  --r:       14px;
  font-family: "Inter Tight", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--text); line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .disp {
  font-family: "Fraunces", Georgia, serif; font-weight: 400; margin: 0;
  color: var(--cream); letter-spacing: -.005em; line-height: 1.08; text-wrap: balance;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.lab { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--amber); color: #FFF8EC;
  font-size: 14px; font-weight: 700; padding: 15px 28px; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 22px -10px rgba(176,112,15,.45);
}
.btn:hover:not(:disabled) { background: var(--amber-d); transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(176,112,15,.5); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; }

/* nav — the advertorial's, minus its CTA: nothing should compete with the
   purchase already in progress */
.nav { border-bottom: 1px solid var(--line); background: var(--void-2); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif;
  font-size: 20px; color: var(--cream); text-decoration: none; }
.logo .m { width: 26px; height: 26px; color: var(--amber); flex: none; }
.nav .step-of { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }

main { padding: clamp(44px,6vw,78px) 0 clamp(52px,7vw,86px); }
.head { max-width: 640px; margin: 0 auto 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 15px; }
.head h1 { font-size: clamp(32px,5vw,56px); }
.head h1 em { font-style: italic; color: var(--amber-2); }
.head p { font-size: 16.5px; color: var(--text); max-width: 46ch; margin: 0; }

/* price — the advertorial's proportions */
.price { display: flex; align-items: baseline; gap: 14px; justify-content: center; flex-wrap: wrap; }
.price .n { font-family: "Fraunces", serif; font-size: clamp(44px,6vw,60px); color: var(--cream); line-height: 1; }
.price .w { font-size: 16.5px; color: var(--text-3); text-decoration: line-through; }
.price .o { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(176,112,15,.5); padding: 5px 9px; border-radius: 999px; }

/* pack grid — the covers do the selling */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 16px;
  max-width: 900px; margin: 0 auto; }
.pack { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--void-2); }
.pack img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pack .m { padding: 13px 15px 15px; }
.pack .c { font-family: "Fraunces", serif; font-size: 21px; color: var(--amber-2); line-height: 1; }
.pack .t { font-size: 13.5px; color: var(--text); margin-top: 5px; line-height: 1.4; }

.act { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.decline { background: none; border: 0; padding: 8px; font: inherit; font-size: 14px;
  color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.decline:hover { color: var(--cream); }
.fine { font-size: 12.5px; color: var(--text-3); max-width: 52ch; text-align: center; margin: 0; line-height: 1.6; }

/* checkout form */
.form { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-2); }
.fld em { font-style: normal; color: var(--text-3); }
.fld input { font: inherit; font-size: 16px; color: var(--cream); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; width: 100%; }
.fld input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.bump { display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1px solid rgba(176,112,15,.4); background: rgba(176,112,15,.06);
  border-radius: 12px; padding: 16px; }
.bump input { margin: 2px 0 0; width: 19px; height: 19px; accent-color: var(--amber); flex: none; }
.bump b { display: block; font-size: 15px; color: var(--cream); }
.bump em { display: block; font-style: normal; font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* delivery */
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--void-2);
  padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; max-width: 520px; margin: 0 auto 14px; }
.card h2 { font-size: 25px; }

.err { font-size: 14px; color: #8C2A1B; background: rgba(140,42,27,.07);
  border: 1px solid rgba(140,42,27,.25); padding: 12px 16px; border-radius: 10px;
  max-width: 44ch; margin: 0 auto; text-align: center; }
[hidden] { display: none !important; }

footer { background: var(--void-2); border-top: 1px solid var(--line); padding: 34px 0 60px; margin-top: 40px; }
footer .f { font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
footer a { color: var(--text-2); }

@media (max-width: 560px) { .btn { width: 100%; } .head h1 { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ============================================================
   Offer pages v2 — upsell / downsell
   Same tokens as the landing page; the difference is structure,
   hierarchy and a little motion. Scoped to .v2 so /buy/ and
   /access/ are untouched.
   ============================================================ */

.v2-head { text-align: center; max-width: 640px; margin: 0 auto; }
.v2-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-2); background: var(--void-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
}
.v2-chip b { color: var(--cream); font-weight: 600; letter-spacing: .04em; }
.v2-head h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 5.4vw, 50px); line-height: 1.07; letter-spacing: -.015em;
  margin: 18px 0 0; text-wrap: balance; color: var(--cream);
}
.v2-head h1 em { font-style: italic; color: var(--amber-2); }
.v2-head p { color: var(--text-2); font-size: 16px; margin: 14px auto 0; max-width: 52ch; }

/* value stack -------------------------------------------------- */
.v2-stack {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  max-width: 720px; margin: 30px auto 0;
}
.v2-stack div { background: var(--void); padding: 15px 10px; text-align: center; }
.v2-stack b {
  display: block; font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: 21px; color: var(--cream); line-height: 1.1;
}
.v2-stack span {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-top: 6px;
}
@media (max-width: 620px) { .v2-stack { grid-template-columns: repeat(2, 1fr); } }

/* pack grid ---------------------------------------------------- */
.v2-packs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1000px; margin: 40px auto 0;
}
.v2-packs.four { grid-template-columns: repeat(4, 1fr); max-width: 1000px; }
.v2-packs.two  { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
@media (max-width: 900px) { .v2-packs, .v2-packs.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .v2-packs, .v2-packs.four, .v2-packs.two { grid-template-columns: 1fr; } }

.v2-pack {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--void-2); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.v2-pack:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 14px 32px -18px rgba(30, 25, 17, .5);
}
@media (prefers-reduced-motion: reduce) { .v2-pack { transition: none; } .v2-pack:hover { transform: none; } }

.v2-shot { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--void-3); }
.v2-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(12, 9, 5, .62), transparent);
}
.v2-count {
  position: absolute; left: 12px; bottom: 11px; z-index: 1;
  font-family: "Fraunces", Georgia, serif; font-size: 23px; line-height: 1;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.v2-count small { font-size: 12px; opacity: .82; margin-left: 3px; }
.v2-name { padding: 12px 14px 14px; font-size: 13.5px; color: var(--text); line-height: 1.35; }

/* offer panel -------------------------------------------------- */
.v2-offer {
  max-width: 560px; margin: 44px auto 0; text-align: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--void-2); padding: 30px 26px 26px;
}
.v2-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.v2-price .now {
  font-family: "Fraunces", Georgia, serif; font-size: 52px; line-height: 1;
  color: var(--cream); letter-spacing: -.02em;
}
.v2-price .was { font-size: 19px; color: var(--text-3); text-decoration: line-through; }
.v2-price .save {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: #fff; background: var(--amber-2); border-radius: 999px; padding: 6px 12px;
}
.v2-per { font-size: 13px; color: var(--text-2); margin: 12px 0 0; }
.v2-cta {
  display: block; width: 100%; margin: 20px 0 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-d) 100%);
  border: 0; border-radius: 12px; padding: 17px 22px;
  box-shadow: 0 10px 22px -12px rgba(110, 66, 4, .85);
  transition: filter .18s ease, transform .18s ease;
}
.v2-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.v2-cta:disabled { filter: grayscale(.4) brightness(.95); cursor: progress; transform: none; }
.v2-cta:focus-visible { outline: 2px solid var(--amber-d); outline-offset: 3px; }

.v2-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 18px 0 0; font-size: 12.5px; color: var(--text-2);
}
.v2-trust span { display: inline-flex; align-items: center; gap: 6px; }
.v2-trust svg { width: 13px; height: 13px; flex: none; color: var(--amber-2); }

/* ============================================================
   Checkout v2 — /buy/
   Two columns on desktop: the form acts, the summary reassures.
   On mobile the summary comes first, because someone should see
   what they are buying before they are asked to type.
   ============================================================ */

.co { max-width: 980px; margin: 0 auto; }
.co-top { text-align: center; margin-bottom: 34px; }
.co-top h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 400;
  font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; letter-spacing: -.015em;
  color: var(--cream); margin: 14px 0 0; text-wrap: balance;
}
.co-top p { color: var(--text-2); font-size: 15px; margin: 10px auto 0; max-width: 46ch; }

.co-grid {
  display: grid; gap: 34px; align-items: start;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: 'form summary' 'form extra';
}
.co-form  { grid-area: form; }
.co-sum   { grid-area: summary; }
.co-extra { grid-area: extra; }
/* On a phone the order of thought is: what am I buying, how do I pay, what
   else do I get. The detail list must not sit between the order and the form. */
@media (max-width: 860px) {
  .co-grid { grid-template-columns: 1fr; gap: 18px; grid-template-areas: 'summary' 'form' 'extra'; }
}

/* --- panels --- */
.co-card {
  background: var(--void-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 22px;
}
.co-card + .co-card { margin-top: 16px; }
.co-lab {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 16px;
}

/* --- fields --- */
.co-fld { display: block; margin-bottom: 16px; }
.co-fld > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.co-fld > span em { font-style: normal; color: var(--text-3); }
.co-fld input {
  font: inherit; font-size: 16px; color: var(--cream); background: #fff;
  border: 1px solid var(--line-2); border-radius: 11px;
  padding: 15px 15px; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.co-fld input::placeholder { color: var(--text-3); }
.co-fld input:focus-visible {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(176, 112, 15, .16);
}

/* --- the order bump --- */
.co-bump {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: 12px;
  padding: 15px 16px; background: var(--void);
  transition: border-color .18s ease, background .18s ease;
}
.co-bump:hover { border-color: var(--amber); }
.co-bump:has(input:checked) { border-style: solid; border-color: var(--amber); background: #FCF6EA; }
.co-bump input { width: 19px; height: 19px; accent-color: var(--amber-2); margin-top: 2px; flex: none; }
.co-bump b { display: block; font-size: 14px; color: var(--cream); font-weight: 600; }
.co-bump em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }

/* --- order summary --- */
.co-line { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-line:first-of-type { padding-top: 0; }
.co-thumb { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.co-line .d { flex: 1; min-width: 0; }
.co-line .d b { display: block; font-size: 14px; color: var(--cream); font-weight: 600; }
.co-line .d span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.45; }
.co-line .amt { font-family: "Fraunces", Georgia, serif; font-size: 17px; color: var(--cream); white-space: nowrap; }
.co-line .amt s { display: block; font-size: 12px; color: var(--text-3); font-family: "Inter Tight", sans-serif; }

.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.co-total span { font-size: 14px; color: var(--text-2); }
.co-total b { font-family: "Fraunces", Georgia, serif; font-size: 34px; color: var(--cream); font-weight: 400; letter-spacing: -.02em; }
.co-save {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: var(--amber-2); border-radius: 999px; padding: 5px 11px;
}

.co-incl { list-style: none; margin: 0; padding: 0; }
.co-incl li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; color: var(--text); padding: 7px 0; line-height: 1.45;
}
.co-incl svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--amber-2); }

/* --- pay --- */
.co-pay {
  display: block; width: 100%; margin-top: 4px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-d) 100%);
  border: 0; border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 12px 26px -14px rgba(110, 66, 4, .9);
  transition: filter .18s ease, transform .18s ease;
}
.co-pay:hover { filter: brightness(1.06); transform: translateY(-1px); }
.co-pay:disabled { filter: grayscale(.4) brightness(.96); cursor: progress; transform: none; }
.co-pay:focus-visible { outline: 2px solid var(--amber-d); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .co-pay, .co-bump { transition: none; } .co-pay:hover { transform: none; } }

.co-methods {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px;
}
.co-methods span {
  font-size: 11.5px; letter-spacing: .04em; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; background: var(--void);
}
.co-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12.5px; color: var(--text-2); margin-top: 14px;
}
.co-secure svg { width: 13px; height: 13px; color: var(--amber-2); }

/* ---- footer v2: reads like a company, not a signature ---- */
.f-top { display: flex; align-items: baseline; justify-content: space-between;
         gap: 20px; flex-wrap: wrap; padding-bottom: 16px;
         border-bottom: 1px solid var(--line); }
.f-brand { font-family: "Fraunces", Georgia, serif; font-size: 17px; color: var(--cream); letter-spacing: -.01em; }
.f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.f-links a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.f-links a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.f-meta { display: flex; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap;
          margin-top: 16px; font-size: 13px; color: var(--text-2); }
.f-meta a { color: var(--text-2); }
.f-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-3); max-width: 74ch; }
@media (max-width: 560px) {
  .f-top { flex-direction: column; gap: 12px; }
  .f-meta { flex-direction: column; gap: 6px; }
}
