/* Section styles — direction C "two states". Written fresh: the previous file
   was 1,484 lines of sixteen appended mobile override passes. One rule set,
   mobile-first where it matters, nothing below 12 px. */

section { position: relative; padding: 96px 0; }
section.hero { padding: 0; }
section.band { background: var(--ink1); border-block: 1px solid var(--line); }
section > .wrap { position: relative; z-index: 1; }

/* ---------- 3 · explorer (engine DOM hooks — see src/site-explorer.js) ---------- */
.panel {
  margin-top: 40px; background: var(--ink1); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.panel-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 7px; padding: 10px 15px; cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .30);
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] {
  color: var(--teal-ink); background: var(--teal); border-color: var(--teal);
}
.solve { margin-left: auto; color: var(--faint); }

.explorer { display: grid; grid-template-columns: 1fr 320px; min-height: 480px; }
.exp-stage { position: relative; overflow: hidden; background: #030b0a; touch-action: pan-y; }
.exp-stage canvas { display: block; width: 100%; height: 100%; }
.sub-pills { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.sub-pill {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(5, 16, 14, .72); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; backdrop-filter: blur(6px);
}
.sub-pill:hover { color: var(--text); }
.sub-pill[aria-selected="true"] { color: var(--teal); border-color: var(--teal); }
.sub-pill .beta { color: var(--faint); font-size: 12px; text-transform: none; letter-spacing: 0; }
.exp-note {
  position: absolute; right: 12px; bottom: 10px; z-index: 2; color: var(--faint);
  background: rgba(5, 16, 14, .6); border-radius: 6px; padding: 4px 8px; max-width: 70%;
}
.exp-cross { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px;
  pointer-events: none; }
.exp-cross::before, .exp-cross::after { content: ''; position: absolute; background: var(--teal); }
.exp-cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.exp-cross::after { top: 50%; left: 0; height: 1px; width: 100%; }
.exp-probe {
  position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none; text-align: center;
  background: rgba(5, 16, 14, .88); border: 1px solid var(--teal); border-radius: 7px;
  padding: 6px 11px; white-space: nowrap;
}
.exp-probe[data-below="true"] { transform: translate(-50%, 18px); }
.exp-probe .pv { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--teal); }
.exp-probe .pk { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.exp-hint {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(5, 16, 14, .78); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; pointer-events: none;
}
.exp-stage.touched .exp-hint { display: none; }
img.exp-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-side { padding: 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.exp-value { font-family: var(--mono); font-size: clamp(34px, 3vw, 44px); font-weight: 600; color: var(--teal); }
.exp-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 6px; }
.exp-copy { font-size: 14px; line-height: 1.55; color: var(--muted); }
.exp-legend { margin-top: auto; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--faint); }

/* ---------- 4 · buy the layer: two slabs ---------- */
.versus { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; margin-top: 42px; }
.vs-slab {
  background: var(--ink1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: flex; flex-direction: column;
}
.vs-build { opacity: .82; }
.vs-build h3 { color: var(--faint); }
.vs-buy { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.vs-slab h3 { font-size: 13px; letter-spacing: .16em; margin-bottom: 20px; }
.vs-buy h3 { color: var(--teal); }
.vs-build ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs-build li { color: var(--muted); font-size: 15.5px; padding-left: 18px; position: relative; }
.vs-build li::before { content: '—'; position: absolute; left: 0; color: var(--faint); }
.vs-tail { margin-top: auto; padding-top: 22px; color: var(--faint); border-top: 1px dashed var(--line); }
.vs-buy > p { color: var(--muted); }
.entry-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.entry-points li b { display: inline-block; min-width: 118px; color: var(--text); font-weight: 600; }
.entry-points li { color: var(--muted); font-size: 14.5px; }
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text);
  background: #04100d; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px; margin: 0 0 18px; overflow-x: auto;
}
.code .c { color: var(--faint); } .code .k { color: var(--teal); } .code .s { color: #c9a86a; }
.plugin-line { margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.plugin-line b { color: var(--text); }
#entry .cta-row { margin-top: 22px; }

/* ---------- 5 · doors ---------- */
.index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.index a {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  background: var(--ink1); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; transition: transform .12s ease, border-color .15s ease;
}
.index a:hover { border-color: var(--teal); transform: translateY(-3px); }
.index .num { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.index h3 { font-size: 17.5px; margin: 0; }
.index p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.index .go { font-family: var(--mono); font-size: 12.5px; color: var(--teal); }
.index a[data-yours] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.index a[data-yours] .num::after { content: ' · YOURS'; color: var(--teal); }
.free-line { margin-top: 22px; }

/* ---------- 6 · proof + THE BENCH ---------- */
.bench-head { margin: 46px 0 18px; max-width: 620px; }
.bench-head h3 { font-size: clamp(21px, 2.2vw, 27px); }
.bench-head p { color: var(--muted); font-size: 15px; }
.bench-wait { color: var(--faint); padding: 60px 0; text-align: center; }
.bench {
  display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: stretch;
  background: var(--ink1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
}
.bench-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bench-read { font-family: var(--mono); font-size: 40px; font-weight: 600; color: var(--text); line-height: 1; }
.bench-read small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.bench-sum { font-size: 13.5px; color: var(--muted); margin: 0; }
.bench-sum b { color: var(--text); }
.bench-grade { font-size: 12.5px; color: var(--faint); border-top: 1px dashed var(--line);
  padding-top: 12px; margin: auto 0 0; }
.bench-legend { display: flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 12px; color: var(--faint); }

.bench-stage { position: relative; min-height: 420px; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; background: #030b0a; }
.bench-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bench-tag {
  position: absolute; top: 12px; z-index: 2; font-family: var(--mono); font-size: 12px;
  letter-spacing: .1em; color: var(--muted); background: rgba(5, 16, 14, .72);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; pointer-events: none;
}
.bench-tag.l { left: 12px; } .bench-tag.r { right: 12px; color: var(--teal); border-color: var(--teal); }
.bench-split { position: absolute; top: 0; bottom: 0; z-index: 3; width: 44px; margin-left: -22px;
  cursor: ew-resize; touch-action: none; }
.bench-split::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  margin-left: -1px; background: var(--teal); box-shadow: 0 0 12px rgba(58, 220, 192, .55); }
.bench-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--teal-ink); display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700; user-select: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25), var(--shadow);
}
.bench-chip {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%); z-index: 4;
  text-align: center; pointer-events: none; white-space: nowrap;
  background: rgba(5, 16, 14, .9); border: 1px solid var(--teal); border-radius: 8px;
  padding: 7px 12px;
}
.bench-chip b { display: block; font-family: var(--mono); font-size: 17px; color: var(--teal); }
.bench-chip span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* the dial — a weighted sector gauge with detents at the measured bearings */
.dial { position: relative; width: 190px; height: 190px; margin: 4px auto 0;
  touch-action: none; cursor: grab; outline-offset: 4px; }
.dial:active { cursor: grabbing; }
.dial svg { position: absolute; inset: 0; }
.dial-lbl { position: absolute; font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; color: var(--muted); }
.dial-needle {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 74px; margin-left: -1.5px;
  transform-origin: 50% 100%; background: linear-gradient(to top, transparent, var(--teal));
  border-radius: 2px; will-change: transform;
}
.dial-hub {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 25px; font-weight: 600; color: var(--text); text-align: center;
}
.dial-hub small { display: block; font-size: 12px; font-weight: 400; color: var(--faint);
  letter-spacing: .13em; text-transform: uppercase; margin-top: 2px; }
.dial-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dial-chips button {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 12px; cursor: pointer;
}
.dial-chips button[aria-pressed="true"] { color: var(--teal-ink); background: var(--teal); border-color: var(--teal); }

.proof-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; margin-top: 54px; align-items: start; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); text-align: left; padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-strong); }
.spec td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.spec td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.speeds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.speeds li { background: var(--ink2); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.speeds .v { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--teal); }
.speeds .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.band-line { margin-top: 40px; font-size: clamp(17px, 1.9vw, 22px); line-height: 1.45;
  border-left: 3px solid var(--teal); padding-left: 20px; max-width: 720px; }
.band-line b { color: var(--teal); }

/* ---------- 7 · live layer ---------- */
#live { overflow: hidden; }
.live-bg-frame { position: absolute; inset: 0; }
.live-bg { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85); }
#live::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(90% 90% at 30% 40%, rgba(5, 16, 14, .55), rgba(5, 16, 14, .92)); }
.live-wrap { z-index: 2; display: grid; justify-content: end; }
.live-card { width: min(560px, 100%); background: rgba(8, 26, 23, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 30px;
  box-shadow: var(--shadow); }
.query-box { display: flex; gap: 12px; align-items: flex-start; background: #04100d;
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin: 6px 0 16px; }
.query-prompt { font-family: var(--mono); color: var(--teal); font-weight: 600; }
.query-text { font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--text);
  transition: opacity .35s ease; }
.live-sub { color: var(--muted); font-size: 15px; }
.cities { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.city-pill {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.city-pill[aria-selected="true"] { color: var(--teal-ink); background: var(--teal); border-color: var(--teal); }
.live-cap { margin: 10px 0 18px; }
.live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
#live.live-active .live-card { position: relative; z-index: 3; }

/* ---------- 8 · price ---------- */
.price-line { color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 18px; }
.tier { position: relative; background: var(--ink1); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 22px; display: flex; flex-direction: column; }
.tier-hot { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.t-flag { position: absolute; top: -11px; left: 20px; background: var(--teal); color: var(--teal-ink);
  border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.tier h3 { font-size: 16px; margin-bottom: 6px; }
.t-price { font-family: var(--mono); font-size: 29px; font-weight: 600; margin-bottom: 4px; }
.t-price span { font-size: 13px; color: var(--faint); font-weight: 400; }
.t-who { font-size: 13px; color: var(--teal); margin-bottom: 14px; }
.tier ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px;
  font-size: 13.5px; color: var(--muted); }
.t-btn { margin-top: auto; width: 100%; }
.custom-line { display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; border: 1px dashed var(--line-strong); border-radius: var(--r);
  padding: 20px 24px; margin-top: 26px; }
.custom-line .lbl { display: block; margin-bottom: 4px; }
.custom-line p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--ink1); }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.f-logo { height: 22px; margin-bottom: 14px; }
.f-grid .muted { font-size: 13.5px; max-width: 30em; }
.f-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.f-grid a { display: block; text-decoration: none; color: var(--muted);
  font-size: 14px; padding: 4px 0; }
.f-grid a:hover { color: var(--teal); }
.supported-by { display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin: 44px 0 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.supported-by img { height: 26px; opacity: .75; }
.supported-by .lbl { flex-basis: 100%; }
.f-note { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .explorer { grid-template-columns: 1fr; min-height: 0; }
  .exp-stage { height: 380px; }
  .exp-side { border-left: 0; border-top: 1px solid var(--line); }
  .index { grid-template-columns: 1fr 1fr; }
  .bench { grid-template-columns: 1fr; }
  .dial { margin: 0 auto; }
  .proof-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  section { padding: 72px 0; }
  .versus { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .entry-points li b { min-width: 0; display: block; }
  .speeds { grid-template-columns: 1fr 1fr; }
  .live-wrap { justify-content: stretch; }
  .tiers { grid-template-columns: 1fr; }
  .custom-line { flex-direction: column; align-items: flex-start; }
  .f-grid { grid-template-columns: 1fr; gap: 22px; }
  /* The bench on one thumb: stage first at full width, dial under it. */
  .bench { padding: 14px; gap: 14px; }
  .bench-stage { min-height: 330px; order: -1; }
  .bench-read { font-size: 32px; }
  .dial { width: 168px; height: 168px; }
  .dial-needle { height: 64px; }
}
