/* Platform (contractor-facing) theme: bold, dark, high-contrast. Client niche sites keep style.css only. */
body.platform {
  --bg: #08110d;
  --surface: #0f1c16;
  --surface-2: #16281f;
  --border: #23402f;
  --text: #f1f7f3;
  --muted: #9db4a6;
  --accent: #b6f45c;
  --accent-text: #0a140e;
  --accent-2: #2fe08c;
  --hot: #ffd23f;
  --ok: #5ee6a0; --ok-bg: #12301f;
  --warn: #ffd23f; --warn-bg: #2e2810;
  --crit: #ff7a7a; --crit-bg: #331616;
  --radius: 16px;
  color-scheme: dark;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 224, 140, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(182, 244, 92, 0.10), transparent 60%),
    var(--bg);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.platform h1, body.platform h2, body.platform h3, body.platform .logo, body.platform .display {
  font-family: "Unbounded", "Manrope", system-ui, sans-serif; letter-spacing: -0.01em;
}
body.platform h2 { font-size: 30px; margin: 72px 0 18px; }
body.platform h3 { font-size: 17px; }
body.platform header.top { background: rgba(8, 17, 13, 0.75); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; border-bottom-color: var(--border); }
body.platform .logo span, body.platform .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.platform .btn { border-radius: 12px; }
body.platform .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 800; box-shadow: 0 0 0 0 rgba(182, 244, 92, 0.5); transition: transform .15s, box-shadow .2s; }
body.platform .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(182, 244, 92, 0.6); }
body.platform .btn.big { padding: 15px 26px; font-size: 17px; }
body.platform .btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
body.platform .card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--border); transition: transform .2s, border-color .2s; }
body.platform a.card:hover, body.platform .card.lift:hover { transform: translateY(-3px); border-color: var(--accent); }
body.platform input, body.platform select, body.platform textarea { background: var(--bg); border-color: #4f7f64; color: var(--text); }
body.platform input::placeholder, body.platform textarea::placeholder { color: #7f978a; }
body.platform footer { border-top-color: var(--border); }
body.platform .flash { background: var(--surface-2); }
body.platform th { background: var(--surface-2); }

/* hero */
.p-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 48px 0 24px; }
.p-hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 18px; }
.p-hero .lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.p-badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(47, 224, 140, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,224,140,.7); } 70% { box-shadow: 0 0 0 10px rgba(47,224,140,0); } 100% { box-shadow: 0 0 0 0 rgba(47,224,140,0); } }
.p-checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.p-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.p-checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 900; font-size: 13px; margin-top: 1px; }
@media (max-width: 960px) { .p-hero { grid-template-columns: 1fr; } .p-hero h1 { font-size: 36px; } }
@media (max-width: 480px) { .p-hero h1 { font-size: 30px; } body.platform h2 { font-size: 24px; margin-top: 56px; } }

/* phone mock with incoming leads */
.phone { margin: 0 auto; width: 300px; max-width: 100%; border-radius: 38px; padding: 14px; background: #050a07; border: 1px solid var(--border); box-shadow: 0 30px 80px -20px rgba(47, 224, 140, .35), inset 0 0 0 2px #142219; }
.phone-screen { border-radius: 28px; background: linear-gradient(180deg, #13261c, #0c1712); min-height: 430px; padding: 16px 12px; overflow: hidden; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: var(--accent-text); font-weight: 900; }
.bubble { background: #1b3326; border: 1px solid #27493a; border-radius: 14px 14px 14px 4px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(14px); animation: pop .5s ease forwards; }
.bubble b { color: var(--accent); }
.bubble .meta { color: var(--muted); font-size: 12px; }
.bubble:nth-child(2) { animation-delay: .1s; } .bubble:nth-child(3) { animation-delay: 1.4s; } .bubble:nth-child(4) { animation-delay: 2.4s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.phone-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }

/* stats */
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 0; }
.p-stats .card { padding: 20px; }
.p-stats .num { font-family: "Unbounded", sans-serif; font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.p-stats .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 640px) { .p-stats { grid-template-columns: 1fr; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); margin: 44px -16px 0; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll 28s linear infinite; font-family: "Unbounded", sans-serif; font-size: 18px; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--accent); margin-left: 40px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* icon cards */
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(182, 244, 92, .12); color: var(--accent); margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }
.p-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.p-grid .card p { color: var(--muted); margin: 0; }

/* compare */
.compare .card { position: relative; }
.compare .bad h3::before { content: "✕ "; color: var(--crit); }
.compare .good { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box; border: 2px solid transparent; }
.compare .good h3 { color: var(--accent); }
.compare .good h3::before { content: "✓ "; }
.ribbon { position: absolute; top: -12px; right: 16px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* ROI */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roi .result .value { font-family: "Unbounded", sans-serif; font-size: 40px; color: var(--accent); }
@media (max-width: 760px) { .roi { grid-template-columns: 1fr; } }

/* steps */
.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.p-steps .card::before { counter-increment: st; content: counter(st); font-family: "Unbounded", sans-serif; font-size: 40px; font-weight: 800; line-height: 1; display: block; margin-bottom: 10px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .p-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .p-steps { grid-template-columns: 1fr; } }

/* niches */
.niche-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.niche-card:hover { text-decoration: none; }
.niche-card .free { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent-2); font-size: 14px; }
.niche-card .from { font-family: "Unbounded", sans-serif; font-size: 20px; }
.niche-card .go { margin-top: auto; font-weight: 800; color: var(--accent); }

/* pricing */
.p-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.p-prices .card.featured { transform: scale(1.03); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box; border: 2px solid transparent; }
.p-prices .amount { font-family: "Unbounded", sans-serif; font-size: 30px; margin: 6px 0 10px; }
.p-prices .amount small { font-family: "Manrope", sans-serif; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .p-prices { grid-template-columns: 1fr; } .p-prices .card.featured { transform: none; } }

/* FAQ */
body.platform details.card summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
body.platform details.card summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
body.platform details.card[open] summary::after { content: "−"; }
body.platform details.card p { color: var(--muted); margin-bottom: 0; }

/* final CTA */
.p-cta { margin-top: 72px; border-radius: 24px; padding: 48px 28px; text-align: center; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-text); }
.p-cta h2 { margin: 0 0 10px; color: var(--accent-text); }
.p-cta p { margin: 0 0 22px; font-size: 17px; }
.p-cta .btn { background: var(--accent-text); color: var(--accent); border-color: var(--accent-text); font-weight: 800; }

/* city picker */
body.platform .plot-row { transition: background .15s; }
body.platform .plot-row:has(input:checked) { background: rgba(182, 244, 92, .08); box-shadow: inset 3px 0 0 var(--accent); }
body.platform .plot-row input { width: 20px; height: 20px; accent-color: var(--accent); }
body.platform .status.free { background: rgba(47, 224, 140, .15); color: var(--accent-2); }
body.platform .sticky-sum { background: rgba(15, 28, 22, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--accent); border-radius: 16px 16px 0 0; }
body.platform .sticky-sum strong { color: var(--accent); font-size: 20px; }
body.platform .menu-mobile nav { background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 1; transform: none; }
  .marquee-track, .dot { animation: none; }
}

/* city personalization */
.city-switch { display: inline-block; position: relative; margin-bottom: 14px; }
.city-switch summary { list-style: none; cursor: pointer; color: var(--muted); padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.city-switch summary::-webkit-details-marker { display: none; }
.city-switch summary strong { color: var(--accent); }
.city-switch-list { position: absolute; z-index: 15; top: 50px; left: 0; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.city-switch-list a { padding: 11px 12px; color: var(--text); border-radius: 8px; }
.city-switch-list a:hover { background: var(--surface-2); text-decoration: none; }
.local-niches { display: grid; gap: 10px; margin: 18px 0 0; }
.local-niche { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.local-niche .taken { color: var(--muted); font-size: 14px; }
.tag-you { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--hot); color: #1a1500; font-size: 12px; font-weight: 800; }
.hook { font-family: "Unbounded", sans-serif; font-size: 13px; color: var(--hot); text-transform: uppercase; letter-spacing: .04em; }

/* niches: own band, own color per niche, big icons and illustrations */
.niche-band { margin: 72px -16px 0; padding: 8px 16px 48px; background:
  radial-gradient(600px 300px at 10% 0%, rgba(56, 189, 248, .14), transparent 70%),
  radial-gradient(600px 300px at 90% 100%, rgba(167, 139, 250, .14), transparent 70%),
  linear-gradient(180deg, #0d1f17, #0a1611); border-block: 1px solid var(--border); }
@media (min-width: 1212px) { .niche-band { margin-inline: calc((1148px - 100vw) / 2); padding-inline: calc((100vw - 1148px) / 2); } }
body.platform { overflow-x: clip; }
.niche-band h2 { margin-top: 48px; }
.niche-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.niche-card { --nc: var(--accent); position: relative; overflow: hidden; padding: 0 !important;
  background: linear-gradient(160deg, color-mix(in srgb, var(--nc) 22%, #0f1c16), #0f1c16 70%) !important;
  border: 1.5px solid color-mix(in srgb, var(--nc) 45%, transparent) !important; }
.niche-card:hover { border-color: var(--nc) !important; box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--nc) 70%, transparent); }
.niche-card .illo-wrap { background: color-mix(in srgb, var(--nc) 14%, #07100c); border-bottom: 1px solid color-mix(in srgb, var(--nc) 30%, transparent); padding: 14px 18px 0; display: flex; justify-content: center; }
.niche-card .illo { width: 100%; max-width: 280px; height: auto; display: block; transition: transform .3s; }
.niche-card:hover .illo { transform: scale(1.04) translateY(-2px); }
.niche-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.niche-card .head { display: flex; gap: 14px; align-items: center; }
.big-icon { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--nc); color: #07100c; box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--nc) 80%, transparent); }
.big-icon svg { width: 32px; height: 32px; stroke-width: 2.4; }
.niche-card h3 { font-size: 20px; margin: 0; }
.niche-card .free { color: var(--nc); }
.niche-card .free .dot { background: var(--nc); }
.niche-card .go { display: inline-block; margin-top: 10px; padding: 12px 16px; border-radius: 12px; background: var(--nc); color: #07100c; font-weight: 800; text-align: center; }
.local-niche { border-left: 4px solid var(--nc, var(--accent)); }
.local-niche .mini-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--nc); color: #07100c; margin-right: 10px; vertical-align: middle; }
.local-niche .mini-icon svg { width: 20px; height: 20px; }
.niche-hero { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: center; }
.niche-hero .illo { width: 100%; height: auto; border-radius: 20px; background: color-mix(in srgb, var(--nc) 14%, #07100c); padding: 14px; border: 1.5px solid color-mix(in srgb, var(--nc) 40%, transparent); }
@media (max-width: 860px) { .niche-hero { grid-template-columns: 1fr; } .niche-hero .illo { max-width: 360px; } }

.stage-sub { display: block; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }

/* Lead exchange */
.ex-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 28px 0 8px; }
.ex-hero h1 { font-size: 40px; line-height: 1.12; margin: 10px 0 14px; }
.ex-stats { grid-template-columns: 1fr; margin: 0; }
.ex-filter { margin: 28px 0 18px; }
.ex-filter label { flex: 1; min-width: 220px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ex-card { border-top: 4px solid var(--nc); display: flex; flex-direction: column; gap: 6px; }
.ex-card h3 { margin: 4px 0 0; }
.ex-card .kv { margin: 6px 0; }
.ex-top { display: flex; justify-content: space-between; align-items: center; }
.ex-top .mini-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--nc); color: #07100c; }
.ex-top .mini-icon svg { width: 20px; height: 20px; }
.ex-city { font-weight: 700; margin: 0; }
.ex-buy { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); }
.ex-price { font-family: "Unbounded", sans-serif; font-size: 22px; color: var(--accent); }
.ex-empty { text-align: center; padding: 36px 20px; }
.ex-empty p { max-width: 560px; margin: 8px auto 16px; }
.p-exchange { display: grid; grid-template-columns: 1.6fr auto; gap: 24px; align-items: center; margin-top: 64px; border: 2px solid var(--hot); }
.p-exchange h2 { font-size: 26px; }
@media (max-width: 860px) { .ex-hero, .p-exchange { grid-template-columns: 1fr; } .ex-hero h1 { font-size: 30px; } }
.turnkey { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 64px; }
.turnkey-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0; }
@media (max-width: 860px) { .turnkey, .turnkey-list { grid-template-columns: 1fr; } }

/* Geo-pack pop-up */
dialog.geopack { max-width: 520px; width: calc(100% - 32px); border: 2px solid var(--hot); border-radius: 20px; padding: 26px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text); }
dialog.geopack::backdrop { background: rgba(3, 8, 6, 0.72); backdrop-filter: blur(3px); }
dialog.geopack h2 { font-size: 24px; margin: 6px 0 8px; }
.geopack-close { position: absolute; top: 10px; right: 12px; }
.geopack-close button { background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.geopack-lines { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.geopack-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.geopack-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 6px; }
.geopack-price .retail { font-size: 20px; color: var(--muted); }
.geopack-price .deal { font-family: "Unbounded", sans-serif; font-size: 26px; color: var(--accent); white-space: nowrap; }
@media (max-width: 480px) { .geopack-price .deal { font-size: 21px; } dialog.geopack { padding: 22px 18px; } }
.geopack-claim { font-family: "Unbounded", sans-serif; font-size: 18px; color: var(--hot); margin: 6px 0 14px; }
.geopack-actions { gap: 10px; }
/* Page age badge with tooltip (hover or tap/focus) */
.age { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; cursor: help; white-space: nowrap; }
.age::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 260px; white-space: normal; background: #000; color: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 12px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 30; }
.age:hover::after, .age:focus::after { opacity: 1; }
