/* Bidavora public website (bidavora.com). Royalty Scaler brand: navy, gold, cream. Static, no framework. */
:root {
  --navy: #081D2D; --navy-2: #06161F; --gold: #C99B52; --gold-light: #E4C58F; --gold-dark: #896325;
  --cream: #F8F4EB; --sand: #EFE6D7; --line: #E7DAC0; --ink: #11212C; --muted: #4F5E67; --on-navy: #D8DEE2; --on-navy-muted: #AEBBC4;
  --good: #17613A; --bad: #9A1F18; --radius: 2px; --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-dark); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }
.gold { color: var(--gold-dark); font-style: italic; }
.dark .gold { color: var(--gold); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.dark .eyebrow { color: var(--gold); }
h1, h2, h3 { margin: 0; }
h1.serif { font-size: clamp(44px, 7vw, 84px); line-height: .98; }
h2.serif { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }
.muted { color: var(--muted); }
.dark { background: var(--navy); color: #fff; }
.dark .muted, .dark .lead { color: var(--on-navy); }
.dark .dash .muted, .dark .card .muted, .dark .plan .muted { color: var(--muted); }
section { padding: clamp(56px, 8vw, 100px) 0; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--radius); font: 700 16px Manrope, sans-serif; background: var(--gold); color: #071823; border: 1px solid var(--gold); text-decoration: none; cursor: pointer; }
.cta:hover { background: #D8AE6A; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: var(--radius); font: 600 16px Manrope, sans-serif; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); text-decoration: none; }
.ghost.dark-ink { color: var(--ink); border-color: var(--ink); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tick { color: var(--gold); font-weight: 800; }
.num { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; color: var(--gold); line-height: 1; }
.card .num { color: var(--gold-dark); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pos { background: #E4F3EA; color: var(--good); } .neg { background: #FBE6E4; color: var(--bad); } .mut { background: var(--sand); color: var(--muted); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(8,29,45,.97); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--on-navy-muted); letter-spacing: .08em; }
.nav { display: flex; gap: 26px; flex-grow: 1; }
.nav a { color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.login { color: var(--on-navy); text-decoration: none; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 24px 20px; }
  .nav.open { display: flex; } .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .top .cta { display: none; } .login { margin-left: auto; }
}

/* hero */
.hero { padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--on-navy); font-size: 14px; }
.trust { display: flex; align-items: center; gap: 12px; color: var(--on-navy-muted); font-size: 14px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.dash { background: #fff; color: var(--ink); border-radius: 4px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); display: grid; gap: 14px; }
.dash .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.dash .big { font-size: 46px; font-weight: 800; color: var(--bad); line-height: 1; }
.dash .feed { font-size: 13px; background: var(--cream); border: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }

/* stats strip */
.strip { background: var(--navy-2); color: var(--on-navy); padding: 26px 0; }
.strip .grid { align-items: center; }
.strip .item { display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.4; }
.strip .num { font-size: 44px; }

/* work counter */
.work { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work .tile { padding: 22px; border: 1px solid var(--line); background: var(--cream); }
.work .tile .n { font-size: 40px; font-weight: 800; line-height: 1; color: var(--navy); }
.work .tile .l { margin-top: 6px; font-weight: 700; }
.work .tile .s { font-size: 14px; color: var(--muted); }

/* problem */
.prob .wrap { display: grid; grid-template-columns: 480px 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .prob .wrap { grid-template-columns: 1fr; } }
.stat { padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.stat .num { font-size: 58px; }

/* calculator */
.calc .panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .calc .panel { grid-template-columns: 1fr; } }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); background: transparent; color: #fff; font: 600 15px Manrope, sans-serif; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--gold); color: #071823; border-color: var(--gold); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 640px) { .results { grid-template-columns: 1fr; } }
.results .v { font-size: 34px; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.results .k { font-size: 13px; color: var(--on-navy-muted); }

/* steps + features */
.step { display: flex; gap: 18px; padding: 24px; }
.step .num { font-size: 48px; }
.feat { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--muted); }

/* table */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.tbl th, .tbl td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--sand); vertical-align: top; font-size: 15px; }
.tbl th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl td.us, .tbl th.us { background: #FBF6EC; font-weight: 700; }
.scroll-x { overflow-x: auto; }

/* pricing */
.toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.3); padding: 3px; border-radius: 999px; }
.pricing-light .toggle { border-color: var(--line); background: #fff; }
.toggle button { border: 0; background: transparent; color: inherit; padding: 8px 18px; border-radius: 999px; font: 600 14px Manrope, sans-serif; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--gold); color: #071823; }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; color: var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); position: relative; }
.plan.best { outline: 3px solid var(--gold); }
.plan .badge { position: absolute; top: -13px; left: 22px; background: var(--gold); color: #071823; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; }
.plan .price { font-size: 42px; font-weight: 800; line-height: 1; }
.plan .per { color: var(--muted); font-weight: 500; font-size: 15px; }
.plan .limits { font-size: 14px; color: var(--muted); min-height: 44px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan .cta, .plan .ghost { min-height: 46px; width: 100%; }
.note-box { padding: 20px 24px; border: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.pricing-light .note-box { border-color: var(--line); background: #fff; }

/* faq */
.faq { display: grid; grid-template-columns: 380px 1fr; gap: 60px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
details.q { border-top: 1px solid #D9C9A8; padding: 18px 0; }
details.q summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.q summary::after { content: "+"; color: var(--gold-dark); font-size: 22px; line-height: 1; }
details.q[open] summary::after { content: "−"; }
details.q p { margin-top: 10px; color: var(--muted); }

/* footer */
footer { background: var(--navy-2); color: var(--on-navy-muted); padding: 48px 0 110px; font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--on-navy); text-decoration: none; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(8,29,45,.97); padding: 10px 16px; gap: 12px; align-items: center; }
  .sticky-cta span { flex-grow: 1; color: #fff; font-size: 14px; }
  .sticky-cta .cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
}
.placeholder { outline: 1px dashed var(--gold); outline-offset: 2px; }

/* ui-012: hero dashboard shows profit (owner, 25 Sep 2026) */
.dash .big.up { color: var(--good); }
.dash .weeks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 92px; padding: 6px 0 0; }
.dash .wk { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; gap: 4px; }
.dash .wk .bar { display: block; background: var(--good); border-radius: 2px 2px 0 0; min-height: 4px; }
.dash .wk .bar.neg-bar { background: var(--bad); }
.dash .wk small { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ui-236: text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* v2 (26 Oct 2026, owner approved "Bidavora Landing Page v2"): books / products switch, partner proof, two catalogues */
.hero[data-mode="books"] .m-products, .hero[data-mode="products"] .m-books { display: none; }
.modes { display: inline-flex; align-self: flex-start; justify-self: start; width: max-content; max-width: 100%; border: 1px solid rgba(201,155,82,.5); border-radius: var(--radius); padding: 3px; gap: 3px; }
.modes button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); background: transparent; color: var(--on-navy); font: 600 14px Manrope, sans-serif; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--gold); color: #071823; font-weight: 700; }
.modes button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.partner { display: flex; align-items: center; gap: 12px; color: var(--on-navy-muted); font-size: 14px; line-height: 1.45; }
.partner svg { flex: none; color: var(--gold); width: 30px; height: 30px; }
.partner strong { color: #fff; }
.partner .badge { height: 44px; width: auto; display: block; }
.dash .fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash .fmts .card { padding: 10px; display: grid; gap: 2px; font-size: 14px; }
.dash .fmts small { font-size: 12px; color: var(--muted); }
.trust2 .item svg { flex: none; color: var(--gold); width: 34px; height: 34px; }
.trust2 .item strong { color: #fff; font-size: 15px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 30px; display: grid; gap: 16px; align-content: start; }
.side.books { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.side-h { display: flex; align-items: center; gap: 12px; color: var(--gold-dark); }
.side.books .side-h { color: var(--gold); }
.side h3 { margin: 0; font-size: 24px; color: var(--ink); }
.side.books h3 { color: #fff; }
.side ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; font-size: 15px; line-height: 1.5; }
.side-f { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.side.books .side-f { border-top-color: rgba(216,222,226,.15); }
.side-f strong { font-size: 22px; }
.side.books .side-f strong { color: #fff; }
.side.books a { color: var(--gold-light); font-weight: 700; }
.side a { font-weight: 700; }
.kq > div { border-top: 2px solid var(--gold); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.kq strong { font-size: 17px; }
.kq p { margin: 0; }
.fmt-table td, .fmt-table th { white-space: nowrap; }
.books-art { display: flex; gap: 14px; justify-content: center; align-items: flex-end; min-height: 280px; }
.books-art span { display: flex; align-items: flex-end; padding: 12px; box-sizing: border-box; border-radius: 2px 6px 6px 2px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.books-art .eb { width: 120px; height: 190px; background: #1B3A4E; color: var(--gold-light); font-size: 17px; box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 14px 30px rgba(0,0,0,.4); }
.books-art .pb { width: 140px; height: 230px; background: var(--gold); color: var(--navy); font-size: 19px; box-shadow: inset 7px 0 0 rgba(0,0,0,.2), 0 14px 30px rgba(0,0,0,.4); }
.books-art .hc { width: 156px; height: 262px; background: var(--cream); color: var(--navy); font-size: 21px; box-shadow: inset 9px 0 0 rgba(8,29,45,.25), 0 14px 30px rgba(0,0,0,.4); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dash .fmts { grid-template-columns: 1fr; } .modes { width: 100%; } .modes button { flex: 1; } .books-art { min-height: 0; transform: scale(.75); transform-origin: bottom center; } }

/* Hero explainer animation (owner approved storyboard, 26 Oct 2026). Scoped with ex- classes; sizes in container units of the stage. */
.explainer {
  --navy: #081D2D; --navy-2: #0E2A3E; --ink: #11212C; --cream: #F8F4EB; --sand: #EFE6D7; --line: #E7DAC0;
  --gold: #C99B52; --gold-dark: #896325; --muted: #4F5E67; --on-navy: #D8DEE2; --good: #17613A; --good-bg: #E4F3EA; --bad: #9A1F18; --bad-bg: #FBE6E4;
  --display: "Cormorant Garamond", Georgia, serif; --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  
}
/* ---------- player ---------- */
.ex-player { background: var(--navy); border-radius: 6px; padding: clamp(14px, 3cqw, 26px); display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(8,29,45,.25); }
.ex-stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; container-name: exstage; width: 100%; max-width: 100%; background: var(--cream); border-radius: 4px; overflow: hidden; }
.ex-scene { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: clamp(14px, 3.4%, 30px); gap: 2%; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.ex-scene.ex-on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.ex-cap { display: flex; align-items: baseline; gap: 12px; }
.ex-cap b { font-family: var(--display); font-size: clamp(14px, 2.6cqw, 22px); color: var(--gold-dark); }
.ex-cap h2 { margin: 0; font-family: var(--display); font-size: clamp(20px, 4.1cqw, 40px); line-height: 1.05; font-weight: 600; text-wrap: balance; }
.ex-body { position: relative; display: grid; place-items: center; min-height: 0; }
.ex-cardx { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 30px rgba(8,29,45,.10); }
.ex-small { font-size: clamp(10px, 1.6cqw, 14px); color: var(--muted); }
.ex-ok { color: var(--good); font-weight: 800; }
.ex-chip { display: inline-block; font-size: clamp(9px, 1.4cqw, 12px); font-weight: 800; padding: 3px 9px; border-radius: 20px; }
.ex-chip.ex-bad { background: var(--bad-bg); color: var(--bad); }
.ex-chip.ex-good { background: var(--good-bg); color: var(--good); }
.ex-ico { width: clamp(16px, 2.6cqw, 24px); height: clamp(16px, 2.6cqw, 24px); flex: none; }
.ex-pop { opacity: 0; transform: translateY(10px) scale(.97); }
.ex-on .ex-pop { animation: ex-pop .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes ex-pop { to { opacity: 1; transform: none; } }

/* 1 connect */
.ex-s1 .ex-wrapc { display: grid; gap: 4%; justify-items: center; width: 70%; }
.ex-signin { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: clamp(12px, 2.2cqw, 19px); padding: 2.6% 6%; border-radius: 4px; }
.ex-on .ex-signin { animation: ex-pop .5s cubic-bezier(.2,.8,.2,1) var(--d, 0s) forwards, ex-press 1.2s ease .6s forwards; }
@keyframes ex-press { 40% { transform: scale(.95); } 60% { transform: scale(1); background: var(--good); } 100% { background: var(--good); } }
.ex-found { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.ex-found .ex-cardx { padding: 10% 6%; display: grid; gap: 4px; justify-items: center; text-align: center; }
.ex-found strong { font-size: clamp(18px, 4.4cqw, 40px); font-variant-numeric: tabular-nums; }

/* 2 limit */
.ex-s2 .ex-cardx { width: 74%; padding: 5% 6%; display: grid; gap: 6%; }
.ex-opt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-chip.ex-mut { background: var(--sand); color: var(--ink); }
.ex-chip.ex-auto { background: var(--navy); color: #fff; }
.ex-s2 .ex-row { display: flex; justify-content: space-between; align-items: baseline; }
.ex-s2 .ex-val { font-size: clamp(26px, 6cqw, 56px); font-weight: 800; font-variant-numeric: tabular-nums; }
.ex-track { position: relative; height: 10px; background: var(--sand); border-radius: 6px; }
.ex-fill { position: absolute; inset: 0 auto 0 0; width: 8%; background: var(--gold); border-radius: 6px; }
.ex-knob { position: absolute; top: 50%; left: 8%; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: #fff; border: 3px solid var(--gold); border-radius: 50%; }
.ex-on .ex-fill { animation: ex-slide 1.6s cubic-bezier(.3,.7,.2,1) .4s forwards; }
.ex-on .ex-knob { animation: ex-slideK 1.6s cubic-bezier(.3,.7,.2,1) .4s forwards; }
@keyframes ex-slide { to { width: 40%; } }
@keyframes ex-slideK { to { left: 40%; } }

/* 3 check */
.ex-s3 .ex-list { width: 86%; display: grid; gap: 3%; position: relative; }
.ex-ad { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 2.2% 3%; font-size: clamp(11px, 1.9cqw, 16px); }
.ex-thumb { width: clamp(26px, 4.4cqw, 40px); height: auto; flex: none; filter: drop-shadow(0 3px 5px rgba(8,29,45,.18)); }
.ex-thumb.ex-sm { width: clamp(20px, 3.2cqw, 30px); }
.ex-thumbrow { display: flex; align-items: center; gap: 12px; }
.ex-ad .ex-st { font-size: clamp(9px, 1.5cqw, 13px); font-weight: 700; color: var(--good); }
.ex-scan { position: absolute; left: -2%; right: -2%; height: 22%; top: -4%; border: 2px solid var(--gold); border-radius: 8px; opacity: 0; }
.ex-on .ex-scan { animation: ex-scan 2.2s ease-in-out .3s forwards; }
@keyframes ex-scan { 0% { opacity: 1; top: -4%; } 33% { top: 22%; } 66% { top: 48%; opacity: 1; } 100% { top: 48%; opacity: 0; } }
.ex-ad.ex-bad .ex-st { color: var(--bad); }
.ex-on .ex-ad.ex-bad { animation: ex-pop .5s cubic-bezier(.2,.8,.2,1) var(--d, 0s) forwards, ex-flag .6s ease 2.4s forwards; }
@keyframes ex-flag { to { background: var(--bad-bg); border-color: #E8B4AE; } }
.ex-clock { justify-self: end; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: clamp(10px, 1.7cqw, 14px); color: var(--gold-dark); }

/* 4 fix */
.ex-s4 .ex-cardx { width: 82%; padding: 4% 5%; display: grid; gap: 4%; }
.ex-s4 .ex-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ex-s4 .ex-vs > div { border-radius: 6px; padding: 5%; display: grid; gap: 4px; }
.ex-s4 .ex-big { font-size: clamp(20px, 4.4cqw, 42px); font-weight: 800; font-variant-numeric: tabular-nums; }
.ex-cost { background: var(--bad-bg); color: var(--bad); }
.ex-earn { background: var(--good-bg); color: var(--good); }
.ex-after { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: clamp(11px, 2cqw, 17px); font-weight: 700; }
.ex-strike { position: relative; }
.ex-strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; background: var(--bad); transform: scaleX(0); transform-origin: left; }
.ex-on .ex-strike::after { animation: ex-strike .5s ease 1.8s forwards; }
@keyframes ex-strike { to { transform: scaleX(1); } }

/* 5 grow */
.ex-s5 .ex-flow { width: 90%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3%; }
.ex-s5 .ex-cardx { padding: 6%; display: grid; gap: 6px; }
.ex-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 30px; padding: 4% 6%; font-size: clamp(11px, 2cqw, 17px); background: var(--cream); }
.ex-arrow { width: clamp(28px, 6cqw, 60px); height: 3px; background: var(--gold); position: relative; transform: scaleX(0); transform-origin: left; }
.ex-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6.5px solid transparent; border-left-color: var(--gold); }
.ex-on .ex-arrow { animation: ex-strike .5s ease 1.5s forwards; }

/* launch */
.ex-s7 .ex-lay { width: 94%; display: grid; grid-template-columns: 1.15fr auto 1fr; align-items: center; gap: 3%; }
.ex-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-kw > span { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: clamp(10px, 1.6cqw, 14px); }
.ex-tg { display: flex; gap: 8px; align-items: flex-end; }
.ex-pl { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: clamp(10px, 1.7cqw, 15px); font-weight: 600; }
.ex-s7 .ex-arrow { animation-delay: 2.4s !important; }

/* 6 result */
.ex-s6 { background: var(--navy); color: var(--on-navy); }
.ex-s6 .ex-cap h2 { color: #fff; }
.ex-s6 .ex-cap b { color: var(--gold); }
.ex-s6 .ex-res { width: 90%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ex-s6 .ex-res > div { background: rgba(255,255,255,.06); border: 1px solid rgba(201,155,82,.35); border-radius: 6px; padding: 6% 7%; display: grid; gap: 6px; }
.ex-s6 .ex-res strong { font-size: clamp(24px, 5.6cqw, 54px); color: #7FD3A0; font-variant-numeric: tabular-nums; }
.ex-s6 .ex-foot { grid-column: 1 / -1; text-align: center; font-size: clamp(11px, 2cqw, 17px); font-weight: 600; }

/* controls */
.ex-ctrl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ex-btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; background: transparent; color: var(--on-navy); border: 1px solid rgba(216,222,226,.35); border-radius: 3px; font: 600 14px var(--body); cursor: pointer; }
.ex-btn:focus-visible, .ex-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ex-dots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 360px; }
.ex-dot { flex: 1 1 0; min-width: 64px; min-height: 44px; display: grid; gap: 6px; align-content: center; background: transparent; border: 0; padding: 0 2px; cursor: pointer; color: var(--on-navy); font: 600 12px var(--body); text-align: left; }
.ex-dot i { display: block; height: 4px; border-radius: 3px; background: rgba(216,222,226,.22); overflow: hidden; }
.ex-dot i::before { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--gold); }
.ex-dot[aria-current="step"] { color: #fff; }


@container exstage (max-width: 380px) {
  
  .ex-found, .ex-s4 .ex-vs, .ex-s6 .ex-res { grid-template-columns: 1fr; }
  .ex-s5 .ex-flow, .ex-s7 .ex-lay { grid-template-columns: 1fr; justify-items: stretch; }
  .ex-s7 .ex-tg, .ex-s7 .ex-tgh, .ex-s7 .ex-kw > span:nth-child(3) { display: none; }
  .ex-s7 .ex-lay { gap: 8px; }
  .ex-pl { padding: 4px 0; }
  .ex-arrow { width: 3px; height: 26px; justify-self: center; transform: scaleY(0); transform-origin: top; }
  .ex-arrow::after { right: -5px; top: auto; bottom: -8px; border-left-color: transparent; border-top-color: var(--gold); }
  .ex-s1 .ex-wrapc, .ex-s2 .ex-cardx, .ex-s3 .ex-list, .ex-s4 .ex-cardx { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-pop, .ex-on .ex-pop { opacity: 1; transform: none; animation: none; }
  .ex-on .ex-fill, .ex-on .ex-knob, .ex-on .ex-scan, .ex-on .ex-signin, .ex-on .ex-ad.ex-bad, .ex-on .ex-strike::after, .ex-on .ex-arrow { animation-duration: .01s !important; animation-delay: 0s !important; }
}

.explainer { font-family: var(--body); color: var(--ink); }
.ex-player { background: rgba(255,255,255,.04); border: 1px solid rgba(201,155,82,.35); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.ex-ctrl .ex-btn { color: var(--on-navy); }
.ex-note { font-size: 12px; color: var(--on-navy); opacity: .8; margin: 0; }
.ex-wrap { container-type: inline-size; }
@container (max-width: 380px) { .ex-stage { aspect-ratio: 3 / 4; } }
.ex-ctrl { flex-wrap: nowrap; gap: 10px; }
.ex-ctrl .ex-btn { padding: 0; width: 44px; flex: none; }
.ex-ctrl .ex-btn span, .ex-ctrl .ex-btn .ex-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ex-dots { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; }
.ex-dot { min-width: 0; font-size: 11px; }
@container (max-width: 380px) { .ex-dot { font-size: 0; gap: 0; } }

/* 14 Nov 2026 languages: the language list in the top bar */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--on-navy); font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid rgba(255,255,255,.16); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: #fff; border-color: rgba(255,255,255,.4); }
.lang summary:focus-visible { outline: 2px solid var(--gold, #D4A95A); outline-offset: 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 180px; background: #fff; border-radius: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.28); z-index: 70; }
.lang li a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; color: #13212B; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.lang li a:hover, .lang li a:focus-visible { background: #F1EEE7; }
.lang li a[aria-current="true"] { font-weight: 800; }
@media (max-width: 1180px) { .top .wrap { gap: 18px; } .nav { gap: 16px; } .nav a { font-size: 14px; } }
@media (max-width: 900px) { .lang { margin-left: auto; } .top .lang ~ .login { margin-left: 0; } .top .lang ~ .menu-btn { margin-left: 0; } .top .wrap { gap: 12px; } }
@media (max-width: 420px) { .lang summary span { display: none; } .brand small { display: none; } }
/* longer words in other languages: let the hero text column shrink, let buttons wrap, keep the menu on one line */
.hero .wrap > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
.cta, .ghost { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.nav a, .top .login, .top .cta { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  html:not([lang="en"]) .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 24px 20px; }
  html:not([lang="en"]) .nav.open { display: flex; } html:not([lang="en"]) .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
  html:not([lang="en"]) .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }
  html:not([lang="en"]) .lang { margin-left: auto; }
}
.ex-player { grid-template-columns: minmax(0, 1fr); }
.ex-dot { overflow: hidden; }
@media (min-width: 1241px) and (max-width: 1400px) { html:not([lang="en"]) .top .wrap { gap: 20px; } html:not([lang="en"]) .nav { gap: 18px; } html:not([lang="en"]) .nav a { font-size: 14.5px; } }
@media (max-width: 360px) { .top .wrap { gap: 8px; } .lang summary { padding: 0 8px; } .top .login { font-size: 14px; } }
@media (max-width: 380px) { html:not([lang="en"]) .brand span { display: none; } }
html[lang="ja"] { --display: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif; --body: Manrope, "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh-Hans"] { --display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif; --body: Manrope, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2 { line-break: strict; word-break: normal; }
html[lang="ja"] .gold, html[lang="zh-Hans"] .gold, html[lang="ja"] em, html[lang="zh-Hans"] em { font-style: normal; }
html[lang="ja"] h1.serif, html[lang="zh-Hans"] h1.serif { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.25; }
html[lang="ja"] h2.serif, html[lang="zh-Hans"] h2.serif { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { word-break: auto-phrase; }
