/* JunkPHX Quote tools (crew calc + public estimator). Self-contained: does NOT
   load styles.css (its global section padding / nav rules fight an app layout).
   Same brand tokens. Mobile-first, fluid, dark editorial. */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --orange: #FF6200; --orange-dim: rgba(255,98,0,.15);
  --gold: #FFB300; --black: #090909; --charcoal: #111; --card: #191919;
  --border: #252525; --border-lit: #333; --warm-white: #FAF7F2; --muted: #8a8a8a;
  --red: #E5484D; --green: #3DDC84; --yellow: #FFB300; --goldhi: #FFD84D;
  --display: 'Barlow Condensed', sans-serif; --body: 'DM Sans', sans-serif;
  --r: 10px; --ease: .22s cubic-bezier(.16,1,.3,1);
  --bar-h: 4.75rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); background: var(--black); color: var(--warm-white);
  line-height: 1.5; min-height: 100svh; overflow-x: clip;
  padding-bottom: calc(var(--bar-h) + 2rem + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(var(--bar-h) + 2rem);
}
html, body, button, [role=button], label, .chip { cursor: url('../img/cursor-claw.png?v=2') 5 7, auto; }
button, [role=button], label, .chip, a { cursor: url('../img/cursor-claw.png?v=2') 5 7, pointer; }
input, textarea, select { cursor: text; }
button { font: inherit; color: inherit; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: 3.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: rgba(9,9,9,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; border-radius: 50%; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; }
.brand b .j { color: var(--orange); } .brand b .p { color: var(--gold); }
.brand small { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: .35rem; }
.top-actions { display: flex; gap: .4rem; }
.ibtn {
  min-width: 44px; min-height: 44px; padding: 0 .85rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--border-lit); font-weight: 600; font-size: .85rem; transition: border-color var(--ease), background var(--ease);
}
.ibtn:hover { border-color: var(--orange); }
a.ibtn { text-decoration: none; color: inherit; }
.bar .acts a.ibtn span { display: inline; }
.top .call-long { display: none; }
@media (min-width: 560px) { .top .call-long { display: inline; } .top .call-short { display: none; } }
.ibtn.solid { background: var(--orange); border-color: var(--orange); color: #fff; }
.ibtn svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(100% - 2*clamp(1rem, 4vw, 2rem), 72rem); margin: 0 auto; }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
  .col-side { position: sticky; top: 4.25rem; }
}

/* ---------- sections as hairline rows ---------- */
.sec { padding: clamp(1.25rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--border); }
.sec:last-child { border-bottom: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-h h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.sec-h .meta { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--orange); white-space: nowrap; }
.sub { color: var(--muted); font-size: .9rem; }

/* banner */
.banner {
  display: flex; gap: .85rem; align-items: center; margin: 1rem 0 0;
  padding: .9rem 1rem; border-left: 3px solid var(--orange); background: var(--orange-dim); border-radius: 0 var(--r) var(--r) 0;
  font-size: .9rem;
}
.banner b { color: var(--orange); }
.banner button { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }

/* ---------- load slider ---------- */
.load-big { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.load-big .tier { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: .95; letter-spacing: -.01em; }
.load-big .price { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: .95; color: var(--orange); }
.range { position: relative; padding: .75rem 0 1.4rem; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--fill, 0%), var(--border-lit) var(--fill, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border-lit); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--orange); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 2px 10px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); }
.ticks { position: absolute; left: 14px; right: 14px; bottom: 0; height: 1rem; }
.ticks span { position: absolute; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.ticks span::before { content: ''; position: absolute; left: 50%; top: -.55rem; width: 1px; height: .35rem; background: var(--border-lit); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip {
  min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--border-lit);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; display: inline-flex; align-items: center;
  transition: all var(--ease); user-select: none;
}
.chip:hover { border-color: var(--orange); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip.small { font-family: var(--body); font-weight: 600; font-size: .85rem; letter-spacing: 0; }

/* ---------- rows ---------- */
.rows { border-top: 1px solid var(--border); }
.row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .75rem 1rem;
  min-height: 56px; padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.row .lbl { font-weight: 500; }
.row .lbl small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.row .amt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--muted); min-width: 3.5rem; text-align: right; }
.row.on .amt { color: var(--orange); }
.row.unset .amt { color: var(--red); font-family: var(--body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--border-lit); border-radius: 999px; overflow: hidden; }
.step button { width: 44px; height: 44px; font-size: 1.3rem; font-weight: 600; display: grid; place-items: center; }
.step button:hover { background: var(--card); }
.step output { min-width: 2rem; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.row .step output:empty::before, .step output[data-zero]{ color: var(--muted); }
/* toggle */
.tog { position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--border-lit); transition: background var(--ease); flex: none; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform var(--ease); }
.tog[aria-checked=true] { background: var(--orange); }
.tog[aria-checked=true]::after { transform: translateX(22px); }
/* checkbox row */
.chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-lit); display: grid; place-items: center; flex: none; transition: all var(--ease); }
.chk svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; opacity: 0; }
.row.on .chk { background: var(--orange); border-color: var(--orange); }
.row.on .chk svg { opacity: 1; }
.row.clickable { grid-template-columns: auto minmax(0,1fr) auto; }

/* ---------- fields ---------- */
.fields { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(clamp(8.5rem, 40%, 12rem), 1fr)); }
.field label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.field .in {
  display: flex; align-items: center; gap: .4rem; min-height: 50px; padding: 0 .9rem;
  background: var(--charcoal); border: 1px solid var(--border-lit); border-radius: var(--r); transition: border-color var(--ease);
}
.field .in:focus-within { border-color: var(--orange); }
.field .in span { color: var(--muted); font-size: .9rem; }
.field input, .field select, .field textarea { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 1.05rem; padding: .6rem 0; font-weight: 500; }
.field input::placeholder { color: #555; }
.field input[type=number] { -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field.wide { grid-column: 1 / -1; }
.field textarea { min-height: 3.5rem; resize: vertical; padding: .7rem 0; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }

/* ---------- margin panel ---------- */
.margin { padding: clamp(1.25rem, 3vw, 2rem) 0; }
.margin-hero { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.margin-hero .pct { font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 16vw, 6.5rem); line-height: .85; letter-spacing: -.02em; color: var(--band, var(--muted)); }
.margin-hero .pct small { font-size: .45em; letter-spacing: 0; }
.margin-hero .verdict { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.4rem); text-transform: uppercase; letter-spacing: .04em; color: var(--band, var(--muted)); padding-bottom: .4rem; }
.gauge { position: relative; height: 10px; border-radius: 5px; margin: 1rem 0 .4rem; overflow: hidden;
  background: linear-gradient(90deg, var(--red) 0 30%, var(--yellow) 30% 50%, var(--green) 50% 65%, var(--goldhi) 65% 100%); opacity: .95; }
.gauge i { position: absolute; top: -3px; bottom: -3px; width: 4px; background: #fff; box-shadow: 0 0 0 2px #000; left: calc(var(--m, 0) * 1%); transform: translateX(-50%); transition: left var(--ease); }
.gauge-l { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.margin-off { color: var(--muted); font-size: .95rem; padding: .5rem 0 0; }
.margin-off b { color: var(--warm-white); }

.kv { border-top: 1px solid var(--border); margin-top: 1.25rem; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.kv div span:first-child { color: var(--muted); }
.kv div b { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.kv .total b { font-size: 1.5rem; }
.kv .total.profit b { color: var(--green); } .kv .total.profit.neg b { color: var(--red); }
.kv .neg b::before { content: '−'; }
.kv .dot { border-bottom-style: dashed; }

.bands { margin-top: 1.25rem; }
.bands h3 { font-family: var(--display); font-weight: 900; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }
.band { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.band i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.band .rng { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--c); }
.band .rng small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--muted); }
.band .dollars { font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: var(--c); white-space: nowrap; }
.band.here { background: linear-gradient(90deg, transparent, rgba(255,255,255,.04)); }
.band.here .rng small::after { content: ' · you are here'; color: var(--warm-white); }

/* ---------- sticky bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  min-height: var(--bar-h); padding: .6rem clamp(1rem, 4vw, 2rem) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(14,14,14,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--border-lit);
  display: flex; align-items: center; gap: .75rem 1rem;
}
.bar .n { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.bar .n small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.bar .n b { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -.01em; }
.bar .n.price b { color: var(--orange); }
.bar .n.margin b { color: var(--band, var(--muted)); }
.bar .n.profit b { color: var(--green); } .bar .n.profit.neg b { color: var(--red); }
.bar .spacer { flex: 1; }
.bar .acts { display: flex; gap: .5rem; }
.bar .acts .ibtn { padding: 0 1rem; }
@media (max-width: 480px) { .bar .n.profit { display: none; } .bar .acts button.ibtn span { display: none; } }
@media (max-width: 380px) { .bar .n.margin small, .bar .n.price small { font-size: .55rem; } }

/* ---------- overlays (setup / client / pin) ---------- */
.ovl { position: fixed; inset: 0; z-index: 100; background: var(--black); overflow-y: auto; overscroll-behavior: contain; display: none; }
.ovl.open { display: block; }
.ovl .top { position: sticky; }
.ovl .wrap { padding: 1.25rem 0 5rem; max-width: 46rem; }
.ovl h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 6vw, 2.75rem); text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.ovl .lead { color: var(--muted); margin: .5rem 0 1.5rem; max-width: 60ch; }
.ovl h2 { font-family: var(--display); font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; margin: 2rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ovl h2 + .sub { margin: -0.4rem 0 .9rem; }
.ovl-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: .75rem clamp(1rem,4vw,2rem) calc(.75rem + env(safe-area-inset-bottom)); background: rgba(14,14,14,.94); backdrop-filter: blur(16px); border-top: 1px solid var(--border-lit); display: flex; gap: .6rem; justify-content: flex-end; }
.btn { min-height: 48px; padding: 0 1.4rem; border-radius: var(--r); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; transition: all var(--ease); text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #e55900; }
.btn-outline { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--red); }
.btn-block { width: 100%; }
.danger { color: var(--red); }

/* client view */
.client { background: #0b0b0b; color: var(--warm-white); }
.client .deck { height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.client .slide { min-height: 100svh; scroll-snap-align: start; display: grid; place-items: center; text-align: center; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) 6rem; position: relative; }
.client .slide::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 60%, rgba(255,98,0,.10), transparent 70%); pointer-events: none; }
.client .eyebrow { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.client h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.client .huge { font-family: var(--display); font-weight: 900; font-size: clamp(5.5rem, 24vw, 11rem); line-height: .9; color: var(--orange); letter-spacing: -.03em; margin: 1rem 0 .5rem; }
.client .huge small { font-size: .3em; letter-spacing: 0; color: var(--warm-white); display: block; margin-top: .4rem; }
.client p { color: #bdb7ae; max-width: 32ch; margin: 1rem auto 0; font-size: clamp(1rem, 2.6vw, 1.15rem); }
.client ul { list-style: none; text-align: left; margin: 1.5rem auto 0; max-width: 24rem; width: 100%; }
.client li { display: flex; gap: .85rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
.client li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-1px); }
.client .lines { list-style: none; margin: 1.25rem auto 0; max-width: 24rem; width: 100%; }
.client .lines li { justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.client .lines li::before { display: none; }
.client .lines li span:last-child { color: var(--muted); font-weight: 600; }
.client .ctas { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; position: relative; z-index: 1; }
.client .dots { position: fixed; bottom: calc(1.25rem + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; pointer-events: none; }
.client .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-lit); }
.client .dots i.on { background: var(--orange); }
.client .close { position: fixed; top: calc(.9rem + env(safe-area-inset-top)); right: .9rem; z-index: 5; }
.client .swipe { position: absolute; bottom: 2.75rem; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* pin */
.pin { display: grid; place-items: center; min-height: 100svh; padding: 2rem; text-align: center; }
.pin .in { max-width: 14rem; margin: 1.25rem auto; }
.pin input { text-align: center; font-family: var(--display); font-size: 2.2rem; letter-spacing: .5em; font-weight: 700; padding-left: .5em; }
.pin .err { color: var(--red); font-size: .9rem; min-height: 1.3rem; margin-bottom: .5rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 1rem); transform: translate(-50%, 20px); z-index: 200; background: #fff; color: #000; font-weight: 600; padding: .7rem 1.1rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: all var(--ease); font-size: .9rem; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
[data-in] { opacity: 0; transform: translateY(10px); animation: in .5s var(--ease) forwards; }
@keyframes in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- public estimator extras ---------- */
.est-hero { padding: clamp(2rem, 6vw, 4rem) 0 1rem; }
.est-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.est-hero h1 .accent { color: var(--orange); }
.est-hero p { color: var(--muted); max-width: 52ch; margin-top: .9rem; font-size: clamp(1rem, 2.4vw, 1.1rem); }
.est-result { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.est-result .lbl { font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-size: .85rem; }
.est-result .range { font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 13vw, 6rem); line-height: .95; color: var(--orange); letter-spacing: -.02em; padding: .25rem 0 0; }
.est-result .range small { font-size: .35em; color: var(--warm-white); letter-spacing: 0; }
.est-result .why { color: var(--muted); max-width: 46ch; margin-top: .75rem; }
.est-result .ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.est-fine { color: var(--muted); font-size: .8rem; margin-top: 1rem; max-width: 60ch; }
.est-nav a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.est-nav a:hover { color: #fff; }
