/* ============================================================
   BidWright — shared site stylesheet
   Brand: indigo primary (#6d5efc) + gold accent (#f5b301), dark mode.
   Per-page accent: add a theme class to <body> (e.g. class="theme-amber")
   to recolour accent elements (.kicker, .step b, .banner, .strat, .ladder…).
   ============================================================ */

:root {
  --bg: #0b0e14;
  --surface: #141923;
  --surface-2: #1b2130;
  --border: #262d3d;
  --text: #e7ebf2;
  --muted: #98a2b6;
  --primary: #6d5efc;       /* BidWright indigo */
  --primary-ink: #ffffff;
  --gold: #f5b301;          /* auction accent */
  --blue: #3b82f6;          /* timed/English */
  --amber: #f59e0b;         /* reverse/Dutch */
  --purple: #a855f7;        /* sealed/silent */
  --rose: #f43f5e;          /* live (automated) */
  --teal: #14b8a6;          /* community live */
  --good: #34d399;
  --bad: #5b6577;
  --radius: 12px;
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Per-page accent themes (set on <body>) */
body.theme-blue   { --accent: var(--blue); }
body.theme-amber  { --accent: var(--amber); }
body.theme-purple { --accent: var(--purple); }
body.theme-rose   { --accent: var(--rose); }
body.theme-teal   { --accent: var(--teal); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; border-top: 1px solid var(--border); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 16px; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.kicker { color: var(--accent, var(--gold)); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; margin-bottom: 14px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center { text-align: center; }
.section-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .08s ease, background .15s ease; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #8073ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-center { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(11,14,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text); }
.logo svg { width: 26px; height: 26px; }
.logo span { color: var(--primary); }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 920px) { .nav-links { display: flex; } }

/* breadcrumb (cluster pages) */
.crumb { font-size: .85rem; color: var(--muted); padding-top: 22px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

.hero { padding: 72px 0 56px; border-top: none; }
.hero.tight { padding-top: 34px; }   /* for pages with a breadcrumb above the hero */
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.trust-row span { white-space: nowrap; }
.hero-art { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.hero-badge { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(11,14,20,.82); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.hero-badge b { color: var(--gold); }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.live { background: rgba(52,211,153,.15); color: var(--good); }

.band { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; text-align: center; }
@media (min-width: 760px) { .band { grid-template-columns: repeat(4,1fr); } }
.band .b { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 16px; }
.band b { display: block; font-size: 1.9rem; color: var(--primary); }
.band span { color: var(--muted); font-size: .9rem; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3,1fr); } .g4 { grid-template-columns: repeat(4,1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); margin: 6px 0; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.25rem; }

/* strategy/accent card (cluster pages) */
.card.strat { border-top: 3px solid var(--accent, var(--amber)); }
.card .ph { font-size: .78rem; color: var(--accent, var(--amber)); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.prob { display: grid; gap: 14px; }
@media (min-width: 820px) { .prob { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.prob-item { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.prob-item b { color: var(--text); }
.prob-item em { color: var(--muted); font-style: italic; display: block; margin-top: 4px; font-size: .92rem; }

.banner { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, #161232, var(--surface)); border: 1px solid #2c2566; font-size: 1.08rem; }
.banner b { color: var(--accent, var(--primary)); }
/* warm banner on amber-themed pages */
body.theme-amber .banner { background: linear-gradient(135deg, #1c1407, var(--surface)); border-color: #3a2e0e; }

/* in-house highlight */
.inhouse { background: linear-gradient(135deg, #11162a, var(--surface)); }

/* auction engine cards */
.types { display: grid; gap: 20px; }
@media (min-width: 900px) { .types { grid-template-columns: repeat(3,1fr); } }
.type { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--c); }
.type.eng { --c: var(--blue); }
.type.dut { --c: var(--amber); }
.type.sea { --c: var(--purple); }
.type.liv { --c: var(--rose); }
.type.com { --c: var(--teal); }
.type .tname { color: var(--c); font-weight: 800; letter-spacing: .04em; font-size: .8rem; text-transform: uppercase; }
.type h3 { margin: 6px 0 10px; }
.type ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.type li { margin-bottom: 5px; }

.feat ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.feat li { margin-bottom: 4px; }
.tag-proven { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--good); background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }
.tag-build { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); background: rgba(245,179,1,.1); border: 1px solid rgba(245,179,1,.3); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }

.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step b { display: block; color: var(--accent, var(--primary)); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }

.price-grid { display: grid; gap: 20px; }
@media (min-width: 880px) { .price-grid { grid-template-columns: repeat(3,1fr); } }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.price.feat-plan { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.price .lbl { font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; }
.price .who { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.price ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.price li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { position: sticky; top: 0; background: var(--surface-2); }
th:last-child, td:last-child { background: rgba(109,94,252,.08); }
td.no { color: var(--bad); }
td.yes { color: var(--good); font-weight: 700; }
tbody tr:hover { background: rgba(255,255,255,.02); }

.use-block { display: grid; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 820px) { .use-block { grid-template-columns: 1fr 1fr; gap: 36px; } .use-block.flip .use-art2 { order: 2; } }
.use-art2 { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.use-art2 img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }

/* price-ladder mock (Dutch / declining-price pages) */
.ladder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.ladder .hd { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.ladder .tick { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.ladder .tick b { font-variant-numeric: tabular-nums; }
.ladder .tick.gone { opacity: .45; text-decoration: line-through; }
.ladder .tick.now { border-color: var(--accent, var(--amber)); box-shadow: 0 0 0 1px var(--accent, var(--amber)) inset; }
.ladder .tick.now .pill { background: rgba(245,158,11,.15); color: var(--accent, var(--amber)); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.ladder .foot { font-size: .8rem; color: var(--muted); margin-top: 6px; }

.faq-group { margin-bottom: 28px; }
.faq-group h3 { color: var(--primary); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-weight: 700; }
details[open] summary::after { content: "\2013"; }
details .ans { padding: 0 16px 16px; color: var(--muted); font-size: .95rem; }

.final { background: linear-gradient(135deg, #161232, #0b0e14); text-align: center; }
.final h2 { max-width: 720px; margin: 0 auto 16px; }
.final p { max-width: 680px; margin: 0 auto 8px; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid a { color: var(--muted); display: block; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-strip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-strip a { color: var(--muted); }
.foot-strip a:hover { color: var(--text); }

/* legal / prose pages */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 38px; font-size: 1.35rem; }
.legal h3 { margin-top: 24px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 0 0 26px; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 30px; }
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc a { display: block; margin: 5px 0; text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.notice { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 26px; font-size: .92rem; color: var(--muted); }

/* forms */
form.bw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.field label { font-size: .85rem; color: var(--muted); display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; font-family: var(--font); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); }
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
