/* GDI Sales Page v4 — Brand Master v2.0 "Kusina Playbook: Ember" (GDI-Studio/BRAND_SUMMARY_FOR_CHATGPT.md) */
@font-face { font-family: 'Knewave'; src: url('../assets/fonts/knewave.woff2') format('woff2'); font-display: swap; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #26C6F0; }
:root {
  --ember-0: #160D09; --ember-1: #24120B; --glow-0: #9A4416; --glow-1: #5A220C;
  --wood: #3A2216; --ink: #141110; --cream: #F6E7CC; --white: #FFF4E2; --orange: #E4762B; --kicker: #F29A4A;
  --brownink: #8A3A10; --muted: #5C4A3C;
  --accent: #26C6F0;
  --display: 'Knewave', 'Arial Black', sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: --accent .8s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--ember-0); color: var(--white); font: 500 16px/1.5 var(--body); overflow-x: hidden; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kicker); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.kicker { font-family: var(--display); color: var(--kicker); font-size: 1.15rem; margin: 0; display: inline-block; transform: rotate(-3deg); }
.title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1; margin: 2px 0 16px; transform: rotate(-2deg); }
.sec { padding: 40px 16px; max-width: 1120px; margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 999px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #1A0E08; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 6px 18px rgba(0,0,0,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { background: #6b4a33; color: #d9c7b0; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,244,226,.35); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .8rem; }
.btn-lg { min-height: 56px; font-size: 1.05rem; padding: 14px 30px; }
.wide { width: 100%; }

/* review */
.review-bar { background: #FFE45C; color: #1a1400; text-align: center; font-size: .8rem; padding: 6px 12px; font-weight: 600; }
.ph { background: #FFE45C; color: #1a1400; border: 2px dashed #8a6d00; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .8rem; display: inline-block; }
.review-note { font-size: .76rem; background: #FFE45C; color: #1a1400; border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; font-weight: 600; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: rgba(22,13,9,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(228,118,43,.25); }
.logo { background: var(--cream); border-radius: 10px; padding: 3px 8px; display: inline-flex; }
.logo img { width: 62px; }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; padding: 12px 16px 20px; text-align: center;
  background: radial-gradient(90% 55% at 50% 45%, var(--glow-0), var(--glow-1) 45%, transparent 75%), linear-gradient(180deg, var(--ember-1), var(--ember-0)); }
.hero h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.45rem, 6.6vw, 3.4rem); line-height: 1; margin: 0 auto 4px; max-width: 760px; transform: rotate(-2.5deg); text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.hero-sub { margin: 0 auto; max-width: 560px; font-size: .82rem; line-height: 1.35; font-weight: 600; color: rgba(255,244,226,.88); }
.showcase { position: relative; width: min(100%, 440px, 42vh); aspect-ratio: 1 / .92; margin: 2px auto 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.glow { position: absolute; inset: 8% 12% 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 66%); filter: blur(18px); opacity: .7; }
.word { position: absolute; inset: 2% -10% auto; font-family: var(--display); text-transform: uppercase; font-size: clamp(2.8rem, 16vw, 6.4rem); line-height: .88; color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 55%, transparent); opacity: .55; transform: rotate(-4deg); pointer-events: none; }
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.layer.back { z-index: 1; } .layer.front { z-index: 3; }
.prop { position: absolute; transform: translate(-50%, -50%); will-change: transform, opacity; }
.prop .bob { animation: bob var(--dur, 6s) ease-in-out var(--delay, 0s) infinite; }
.prop img { width: 100%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.55)); }
.layer.back .prop img { filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)) blur(1px) brightness(.82); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r0, 0deg)); } 50% { transform: translateY(-7px) rotate(calc(var(--r0, 0deg) + 4deg)); } }
.jar-slot { position: absolute; z-index: 2; left: 50%; bottom: 6%; width: 50%; transform: translateX(-50%); }
.jar { width: 100%; filter: drop-shadow(0 20px 22px rgba(0,0,0,.6)) drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 35%, transparent)); will-change: transform, opacity; }
.jar-slot .jar + .jar { position: absolute; left: 0; bottom: 0; }
.arrow { position: absolute; z-index: 5; top: 46%; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,244,226,.4); background: rgba(22,13,9,.7); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.arrow:hover { background: var(--orange); color: #1A0E08; border-color: var(--orange); }
.arrow.prev { left: 0; } .arrow.next { right: 0; }
.hero-info { margin-top: 0; }
.dots { max-height: 52px; overflow: hidden; }
.hero-name { margin: 0; font-weight: 900; font-size: 1.05rem; }
.hero-price { margin: 0 0 6px; font-weight: 800; color: var(--kicker); }
.dots { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; max-width: 340px; margin: 0 auto; }
.dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,244,226,.3); transition: background .3s, transform .3s; }
.dot[aria-selected="true"]::after { background: var(--accent); transform: scale(1.4); }
.hero-cta { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust { margin: 0; font-size: .8rem; font-weight: 700; color: rgba(255,244,226,.85); }

/* ================= CRAVING ================= */
.craving-grid { display: grid; gap: 16px; }
.photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: start; }
.photos figure { margin: 0; background: #fff; padding: 6px 6px 8px; border-radius: 4px; box-shadow: 0 10px 20px rgba(0,0,0,.45); }
.photos figure:nth-child(1) { transform: rotate(-2deg); } .photos figure:nth-child(2) { transform: rotate(3deg); margin-top: 16px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photos figcaption { color: var(--ink); font-size: .72rem; font-weight: 800; padding-top: 6px; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ideas li { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: .9rem; }
.ideas b { display: block; font-weight: 900; }

/* ================= PRODUCTS ================= */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { --a: var(--orange); background: var(--cream); color: var(--ink); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; border-top: 5px solid var(--a); }
.card-img { background: radial-gradient(80% 80% at 50% 45%, color-mix(in srgb, var(--a) 45%, #3A2216), var(--ember-1)); aspect-ratio: 1 / .9; display: grid; place-items: center; padding: 10px 14px 4px; }
.card-img img { height: 100%; width: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.5)); }
.card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: .86rem; font-weight: 900; line-height: 1.2; }
.card-desc { margin: 0; font-size: .76rem; color: #2b221c; line-height: 1.35; }
.card-price { margin: 0; font-weight: 900; font-size: 1.1rem; }
.card details { font-size: .7rem; color: var(--muted); }
.card summary { cursor: pointer; font-weight: 700; min-height: 28px; display: flex; align-items: center; }
.card-actions { margin-top: auto; display: grid; gap: 6px; }
.card-actions .btn { min-height: 44px; font-size: .8rem; padding: 8px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 2px solid #d6c3a3; border-radius: 999px; background: #fff8ec; }
.stepper button { width: 44px; height: 42px; border: 0; background: none; font-size: 1.3rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { font-weight: 900; min-width: 2ch; text-align: center; }
.soldout { font-weight: 800; color: var(--muted); text-align: center; font-size: .8rem; }
.in-cart { font-size: .7rem; font-weight: 800; color: var(--brownink); margin: 0; min-height: 1em; }

/* ================= BUNDLES / WHY / PROOF / HOW / POLICY / FAQ ================= */
.bundle-list { display: grid; gap: 12px; }
.bundle { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 14px; border: 3px solid transparent; }
.bundle.popular { border-color: var(--orange); }
.bundle h3 { margin: 0 0 4px; font-weight: 900; }
.bundle .save { color: #1d7a3a; font-weight: 900; }
.holiday { margin-top: 16px; background: linear-gradient(135deg, #3B1A0C, #24120B); border: 1px solid rgba(242,154,74,.4); border-radius: 16px; padding: 14px; }
.holiday h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0 0 6px; color: var(--kicker); }
.holiday details summary { cursor: pointer; font-weight: 800; color: var(--kicker); min-height: 40px; display: flex; align-items: center; }
.holiday .art { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.why-list li { background: rgba(246,231,204,.07); border: 1px solid rgba(246,231,204,.15); border-radius: 14px; padding: 12px 14px; }
.why-list b { display: block; font-weight: 900; }
.quotes { display: grid; gap: 10px; }
.quote { margin: 0; background: #E9E4DC; color: #111; border-radius: 18px 18px 18px 4px; padding: 12px 14px; }
.quote blockquote { margin: 0 0 4px; font-weight: 600; }
.quote figcaption { font-size: .74rem; color: #555; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; background: var(--cream); color: var(--ink); border-radius: 14px; padding: 12px 14px; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #1A0E08; font-weight: 900; display: grid; place-items: center; }
.steps b { display: block; }
.policy p { margin: 0 0 8px; }
.faq details { background: rgba(246,231,204,.07); border: 1px solid rgba(246,231,204,.15); border-radius: 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 16px; min-height: 48px; }
.faq details p { margin: 0; padding: 0 16px 14px; color: rgba(255,244,226,.88); }

/* ================= CHECKOUT ================= */
.checkout { background: linear-gradient(180deg, var(--ember-0), var(--ember-1)); max-width: none; }
.checkout > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.co-wrap { display: grid; gap: 16px; }
.summary { background: rgba(246,231,204,.07); border: 1px solid rgba(246,231,204,.15); border-radius: 16px; padding: 14px; }
.summary h3 { margin: 0 0 8px; font-size: 1rem; }
.progress { height: 10px; background: rgba(246,231,204,.15); border-radius: 5px; overflow: hidden; margin: 6px 0; }
.progress span { display: block; height: 100%; background: var(--orange); transition: width .3s; }
.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(246,231,204,.1); }
.line img { width: 48px; height: 56px; object-fit: contain; }
.line p { margin: 0; font-size: .86rem; font-weight: 700; line-height: 1.25; }
.line small { color: rgba(255,244,226,.7); }
.line .stepper { background: var(--cream); border-color: var(--cream); }
.line .stepper button { width: 36px; height: 36px; }
.form { display: grid; gap: 14px; }
fieldset { border: 1px solid rgba(246,231,204,.18); border-radius: 14px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 900; padding: 0 6px; }
.field label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid rgba(246,231,204,.25); background: #2a1a12; color: var(--white); padding: 10px 12px; font-size: 1rem; }
.field select:disabled { opacity: .5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--kicker); outline: none; }
.err { color: #FFB08A; font-size: .8rem; font-weight: 600; margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radio, .bump, .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.radio input, .bump input, .consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--orange); }
.bump { background: #3B1A0C; border: 2px dashed var(--orange); border-radius: 14px; padding: 12px; font-weight: 700; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 900; font-size: 1.15rem; border-top: 1px solid rgba(246,231,204,.2); padding-top: 8px; margin-top: 4px; }
.min-msg { margin: 0; font-weight: 800; text-align: center; color: var(--kicker); }
.min-msg.ok { color: #A7E3B2; }
.form-msg { margin: 0; background: #3B1A0C; border-left: 5px solid var(--orange); padding: 10px 12px; border-radius: 0 10px 10px 0; font-weight: 700; }
.handoff { background: #3B1A0C; border: 2px solid var(--orange); border-radius: 16px; padding: 16px; margin-top: 16px; }
.handoff textarea { width: 100%; min-height: 170px; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); padding: 12px; font: .84rem var(--body); }
.handoff .btn { margin-top: 8px; }

/* footer, bar, cookie, toast */
.footer { background: var(--ink); border-top: 5px solid var(--orange); padding: 22px 16px 26px; display: flex; gap: 14px; align-items: center; font-size: .84rem; }
.footer p { margin: 0 0 4px; } .footer a { font-weight: 700; }
.bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 3px solid var(--orange); box-shadow: 0 -8px 24px rgba(0,0,0,.5); }
.bar p { margin: 0; line-height: 1.25; min-width: 0; }
.bar .btn { white-space: nowrap; flex: none; min-height: 46px; padding: 10px 16px; font-size: .85rem; } .bar small { display: block; font-size: .72rem; color: var(--kicker); font-weight: 700; }
.cookie { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); background: var(--cream); color: var(--ink); border-radius: 14px; padding: 10px 12px; font-size: .78rem !important; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: .84rem; display: grid; gap: 8px; max-width: 560px; margin: 0 auto; }
.cookie p { margin: 0; } .cookie div { display: flex; gap: 8px; } .cookie .btn-ghost { color: var(--ink); border-color: #c9b18a; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--cream); color: var(--ink); font-weight: 800; padding: 10px 18px; border-radius: 999px; transition: .25s; max-width: calc(100% - 32px); text-align: center; font-size: .86rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card h3 { font-size: .95rem; } .card-desc { font-size: .84rem; }
  .bundle-list, .why-list, .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .craving-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .hero { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-areas: "copy show" "cta show" "info show"; text-align: left; padding: 40px max(24px, calc((100vw - 1120px) / 2)); column-gap: 32px; align-items: center; }
  .hero-copy { grid-area: copy; } .showcase { grid-area: show; width: 100%; max-width: 560px; }
  .hero-info { grid-area: info; } .hero-cta { grid-area: cta; align-items: flex-start; }
  .dots { justify-content: flex-start; margin: 0; }
  .hero h1, .hero-sub { margin-left: 0; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .co-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .summary { position: sticky; top: 80px; }
  .cookie { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  html { scroll-behavior: auto; }
  .prop .bob { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
