/* ============================================================
   BuildScope marketing site — premium dark (Linear / Vercel / Stripe).
   Used by the homepage and all trade landing pages.
   ============================================================ */
:root {
  --bg: #0B0F17;
  --bg-rgb: 11,15,23;
  --bg-2: #0e1320;
  --card: #131A24;
  --card-2: #172230;
  --border: #202938;
  --border-2: #2b3647;
  --accent: #F59E0B;
  --accent-press: #e08e08;
  --on-accent: #1c1303;
  --accent-soft: rgba(245, 158, 11, .12);
  --text: #FFFFFF;
  --muted: #A0AEC0;
  --muted-2: #6b7689;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
}

/* Light theme (opt-in via the nav toggle; dark stays default) */
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-rgb: 244,245,247;
  --bg-2: #eceef1;
  --card: #ffffff;
  --card-2: #f3f5f8;
  --border: #e6e8ec;
  --border-2: #d6dbe3;
  --text: #15181e;
  --muted: #5b6573;
  --muted-2: #8a93a3;
}
[data-theme="light"] .amber { color: #b45309; }
[data-theme="light"] body { background-image: radial-gradient(920px 520px at 78% -8%, rgba(245,158,11,.16), transparent 62%); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  background-image: radial-gradient(900px 500px at 78% -8%, rgba(245,158,11,.10), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); padding: 0 20px; height: 48px;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .05s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(245,158,11,.18); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--muted-2); }
.btn-sm { height: 40px; font-size: 14px; padding: 0 15px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
  background: rgba(var(--bg-rgb),.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.2px; }
.brand svg { width: 34px; height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -1.4px; margin: 16px 0 0; font-weight: 800; }
.hero .lead { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 30em; }
.hero .lead strong { color: var(--text); font-weight: 700; }
.hero-btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 20px; font-size: 13.5px; color: var(--muted-2); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 48px 0 24px; } }

/* App mock (light product window on dark hero) */
.appmock { background: #f4f5f7; border-radius: 14px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(.4deg); }
.appmock .chrome { display: flex; gap: 6px; padding: 4px 6px 10px; }
.appmock .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5dd; display: block; }
.appmock .panes { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; }
.mock-chat, .mock-scope { background: #fff; border: 1px solid #e5e7ec; border-radius: 10px; padding: 11px; }
.mock-bubble { font-size: 11.5px; color: #15181e; background: #eef0f3; border-radius: 9px; padding: 8px 10px; line-height: 1.4; }
.mock-bubble.user { background: #15181e; color: #fff; margin-bottom: 8px; }
.mock-h { font-size: 9px; font-weight: 800; letter-spacing: .5px; color: #fff; background: #14253a; border-left: 3px solid var(--accent); padding: 5px 8px; border-radius: 4px; margin-bottom: 6px; }
.mock-li { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: #15181e; padding: 3px 2px; border-bottom: 1px solid #f0f1f4; }
.mock-li span:last-child { color: #5b6573; white-space: nowrap; }
.mock-total { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; margin-top: 8px; padding-top: 7px; border-top: 2px solid #15181e; color: #15181e; }
.mock-pdf { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700; color: var(--on-accent); background: var(--accent); padding: 5px 9px; border-radius: 6px; }

/* Sections */
section.block { padding: 64px 0; border-top: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.8px; margin: 10px 0 0; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.ba-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ba-card h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.ba-card.before h3 { color: var(--muted-2); }
.ba-card.after { border-color: var(--accent-soft); box-shadow: 0 0 0 1px rgba(245,158,11,.15), 0 20px 50px rgba(0,0,0,.3); }
.ba-card.after h3 { color: var(--accent); }
.ba-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ba-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ba-list .ic { flex: 0 0 auto; width: 20px; height: 20px; }
.before .ba-list li { color: var(--muted); }
.ba-arrow { color: var(--muted-2); font-size: 28px; }
@media (max-width: 820px) { .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-self: center; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -.3px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Trades grid */
.trades-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trade-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .15s, background .15s, transform .08s; }
.trade-card:hover { border-color: var(--accent); background: var(--card-2); transform: translateY(-2px); }
.trade-card span { font-weight: 600; font-size: 15.5px; }
.trade-card .arr { color: var(--muted-2); transition: color .15s, transform .15s; }
.trade-card:hover .arr { color: var(--accent); transform: translateX(2px); }
@media (max-width: 900px) { .trades-grid { grid-template-columns: repeat(2, 1fr); } }

/* Calculator */
.calc { background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.calc .row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 18px; color: var(--muted); }
.calc input { width: 92px; height: 52px; text-align: center; font: inherit; font-size: 22px; font-weight: 800; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; }
.calc input:focus { outline: none; border-color: var(--accent); }
.calc-out { margin-top: 28px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.calc-out .big { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; color: var(--accent); line-height: 1; }
.calc-out .lbl { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* CTA + footer */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.8px; margin: 0 0 22px; font-weight: 800; }
.foot { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted-2); font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Trade landing page */
.tl-hero { padding: 64px 0 36px; }
.tl-hero h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -1px; margin: 14px 0 0; font-weight: 800; max-width: 16em; }
.tl-hero .lead { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 40em; }
.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.prob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.prob-list li { display: flex; gap: 11px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.prob-list .x { color: #f87171; flex: 0 0 auto; font-weight: 800; }
.scope-list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.scope-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.4; }
.scope-list li:last-child { border-bottom: none; }
.scope-list li::before { counter-increment: s; content: counter(s); flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 820px) { .tl-cols { grid-template-columns: 1fr; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,8,13,.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal-card h3 { margin: 0; font-size: 22px; letter-spacing: -.4px; }
.modal-card p.sub { color: var(--muted); margin: 8px 0 20px; font-size: 14.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 15px; padding: 0 13px; }
.field input:focus { outline: none; border-color: var(--accent); }
.modal .btn { width: 100%; }
.modal-x { float: right; background: none; border: none; color: var(--muted-2); font-size: 24px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.trial-success { text-align: center; padding: 12px 0; }
.trial-success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 28px; }

/* ============================================================
   Homepage v2 — matches the approved design
   ============================================================ */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px; }
.amber { color: var(--accent); }

.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.02; }
.play { color: var(--accent); font-size: 12px; }

.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.trust .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; display: inline-grid; place-items: center; }

.chrome { align-items: center; }
.chrome-title { font-size: 10.5px; color: #8a9bad; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Before / After */
.ba-card h3 { display: flex; align-items: center; gap: 8px; }
.ba-card.before h3 .x { color: #f87171; }
.ba-list li { color: var(--text); }
.before .ba-list li { color: var(--muted); }
.ba-list .ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; flex: 0 0 auto; }
.ba-list .ic.x { color: #f87171; background: rgba(248,113,113,.12); }
.ba-list .ic.ok { color: var(--accent); background: var(--accent-soft); }

/* Steps */
.step-n { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--accent); }
.step-ic { font-size: 26px; margin: 16px 0 2px; }
.step h3 { margin: 8px 0 6px; }

/* Trade cards */
.trade-card { gap: 12px; }
.tc-ic { font-size: 22px; flex: 0 0 auto; line-height: 1; }
.tc-name { flex: 1 1 auto; font-weight: 600; font-size: 15.5px; }

/* ROI */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.roi-copy h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; margin: 16px 0 14px; font-weight: 800; }
.roi-copy p { color: var(--muted); font-size: 16.5px; margin: 0 0 24px; max-width: 34em; }
.roi-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.roi-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--muted); font-size: 15px; }
.roi-row > span:last-child, .roi-val { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--text); }
.roi-row.strong { color: var(--text); }
.roi-val.amber { color: var(--accent); }
.roi-rule { height: 1px; background: var(--border); margin: 6px 0; }
.roi-input { width: 4ch; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: var(--text);
  background: transparent; border: none; border-bottom: 1px dashed var(--border-2); text-align: right; padding: 0 2px; -moz-appearance: textfield; }
.roi-input::-webkit-outer-spin-button, .roi-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-input:focus { outline: none; border-bottom-color: var(--accent); color: var(--accent); }
.roi-quip { margin: 18px 0 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
@media (max-width: 820px) { .roi-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Final CTA */
.cta-sub { color: var(--muted); font-size: 17px; max-width: 38em; margin: 0 auto 26px; }

/* Footer v2 (note: trade pages still use .foot-in) */
.foot { padding: 0; }
.foot-in { padding: 28px 0; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 32px; padding: 50px 0 30px; }
.foot-brand .brand { margin-bottom: 14px; color: var(--text); }
.foot-brand p { color: var(--muted-2); font-size: 14px; line-height: 1.6; max-width: 34em; margin: 0; }
.foot-col h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Nav sign-in */
.nav-signin { color: var(--text); font-size: 14.5px; font-weight: 600; }
.nav-signin:hover { color: var(--accent); }

/* Modal success tick (large) */
.tick-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 16px; font-size: 28px; }

/* ============================================================
   Trade landing pages (v2)
   ============================================================ */
.ok { color: var(--accent); }
.x { color: #f87171; }
.wrap.narrow { max-width: 760px; }

/* Centered hero */
.tp-hero { text-align: center; padding: 72px 0 36px;
  background: radial-gradient(680px 320px at 50% -10%, rgba(245,158,11,.12), transparent 65%); }
.tp-hero .pill { margin-bottom: 22px; }
.tp-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -1.2px; margin: 0 auto; font-weight: 800; }
.tp-hero .lead { color: var(--muted); font-size: 18px; margin: 18px auto 28px; max-width: 38em; }
@media (max-width: 720px) { .tp-hero { padding: 48px 0 24px; } }

/* Problems grid */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; margin: 0 auto; }
.prob { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; }
.prob .x { flex: 0 0 auto; font-weight: 800; }
@media (max-width: 720px) { .prob-grid { grid-template-columns: 1fr; } }

/* Example scope split */
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ex-copy h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.6px; margin: 16px 0 12px; font-weight: 800; }
.ex-copy > p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }
.check-list, .items-2col { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.check-list { margin-bottom: 24px; }
.pdf-mock { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.3)); }
.pdf-mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.pdf-mock-tag { color: var(--muted-2); font-weight: 500; font-size: 12px; }
.pdf-mock-body { padding-top: 14px; }
.pv-group + .pv-group { margin-top: 14px; }
.pv-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); margin-bottom: 7px; }
.pv-item { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.pv-item::before { content: '•'; color: var(--accent); margin-right: 9px; }
@media (max-width: 820px) { .ex-grid { grid-template-columns: 1fr; gap: 28px; } }

/* How it helps */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.help-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 18px; }
.help-card h3 { font-size: 16px; margin: 16px 0 6px; letter-spacing: -.2px; }
.help-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }

/* Common line items */
.items-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; max-width: 880px; margin: 0 auto; }
.items-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.items-2col li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
@media (max-width: 640px) { .items-2col { grid-template-columns: 1fr; } }

/* Before vs after (trade) */
.tba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 940px; margin: 0 auto; }
.tba-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.tba-card.after { box-shadow: 0 0 0 1px rgba(245,158,11,.18), 0 24px 60px rgba(245,158,11,.06); }
.tba-card h4 { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.tba-card.before h4 { color: var(--muted-2); }
.tba-card.after h4 { color: var(--accent); }
.tba-list { list-style: none; margin: 0; padding: 0; }
.tba-list li { padding: 9px 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.tba-list:not(.ok-list) li::before { content: '·'; color: var(--muted-2); font-weight: 800; font-size: 20px; line-height: 0; }
.ok-list li { color: var(--text); }
@media (max-width: 720px) { .tba-grid { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; color: var(--text); font: inherit;
  font-size: 15.5px; font-weight: 600; padding: 18px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-caret { color: var(--muted-2); transition: transform .18s ease; flex: 0 0 auto; }
.faq-item.open .faq-caret { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: none; padding: 0 4px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 58em; }
.faq-item.open .faq-a { display: block; }

/* Photo hero (e.g. /painters) — image fades into the dark behind the text */
.tp-hero.has-photo { text-align: left; padding: 0; background: none; position: relative; overflow: hidden; }
.tp-hero.has-photo .hero-photo { position: absolute; inset: 0; z-index: 0; background-image: var(--hero-img);
  background-size: cover; background-position: 78% center; background-repeat: no-repeat; }
.tp-hero.has-photo .hero-photo::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%, rgba(var(--bg-rgb),.80) 50%, rgba(var(--bg-rgb),.38) 74%, rgba(var(--bg-rgb),.12) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb),.35) 0%, rgba(var(--bg-rgb),0) 22%, rgba(var(--bg-rgb),0) 66%, var(--bg) 100%); }
.tp-hero.has-photo .wrap { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 92px; }
.tp-hero.has-photo .hero-inner { max-width: 580px; }
.tp-hero.has-photo h1 { margin: 0; }
.tp-hero.has-photo .lead { margin: 18px 0 28px; max-width: 30em; }
@media (max-width: 820px) {
  .tp-hero.has-photo .hero-photo { background-position: 68% center; }
  .tp-hero.has-photo .hero-photo::after { background: linear-gradient(180deg, rgba(var(--bg-rgb),.5) 0%, rgba(var(--bg-rgb),.84) 56%, var(--bg) 100%); }
  .tp-hero.has-photo .wrap { padding-top: 56px; padding-bottom: 56px; }
  .tp-hero.has-photo .hero-inner { max-width: none; }
}

/* ============================================================
   Hero product mock (clean light window) — homepage
   ============================================================ */
.heromock { width: 100%; max-width: 430px; margin-left: auto; background: #ffffff; border: 1px solid #e5e7ec;
  border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(16,24,40,.16), 0 0 0 1px rgba(16,24,40,.03); }
.hm-bar { display: flex; align-items: center; gap: 9px; padding: 10px 13px; background: #f3f5f8; border-bottom: 1px solid #e5e7ec; }
.hm-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.hm-dots i { width: 9px; height: 9px; border-radius: 50%; }
.hm-dots i:nth-child(1){ background:#ff5f57; } .hm-dots i:nth-child(2){ background:#febc2e; } .hm-dots i:nth-child(3){ background:#28c840; }
.hm-title { flex: 1; min-width: 0; font-size: 10.5px; color: #5b6573; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.hm-dump { font-size: 10.5px; line-height: 1.5; color: #dfe5ec; background: #15181e; border-radius: 9px; padding: 10px; }
.hm-q { margin-top: 8px; font-size: 10.5px; color: #15181e; background: #f3f5f8; border: 1px solid #e5e7ec; border-radius: 9px; padding: 9px 10px; }
.hm-card { margin-bottom: 8px; }
.hm-card-h { font-size: 9px; font-weight: 800; letter-spacing: .05em; color: #fff; background: #14253a; padding: 4px 8px; border-radius: 5px; }
.hm-li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 10px; color: #15181e; padding: 6px 6px 0; }
.hm-li span:last-child { color: #5b6573; font-weight: 600; white-space: nowrap; }
.hm-est { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 9px 6px 0; border-top: 1px solid #e5e7ec; font-size: 11px; font-weight: 800; color: #15181e; }
.hm-pdf { display: inline-block; margin: 10px 6px 0; font-size: 8.5px; font-weight: 800; letter-spacing: .03em; color: #1c1303; background: #F59E0B; padding: 4px 9px; border-radius: 5px; }
@media (max-width: 900px) { .heromock { margin: 0 auto; max-width: 460px; } }

/* Cleaner hero subhead */
.hero .lead { line-height: 1.65; }

/* Light / dark nav toggle */
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 7px 8px; border-radius: 8px; color: var(--muted); }
.theme-toggle:hover { background: var(--card); color: var(--text); }
