/* Layout + components. Colours and fonts come from theme.css (one block per product).
   v2 "Premium editorial" (owner pick, 2026-10-31): style borrowed from a fintech landing reference, no assets copied.
   Page #F5F5F5, max-width 88rem, hero = one rounded card with a muted loop + scrim, black pill CTA with a white arrow dot,
   slow skill marquee, bento benefits, "use modes" tabs with a clip card, preview cards that play how-to clips.
   Type: ui-ux-pro-max typography "Classic Elegant" (serif display + clean sans) mapped to Thai: Noto Serif Thai + Noto Sans Thai. */
@import url('/theme.css');

:root {
  --radius: 12px; --r-2xl: 1rem; --r-3xl: 1.5rem;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
/* fallbacks for themes that do not set the v2 tokens (type selector = lower specificity than theme.css :root blocks) */
html { --scrim: 255, 255, 255; --display-weight: 700; --display-track: -0.02em; --accent-soft: #EBD9A8; --brand-deep: #10243A; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--sticky-h, 80px) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.75 var(--f-body);
  padding-bottom: calc(var(--sticky-h, 80px) + 24px); /* the sticky bar never covers the last lines */ }
h1, h2, h3 { font-family: var(--f-head); color: var(--brand); line-height: var(--h-line); margin: 0 0 var(--s2); font-weight: var(--h-weight); text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; margin-bottom: 4px; }
p { margin: 0 0 var(--s2); }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
button, a, label, input, summary { touch-action: manipulation; }

.shell { max-width: 88rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 8vw, 112px) 0 0; }
section.soft > .wrap { background: var(--card); border-radius: var(--r-3xl); padding-top: var(--s4); padding-bottom: var(--s4); max-width: calc(760px + 2 * var(--gutter)); }
.hidden { display: none !important; }
.nw { white-space: nowrap; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; }
mark.todo { background: #FFF1C2; color: #6B4E0E; border: 1px dashed #C9A13B; border-radius: 4px; padding: 0 4px; font-size: .85em; font-weight: 600; }
.clean mark.todo { display: none; }
.step, .eyebrow { font-family: var(--f-body); color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .02em; margin-bottom: 8px; }
.display-2 { font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3.25rem); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.28; margin-bottom: var(--s3); }

/* ---------- buttons (>= 48px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--cta); color: #fff; font: inherit; font-weight: 600; padding: 12px 24px; min-height: 52px; text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease; }
.btn:active { transform: scale(0.97); background: var(--cta-press); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--cta-press); } }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--cta); box-shadow: inset 0 0 0 1.5px var(--cta); margin-top: var(--s1); }
.btn.ghost:active { background: var(--cta-soft); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--cta-soft); } }
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

/* pill CTA: black capsule + trailing white circle with an arrow */
.btn.pill { border-radius: 999px; padding: 6px 6px 6px 26px; min-height: 56px; gap: 16px; text-align: left; }
.btn.pill .lbl { line-height: 1.4; text-wrap: balance; }
@media (max-width: 479px) { .hero .btn.pill { width: 100%; justify-content: space-between; font-size: 1rem; } .badge { font-size: .78rem; } }
.btn.pill .dot { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--cta); display: grid; place-items: center;
  transition: transform 220ms var(--ease-out); }
.btn.pill .dot svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .btn.pill:hover .dot { transform: translateX(3px); } }
.btn.pill.ghost .dot { background: var(--cta); color: #fff; }
.btn.pill.block { justify-content: space-between; }

/* ---------- hero: one rounded card, muted loop behind, content top-left ---------- */
.hero { padding-top: var(--s2); }
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--card); isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #E4E8EE; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 900ms ease; }
.hero-card.playing .hero-video { opacity: 1; }
.hero-scrim { display: none; }
.has-media .hero-scrim { display: block; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--scrim), .95) 0%, rgba(var(--scrim), .9) 55%, rgba(var(--scrim), .72) 100%); }
.hero-body { padding: clamp(24px, 4.5vw, 72px) clamp(20px, 4.5vw, 72px) 0; display: grid; gap: var(--s2); justify-items: start; max-width: 54rem; }
.badge { display: inline-block; background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--brand);
  border-radius: 999px; padding: 3px 14px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.badge:empty { display: none; }
.hero h1 { margin: 0; font-size: clamp(2.05rem, 1.1rem + 4.1vw, 4.9rem); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  line-height: 1.24; text-wrap: balance; }
.sub { color: var(--text); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); margin: 0; max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: var(--s1); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
.price b { font-family: var(--f-head); font-size: 1.6rem; color: var(--brand); line-height: 1.3; font-weight: 600; }
.price span { color: var(--muted); font-size: .92rem; }
.under { font-size: .88rem; color: var(--muted); margin: 0; }
.under .flow { font-weight: 600; color: var(--text); }
.ar { color: var(--accent); }
.hero-card .cover { display: block; width: calc(100% - 2 * clamp(20px, 4.5vw, 72px)); margin: 0 auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-2xl); }

/* marquee: the 15 skills drift slowly under the CTA */
.marquee { padding: 0 0 clamp(20px, 3vw, 36px); }
.marquee-label { margin: 0 clamp(20px, 4.5vw, 72px) 8px; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.marquee-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: mq 90s linear infinite; }
.mq-item { white-space: nowrap; padding: 6px 16px; margin-right: 10px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line);
  font-size: .9rem; color: var(--brand); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

.hero-facts { display: grid; gap: var(--s3); padding: var(--s4) clamp(4px, 2vw, 24px) 0; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 13px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.trust li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .94rem; }
.trust .ic { color: var(--accent); margin-top: 3px; }
.trust b { color: var(--text); }

/* ---------- benefits bento ---------- */
.bento { display: grid; gap: var(--s2); }
.bento-wide { position: relative; overflow: hidden; border-radius: var(--r-3xl); background: #E7EBF0; min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; }
.bento-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.bento-copy { margin: var(--s2); padding: var(--s3); border-radius: var(--r-2xl); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); max-width: 34rem; }
.bento-copy h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.bento-copy p { margin: 0; color: var(--text); }
.bento-dark { display: grid; gap: var(--s2); }
.bento-card { background: var(--brand); color: #fff; border-radius: var(--r-3xl); padding: var(--s4) var(--s3); display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.bento-card .kicker { color: var(--accent-soft); font-weight: 600; font-size: .92rem; margin-bottom: auto; padding-bottom: var(--s3); }
.bento-card h3 { color: #fff; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.bento-card p { margin: 0; color: #D9E1EA; }

/* ---------- problem ---------- */
.lede { font-size: 1.08rem; }
ul.check, ul.cross, ul.dl { list-style: none; padding: 0; margin: 0 0 var(--s2); }
ul.check li, ul.cross li { padding: 6px 0 6px 32px; position: relative; }
ul.check li::before { content: ""; position: absolute; left: 8px; top: 12px; width: 7px; height: 13px; border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(45deg); }
ul.cross li::before, ul.cross li::after { content: ""; position: absolute; left: 4px; top: 20px; width: 16px; height: 2.5px; background: var(--danger); border-radius: 2px; transform: rotate(45deg); }
ul.cross li::after { transform: rotate(-45deg); }
ul.check:empty { display: none; }
.compare { border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; margin: var(--s3) 0; background: var(--card); }
.compare-q { padding: 12px var(--s2); background: var(--brand-tint); font-weight: 600; }
.compare-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px var(--s2); border-top: 1px solid var(--line); align-items: start; }
.compare-row .who { font-weight: 700; color: var(--brand); font-size: .95rem; }
.compare-row p { margin: 0; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.1; margin: 0 2px; font-size: .9em; font-weight: 600; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 2px; }

/* ---------- use modes: copy + tabs left, big clip card right ---------- */
.modes { display: grid; gap: var(--s4); align-items: center; }
.intro { color: var(--muted); font-size: 1.05rem; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #E8E9EC; margin: var(--s1) 0 var(--s3); max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); padding: 8px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.tab[aria-selected="true"] { background: #fff; color: var(--cta); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 2px 8px rgba(16,24,40,.06); }
.mode-panel h3 { font-size: 1.3rem; margin-bottom: 4px; }
.mode-panel .who { display: block; font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--s2) 0 0; }
ol.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 600; font-size: .85rem; display: grid; place-items: center; line-height: 1; }
.modes-media { position: relative; margin: 0; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 4 / 5; border-radius: var(--r-3xl); overflow: hidden; background: #EEF2F7;
  box-shadow: 0 30px 60px -30px rgba(28, 54, 83, .35); }
.modes-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modes-media figcaption { position: absolute; right: 14px; top: 14px; display: flex; gap: 6px; }
.modes-media .chip { background: rgba(17,20,24,.88); color: #fff; font-size: .85rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.modes-media .mwho { display: none; }
.honest { margin: var(--s3) 0 0; background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: var(--r-2xl); padding: 14px var(--s2); font-size: .95rem; }
.honest b { color: var(--accent-ink); }
/* legacy 3-card paths (configs without tabs) */
.paths { display: grid; gap: var(--s2); margin-top: var(--s3); }
.paths:empty { display: none; }
.path { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s2) var(--s2) 12px; }
.path-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.path-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.path-ic svg { width: 22px; height: 22px; }
.path h3 { margin: 0; }
.path ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.path li { counter-increment: s; position: relative; padding: 8px 0 8px 36px; border-top: 1px solid var(--line); font-size: .98rem; }
.path li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: .85rem; display: grid; place-items: center; line-height: 1; }

/* ---------- inside ---------- */
.items { border-top: 2px solid var(--brand); margin: var(--s2) 0; }
.it { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.it h3 { margin: 0; font-family: var(--f-body); font-weight: 600; font-size: 1.02rem; }
.it .count { justify-self: end; align-self: start; font-size: .82rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid var(--accent-line); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.it p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }
.src { font-size: .92rem; color: var(--muted); }
.src b { color: var(--text); }

/* ---------- preview cards: scroll-snap on phones, 3 columns >= 960px; clips play on hover ---------- */
#preview .display-2, #preview h2 { margin-bottom: var(--s2); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory;
  margin: var(--s2) calc(-1 * var(--gutter)); padding: 6px var(--gutter) 14px; overscroll-behavior-x: contain; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery a, .pv { display: block; position: relative; width: 100%; border-radius: var(--r-2xl); background: #fff; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -12px var(--shadow); transition: transform 220ms var(--ease-out), box-shadow 220ms ease; font: inherit; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.pv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 220ms ease; background: #F4F7FB; }
.pv.playing .pv-video { opacity: 1; }
.pv-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgba(17,20,24,.88); color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.5; transition: opacity 200ms ease; }
.pv-play { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--cta); display: grid; place-items: center; }
.pv-play svg { width: 14px; height: 14px; margin-left: 2px; }
.pv.playing .pv-badge { opacity: 0; }
.gallery a:active, .pv:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .pv:hover, .gallery a:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 22px 44px -16px rgba(28,54,83,.28); } }
.gallery figcaption { font-size: .92rem; color: var(--muted); padding: 12px 4px 0; line-height: 1.65; }
.gallery figcaption b { display: block; color: var(--text); font-weight: 600; }
.hint-swipe { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* lightbox (native dialog) */
.lightbox { border: 0; padding: var(--s2); border-radius: var(--r-3xl); width: min(92vw, 480px); max-height: 94vh; background: #fff; color: var(--text); }
.lightbox::backdrop { background: rgba(16, 36, 58, .72); }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.lb-head h2 { margin: 0; font-size: 1.15rem; }
.lightbox video { display: block; width: 100%; max-height: calc(94vh - 170px); aspect-ratio: 4 / 5; object-fit: contain; border-radius: var(--r-2xl); background: #F4F7FB; }
.lightbox .small { margin: 10px 2px 0; }

/* ---------- bonuses (cards) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s2); margin: 0 0 12px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- audience ---------- */
.cols { display: grid; gap: var(--s3); }
.cols > div { background: var(--card); border-radius: var(--r-2xl); padding: var(--s3); }
.timing { background: var(--card); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px var(--s2); font-size: .95rem; margin: var(--s3) 0 0; }

/* ---------- bump teaser ---------- */
.bump-teaser-card { border: 2px dashed var(--accent); background: var(--accent-wash); border-radius: var(--r-2xl); padding: var(--s2) var(--s3); }
.bump-teaser-card .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 10px; margin-bottom: 8px; }
.bump-teaser-card h3 { font-size: 1.15rem; }
.bump-teaser-card .sum { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; color: var(--brand); margin-top: 4px; }
section.soft#bump-teaser > .wrap { background: transparent; padding-top: 0; padding-bottom: 0; }

/* ---------- faq ---------- */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 14px 36px 14px 0; min-height: 52px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 9px; height: 9px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg); top: 26px; }
details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- final CTA + refund ---------- */
#guarantee .final { text-align: center; }
#guarantee .final h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); letter-spacing: var(--display-track); }
.final .list { color: var(--muted); font-size: .95rem; }
.final .list span { white-space: nowrap; }
.final .price { justify-content: center; margin-bottom: 14px; }
.final .ship { margin: 12px 0 0; }
.refund { text-align: left; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: .95rem; }
.refund h3 { font-size: 1.05rem; }
.refund p { margin: 0; }

footer { padding: var(--s5) 0 var(--s4); font-size: .88rem; color: var(--muted); text-align: center; }
footer p { margin: 0 0 8px; }

/* ---------- sticky buy bar ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); }
.sticky { transition: transform 260ms var(--ease-drawer); }
.sticky.away { transform: translateY(110%); }
.sticky .wrap { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 0; max-width: 88rem; }
.sticky .meta { min-width: 0; }
.sticky .name { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky .p { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; color: var(--brand); line-height: 1.35; }
.sticky .btn { flex: none; }
.sticky .btn.pill { min-height: 48px; padding: 4px 4px 4px 18px; gap: 10px; font-size: .95rem; }
.sticky .btn.pill .dot { width: 40px; height: 40px; }

/* ---------- checkout: bottom sheet on phones, centred dialog on desktop ---------- */
.modal { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; transition: opacity 200ms ease; }
.sheet { background: #fff; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0;
  padding: var(--s3) var(--s2) calc(var(--s3) + env(safe-area-inset-bottom)); transition: transform 280ms var(--ease-drawer), opacity 200ms ease; }
@starting-style {
  .modal { opacity: 0; }
  .sheet { transform: translateY(24px); opacity: 0; }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; }
.close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); width: 48px; height: 48px; border-radius: 50%; flex: none; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.row > :last-child { white-space: nowrap; }
.total { border-top: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; margin-bottom: var(--s2); }
.bump { display: flex; gap: 12px; background: var(--accent-wash); border: 2px dashed var(--accent); border-radius: var(--radius); padding: 12px; margin: 12px 0; cursor: pointer; transition: background-color 160ms ease; }
.bump:has(input:checked) { border-style: solid; background: var(--bump-checked); }
.bump input { width: 22px; height: 22px; flex: none; margin-top: 4px; accent-color: var(--accent); }
.paycard { max-width: 320px; margin: 12px auto; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 23, 42, .12); text-align: center; }
.paycard-head { background: #183B56; color: #fff; font-weight: 700; letter-spacing: .06em; padding: 12px 8px; font-size: .95rem; }
.paycard-body { padding: 14px 16px 16px; }
.paycard-pp { display: inline-block; border: 2px solid #183B56; color: #183B56; font-weight: 700; border-radius: 6px; padding: 2px 10px; font-size: .8rem; margin-bottom: 8px; }
.paycard img { display: block; width: 220px; height: 220px; margin: 0 auto; image-rendering: pixelated; }
.paycard-label { margin: 8px 0 0; color: #0369A1; font-weight: 600; font-size: .9rem; }
.paycard-name { margin: 2px 0 0; font-weight: 700; color: #0F172A; line-height: 1.35; }
.paycard-acct { margin: 2px 0 0; color: #475569; letter-spacing: .04em; white-space: pre-line; font-size: .85rem; }
.paycard-amount { margin: 10px 0 0; font-size: 1.05rem; }
.paycard-amount strong { color: #183B56; font-size: 1.35rem; }
.paycard-shop { margin: 6px 0 0; color: #475569; font-size: .8rem; }
.qr { text-align: center; margin: 12px 0; }
.qr img { width: 240px; height: 240px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 8px; }
label.field { display: block; margin: var(--s2) 0; font-weight: 600; }
label.field input { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
label.field input:focus-visible { outline-offset: 0; }
.msg { margin: 12px 0; padding: 12px; border-radius: 10px; }
.msg.err { background: #fdecea; color: var(--danger); }
.msg.ok { background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; }
.recover { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 4px 4px 4px var(--gutter, 16px); background: var(--ok-soft); color: var(--ok-ink); border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.recover > span { flex: 1 1 220px; }
.recover .btn { min-height: 44px; padding: 6px 16px; font-size: .95rem; }
ul.dl li { margin: 0 0 12px; }
ul.dl .btn { display: flex; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .cols { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-columns: 46%; }
  .modal { align-items: center; } .sheet { border-radius: 20px; }
  .hero-facts { grid-template-columns: 1.4fr 1fr; gap: var(--s5); }
}
@media (min-width: 768px) {
  .hero-card { min-height: min(84vh, 820px); }
  .has-media .hero-scrim { background: linear-gradient(100deg, rgba(var(--scrim), .97) 0%, rgba(var(--scrim), .92) 38%, rgba(var(--scrim), .55) 68%, rgba(var(--scrim), .12) 100%); }
  .bento { grid-template-columns: 1.7fr 1fr; }
  .bento-wide { min-height: 480px; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: var(--s4) 0; padding: 0; gap: var(--s4) var(--s3); }
  .hint-swipe { display: none; }
  .modes { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 112px); }
  .modes-media { justify-self: end; max-width: min(100%, 600px, 72vh); }
  .hero-card:not(.has-media) { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-card:not(.has-media) .hero-body { padding-bottom: clamp(24px, 4.5vw, 72px); }
  .hero-card:not(.has-media) .cover { width: auto; margin: clamp(24px, 4vw, 56px); }
  .hero-card:not(.has-media) .marquee { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active, .gallery a:active, .pv:active, .pv:hover { transition: background-color 160ms ease; transform: none; }
  .btn.pill .dot { transition: none; transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; row-gap: 8px; padding: 0 clamp(20px, 4.5vw, 72px); }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee-view { -webkit-mask-image: none; mask-image: none; }
  .sticky { transition: none; }
  .sheet { transition: opacity 200ms ease; } summary::after { transition: none; }
  @starting-style { .sheet { transform: none; } }
}

/* section headings inside narrow text columns follow the display scale */
.wrap > h2, .wrap h2[data-k="title"] { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.35rem); letter-spacing: -0.02em; line-height: 1.32; }
#faq h2 { font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.35rem); letter-spacing: -0.02em; }

/* final-box wrapping fixes (kept from the editorial pass; layout is premium v2 again, colours live in theme.css) */
.final .list { max-width: 68ch; margin: 0 auto 18px; line-height: 1.75; }
.final .list span { white-space: normal; }
.final h2 { max-width: 28ch; margin-inline: auto; overflow-wrap: anywhere; }
.final .price { margin-top: 14px; }
.final .ship, .refund p { overflow-wrap: anywhere; }
.refund { padding-inline: 0; line-height: 1.75; }

@media (min-width: 1024px) {
  .hero-card.has-media, .hero-card:not(.has-media) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
  .hero-body { padding-bottom: clamp(26px, 4vw, 60px); }
  .hero-card .cover { width: calc(100% - 48px); margin: 30px 24px; }
  .hero-card .marquee { grid-column: 1 / -1; }
  .hero-facts { grid-template-columns: 1.2fr 1fr; }
  #inside .wrap { max-width: 980px; }
  .modes { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
}
@media (min-width: 1024px) { .hero-card .cover { max-height: 540px; } }
@media (max-width: 767px) {
  .hero-card { gap: 22px; }
  .hero-body { padding-top: 26px; }
  .hero-card .cover { width: calc(100% - 32px); margin: 0 auto; }
  #benefits .shell { padding: 28px 20px; }
  .sticky .wrap { padding: 0 4px; }
  footer .wrap { padding-left: 20px; padding-right: 20px; }
  .final { padding: 22px 18px; }
  .final .list { font-size: .9rem; }
  .final .buy { width: 100%; }
}
