/* Shared styles for the AdPages demo pages. Each page sets --brand. */
*, *::before, *::after { box-sizing: border-box; }
:root { --ink: #1d1d1f; --muted: #5d5d63; --line: #e4e4e8; --bg: #ffffff; --soft: #f5f5f7; --cta: #d12a10; --cta-ink: #ae1800; --brand: #0b4f94; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); padding-bottom: 76px; }
@media (min-width: 760px) { body { padding-bottom: 0; } }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

.ribbon { background: #0e1c3c; color: #fff; font-size: 13px; }
.ribbon .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.ribbon b { color: #9ce1c3; }

.bar { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 17px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.logo i { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: inline-block; }
.bar .bar-cta { display: none; }
@media (min-width: 560px) { .bar .bar-cta { display: inline-flex; } }
.status { font-size: 13px; white-space: nowrap; color: #1f7a3a; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a04b; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 10px; background: var(--cta); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; border: 0; }
.btn:hover { background: var(--cta-ink); }
.btn-sm { min-height: 42px; font-size: 15px; padding: 0 16px; }
.btn-block { width: 100%; }

.hero { background: var(--brand); color: #fff; padding: 36px 0 40px; }
.hero .wrap { display: grid; gap: 28px; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr .8fr; align-items: center; } .hero { padding: 64px 0; } }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin-top: 10px; }
.hero .sub { font-size: clamp(18px, 2vw, 21px); margin-top: 14px; opacity: .92; max-width: 34ch; }
.hero .actions { margin-top: 24px; display: grid; gap: 10px; max-width: 420px; }
.micro { font-size: 14px; opacity: .88; }
.rating { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 18px; }
.rating span { color: #ffc93c; letter-spacing: 2px; }
.card { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: grid; gap: 12px; }
.card h2 { font-size: 20px; }
.card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.card .row:last-of-type { border-bottom: 0; }
.card .row b { font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots a { border: 2px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.slots a small { display: block; font-weight: 400; color: var(--muted); }
.slots a:hover { border-color: var(--brand); }

.trust { border-bottom: 1px solid var(--line); background: var(--soft); }
.trust ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 0; text-align: center; }
.trust li { font-size: 14px; color: var(--muted); }
.trust li b { display: block; color: var(--ink); font-size: 16px; }

.sec { padding: 48px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 22px; }
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 16px; }

.reviews { display: grid; gap: 16px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews li { padding: 20px; background: var(--soft); border-radius: 14px; display: grid; gap: 8px; align-content: start; }
.reviews span { color: #e6a100; letter-spacing: 2px; }
.reviews p { font-size: 16px; }
.reviews small { color: var(--muted); }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

.final { background: var(--soft); text-align: center; }
.final .wrap { display: grid; gap: 14px; justify-items: center; }
.final p { color: var(--muted); }

.foot { padding: 24px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 20; }
@media (min-width: 760px) { .sticky { display: none; } }

.demo-note { display: none; position: fixed; inset: auto 16px 90px 16px; max-width: 460px; margin: 0 auto; background: #0e1c3c; color: #fff; padding: 18px 20px; border-radius: 12px; z-index: 40; box-shadow: 0 12px 40px rgba(0,0,0,.3); font-size: 15px; }
.demo-note:target { display: block; }
.demo-note a { color: #9ce1c3; font-weight: 700; }
@media (min-width: 760px) { .demo-note { bottom: 24px; } }

/* product layout (store demo) */
.product { padding: 24px 0 40px; }
.product .wrap { display: grid; gap: 28px; }
@media (min-width: 860px) { .product .wrap { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; } .product { padding: 48px 0; } }
.swatch-img { aspect-ratio: 4 / 3; border-radius: 16px; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px),
  repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 5px), var(--img, #b9a88c);
  display: grid; place-items: end start; padding: 18px; color: #fff; font-weight: 700; }
.swatch-img span { background: var(--cta); padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.product h1 { font-size: clamp(30px, 4.6vw, 44px); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; }
.price b { font-size: 34px; }
.price s { color: var(--muted); font-size: 20px; }
.price em { font-style: normal; background: #fff2ef; color: var(--cta-ink); font-weight: 700; font-size: 14px; padding: 4px 8px; border-radius: 6px; }
.opts { display: grid; gap: 8px; margin: 18px 0; }
.opts p { font-weight: 700; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips label:has(input:checked) { border-color: var(--ink); }
.dots label { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.ticks { display: grid; gap: 8px; margin-top: 16px; font-size: 15px; }
.ticks li::before { content: "✓  "; color: #1f7a3a; font-weight: 800; }
@media (min-width: 860px) { .swatch-img { aspect-ratio: 1; } }
@media (min-width: 760px) { .logo { font-size: 19px; } .status { font-size: 14px; } }
