/* Incorporate or stay a sole proprietor? — scoped under .sipx
   Maple Groove brand system. Mobile-safe by construction: no fixed
   min-widths ≥320px (kb/site-quality mobile guardrails), inputs ≥16px. */

.sipx { margin-top: 28px; }

/* ── controls strips (cockpit: the set-once inputs + screener sit above
   the lanes; the three dials sit below them, so sliding and its effect
   share the viewport) ── */
.sipx-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px 26px;
  background: #0d0d0d;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.sipx-ctl label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.sipx-ctl input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  margin: 2px 0 6px;
}
.sipx-ctl input[type=number] {
  width: 100%;
  background: #161616;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 8px 10px;
}
.sipx-ctl input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sipx-ctl .sipx-val {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--blue);
}
.sipx-controls--dials { margin-top: 16px; }

/* inline fee/health inputs: they live inside the lane cards, prefilled,
   with a thin border and a brief glow so they read as typeable */
.sipx-inline {
  width: 74px;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 2px 6px;
  text-align: right;
  animation: sipxGlow 2.6s ease-in-out 2;
}
.sipx-inline:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sipx-inline--wide { width: 88px; }

/* in-card pay-mix slider: the Corporation lane's own lever, under its title */
.sipx-lane__mix {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.sipx-lane__mix label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
.sipx-lane__mix input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  margin: 0 0 4px;
}
@keyframes sipxGlow {
  0%, 100% { border-color: var(--rule-2); box-shadow: none; }
  50% { border-color: var(--amber); box-shadow: 0 0 8px rgba(232, 166, 52, .35); }
}

/* PSB screener: lives ON the PSB card, beside the dial it moves
   (Trevor's review round 3) */
.sipx-lane__screener {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.sipx-lane__screener .sipx-qs { display: flex; flex-direction: column; gap: 2px; }
.sipx-lane__screener .sipx-q { font-size: 12.5px; padding: 3px 0; }
.sipx-lane__screener .sipx-psb-msg { margin-top: 8px; font-size: 12px; }
/* the score explanation collapses behind a chevron so the card stays
   compact (Trevor's review round 3) */
.sipx-whyscore { margin-top: 10px; }
.sipx-whyscore summary {
  cursor: pointer;
  list-style: none;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.sipx-whyscore summary::-webkit-details-marker { display: none; }
.sipx-whyscore summary::before {
  content: "\25B8";
  color: var(--amber);
  margin-right: 7px;
  display: inline-block;
  transition: transform .2s ease;
}
.sipx-whyscore[open] summary::before { transform: rotate(90deg); }
.sipx-screener__label {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 10px;
}
.sipx-qs { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sipx-q {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-dim); cursor: pointer;
  padding: 6px 0; /* comfortable tap height */
}
.sipx-q input { width: 17px; height: 17px; accent-color: var(--accent); }
.sipx-q b { color: var(--ink); font-weight: 400; }
.sipx-psb-msg {
  margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-dim);
  border-left: 2px solid var(--rule-2); padding-left: 12px; max-width: 74ch;
}
.sipx-psb-msg b { color: var(--ink); }

/* ── the three lanes ── */
.sipx-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.sipx-lane {
  position: relative;
  background: #111;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sipx-lane--best { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.sipx-lane--best::after {
  content: 'Best position';
  position: absolute; top: -9px; right: 14px;
  background: var(--amber); color: #000;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px;
}
.sipx-lane--alert { border-color: var(--accent); }
.sipx-lane--alert .sipx-lane__tag { color: var(--accent-glow); }

/* PSB probability dial: pinned to the card's top-right corner */
.sipx-prob {
  position: absolute;
  top: -18px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 3px 4px 3px 12px;
}
.sipx-prob__label {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: right;
  line-height: 1.35;
}
.sipx-prob__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  transition: background-color .35s ease;
  flex-shrink: 0;
}

.sipx-lane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.sipx-lane__name { font-family: var(--font-heading); font-size: 22px; letter-spacing: .04em; }
.sipx-lane__tag { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }

.sipx-rows { border-top: 1px solid var(--rule); }
.sipx-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-dim);
}
.sipx-row b { font-weight: 400; color: var(--ink); font-family: var(--font-body); }

.sipx-cash { margin: 16px 0 4px; }
.sipx-cash__v { font-family: var(--font-body); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--ink); }
.sipx-cash__l { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 2px; }

.sipx-kept {
  font-size: 12.5px; color: var(--ink-dim); margin-top: 8px;
  border-left: 2px solid #b8801a; padding-left: 10px;
}
.sipx-kept b { color: #e8a634; }

/* stacked outcome bar — validated palette, 2px surface gaps */
.sipx-bar {
  display: flex; gap: 2px;
  height: 14px; margin-top: 14px;
  border-radius: 4px; overflow: hidden;
}
.sipx-seg { min-width: 2px; }
.sipx-seg--cash { background: #2493da; }
.sipx-seg--tax  { background: #ff3a3a; }
.sipx-seg--cpp  { background: #8a5cff; }
.sipx-seg--fee  { background: #5a5a5a; }
.sipx-seg--health { background: #1f9d8b; }
.sipx-seg--kept { background: #b8801a; }

.sipx-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px; font-size: 11.5px; color: var(--ink-dim);
}
.sipx-legend .chip {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px;
}

.sipx-lane__notes { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.sipx-note { font-size: 11.5px; color: var(--ink-dim); padding: 2px 0; }
.sipx-note b { color: var(--ink); font-weight: 400; }

/* ── verdict ── */
.sipx-verdict {
  margin-top: 18px;
  background: #111;
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
  font-size: 14px; line-height: 1.65; color: var(--ink-dim);
  max-width: 100ch;
}
.sipx-verdict b { color: var(--ink); }

/* ── guided tour (button + chrome from the insurance tools) ── */
.tour-emit{position:relative;display:inline-block}
.tour-emit-cv{position:absolute;pointer-events:none;z-index:0}
.tour-emit .tour-launch{position:relative;z-index:1}
.tour-launch{display:inline-flex;align-items:center;gap:7px;background:#141414;
  color:var(--blue);border:1px solid var(--blue);border-radius:20px;padding:8px 15px;
  font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer}
.tour-launch:hover{background:rgba(74,184,255,.12)}
.tour-launch .pulse{width:8px;height:8px;border-radius:50%;background:var(--blue);
  box-shadow:0 0 0 0 rgba(74,184,255,.6);animation:tourPulse 1.8s infinite}
@keyframes tourPulse{0%{box-shadow:0 0 0 0 rgba(74,184,255,.55)}70%{box-shadow:0 0 0 7px rgba(74,184,255,0)}100%{box-shadow:0 0 0 0 rgba(74,184,255,0)}}
.tour-mask{position:fixed;inset:0;z-index:9998;pointer-events:none}
.tour-spot{position:fixed;border-radius:10px;border:2px solid var(--blue);
  box-shadow:0 0 0 9999px rgba(0,0,0,.72),0 0 22px rgba(74,184,255,.45);
  transition:left .28s ease,top .28s ease,width .28s ease,height .28s ease;pointer-events:none}
.tour-pop{position:fixed;z-index:9999;width:300px;max-width:calc(100vw - 24px);
  background:#141414;border:1px solid var(--blue);border-radius:10px;
  padding:15px 16px;box-shadow:0 10px 34px rgba(0,0,0,.6)}
.tour-pop h4{font-size:14px;font-weight:700;color:var(--ink);margin-bottom:6px}
.tour-pop p{font-size:12.5px;color:var(--ink-dim);line-height:1.5}
.tour-nav{display:flex;justify-content:space-between;align-items:center;margin-top:14px;gap:10px}
.tour-dots{display:flex;gap:5px}
.tour-dot{width:6px;height:6px;border-radius:50%;background:var(--rule-2)}
.tour-dot.on{background:var(--blue)}
.tour-actions{display:flex;gap:6px}
.tour-actions button{background:#0c0c0c;color:var(--ink-dim);border:1px solid var(--rule-2);
  border-radius:6px;padding:5px 11px;font-family:inherit;font-size:11.5px;cursor:pointer}
.tour-actions button[data-next]{background:var(--blue);color:#04121f;border-color:transparent;font-weight:700}
.tour-actions button:disabled{opacity:.4;cursor:default}
.tour-skip{background:none;border:none;color:var(--ink-faint);font-family:inherit;font-size:11px;cursor:pointer;text-decoration:underline}
@media(prefers-reduced-motion:reduce){.tour-spot{transition:none}.tour-launch .pulse{animation:none}.sipx-inline{animation:none}}

@media (max-width: 680px) {
  .sipx-controls { padding: 16px; }
  .sipx-lane__name { font-size: 20px; }
}
