/* =========================================================
   COMPONENTS — header, buttons, forms, dialogs, floaters, video …
   ========================================================= */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(31, 21, 15, .4); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo b { font-weight: 800; margin-left: .22em; }
.logo-mark { color: var(--brand); flex-shrink: 0; }
.logo--light { color: var(--on-dark); --logo-ink: var(--espresso); }
.logo--light .logo-mark { color: var(--gold); }
.logo--light:hover { color: var(--on-dark); }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); transition: background .15s, color .15s; }
.nav-list a:hover { background: var(--sand); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); border-radius: 10px; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; white-space: nowrap; }
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 18px; display: none; }
  .nav-open .nav { display: block; animation: drop .2s var(--ease); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
}
@media (max-width: 380px) { .header-cta { padding-inline: 12px; font-size: .8125rem; } .logo { font-size: 1rem; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Buttons ---------- */
.btn { --bh: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 750; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; line-height: 1.2; transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; overflow: hidden; text-align: center; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --bh: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --bh: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px rgba(166, 90, 22, .75); }
.btn--primary:hover { background: var(--brand-hover); color: #fff; box-shadow: 0 12px 28px -10px rgba(166, 90, 22, .8); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--sand-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.5); }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--on-dark); border-color: rgba(250, 244, 235, .3); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); color: #fff; }
.btn--whatsapp { background: var(--wa); color: var(--wa-ink); }
.btn--whatsapp:hover { background: #1fc05b; color: var(--wa-ink); }
.btn svg { flex-shrink: 0; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font: inherit; }

/* 7-second final CTA countdown state */
.btn.is-counting { background: var(--espresso); color: var(--on-dark); box-shadow: none; justify-content: space-between; padding-inline: 22px; }
.btn.is-counting .cd-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--brand), #C77A2E); z-index: 0; }
.btn.cd-run .cd-bar { animation: cdfill var(--cd-duration, 7s) linear forwards; }
.btn.is-counting .cd-text, .btn.is-counting .cd-num { position: relative; z-index: 1; }
.btn.is-counting .cd-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); font-variant-numeric: tabular-nums; font-weight: 800; }
@keyframes cdfill { to { width: 100%; } }
.cta-cancel { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--muted); font-weight: 650; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; padding: 6px 10px; }

/* ---------- Chips / tags / stars ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 700; }
.chip-row--sm .chip { padding: 4px 10px; font-size: .75rem; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--gold); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.check-list { list-style: none; display: grid; gap: 12px; margin: 0 0 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--success); background: var(--success-soft); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.section--dark .check-list svg { color: var(--gold); background: rgba(233, 162, 59, .14); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field[hidden] { display: none; }
.field label, .field .label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 16px; /* ≥16px stops iOS zoom */ color: var(--ink); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236E5D50' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166, 90, 22, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: var(--fs-xs); font-weight: 650; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.radio-card input { accent-color: var(--brand); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form-status { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: var(--fs-sm); font-weight: 650; display: flex; gap: 10px; align-items: center; }
.form-status--info { background: var(--sand); color: var(--ink-2); }
.form-status--success { background: var(--success-soft); color: var(--success); }
.form-status--warn { background: var(--warn-soft); color: var(--warn); }
.form-status--error { background: var(--danger-soft); color: var(--danger); }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; text-align: center; }
.form-done { text-align: center; padding: 24px 8px; }
.form-done:focus { outline: none; }
.form-done .ty-badge { margin-inline: auto; }

/* Spinner */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; flex-shrink: 0; }
.spinner--lg { width: 40px; height: 40px; border-width: 3.5px; color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dialog / bottom sheet ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--bg); color: var(--ink-2); width: min(520px, calc(100vw - 32px)); max-height: min(92vh, 860px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: pop .25s var(--ease); }
dialog.sheet::backdrop { background: rgba(20, 13, 9, .58); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 6px; }
.sheet-head .eyebrow { margin-bottom: 6px; }
.sheet-head h2 { margin: 0; }
.sheet-body { padding: 14px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); }
.icon-btn:hover { background: var(--sand-2); }
.icon-btn[hidden] { display: none; }
@media (max-width: 600px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94vh; max-height: 94dvh; }
  dialog.sheet[open] { animation: up .28s var(--ease); }
  .sheet-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

/* Checkout */
.opts { border: 0; padding: 0; margin: 0 0 4px; }
.opts-list { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt-body { display: grid; gap: 2px; }
.opt-name { font-weight: 750; color: var(--ink); line-height: 1.3; }
.opt-price { font-size: var(--fs-sm); }
.opt-price b { color: var(--ink); font-size: 1.05rem; }
.opt-price s { color: var(--muted); margin: 0 4px; }
.opt-price em { font-style: normal; color: var(--success); font-weight: 750; }
.ck-form { display: grid; gap: 14px; }
.ck-fine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); margin: 0; text-align: center; flex-wrap: wrap; }
.ck-center { text-align: center; padding: 28px 4px 8px; display: grid; justify-items: center; gap: 4px; }
.ck-center .spinner--lg { margin-bottom: 14px; }
.ck-actions { display: grid; gap: 10px; width: 100%; margin-top: 16px; }
.ck-already { background: var(--warn-soft); color: var(--ink-2); border-radius: 12px; padding: 12px 14px; font-size: var(--fs-sm); margin-bottom: 14px; }
.ck-already p { margin: 0; }

/* Payment help */
.payhelp-note { font-size: var(--fs-sm); background: var(--sand); padding: 12px 14px; border-radius: 12px; }
.payhelp-grid { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; margin: 18px 0; }
@media (max-width: 460px) { .payhelp-grid { grid-template-columns: 1fr; justify-items: center; } .payhelp-rows { width: 100%; } }
.payhelp-qr { margin: 0; background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--line); text-align: center; }
.payhelp-qr img { width: 150px; height: 150px; object-fit: contain; margin-inline: auto; }
.payhelp-qr figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; font-weight: 650; }
.payhelp-rows { display: grid; gap: 10px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label btn" "value btn"; align-items: center; column-gap: 10px; padding: 10px 10px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.copy-label { grid-area: label; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.copy-value { grid-area: value; font-weight: 750; color: var(--ink); word-break: break-all; }
.copy-btn { grid-area: btn; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 750; font-size: var(--fs-xs); color: var(--ink); }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.is-copied { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.copy-btn[disabled] { opacity: .45; cursor: not-allowed; }
.payhelp-foot { font-size: var(--fs-xs); color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Floating buttons ---------- */
.floaters { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--float-bottom) + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: bottom .25s var(--ease); }
body.has-buybar { --float-bottom: 92px; }
.floater { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; box-shadow: 0 10px 30px -8px rgba(31, 21, 15, .45); text-decoration: none; transition: transform .15s var(--ease); }
.floater:hover { transform: translateY(-2px); }
.floater--wa { width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; }
.floater--wa svg { width: 30px; height: 30px; }
.floater--pay { height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--espresso); color: var(--on-dark); font-weight: 750; font-size: var(--fs-xs); }
.floater--pay svg { color: var(--gold); }
@media (max-width: 480px) { .floater-label { font-size: .75rem; } }

/* ---------- Toast ---------- */
.toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2000; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 650; font-size: var(--fs-sm); box-shadow: var(--shadow); animation: up .25s var(--ease); }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast.is-leaving { opacity: 0; transition: opacity .3s; }

/* ---------- Video ---------- */
.video { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: #120c08; box-shadow: var(--shadow); }
.video--portrait { aspect-ratio: 9 / 16; }
.video--landscape { aspect-ratio: 16 / 9; }
.video picture, .video .video-poster { width: 100%; height: 100%; }
.video .video-poster { object-fit: cover; }
.video-poster--empty { background: linear-gradient(135deg, var(--espresso), var(--espresso-2)); }
.video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.video-play svg { margin-left: 4px; }
.video:hover .video-play { transform: scale(1.06); }
.video-play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ring 2.2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.video-error { position: absolute; inset: auto 12px 12px; background: rgba(0,0,0,.7); color: #fff; padding: 10px; border-radius: 10px; font-size: var(--fs-xs); margin: 0; }

/* Horizontal rail (videos) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.rail-item { margin: 0; scroll-snap-align: start; }
.rail-item figcaption { margin-top: 12px; font-size: var(--fs-sm); color: var(--ink); }
.rail-item figcaption small { display: block; color: var(--muted); }
.section--dark .rail-item figcaption { color: var(--on-dark); }
.section--dark .rail-item figcaption small { color: var(--on-dark-muted); }
@media (max-width: 720px) { .rail { grid-auto-columns: 72%; } }
@media (min-width: 1100px) { .rail--4 { grid-auto-columns: 1fr; overflow: visible; margin: 0; padding-inline: 0; } }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 36px; }
.faq-group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); margin-bottom: 8px; font-weight: 800; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 0; font-weight: 750; color: var(--ink); cursor: pointer; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 40px 20px 0; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ---------- Reviews ---------- */
.quote-grid { columns: 3 300px; column-gap: 18px; }
.quote { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote blockquote { margin: 12px 0 18px; }
.quote blockquote p { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.6; font-weight: 550; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption b { display: block; color: var(--ink); line-height: 1.2; }
.quote figcaption small { color: var(--muted); }
.quote-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .85rem; }
.masonry { columns: 3 260px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #111; }
.shot img { width: 100%; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.stat-row > div { background: var(--surface); padding: 16px 18px; }
.stat-row dt { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat-row dd { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 650; }

/* ---------- Price + offer timer ---------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.price-now { font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1; }
.price-was { font-size: 1.25rem; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 600; }
.price-off { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--success); color: #fff; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; }
.price-save { font-size: var(--fs-sm); color: var(--success); font-weight: 750; margin: 8px 0 0; }
.offer-timer { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px 10px 16px; border-radius: 14px; background: var(--espresso); color: var(--on-dark); }
.offer-timer-label { font-size: var(--fs-xs); font-weight: 750; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: .08em; }
.offer-timer-clock { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.offer-timer-clock span { display: inline-grid; place-items: center; min-width: 40px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.1); }
.offer-timer.is-urgent .offer-timer-clock span { background: rgba(233, 162, 59, .22); color: var(--gold); }
.offer-timer.is-expired .offer-timer-clock { display: none; }
.offer-timer--light { background: var(--brand-soft); color: var(--ink); }
.offer-timer--light .offer-timer-label { color: var(--brand); }
.offer-timer--light .offer-timer-clock span { background: #fff; color: var(--ink); }

/* Sticky mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; transform: translateY(110%); transition: transform .3s var(--ease); box-shadow: 0 -10px 30px -18px rgba(31, 21, 15, .4); }
.buybar.is-visible { transform: none; }
.buybar-price { line-height: 1.15; }
.buybar-price b { font-size: 1.3rem; color: var(--ink); font-weight: 800; }
.buybar-price s { color: var(--muted); font-size: var(--fs-sm); margin-left: 6px; }
.buybar-price small { display: block; color: var(--muted); font-weight: 650; }
.buybar .btn { flex-shrink: 0; }
@media (min-width: 900px) { .buybar { display: none; } body.has-buybar { --float-bottom: 16px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-muted); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 36ch; margin-top: 16px; }
.footer-teachers strong { color: var(--on-dark); font-weight: 700; }
.footer-h { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-links .linklike { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover, .footer-links .linklike:hover { color: var(--gold); text-decoration: underline; }
.footer-social { display: flex; gap: 16px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(250, 244, 235, .12); margin-top: 48px; padding-top: 24px; padding-right: 90px; }
.footer-base p { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.site-footer .muted { color: var(--on-dark-muted); opacity: .85; }

.shots-toggle { margin-top: 28px; }
.shots-toggle > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 750; color: var(--ink); padding: 10px 18px; border: 1.5px solid var(--sand-2); border-radius: 999px; background: var(--surface); }
.shots-toggle > summary::-webkit-details-marker { display: none; }
.shots-toggle > summary::after { content: "+"; font-weight: 800; color: var(--brand); }
.shots-toggle[open] > summary::after { content: "–"; }
.shots-toggle .masonry { margin-top: 20px; }
.field input[type="radio"], .field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; box-shadow: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--brand); flex-shrink: 0; }

/* =========================================================
   v2 — FLOATING BOOK, PREVIEW, LIGHTBOX, SLOTS, BUY BAR
   ========================================================= */
.center { text-align: center; }
.small { font-size: var(--fs-sm); }

/* Floating eBook (no background; CSS depth + soft shadow) */
.book { --w: 200px; --d: 16px; position: relative; width: var(--w); aspect-ratio: 720 / 1018; perspective: 1400px; margin-inline: auto; }
.book--lg { --w: clamp(210px, 27vw, 330px); --d: 22px; }
.book--md { --w: 190px; --d: 16px; }
.book--sm { --w: 112px; --d: 10px; }
.book-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg); animation: book-float 6s ease-in-out infinite; }
.book-cover, .book-back, .book-pages { position: absolute; }
.book-cover { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.06) 3%, rgba(255,255,255,.14) 5%, rgba(255,255,255,0) 12%, rgba(0,0,0,0) 80%, rgba(0,0,0,.08)); pointer-events: none; }
.book-back { inset: 0; transform: translateZ(calc(var(--d) / -2)); background: #2b1d14; border-radius: 2px 5px 5px 2px; }
.book-pages { top: 1.2%; bottom: 1.2%; right: calc(var(--d) / -2); width: var(--d); transform: rotateY(90deg); background: repeating-linear-gradient(90deg, #fbf7ef 0 2px, #e4dccd 2px 3px); }
.book-shadow { position: absolute; left: 6%; right: 2%; bottom: -9%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 21, 15, .34), rgba(31, 21, 15, 0)); filter: blur(2px); animation: book-shadow 6s ease-in-out infinite; }
@keyframes book-float { 0%, 100% { transform: rotateY(-24deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-20deg) rotateX(3deg) translateY(-10px); } }
@keyframes book-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .book-3d, .book-shadow { animation: none; } }
.book-sticker { position: absolute; right: -14%; bottom: 14%; width: 30%; min-width: 46px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--on-dark); display: grid; place-content: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 10px 24px -8px rgba(31,21,15,.55); z-index: 2; line-height: 1; }
.book-sticker b { color: var(--gold); font-size: calc(var(--w) * .085); font-weight: 800; letter-spacing: -.02em; }
.book-sticker span { font-size: calc(var(--w) * .045); font-weight: 800; letter-spacing: .1em; margin-top: 2px; }
.book--sm .book-sticker b { font-size: 13px; } .book--sm .book-sticker span { font-size: 8px; }

/* Free preview rail */
.preview-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 22px; margin-inline: calc(var(--gutter) * -1); }
.preview-page { scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; }
.preview-page picture { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(31,21,15,.08), 0 14px 30px -12px rgba(31,21,15,.35); transition: transform .25s var(--ease); }
.preview-page:nth-child(odd) picture { transform: rotate(-1.2deg); } .preview-page:nth-child(even) picture { transform: rotate(1deg); }
.preview-page:hover picture, .preview-page:focus-visible picture { transform: translateY(-4px) rotate(0); }
.preview-label { display: block; margin-top: 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.preview-note { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
@media (min-width: 1100px) { .preview-rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding-inline: 0; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; }
dialog.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
dialog.lightbox::backdrop { background: rgba(15, 10, 7, .88); }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 56px 8px 16px; }
.lb-figure img { max-height: calc(100dvh - 120px); width: auto; max-width: min(92vw, 760px); border-radius: 6px; background: #fff; }
.lb-figure figcaption { color: var(--on-dark); font-size: var(--fs-sm); font-weight: 650; }
.lb-close { position: fixed; top: 14px; right: 14px; z-index: 2; }
.lb-nav { width: 48px; height: 48px; margin: 0 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
@media (max-width: 600px) { .lb-nav { position: fixed; bottom: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; } dialog.lightbox[open] { grid-template-columns: 1fr; } }

/* Buy bar: full-width on mobile, floating pill on desktop */
.buybar-thumb { display: none; }
.buybar-price small { display: block; color: var(--muted); font-weight: 650; }
@media (min-width: 900px) {
  .buybar { display: flex; left: 50%; right: auto; bottom: 18px; width: min(560px, calc(100vw - 220px)); padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: 999px; transform: translate(-50%, 140%); box-shadow: 0 18px 40px -16px rgba(31,21,15,.45); }
  .buybar.is-visible { transform: translate(-50%, 0); }
  .buybar-thumb { display: block; flex-shrink: 0; }
  .buybar-thumb img { width: 34px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
  .buybar-price { flex: 1; }
  body.has-buybar { --float-bottom: 16px; }
}

/* Slot chips (timing section) + slot picker (form) */
.slot-groups { display: grid; gap: 22px; margin: 28px 0 18px; }
.slot-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; min-height: 52px; padding: 0 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.slot:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); transform: translateY(-2px); }
.slot-field { border: 0; padding: 0; margin: 0; }
.slot-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.slot-picker-h { width: 100%; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.slot-opt { position: relative; cursor: pointer; }
.field .slot-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 750; font-size: var(--fs-sm); color: var(--ink); }
.slot-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.slot-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Payment-help: compact */
.payhelp .sheet-head { align-items: center; padding-bottom: 0; }
.payhelp .sheet-head h2 { margin: 0; }
.payhelp-grid { grid-template-columns: 132px 1fr; gap: 14px; margin: 12px 0 14px; }
@media (max-width: 460px) { .payhelp-grid { grid-template-columns: 116px 1fr; justify-items: stretch; } .payhelp-rows { width: auto; } }
.payhelp-qr { padding: 6px; }
.payhelp-qr img { width: 100%; height: auto; }
.payhelp-qr figcaption { font-size: .68rem; margin-top: 2px; }
.payhelp-rows { gap: 8px; }
.copy-row { padding: 8px 8px 8px 12px; }
.copy-value { font-size: var(--fs-sm); }
.copy-btn { min-height: 34px; padding: 0 10px; }
.upi-app-link { font-size: var(--fs-xs); font-weight: 750; }
.payhelp-foot { margin-top: 10px; }
@media (min-width: 601px) { dialog.payhelp { width: min(440px, calc(100vw - 32px)); } }
@media (max-width: 899px) {
  .buybar { gap: 10px; }
  .buybar-price small { display: none; }
  .buybar-price { flex-shrink: 0; }
  .buybar .btn { min-width: 0; flex: 1 1 auto; padding: 0 14px; font-size: .9rem; white-space: normal; line-height: 1.15; }
}

/* ---------- v3: master logo images ---------- */
.logo .logo-img { height: 46px; width: auto; display: block; }
.logo--light .logo-img { height: 56px; }
@media (max-width: 380px) { .logo .logo-img { height: 36px; } }
/* Mobile: payment-help button shows icon + full text (compact pill) */
@media (max-width: 560px) {
  .floater--pay { height: 40px; padding: 0 14px 0 12px; gap: 7px; font-size: .78rem; }
  .floater--pay svg { width: 18px; height: 18px; }
  .floater--wa { width: 54px; height: 54px; }
}
