/* Shared look for the checkout, the two special offers and the welcome page. Same colours and fonts as the homepage. */
@font-face { font-family: 'Caveat'; src: url('/fonts/Caveat-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/InstrumentSerif-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --cream: #F7F1E8;
  --latte: #EFE4D3;
  --foam: #FFFCF7;
  --espresso: #2A2740;
  --mocha: #55526B;
  --caramel: #4A4670;
  --caramel-soft: #D8D6EA;
  --lilac: #C9B8F0;
  --line: rgba(42, 39, 64, 0.12);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--espresso); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 80px); }
h2 { font-size: clamp(34px, 4.4vw, 52px); }
h3 { font-size: 28px; line-height: 1.1; }
em { font-style: italic; color: var(--caramel); }
.hd { font-family: 'Caveat', cursive; font-weight: 600; font-style: normal; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--caramel); margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--mocha); max-width: 34em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
section { padding: 88px 0; }

.btn { font-family: var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--espresso); color: var(--cream); text-decoration: none; font-weight: 600; font-size: 17px; padding: 18px 32px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.big { font-size: 19px; padding: 20px 40px; width: 100%; max-width: 460px; }
.skip { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--mocha); }
.fine { font-size: 14px; color: var(--mocha); margin: 14px 0 0; }

/* Test-mode banner: shows only while a payment link is a Stripe test link */
.testbar { display: none; background: #FFE08A; color: #2A2740; text-align: center; font-size: 14px; padding: 10px 16px; }
.testbar.on { display: block; }
.testbar code { font-weight: 600; background: rgba(255,255,255,0.6); padding: 1px 6px; border-radius: 6px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--cream); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 28px; text-decoration: none; line-height: 1; }
.logo small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--mocha); margin-top: 3px; }
.secure { font-size: 14px; color: var(--mocha); }

/* Progress steps on the offer pages */
.progress { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; color: var(--mocha); }
.progress li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.progress li.done { background: var(--caramel-soft); border-color: transparent; color: var(--espresso); }
.progress li.now { background: var(--espresso); color: var(--cream); border-color: transparent; font-weight: 600; }

/* Hero with video */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.phone { width: min(300px, 74vw); margin: 0 auto; border-radius: 42px; padding: 11px; background: var(--espresso); box-shadow: 0 40px 80px -30px rgba(42, 39, 64, 0.55); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 32px; background: #000; }

/* Price card */
.buy { background: var(--foam); border: 1px solid var(--line); border-radius: 28px; padding: 36px 32px; box-shadow: 0 30px 60px -40px rgba(42, 39, 64, 0.45); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; }
.price span { color: var(--mocha); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 26px; }
.checks li { padding-left: 34px; position: relative; margin: 10px 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--caramel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FFFCF7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.grid2 { grid-template-columns: 1fr 1fr; max-width: 820px; margin-left: auto; margin-right: auto; }
.card { background: var(--foam); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; }
.card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.12; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; color: var(--mocha); }
.alt { background: var(--latte); }
.dark { background: var(--espresso); color: var(--cream); }
.dark .eyebrow { color: var(--lilac); }
.dark .lede, .dark .fine { color: rgba(247, 241, 232, 0.75); }
.dark .btn { background: var(--lilac); color: var(--espresso); }
.dark .btn:hover { background: var(--foam); }
.dark .skip { color: rgba(247, 241, 232, 0.7); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 36px; }
summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 25px; line-height: 1.2; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--sans); font-size: 24px; color: var(--caramel); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--mocha); }

/* Offer pages */
.offer { padding: 56px 0 88px; }
.offer .phone { margin: 40px auto; }
.offer-price { font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); line-height: 1.1; margin: 8px 0 22px; }
.offer .checks { display: inline-block; text-align: left; }
.note-box { background: var(--foam); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; font-size: 15px; color: var(--mocha); max-width: 34em; margin: 24px auto 0; text-align: left; }
.note-box strong { color: var(--espresso); }

footer { padding: 36px 0; font-size: 14px; color: var(--mocha); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid4 { grid-template-columns: 1fr; }
  .buy { padding: 28px 22px; }
  .secure { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Order bumps: the two add-ons, right above the pay button */
html { scroll-behavior: smooth; }
.buy { scroll-margin-top: 24px; }
.bumps-title { font-weight: 600; font-size: 16px; margin: 4px 0 12px; }
.bump { display: block; position: relative; cursor: pointer; border: 2px dashed #B9A6EC; background: #F4EEFF; border-radius: 18px; padding: 16px 18px; margin: 0 0 14px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.bump:hover { border-color: var(--caramel); }
.bump input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bump-head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--espresso); }
.tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--caramel); background: #fff; }
.bump-body { display: block; margin: 8px 0 0 38px; font-size: 15px; line-height: 1.55; color: var(--mocha); }
.bump-body strong { color: var(--espresso); }
.bump-body em { font-style: italic; color: var(--mocha); font-size: 14px; }
.bump:has(input:checked) { border-style: solid; border-color: var(--caramel); background: #EDE5FF; box-shadow: 0 10px 24px -16px rgba(74, 70, 112, 0.6); }
.bump input:checked + .bump-head .tick { background: var(--caramel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23FFFCF7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.bump input:focus-visible + .bump-head .tick { outline: 3px solid var(--lilac); outline-offset: 2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin: 20px 0 16px; padding-top: 14px; }
.total span { color: var(--mocha); }
.total strong { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
@media (max-width: 560px) { .bump-body { margin-left: 0; } .bump-head { font-size: 16px; } .btn.big { font-size: 17px; padding: 18px 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* All sales final: shown right above the pay button; the box must be ticked to pay */
.final-sale { border: 2px solid #C2410C; background: #FFF4EC; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--espresso); }
.final-sale p { margin: 0 0 10px; }
.final-sale strong { color: #9A3412; }
.final-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.final-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #9A3412; }
.final-sale.needs-tick { animation: eb-shake .35s; box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.25); }
@keyframes eb-shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .final-sale.needs-tick { animation: none; } }
.btn.is-locked { opacity: .55; }
