/* =========================================================
   Learnvy — digital products
   Palette: plum ink, lilac paper, wool rose, marigold, sage
   ========================================================= */
:root {
  --ink: #2B1E3F;
  --ink-soft: #5A4C6B;
  --paper: #FCFAFF;
  --lilac: #EEE6F7;
  --lilac-line: #D8CAE8;
  --rose: #F4C9D2;
  --rose-deep: #D9879A;
  --marigold: #F2B134;
  --marigold-deep: #D99714;
  --sage: #5E8C6E;
  --error: #B3261E;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hind", "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --radius-lg: 28px;
  --radius: 14px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marigold-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
}
.btn:hover { background: #F5BE4E; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-small { padding: 10px 16px; font-size: .9rem; box-shadow: 0 3px 0 var(--ink); }
.btn-big { padding: 18px 30px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--paper); }
.btn-light:hover { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 250, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--lilac-line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
@media (max-width: 640px) { .logo img { height: 26px; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; max-width: 16ch; }
.lede { margin-top: 22px; font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.lede-hi { margin-top: 10px; font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { font-size: .95rem; color: var(--ink-soft); max-width: 30ch; }

/* Yarn illustration + ball band price label */
.hero-art { position: relative; justify-self: center; width: min(440px, 100%); }
.yarn { width: 100%; height: auto; overflow: visible; }
.y-ball { fill: var(--rose); }
.y-strands path { fill: none; stroke: var(--rose-deep); stroke-width: 7; stroke-linecap: round; }
.y-outline { fill: none; stroke: var(--ink); stroke-width: 3; }
.y-hook { fill: var(--marigold); stroke: var(--ink); stroke-width: 3; }
.y-hook-tip { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.thread { fill: none; stroke: var(--rose-deep); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: unspool 1.8s .3s cubic-bezier(.3,.6,.3,1) forwards; }
@keyframes unspool { to { stroke-dashoffset: 0; } }

/* Hero image keeps its own shape — portrait, square or landscape all fit */
.hero-photo-wrap { display: block; text-align: center; font-size: 0; }
.hero-photo {
  display: inline-block;
  width: auto; height: auto;
  max-width: 100%; max-height: min(520px, 62vh);
  object-fit: contain;
  border-radius: var(--radius-lg); border: 3px solid var(--ink);
}
.hero-photo.lv-img-empty { width: 100%; aspect-ratio: 1/1; }
.hero-art-photo .ball-band { top: auto; bottom: -24px; left: 24px; transform: rotate(-4deg); }
.hero-art-tag { min-height: 260px; display: grid; place-items: center; }
.hero-art-tag .ball-band { position: static; transform: rotate(-4deg); min-width: 260px; }
.ball-band {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 14px 22px 16px;
  text-align: center;
  min-width: 220px;
  box-shadow: 6px 6px 0 var(--ink);
}
.band-brand { font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; border-bottom: 2px dashed var(--rose-deep); padding-bottom: 6px; }
.band-price { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; margin-top: 8px; }
.band-mrp { font-size: .95rem; color: var(--ink-soft); margin-top: 4px; }
.band-meta { font-size: .85rem; margin-top: 6px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--lilac); }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 22ch; }
.section-intro { margin-top: 12px; color: var(--ink-soft); font-size: 1.1rem; max-width: 58ch; }

/* Samples */
.samples {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px;
}
.sample-img {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink);
  background-color: var(--rose);
}
.sample-img img { width: 100%; height: 100%; object-fit: cover; }
/* Granny-square stand-ins until real photos are added */
.sample-1 .sample-img { background: conic-gradient(from 45deg, var(--marigold) 0 25%, var(--rose) 0 50%, var(--sage) 0 75%, var(--lilac) 0) 0 0/50% 50%; }
.sample-2 .sample-img { background: radial-gradient(circle at 50% 50%, var(--paper) 0 18%, var(--rose-deep) 19% 32%, var(--rose) 33% 48%, var(--lilac) 49%) 0 0/50% 50%; }
.sample-3 .sample-img { background: repeating-linear-gradient(0deg, var(--sage) 0 14px, var(--paper) 14px 22px, var(--marigold) 22px 36px, var(--paper) 36px 44px); }
.sample-4 .sample-img { background: radial-gradient(circle, var(--paper) 0 30%, transparent 31%) 0 0/28px 28px, var(--lilac-line); }
.sample-5 .sample-img { background: repeating-linear-gradient(45deg, var(--rose) 0 18px, var(--paper) 18px 26px); }
.sample-6 .sample-img { background: radial-gradient(circle at 50% 50%, var(--marigold) 0 14%, var(--paper) 15% 22%, var(--rose-deep) 23% 40%, var(--paper) 41% 46%, var(--sage) 47%) 0 0/33.333% 33.333%; }
.sample-title { margin-top: 12px; font-weight: 600; font-size: 1.05rem; }
.sample-level { font-size: .92rem; color: var(--ink-soft); }

/* Value stack */
.bundle-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.stitch-note { margin-top: 28px; padding-top: 20px; border-top: 3px dashed var(--rose-deep); max-width: 40ch; font-weight: 500; }

.receipt {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 10px 28px 28px; box-shadow: 8px 8px 0 var(--ink);
}
.receipt-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 16px 0; border-bottom: 1px dashed var(--lilac-line);
}
.r-name { font-weight: 600; }
.r-desc { font-size: .93rem; color: var(--ink-soft); }
.r-val { white-space: nowrap; font-weight: 600; }
.receipt-row:first-child .r-val { color: var(--sage); }
.receipt-total { border-bottom: 0; padding: 20px 0 22px; align-items: center; }
.receipt-total .r-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.receipt-total s { color: var(--ink-soft); font-weight: 500; margin-right: 6px; }
.receipt-total strong { font-family: var(--font-display); font-size: 2rem; }
.receipt-save { text-align: center; margin-top: 12px; font-size: .95rem; color: var(--ink-soft); }

/* Steps — a genuine sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: var(--rose); border: 2px solid var(--ink);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -16px;
  border-top: 3px dashed var(--rose-deep);
}
.steps h3 { font-size: 1.3rem; font-weight: 800; }
.steps p { margin-top: 8px; color: var(--ink-soft); max-width: 34ch; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 32px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--lilac-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }
.faq-help { margin-top: 24px; }

/* Final CTA */
.final { background: var(--ink); color: var(--paper); padding: 88px 0; }
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; max-width: 18ch; }
.final p { margin: 16px 0 30px; color: #D9CFE6; max-width: 48ch; }
.final .btn { box-shadow: 0 4px 0 var(--marigold); border-color: var(--paper); }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--ink-soft); font-size: .95rem; }
.final .trust, .section-dark .trust { color: #D9CFE6; }
.trust li::before { content: "✓"; color: var(--marigold); margin-right: 8px; font-weight: 700; }

/* Footer */
.site-footer { padding: 32px 0 36px; border-top: 1px solid var(--lilac-line); font-size: .93rem; }
.footer-row { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-note { color: var(--ink-soft); }

/* Sticky mobile buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 2px solid var(--ink);
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.show { transform: translateY(0); }
.buybar-price strong { font-family: var(--font-display); font-size: 1.5rem; }
.buybar-price s { color: var(--ink-soft); margin-left: 6px; }

/* ---------- Checkout dialog ---------- */
.checkout {
  width: min(460px, calc(100% - 24px));
  border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 0; background: var(--paper); color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.checkout::backdrop { background: rgba(43, 30, 63, .55); }
.checkout form { padding: 24px 24px 22px; }
.checkout-head { display: flex; justify-content: space-between; align-items: center; }
.checkout-head h2 { font-size: 1.6rem; font-weight: 800; }
.close { appearance: none; border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
.checkout-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 16px 0 18px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--lilac); font-size: .95rem;
}
.checkout-summary strong { font-family: var(--font-display); font-size: 1.35rem; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--lilac-line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease;
}
.field input:focus { outline: none; border-color: var(--ink); }
.field.invalid input { border-color: var(--error); }
.phone { display: flex; }
.phone-cc {
  display: grid; place-items: center; padding: 0 12px; font-weight: 600;
  border: 2px solid var(--lilac-line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--lilac);
}
.phone input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.err { display: block; color: var(--error); font-size: .88rem; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.form-error { color: var(--error); font-weight: 500; margin: 4px 0 12px; }
.form-error:empty { display: none; }
.checkout-foot { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--ink-soft); }

.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(43,30,63,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Status & policy pages ---------- */
.status { padding: 64px 0 80px; }
.status-card {
  max-width: 620px; margin: 0 auto; background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: 8px 8px 0 var(--ink); text-align: center;
}
.status-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; border: 2px solid var(--ink); }
.status-icon.ok { background: var(--sage); color: #fff; }
.status-icon.wait { background: var(--marigold); }
.status-icon.fail { background: var(--rose); }
.status-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.status-card p { margin-top: 12px; color: var(--ink-soft); }
.status-card .btn { margin-top: 24px; }
.order-meta { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--lilac-line); font-size: .93rem; display: grid; gap: 4px; }

.policy { padding: 56px 0 80px; }
.policy-body { max-width: 720px; }
.policy-body h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 8px; }
.policy-body h2 { font-size: 1.3rem; margin-top: 30px; }
.policy-body p, .policy-body li { margin-top: 10px; color: var(--ink-soft); }
.policy-updated { font-size: .9rem; }

/* ---------- Responsive ---------- */
/* Store page */
.store-hero { padding: 56px 0 24px; }
.store-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; max-width: 20ch; }
.store-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.store-card { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.store-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.store-thumb { aspect-ratio: 16/10; background: var(--rose); border-bottom: 2px solid var(--ink); }
.store-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-body { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; }
.store-body h2 { font-size: 1.35rem; font-weight: 800; }
.store-body p { color: var(--ink-soft); }
.store-price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.store-price strong { font-family: var(--font-display); font-size: 1.6rem; }
.store-price s { color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; width: min(320px, 82%); margin-top: 12px; }
  .hero-photo { max-height: 56vh; }
  .ball-band { min-width: 180px; padding: 10px 16px 12px; }
  .band-price { font-size: 2.4rem; }
  .bundle-grid { grid-template-columns: 1fr; gap: 32px; }
  .samples { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 66px; min-height: 48px; }
  .steps li:not(:last-child)::after { top: 56px; left: 23px; right: auto; bottom: -18px; border-top: 0; border-left: 3px dashed var(--rose-deep); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 60px 0; }
  .header-row .btn-small { display: none; }
  .header-row { justify-content: center; min-height: 56px; }
  .cta-row .btn { width: 100%; }
  .cta-note { max-width: none; }
  .receipt { padding: 6px 18px 22px; box-shadow: 5px 5px 0 var(--ink); }
  .receipt-row { flex-direction: column; gap: 2px; }
  .receipt-total { flex-direction: row; justify-content: space-between; }
  .buybar { display: flex; }
  .site-footer { padding-bottom: 110px; }
  .checkout { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; border-bottom: 0; }
  .checkout form { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .status-card { padding: 28px 20px; box-shadow: 5px 5px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thread { animation: none; stroke-dashoffset: 0; }
  .btn, .buybar, .faq summary::after { transition: none; }
}

/* ===================== Sale timer bar ===================== */
.timer-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  font-weight: 600; text-align: center;
}
.timer-bar[hidden] { display: none; }
.timer-text { font-size: .98rem; }
.timer-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--marigold); color: var(--ink); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .9rem; }
.timer-count { background: #fff; border-radius: 999px; padding: 2px 12px; font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer-bar + .site-header { top: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.access-list { display: grid; gap: 12px; margin-top: 22px; }
.access-list .btn { margin-top: 0; }

/* ===================== Checkout page ===================== */
.co-body { background: #F6F3F9; }
.co-wrap { padding: 24px 14px 40px; }
.co-card { max-width: 580px; margin: 0 auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(43, 30, 63, .12); }
.co-head { background: var(--ink); color: var(--paper); padding: 22px 26px 26px; }
.co-secure { text-align: center; font-size: .9rem; font-weight: 600; color: #DCD2E8; margin-bottom: 18px; }
.co-badge { display: inline-block; background: var(--sage); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .03em; padding: 5px 12px; border-radius: 8px; margin-bottom: 12px; }
.co-head h1 { font-size: clamp(1.5rem, 4.5vw, 1.9rem); font-weight: 800; }
.co-lede { margin-top: 12px; color: #DCD2E8; font-size: .97rem; }
.co-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.co-chips li { border: 1px solid rgba(255,255,255,.28); border-radius: 8px; padding: 5px 10px; font-size: .85rem; font-weight: 600; }
.co-chips li::before { content: "✓ "; }

.co-body-in { padding: 26px; display: grid; gap: 22px; }
.co-section h2, .co-summary h2, .co-form-box h2, .co-faq h2 { font-size: 1.2rem; font-weight: 800; }
.co-sub { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }

.co-items { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.co-items li { display: flex; gap: 14px; background: #F3F1F6; border-radius: 12px; padding: 14px 16px; }
.co-gift { font-size: 1.2rem; line-height: 1.3; }
.co-item-name { font-weight: 600; }
.co-item-desc { color: var(--ink-soft); font-size: .92rem; }
.co-value { display: inline-block; margin-top: 6px; background: #E3F1E8; color: #2E6B47; font-weight: 700; font-size: .8rem; border-radius: 6px; padding: 2px 8px; }

.co-summary { border: 1px solid var(--lilac-line); border-radius: 14px; padding: 18px 20px; background: #FCFBFD; }
.co-summary h2 { margin-bottom: 10px; }
.co-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; color: var(--ink-soft); }
.co-row span:last-child { white-space: nowrap; }
.co-discount { color: var(--sage); font-weight: 600; }
.co-bump-row { color: var(--ink); }
.co-total { border-top: 1px solid var(--lilac-line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.co-total strong { font-family: var(--font-display); font-size: 1.3rem; }

/* Order bump — dashed attention box */
.co-bump { border: 2px dashed #E5484D; border-radius: 14px; overflow: hidden; background: #FFFBEA; transition: background-color .15s ease; }
.co-bump.on { background: #F1F9EE; border-style: solid; border-color: var(--sage); }
.co-bump-label { background: #E5484D; color: #fff; text-align: center; font-weight: 800; letter-spacing: .03em; padding: 8px; font-size: .92rem; }
.co-bump.on .co-bump-label { background: var(--sage); }
.co-bump-in { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px; align-items: start; }
.co-bump-img { grid-row: span 3; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--lilac-line); }
.co-bump-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.co-bump-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--sage); cursor: pointer; }
.co-bump-check input:focus-visible { outline: 3px solid var(--marigold-deep); outline-offset: 2px; }
.co-bump-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.co-bump-text { color: var(--ink-soft); font-size: .92rem; }
.co-bump-btn { justify-self: start; border: 0; background: #FFD43B; color: var(--ink); font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.co-bump.on .co-bump-btn { background: #fff; border: 1px solid var(--sage); color: var(--sage); }
.co-bump-in > :not(.co-bump-img) { grid-column: 2; }
.co-bump-in:not(:has(.co-bump-img)) > * { grid-column: 1 / -1; }

.co-form-box { background: #F3F1F6; border-radius: 16px; padding: 22px; text-align: center; }
.co-form-box form { margin-top: 16px; text-align: left; }
.co-form-box .field { margin-bottom: 12px; }
.co-form-box .field input { width: 100%; font: inherit; color: var(--ink); padding: 13px 14px; border: 2px solid var(--lilac-line); border-radius: 10px; background: #fff; }
.co-form-box .field input:focus { outline: none; border-color: var(--ink); }
.co-form-box .field.invalid input { border-color: var(--error); }
.co-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-form-box .btn { box-shadow: 0 4px 0 var(--ink); }
.co-trust { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.co-fine { margin-top: 6px; font-size: .8rem; color: var(--ink-soft); }
.co-faq { margin-top: 4px; }
.co-faq h2 { text-align: center; margin-bottom: 12px; }
.co-faq summary { font-size: 1rem; }
.co-links { max-width: 580px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: .88rem; }
.co-links a { color: var(--ink-soft); }

@media (max-width: 520px) {
  .co-wrap { padding: 0 0 30px; }
  .co-card { border-radius: 0; box-shadow: none; }
  .co-body-in { padding: 20px 16px; }
  .co-head { padding: 18px 18px 22px; }
  .co-two { grid-template-columns: 1fr; gap: 0; }
  .co-bump-img { width: 72px; height: 72px; }
  .timer-text { font-size: .9rem; }
}
.co-faq.faq { border-top: 0; }
.co-faq details:first-of-type { border-top: 2px solid var(--ink); }

/* ===================== Section library ===================== */
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .section-intro, .section-dark p { color: #D9CFE6; }
.section-dark a { color: var(--marigold); }
.hero-h { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; max-width: 18ch; }

/* Features grid */
.features { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.features li { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.section-tint .features li { background: #fff; }
.section-dark .features li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }
.feat-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--rose); font-size: 1.5rem; margin-bottom: 12px; }
.features h3 { font-size: 1.15rem; font-weight: 800; }
.features p { margin-top: 6px; color: var(--ink-soft); }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.compare-col { border-radius: var(--radius-lg); padding: 24px; border: 2px solid var(--ink); }
.compare-col h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.compare-col li { position: relative; padding-left: 30px; }
.compare-without { background: #fff; }
.compare-without li::before { content: "✕"; position: absolute; left: 0; color: var(--error); font-weight: 700; }
.compare-with { background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.compare-with li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.section-dark .compare-col { color: var(--ink); }
.section-dark .compare-col p, .section-dark .compare-col li { color: var(--ink); }

/* Text block */
.text-grid { display: grid; gap: 40px; align-items: center; }
.text-has-img .text-grid { grid-template-columns: 1.1fr .9fr; }
.text-img-left .text-img { order: -1; }
.text-body p { margin-top: 14px; font-size: 1.08rem; max-width: 62ch; color: var(--ink-soft); }
.section-dark .text-body p { color: #D9CFE6; }
.text-img { width: 100%; border-radius: var(--radius-lg); border: 2px solid var(--ink); }

/* Full-width image + video */
.wide-img { margin: 0; }
.wide-img img { width: 100%; border-radius: var(--radius-lg); border: 2px solid var(--ink); }
.wide-img figcaption, .video-cap { margin-top: 10px; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--ink); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Reviews */
.reviews { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.reviews li { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.reviews blockquote { margin: 0; }
.reviews blockquote p { color: var(--ink); }
.stars { color: var(--marigold-deep); letter-spacing: 2px; margin-bottom: 8px; }
.review-by { font-weight: 600; color: var(--ink-soft); }

/* Guarantee */
.guarantee { display: flex; gap: 22px; align-items: flex-start; max-width: 820px; margin: 0 auto; padding: 28px; border: 3px dashed var(--sage); border-radius: var(--radius-lg); background: #fff; }
.guarantee-icon { font-size: 2.4rem; line-height: 1; }
.guarantee h2 { font-size: 1.6rem; }
.guarantee p { margin-top: 8px; color: var(--ink-soft); }
.section-dark .guarantee, .section-dark .guarantee p { color: var(--ink); }

@media (max-width: 900px) {
  .compare, .text-has-img .text-grid { grid-template-columns: 1fr; }
  .text-img-left .text-img { order: 0; }
}
@media (max-width: 640px) {
  .guarantee { flex-direction: column; padding: 22px; }
}
.preview-bar { background: #FFF1D6; color: #7A4A00; text-align: center; padding: 10px 16px; font-weight: 600; } .preview-bar a { color: inherit; }
.video { max-width: 880px; margin-left: auto; margin-right: auto; } .sec-video h2, .sec-video .section-intro { text-align: center; margin-left: auto; margin-right: auto; }

/* ===================== Flexible grids (any number of items, centred last row) ===================== */
.grid-flex { --gap: 22px; display: flex !important; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid-flex > li { flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)); min-width: 0; }
.samples.grid-flex { --gap: 26px; }
@media (max-width: 900px) {
  .grid-flex { --gap: 16px; }
  .grid-flex > li { flex-basis: calc((100% - var(--gap)) / 2); }
  .grid-flex[style*="--cols:1"] > li { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .features.grid-flex > li, .reviews.grid-flex > li { flex-basis: 100%; }
}

/* Feature images */
.feat-img { margin: -22px -22px 16px; border-bottom: 2px solid var(--ink); border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; overflow: hidden; }
.feat-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feat-img:empty { display: none; }
.sec-custom .wrap > *:first-child { margin-top: 0; }

/* Example custom section: banner */
.sec-banner { padding: 40px 0; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius-lg); border: 2px solid var(--ink); }
.banner-accent { background: var(--marigold); box-shadow: 6px 6px 0 var(--ink); }
.banner-accent .btn { background: var(--paper); }
.banner-outline { background: #fff; border-style: dashed; }
.banner-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: var(--ink); }
.banner-sub { margin-top: 6px; color: var(--ink-soft); }
.section-dark .banner-text { color: var(--ink); }

/* ===================== Checkout page built from sections ===================== */
.co-card > .co-block, .co-card > .lv-sec > .co-block { padding: 22px 26px 0; }
.co-card > .co-block:last-child, .co-card > .lv-sec:last-child > .co-block { padding-bottom: 26px; }
.co-block.co-tint { background: #F7F4FA; padding-bottom: 22px; margin-top: 22px; }
.co-block.co-dark { background: var(--ink); color: var(--paper); padding-bottom: 22px; margin-top: 22px; }
.co-block.co-dark .co-sub, .co-block.co-dark p { color: #DCD2E8; }
.co-bumps { display: grid; gap: 14px; }
.co-bumps-title { font-size: 1.15rem; font-weight: 800; }
.co-card .section { padding: 26px; }
.co-card .section .wrap { padding: 0; max-width: none; }
.co-card .section h2 { font-size: 1.3rem; }
.co-card .faq-wrap h2 { text-align: center; }
.co-card .faq { margin-top: 12px; }
.co-card .reviews.grid-flex > li { flex-basis: 100%; }

/* ===================== Thank-you page ===================== */
.ty-page .ty-access { padding: 56px 0 40px; }
.ty-page .section { padding: 56px 0; }
.upsell { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 22px; box-shadow: 6px 6px 0 var(--ink); max-width: 860px; margin: 0 auto; }
.upsell-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.upsell-kicker { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }
.upsell h2 { font-size: 1.6rem; margin-top: 4px; }
.upsell-body p { margin-top: 8px; color: var(--ink-soft); }
.upsell-price strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.upsell .btn { margin-top: 14px; }
@media (max-width: 720px) { .upsell { grid-template-columns: 1fr; } }

/* Checkout phone with fixed +91 */
.co-form-box .phone { display: flex; }
.co-form-box .phone-cc { display: grid; place-items: center; padding: 0 12px; font-weight: 600; color: var(--ink); background: var(--lilac); border: 2px solid var(--lilac-line); border-right: 0; border-radius: 10px 0 0 10px; user-select: none; }
.co-form-box .phone input { border-radius: 0 10px 10px 0; min-width: 0; }
.co-form-box .field.invalid .phone-cc { border-color: var(--error); }
.co-form-box .field > .phone { font-weight: 400; font-size: inherit; margin: 0; } .co-form-box .phone-cc { font-weight: 600; }
.store-thumb { display: grid; place-items: center; overflow: hidden; }
.store-thumb img { display: block; }
.store-thumb-name { font-family: var(--font-display); font-weight: 800; font-size: 4rem; color: var(--ink); opacity: .35; }
