/* 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; }
