:root {
  --bg: #f5f7fb; --paper: #ffffff; --ink: #0f172a; --muted: #5b6475; --line: #e2e7f0;
  --accent: #3b4fe4; --accent-ink: #ffffff; --accent-soft: #e9edff; --green: #12805c;
  --radius: 16px; --shadow: 0 10px 30px rgba(15, 23, 42, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.6 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: Inter, system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.022em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
section { padding: 72px 0; }
.sub { color: var(--muted); margin: -4px 0 32px; }
.fine { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 14px 26px; font: 600 1rem Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.small { padding: 9px 18px; font-size: .92rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.wide { width: 100%; margin-top: 16px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .row { height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 1.25rem Inter, system-ui, sans-serif; color: var(--ink); text-decoration: none; }
.mark { display: block; width: 32px; height: 32px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }

.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.hero-books { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero-books img { position: absolute; width: 56%; border-radius: 6px; box-shadow: var(--shadow); aspect-ratio: 2 / 3; object-fit: cover; background: var(--line); }
.hero-books .b1 { left: 0; top: 8%; transform: rotate(-6deg); }
.hero-books .b2 { left: 22%; top: 0; z-index: 2; }
.hero-books .b3 { right: 0; top: 12%; transform: rotate(6deg); }

.steps { background: var(--paper); border-block: 1px solid var(--line); }
.step-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-grid span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 600; margin-bottom: 12px; }
.step-grid p { color: var(--muted); margin: 0; }

.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.format { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.format:hover, .format.on { border-color: var(--accent); transform: translateY(-2px); }
.format b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.format span { color: var(--muted); font-size: .95rem; }

.samples { background: var(--paper); border-block: 1px solid var(--line); }
.sample-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin-inline: auto; }
.sample { align-self: start; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.sample img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 14px; background: var(--line); transition: transform .15s; }
.sample:hover img { transform: translateY(-4px); }
.sample b { display: block; }
.sample span { color: var(--muted); font-size: .95rem; }


.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 30px 16px; cursor: pointer; font: inherit; color: inherit; text-align: center; transition: border-color .15s, transform .15s; }
.price:hover { border-color: var(--accent); transform: translateY(-2px); }
.price .soon { display: block; margin-top: 12px; font-weight: 600; color: var(--accent); }
.price[aria-disabled="true"] { cursor: default; }
.price.popular { border-color: var(--accent); background: #f7f8ff; }
.price em { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.price strong { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.price b { display: block; font: 700 1.9rem Inter, system-ui, sans-serif; }
.price small { font: 400 1rem Inter, sans-serif; color: var(--muted); }
.price span { color: var(--accent); font-weight: 600; }

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

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(15, 23, 42, .5); }
dialog form { padding: 32px 28px 24px; position: relative; }
dialog h2 { font-size: 1.7rem; }
dialog label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; }
dialog input, dialog select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
dialog input:focus, dialog select:focus { outline: none; border-color: var(--accent); }
.x { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { font-weight: 600; margin: 8px 0 0; }
.msg.ok { color: var(--green); } .msg.err { color: #b42318; }
.cf-turnstile { margin-top: 14px; }
.early-done { padding: 40px 28px 28px; text-align: center; }
.early-done[hidden], dialog form[hidden] { display: none; }
.done-tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; font-weight: 700; }
.early-done p { color: var(--muted); margin: 0 0 8px; }
.fmt-body { padding: 32px 28px 26px; position: relative; }
.fmt-lead { color: var(--muted); margin: 0 0 14px; }
.fmt-points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.fmt-points li { position: relative; padding-left: 30px; }
.fmt-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }
.fmt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .92rem; }
.consent div { display: flex; gap: 8px; flex-shrink: 0; }

.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal p, .legal li { color: #2c3445; }

#reader { width: min(1180px, calc(100vw - 16px)); height: min(920px, calc(100dvh - 16px)); max-height: none; max-width: none; background: #172033; color: #fff; display: none; flex-direction: column; overflow: hidden; }
#reader[open] { display: flex; }
.reader-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px 6px 18px; }
.reader-bar b { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-bar span { color: #cfd6e3; font-size: .9rem; }
.reader-x { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.reader-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px; background: radial-gradient(ellipse at center, #3b4456 0%, #172033 70%); }
.book-holder { position: relative; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.bpage { background: #fff; overflow: hidden; }
/* centre fold: shading on each page's inner edge + a thin crease, so the spread reads as a bound book */
.bpage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14%; pointer-events: none; z-index: 1; }
.bpage.--right::after { left: 0; background: linear-gradient(to right, rgba(15, 23, 42, .30) 0%, rgba(15, 23, 42, .10) 3%, rgba(15, 23, 42, .04) 35%, rgba(15, 23, 42, 0) 100%); box-shadow: inset 1px 0 0 rgba(15, 23, 42, .25); }
.bpage.--left::after { right: 0; background: linear-gradient(to left, rgba(15, 23, 42, .30) 0%, rgba(15, 23, 42, .10) 3%, rgba(15, 23, 42, .04) 35%, rgba(15, 23, 42, 0) 100%); box-shadow: inset -1px 0 0 rgba(15, 23, 42, .25); }
.bpage.--hard::after { display: none; }
.bpage img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.reader-foot { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 12px 14px; }
.reader-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.reader-nav:hover { background: rgba(255, 255, 255, .26); }
.reader-nav:disabled { opacity: .25; cursor: default; }

/* ---- hero tag + features ---- */
.pill-dot { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--accent); font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 999px; margin: 0 0 18px; }
.pill-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 79, 228, .35); } 50% { box-shadow: 0 0 0 6px rgba(59, 79, 228, 0); } }
h1 .hl { color: var(--accent); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head .sub { margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.tag span { background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 3px 12px; border-radius: 999px; }

.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feat { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 2px 12px rgba(15, 23, 42, .04); }
.feat-head { display: flex; gap: 16px; align-items: flex-start; }
.feat-head h3 { margin: 4px 0 6px; font: 600 1.08rem/1.3 Inter, sans-serif; }
.feat-head p { margin: 0; color: var(--muted); }
.ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel { flex: 1; min-height: 300px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 45%); position: relative; overflow: hidden; }
.kicker { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* idea -> book demo */
.demo-input { display: flex; align-items: center; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--accent); border-radius: 10px; background: #fff; font-size: .95rem; box-shadow: 0 0 0 4px rgba(59, 79, 228, .08); }
.caret { width: 1.5px; height: 1.1em; background: var(--accent); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-plan { list-style: none; counter-reset: ch; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.demo-plan li { counter-increment: ch; display: flex; align-items: center; gap: 10px; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.demo-plan li::before { content: counter(ch); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; transition: background .3s, color .3s; }
.demo-plan li.in { opacity: 1; transform: none; }
.demo-plan li.ok::before { content: "✓"; background: var(--green); color: #fff; }
.demo-done { margin-top: 14px; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.demo-done.in { opacity: 1; transform: none; }
.demo-done img { width: 52px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.demo-done b { display: block; }
.demo-done span { display: block; color: var(--muted); font-size: .85rem; }
.demo-done em { font-style: normal; color: var(--accent); font-weight: 600; font-size: .85rem; }

/* cover demo */
.cover-demo { display: flex; flex-direction: column; align-items: center; }
.cover-swap { position: relative; width: 150px; aspect-ratio: 2 / 3; margin: 6px 0 16px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-2deg); }
.cover-swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-swap .titled { animation: titleIn 6s ease-in-out infinite; }
@keyframes titleIn { 0%, 30% { opacity: 0; } 45%, 90% { opacity: 1; } 100% { opacity: 0; } }
.cover-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: .82rem; font-weight: 600; }
.cover-steps span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.cover-steps .s1 { animation: stepA 6s infinite; } .cover-steps .s2 { animation: stepB 6s infinite; }
@keyframes stepA { 0%, 30% { color: var(--accent); border-color: var(--accent); } 45%, 100% { color: var(--muted); border-color: var(--line); } }
@keyframes stepB { 0%, 30% { color: var(--muted); border-color: var(--line); } 45%, 90% { color: var(--accent); border-color: var(--accent); } 100% { color: var(--muted); border-color: var(--line); } }

/* format chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: .92rem; animation: chip 9s infinite; }
.chips span:nth-child(2) { animation-delay: 1s; } .chips span:nth-child(3) { animation-delay: 2s; } .chips span:nth-child(4) { animation-delay: 3s; }
.chips span:nth-child(5) { animation-delay: 4s; } .chips span:nth-child(6) { animation-delay: 5s; } .chips span:nth-child(7) { animation-delay: 6s; }
.chips span:nth-child(8) { animation-delay: 7s; } .chips span:nth-child(9) { animation-delay: 8s; }
@keyframes chip { 0%, 11% { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); } 12%, 100% { border-color: var(--line); color: var(--ink); background: #fff; } }

/* files */
.files { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.file-row { display: flex; gap: 16px; }
.file { position: relative; display: grid; place-items: end center; width: 76px; height: 96px; padding-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px 22px 8px 8px; box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; letter-spacing: .04em; animation: bob 3s ease-in-out infinite; }
.file::before { content: ""; position: absolute; left: 14px; right: 14px; top: 18px; height: 34px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 9px); }
.file.pdf { color: #b42318; } .file.epub { color: var(--green); animation-delay: .4s; } .file.doc { color: var(--accent); animation-delay: .8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stores { margin: 0; text-align: center; color: var(--muted); font-size: .9rem; max-width: 340px; }

@media (prefers-reduced-motion: reduce) {
  .pill-dot::before, .caret, .chips span, .file, .cover-swap .titled, .cover-steps span { animation: none; }
  .cover-swap .titled { opacity: 1; }
}
@media (max-width: 860px) { .feat-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .feat { padding: 20px; } .panel { min-height: 280px; padding: 18px; } .feat-head { flex-direction: column; gap: 12px; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-books { max-width: 380px; }
  .format-grid, .sample-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 320px; }
  .top nav { display: none; }
}
@media (max-width: 540px) {
  section { padding: 52px 0; }
  .format-grid, .sample-grid, .step-grid { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .consent { flex-direction: column; align-items: stretch; }
}

/* ---- hero demo + scroll motion (18 Nov) ---- */
.hero { position: relative; }
html, body { overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 79, 228, .16), rgba(94, 234, 212, .10) 45%, transparent 70%); animation: drift 14s ease-in-out infinite; pointer-events: none; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
.hero-grid > * { position: relative; }
.hero-demo { position: relative; max-width: 440px; width: 100%; margin: 0 auto; padding: 34px 10px 56px; }
.demo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); padding: 22px; }
.demo-ask { display: block; min-height: 46px; padding: 12px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; margin-bottom: 16px; }
.demo-answer { font-size: .95rem; color: var(--ink); }
.demo-answer p { margin: 0 0 8px; color: var(--muted); }
.demo-answer ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.demo-line { transition: opacity .45s ease, transform .45s ease; }
.hero-demo.typing .demo-line { opacity: 0; transform: translateY(8px); }
.demo-line.you { background: var(--accent-soft); border-radius: 10px; padding: 6px 10px; margin-left: -10px; }
.star { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.float-chip { position: absolute; z-index: 2; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.float-chip.c1 { top: 4px; left: 0; } .float-chip.c2 { top: 0; right: 6px; animation-delay: 1.2s; } .float-chip.c3 { bottom: 0; left: 18px; animation-delay: 2.2s; }
.score-chip { position: absolute; z-index: 2; right: -6px; bottom: -10px; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite .6s; }
.score-chip small { display: block; opacity: .7; font-size: .75rem; }
.score-chip .ring { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#5eead4 0 70%, rgba(255, 255, 255, .18) 70%); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.demo-ask .caret { display: inline-block; vertical-align: -3px; }
@media (max-width: 540px) { .score-chip { right: 0; } .demo-ask { min-height: 72px; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .float-chip, .score-chip { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
.price-grid.three { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; }
.price ul li.plus { font-weight: 600; color: var(--ink); }
.price ul li.plus::before { content: none; }
.price em { white-space: nowrap; }
.price-grid.three .price { display: flex; flex-direction: column; justify-content: flex-start; }   /* a button centers its content: line the three up at the top */
.price ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.price ul li::before { content: "\2713  "; color: var(--green); font-weight: 700; }
@media (max-width: 860px) { .price-grid.two, .price-grid.three { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* ---- Owner 19 Nov: live example panels in the feature cards + How it works stage ----
   app.js adds .anim to <html> (motion allowed) and .play to a panel each time it comes into view; it resets out of
   view so it plays again on the next visit. Without .anim everything is the finished example. */
.feat-grid.three { grid-template-columns: repeat(3, 1fr); }
.fp { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 55%); min-height: 290px; display: flex; flex-direction: column; }
.fp .kicker { font-size: .68rem; }

/* 1. score bars + trend */
.bars { display: grid; gap: 10px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; font: 500 .84rem Inter, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.bar:hover, .bar.on { background: rgba(59, 79, 228, .07); }
.bar i { display: block; height: 10px; border-radius: 99px; background: #dfe4f2; overflow: hidden; }
.bar i b { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c7cff, var(--accent)); transform-origin: left; transform: scaleX(var(--v)); }
.bar em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar-q { min-height: 2.6em; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.bar-q b { color: var(--ink); font-weight: 600; }
.trend { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 8px; }
.trend svg { display: block; width: 100%; height: 56px; overflow: visible; }
.trend .area { fill: rgba(59, 79, 228, .10); }
.trend .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.trend circle { fill: var(--accent); }
.trend small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.trend small b { color: var(--green); }
.anim .fp-score:not(.play) .bar i b { transform: scaleX(0); }
.anim .fp-score.play .bar i b { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.anim .fp-score.play .bar:nth-child(2) i b { transition-delay: .15s; } .anim .fp-score.play .bar:nth-child(3) i b { transition-delay: .3s; }
.anim .fp-score:not(.play) .trend .line { stroke-dashoffset: 1; }
.anim .fp-score:not(.play) .trend .area, .anim .fp-score:not(.play) .trend circle { opacity: 0; }
.anim .fp-score.play .trend .line { transition: stroke-dashoffset 1.4s 1.1s cubic-bezier(.4, 0, .2, 1); }
.anim .fp-score.play .trend .area { transition: opacity .6s 2.2s; }
.anim .fp-score.play .trend circle { animation: dotPop .4s 2.4s cubic-bezier(.34, 1.56, .64, 1) backwards; }
@keyframes dotPop { from { opacity: 0; transform: scale(0); transform-origin: 220px 19px; } }

/* 2. rivals: rows sit at their rank (--r), so a climb is a smooth move */
.rivals { list-style: none; padding: 0; margin: 4px 0 0; position: relative; height: 172px; }
.rivals li { position: absolute; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; transform: translateY(calc((var(--r) - 1) * 44px)); transition: transform .9s cubic-bezier(.65, 0, .25, 1), box-shadow .4s; }
.rivals .pos { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; }
.rivals b { flex: 1; font-weight: 600; }
.rivals em { font-style: normal; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.rivals .you { border-color: var(--accent); background: var(--accent-soft); z-index: 1; }
.rivals .you .pos { background: var(--accent); color: #fff; }
.rivals .you em { color: var(--accent); font-weight: 700; }
.rivals .you.lift { box-shadow: 0 10px 24px rgba(59, 79, 228, .25); }
.src-k { margin-top: 14px !important; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.srcs span { font-size: .76rem; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.anim .fp-rivals:not(.play) .rivals li, .anim .fp-rivals:not(.play) .srcs span { opacity: 0; }
.anim .fp-rivals.play .rivals li { animation: rowIn .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.anim .fp-rivals.play .rivals li:nth-child(2) { animation-delay: .12s; } .anim .fp-rivals.play .rivals li:nth-child(3) { animation-delay: .24s; } .anim .fp-rivals.play .rivals li:nth-child(4) { animation-delay: .36s; }
.anim .fp-rivals.play .srcs span { animation: tagPop .4s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.anim .fp-rivals.play .srcs span:nth-child(1) { animation-delay: 3.2s; } .anim .fp-rivals.play .srcs span:nth-child(2) { animation-delay: 3.35s; }
.anim .fp-rivals.play .srcs span:nth-child(3) { animation-delay: 3.5s; } .anim .fp-rivals.play .srcs span:nth-child(4) { animation-delay: 3.65s; }
@keyframes rowIn { from { opacity: 0; margin-left: -14px; } }
@keyframes tagPop { from { opacity: 0; transform: scale(.6); } }

/* 3. fixes tick off, the score climbs */
.fix-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fix-score { font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.fix-score b { color: var(--green); font-size: .95rem; font-variant-numeric: tabular-nums; display: inline-block; }
.fix-score b.bump { animation: bump .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }
.fixes { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.fixes li { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 10px; font-size: .84rem; line-height: 1.35; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 10px; transition: border-color .3s, background .3s; }
.fixes li::after { content: "\2713"; position: absolute; right: 10px; top: 50%; margin-top: -10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--green); }
.imp { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; margin-top: 1px; }
.imp.hi { background: #fde7e4; color: #b4321c; } .imp.mid { background: #fff1d6; color: #8a5a00; } .imp.lo { background: #e6f4ee; color: var(--green); }
.fixes li.done { background: #f3faf6; border-color: #bfe3d1; }
.anim .fp-fixes:not(.play) .fixes li { opacity: 0; }
.anim .fp-fixes .fixes li:not(.done)::after { transform: scale(0); }
.anim .fp-fixes .fixes li::after { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.anim .fp-fixes.play .fixes li { animation: slideIn .45s cubic-bezier(.2, .7, .2, 1) backwards; }
.anim .fp-fixes.play .fixes li:nth-child(2) { animation-delay: .12s; } .anim .fp-fixes.play .fixes li:nth-child(3) { animation-delay: .24s; } .anim .fp-fixes.play .fixes li:nth-child(4) { animation-delay: .36s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }

/* 4. How it works: the steps play on a stage */
.how-stage { display: none; }
.anim .how-stage { display: block; position: relative; max-width: 640px; margin: 28px auto 0; height: 200px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--accent-soft), var(--paper) 60%); overflow: hidden; }
.anim #how-steps li { position: relative; cursor: pointer; padding-bottom: 14px; opacity: .5; transition: opacity .3s; }
.anim #how-steps li.on { opacity: 1; }
.anim #how-steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); }
.anim #how-steps li i.prog { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.anim #how-steps li.on i.prog { animation: prog var(--dur, 4.5s) linear forwards; }
.anim #how-steps.paused li.on i.prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
.hs { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; pointer-events: none; }
.hs.on { opacity: 1; transform: none; }
.hs-url { display: flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--accent); border-radius: 10px; padding: 6px 6px 6px 14px; font-weight: 500; }
.hs-url .caret { display: inline-block; }
.hs-url b { margin-left: auto; background: var(--accent); color: #fff; border-radius: 8px; padding: 7px 14px; font-size: .88rem; }
.hs-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-qs span { font-size: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.hs-qs span.in { opacity: 1; transform: none; }
.hs-ask { margin: 0; font-weight: 600; }
.hs-ais { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.hs-ais li { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: .86rem; }
.hs-ais em { font-style: normal; font-weight: 600; font-size: .8rem; opacity: 0; transition: opacity .3s; }
.hs-ais em.yes { color: var(--green); } .hs-ais em.no { color: #b4321c; }
.hs-ais li.wait em { opacity: 0; } .hs-ais li.wait::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.hs-ais li.done em { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.hs3 { flex-direction: row; align-items: center; gap: 22px; }
.hs-ring { flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(#fff 58%, transparent 59%), conic-gradient(var(--accent) 0 calc(var(--p, 55) * 1%), #dfe4f2 0); }
.hs-ring b { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hs-ring small { color: var(--muted); font-size: .72rem; }
.hs-rep { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .86rem; }
.hs-rep li { opacity: 0; transform: translateX(12px); transition: opacity .35s, transform .35s; }
.hs-rep li.in { opacity: 1; transform: none; }
.hs-rep span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1000px) { .feat-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .feat-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .anim .how-stage { height: 250px; }
  .hs { padding: 18px; }
  .hs3 { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hs-ring { width: 76px; height: 76px; }
  .hs-ring b { font-size: 1.3rem; }
}

/* ---- Mascot (owner 19 Nov). One body, the same two arm pieces rotated about the shoulders, eyes drawn in SVG.
   Without JS or with reduced motion it is the still idle robot. ---- */
.price-row { position: relative; }
.bot { position: absolute; z-index: 3; top: 4px; left: calc(50% + 470px);   /* right of three 280px cards, with room for the magnifier arm (Premium, 20 Nov) */ width: 184px; aspect-ratio: 1; pointer-events: auto; }
.bot-float { position: absolute; inset: 0; }
.bot img, .bot svg, .bot-arm { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bot-arm { z-index: 2; transition: transform .7s cubic-bezier(.34, 1.4, .5, 1); }
.bot-eyes { z-index: 4; }
.bot-arm.l { transform-origin: 13.54% 61.46%; }
.bot-arm.r { transform-origin: 86.2% 61.46%; }
.bot-mag { z-index: 3; opacity: 0; transform: scale(.85); transform-origin: 1% 54%; transition: opacity .1s, transform .1s; }
.bot-eyes { overflow: visible; }
.bot-eyes rect { fill: #b8d4ff; }
.bot-eyes path { fill: none; stroke: #b8d4ff; stroke-width: 7; stroke-linecap: round; }
.bot-eyes .bot-look { filter: drop-shadow(0 0 5px #5b8cff); transition: transform .45s ease; transform: translate(var(--lx, 0px), var(--ly, 0px)); }
.bot-eyes .eo { transform-box: fill-box; transform-origin: center; transition: transform .09s; }
.bot-eyes .eh { opacity: 0; }
.bot.happy .eo { opacity: 0; } .bot.happy .eh { opacity: 1; }
.bot.blink .eo { transform: scaleY(.1); }
.bot.inspect .bot-arm.l { transform: rotate(108deg); }
.bot.inspect .bot-mag { opacity: 1; transform: none; transition: opacity .2s .65s, transform .3s .65s; }
.bot-shadow { position: absolute; left: 30%; right: 30%; bottom: 2%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 79, 228, .28), transparent); }
.anim .bot-float { animation: botFloat 3.4s ease-in-out infinite; }
.anim .bot-shadow { animation: botShadow 3.4s ease-in-out infinite; }
/* Owner 19 Nov: both robots wave with their own right hand (the arm on the viewer's left). */
.anim .bot.wave .bot-arm.l { animation: botWaveR 1.9s ease-in-out; }
@keyframes botFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes botShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
@media (max-width: 1410px) { .bot { position: relative; top: 0; left: 0; width: 150px; margin: -12px auto 6px; } }
@media (max-width: 540px) { .bot { width: 128px; } }

/* Small robot after the headline (owner 19 Nov): waves once when the page opens, then floats and blinks. */
.bot.mini { position: relative; z-index: auto; display: inline-block; top: auto; left: auto; width: 1.45em; margin: 0 0 0 .12em; vertical-align: -.32em; pointer-events: none; }
.bot.mini .bot-arm, .bot.mini .bot-float { display: block; }
.anim .bot.mini .bot-float { animation: botFloatS 3.4s ease-in-out infinite; }
@keyframes botFloatS { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.nw { white-space: nowrap; }
@keyframes botWaveR {
  0% { transform: rotate(0); } 22% { transform: rotate(122deg); } 36% { transform: rotate(100deg); } 50% { transform: rotate(122deg); }
  64% { transform: rotate(100deg); } 78% { transform: rotate(122deg); } 100% { transform: rotate(0); }
}
.bot.mini { margin-left: .3em; }
