/* Tradeup Finder: page layout, the header of the results (H1, plan line, CTA), the login/Premium gate
   over the results, the scroll cue and the guide below the app (intro, why most tradeups only exist on
   paper, how it works with the live model, live screen, glossary, FAQ, final CTA and footer).
   The guide replaces /profitable-tradeups. Its lp-* rules are copied from there, the same way
   calculator_guide.css copies them. If you move lp-* into a shared stylesheet later, delete them here
   and in calculator_guide.css. fg-* rules are for this page only. */

/* ===== Page layout: the app stays one screen tall, the guide scrolls below it ===== */
body.finder-page {
  display: block;
  height: auto;
  min-height: 100dvh;
}
.finder-app {
  display: flex;
  gap: var(--standart-margin);
  /* --fg-cue-h: room the scroll cue takes at the bottom of the first screen, logged out only */
  height: calc(100dvh - var(--fg-cue-h, 0px));
}
@supports (height: 100svh) {
  /* svh doesn't change when a mobile browser bar collapses, so the guide doesn't jump while scrolling */
  .finder-app { height: calc(100svh - var(--fg-cue-h, 0px)); overflow: hidden; }
}
/* all_listings_styles.css sizes both panels to 100dvh. Here they stretch to the app instead, so they
   make room for the scroll cue and keep their bottom edge when a mobile browser bar collapses. */
.finder-app #filter_container,
.finder-app #listings_container { height: auto; }
@media (min-width: 1024px) {
  .finder-app #filter_container,
  .finder-app #listings_container { margin-bottom: var(--standart-margin); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ===== Results panel: header on top, the table takes the rest ===== */
/* all_listings_styles.css only stacks the panel on phones. Here it does on every screen,
   so the header sits above the table without pushing it out of the panel. */
.finder-app #listings_container {
  display: flex;
  flex-direction: column;
}
.finder-app #listings_wrapper {
  flex: 1;
  min-height: 0;
  height: auto;
}

/* ===== Header: the H1, a line about what the table shows and the button of the plan ===== */
.fg-head {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.fg-head-text { min-width: 0; }
.fg-title {
  margin: 0;
  color: #f2f2f2;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.fg-sub {
  min-height: 1.4em;   /* keeps the line's space until tradeup_finder.js sets data-mode */
  margin: 4px 0 0;
  color: var(--text-2-color, #a3a3a3);
  font-size: 14px;
  line-height: 1.4;
}
.fg-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #4676b5;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.fg-cta:hover { background: #3e6aa6; }
.fg-cta--ghost { border-color: #424242; background: none; color: #c2c2c2; }
.fg-cta--ghost:hover { border-color: #5e5e5e; background: none; color: #f2f2f2; }
.fg-cta:focus-visible {
  outline: 2px solid #8fb4e6;
  outline-offset: 3px;
}

/* tradeup_finder.js sets data-mode once: preview (logged out), free or premium.
   Each mode shows its own line and button. Until then only the title shows. */
.fg-head:not([data-mode="preview"]) [data-for="preview"],
.fg-head:not([data-mode="free"]) [data-for="free"],
.fg-head:not([data-mode="premium"]) [data-for="premium"] { display: none; }

/* In front of the gate, the line no longer matches the table and the gate brings its own buttons */
#listings_container.is-gated .fg-sub,
#listings_container.is-gated .fg-cta { visibility: hidden; }

@media (max-width: 1023px) {
  .fg-head {
    gap: 8px 12px;
    margin-bottom: 12px;
  }
  .fg-title { font-size: 18px; }
  .fg-sub { font-size: 13px; }
  /* all_listings_styles.css gives the Filter button a bottom margin as the top row of the panel */
  .fg-head #filter_open { margin: 0; }
  .fg-cta {
    min-height: 37px;   /* as tall as the Filter button next to it */
    padding: 0 12px;
  }
}

/* ===== Scroll cue: logged out only, shows the page goes on below the tool =====
   Not over the panels: the app gets --fg-cue-h shorter and the cue sits in that room, in the page flow,
   left-aligned with the panels. The circle is the guide's step number with an arrow in it.
   finder_guide.js sets .is-away while the page is scrolled. Logged in, the tool is the point. */
.fg-cue { display: none; }
body:has(#finder_head[data-mode="preview"]) { --fg-cue-h: 64px; }
body:has(#finder_head[data-mode="preview"]) .fg-cue {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  height: var(--fg-cue-h);
  /* The guide starts under the cue, in the empty top padding of .fg-intro (at least 64px), so the gap
     between app and guide stays the same as logged in */
  margin-bottom: calc(-1 * var(--fg-cue-h));
  padding: 0 var(--standart-margin);   /* the panels' bottom margin is the space above it */
}
.fg-cue-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2-color, #a3a3a3);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, opacity 0.25s, visibility 0s;
}
.fg-cue-icon {
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 1px solid #424242;
  border-radius: 50%;
  overflow: hidden;   /* the arrow drops out of the circle and comes back in from the top */
  color: #c2c2c2;
  transition: border-color 0.15s, background-color 0.15s;
}
.fg-cue-icon svg { display: block; }
.fg-cue-link:hover { color: #f2f2f2; }
.fg-cue-link:hover .fg-cue-icon { border-color: #5e5e5e; background: #2b2b2b; }
.fg-cue-link:focus-visible {
  border-radius: 17px;
  outline: 2px solid #8fb4e6;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .fg-cue-icon svg { animation: fg-cue-drop 2.8s infinite; }
}
@keyframes fg-cue-drop {
  0%, 55% { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  75% { transform: translateY(20px); opacity: 0; }
  75.01% { transform: translateY(-20px); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1); }
  100% { transform: translateY(0); opacity: 1; }
}
/* Fades out once the page scrolls. In front of the gate, the gate has its own link.
   Its room stays in both cases, so nothing moves. */
.fg-cue.is-away .fg-cue-link,
body:has(#listings_container.is-gated) .fg-cue-link {
  opacity: 0;
  visibility: hidden;
  transition: color 0.15s, opacity 0.25s, visibility 0s 0.25s;
}
@media (max-width: 1023px) {
  body:has(#finder_head[data-mode="preview"]) { --fg-cue-h: 50px; }
  body:has(#finder_head[data-mode="preview"]) .fg-cue { padding: 8px 18px 0; }
  .fg-cue-link { gap: 10px; font-size: 13px; }
  .fg-cue-icon { width: 30px; height: 30px; }
}

/* ===== Gate: login or Premium, same look as the calculator's empty state ===== */
#finder_gate.fg-gate {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 560px);
  padding: 0 20px;
  transform: translate(-50%, -50%);
  color: var(--text-2-color, #a3a3a3);
  text-align: center;
}
#finder_gate[hidden] { display: none; }

/* tradeup_finder.js sets data-reason: each reason shows its own text and main button */
.fg-gate[data-reason="login"] [data-for="premium"],
.fg-gate[data-reason="premium"] [data-for="login"] { display: none; }

/* The results stay empty behind the gate, so the header row and "Load more" go too */
#listings_container.is-gated #listings_wrapper { visibility: hidden; }

.fg-gate-title {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(24px, 1.1rem + 1.2vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fg-gate-text {
  max-width: 28em;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.5;
}
.fg-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.fg-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;   /* "Back to the free preview" is a <button> */
  appearance: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.fg-gate-btn--primary { background: #4676b5; color: #fff; }
.fg-gate-btn--primary:hover { background: #3e6aa6; }
.fg-gate-btn--ghost { border-color: #424242; background: none; color: #c2c2c2; }
.fg-gate-btn--ghost:hover { border-color: #5e5e5e; color: #f2f2f2; }
.fg-gate-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-2-color, #a3a3a3);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: #5c5c5c;
  text-underline-offset: 3px;
}
.fg-gate-link:hover { color: #f2f2f2; text-decoration-color: #f2f2f2; }
.fg-gate-btn:focus-visible,
.fg-gate-link:focus-visible {
  outline: 2px solid #8fb4e6;
  outline-offset: 3px;
}

/* ===== Guide: tokens (same as /profitable-tradeups) ===== */
:root {
  --lp-page: #212121;
  --lp-panel: #1c1c1c;
  --lp-card: #212121;
  --lp-line: #363636;
  --lp-line-strong: #424242;
  --lp-text-strong: #f2f2f2;
  --lp-text-soft: #c2c2c2;
  --lp-text: #a3a3a3;
  --lp-muted: #8a8a8a;
  --lp-blue: #387fb4;
  --lp-blue-text: #5b9bd0;
  --lp-action: #4676b5;
  --lp-action-hover: #3e6aa6;
  --lp-teal: #52a49a;
  --lp-covert: #d95752;
  --lp-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

/* Base */
.lp {
  color: var(--lp-text);
  font-family: var(--lp-font);
  font-size: 17px;
  line-height: 1.6;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp :where(h1, h2, h3, p, ol, ul, dl, dd, figure, figcaption) { margin: 0; padding: 0; }
.lp :where(ol, ul) { list-style: none; }
.lp :where(a) { color: inherit; }

.lp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lp-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.lp-section { padding-block: clamp(72px, 9vw, 136px); }

#how-it-works,
#scarcity-curve-explanation,
#live-screen,
#faq { scroll-margin-top: 80px; }

/* Type */
.lp-h2 {
  max-width: 17em;
  color: var(--lp-text-strong);
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.lp-h3 {
  color: var(--lp-text-strong);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.lp-lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}
.lp-prose { max-width: 36em; }
.lp-prose > p { margin-top: 1.1em; }
.lp-prose > .lp-h2 + p { margin-top: 28px; }

.lp-textlink {
  color: var(--lp-text-strong);
  text-decoration: underline;
  text-decoration-color: #5c5c5c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.lp-textlink:hover { text-decoration-color: var(--lp-text-strong); }

/* Buttons & focus */
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.lp-btn--primary { background: var(--lp-action); color: #fff; }
.lp-btn--primary:hover { background: var(--lp-action-hover); }
.lp-btn--ghost { border-color: var(--lp-line-strong); background: none; color: var(--lp-text-soft); }
.lp-btn--ghost:hover { border-color: #5e5e5e; color: var(--lp-text-strong); }

.lp a:focus-visible,
.lp button:focus-visible,
.lp summary:focus-visible,
.lp input:focus-visible {
  outline: 2px solid #8fb4e6;
  outline-offset: 3px;
}

.lp-panel {
  background: var(--lp-panel);
  border-radius: 24px;
}
.lp-caption {
  margin-top: 14px;
  color: var(--lp-muted);
  font-size: 14px;
}

/* ===== Intro ===== */
.fg-intro { padding-block: clamp(64px, 8vw, 120px) clamp(24px, 3vw, 40px); }
.fg-intro-grid {
  display: grid;
  align-items: end;
  gap: 28px 72px;
}
@media (min-width: 980px) {
  .fg-intro-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.lp-tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--lp-panel);
  color: var(--lp-text-soft);
  font-size: 15px;
  line-height: 1.2;
}
.fg-display {
  max-width: 13em;
  color: var(--lp-text-strong);
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ===== Problem ===== */
.lp-split {
  display: grid;
  align-items: center;
  gap: 48px;
}
@media (min-width: 980px) {
  .lp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
}
.lp-scarcity { padding: clamp(20px, 3vw, 32px); }
.lp-bars-wrap {
  --lp-bar-gap: clamp(4px, 0.6vw, 7px);
  --lp-bar-w: calc((100% - 15 * var(--lp-bar-gap)) / 16);
  position: relative;
  height: clamp(180px, 24vw, 260px);
  border-bottom: 1px solid var(--lp-line-strong);
}
.lp-need-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6px;
  width: calc(3 * var(--lp-bar-w) + 2.5 * var(--lp-bar-gap) + 6px);
  border-right: 1px dashed var(--lp-blue-text);
  border-radius: 6px 0 0 0;
  background: rgba(56, 127, 180, 0.1);
}
.lp-need-label {
  position: absolute;
  top: 4px;
  left: calc(100% + 8px);
  color: var(--lp-blue-text);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lp-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  align-items: end;
  gap: var(--lp-bar-gap);
}
.lp-bars span {
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: #3a3a3a;
}
.lp-bars .is-need { background: var(--lp-blue); }
.lp-bars-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--lp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* ===== How it works ===== */
.lp-how {
  --lp-hw-blue: #0081b9;
  --lp-hw-tick: #a3a3a3;
}
.lp-how .lp-lead { margin-top: 24px; }

.lp-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: clamp(40px, 5vw, 72px);
}
.lp-step {
  position: relative;
  padding-left: 58px;
}
.lp-step-num {
  position: absolute;
  top: -3px;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lp-line-strong);
  border-radius: 50%;
  background: var(--lp-page);
  color: var(--lp-text-soft);
  font-size: 15px;
  font-weight: 700;
}
.lp-step p { max-width: 31em; margin-top: 10px; }
.lp-visual { align-self: start; min-width: 0; }

@media (min-width: 1000px) {
  .lp-pipeline {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px clamp(48px, 5vw, 88px);
  }
  .lp-step::after {
    content: "";
    position: absolute;
    top: 31px;
    bottom: -80px;
    left: 17px;
    width: 1px;
    background: var(--lp-line);
  }
  .lp-step--5::after { display: none; }
  .lp-step--1 { grid-column: 1; grid-row: 1; }
  .lp-step--2 { grid-column: 1; grid-row: 2; }
  .lp-visual--supply { grid-column: 2; grid-row: 1 / span 2; }
  .lp-step--3 { grid-column: 1; grid-row: 3; }
  .lp-visual--curve { grid-column: 2; grid-row: 3; }
  .lp-step--4 { grid-column: 1; grid-row: 4; }
  .lp-visual--output { grid-column: 2; grid-row: 4; }
  .lp-step--5 { grid-column: 1; grid-row: 5; }
  .lp-visual--filters { grid-column: 2; grid-row: 5; }
}

/* Shared panel parts */
.lp-hw-panel {
  padding: clamp(18px, 2.6vw, 28px);
  font-variant-numeric: tabular-nums;
}
.lp-hw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}
.lp-hw-title {
  color: var(--lp-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.lp-hw-sub {
  margin-top: 2px;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.4;
}
.lp-hw-pick { display: grid; gap: 6px; }
.lp-hw-pick-label { color: var(--lp-muted); font-size: 13px; line-height: 1.2; }
.lp-hw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Form controls carry .lp in front, so global input/button rules of the app can't override them */
.lp .lp-hw-chip {
  -webkit-appearance: none;
  appearance: none;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--lp-line);
  border-radius: 7px;
  background: transparent;
  color: var(--lp-text);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.lp .lp-hw-chip:hover { border-color: #4f4f4f; color: var(--lp-text-soft); }
.lp .lp-hw-chip[aria-pressed="true"] {
  border-color: #4f4f4f;
  background: var(--lp-card);
  color: var(--lp-text-strong);
}
.lp .lp-hw-chip:disabled { opacity: 0.35; cursor: not-allowed; }

.lp-hw-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.3;
}
.lp-hw-keys > span { display: inline-flex; align-items: center; gap: 8px; }
.lp-hw-key { display: inline-block; flex: none; }
.lp-hw-key--bar { width: 10px; height: 10px; border-radius: 2px; background: #4a4a4a; }
.lp-hw-key--tick { width: 2px; height: 12px; border-radius: 1px; background: var(--lp-hw-tick); }
.lp-hw-key--before { width: 2px; height: 12px; border-radius: 1px; background: var(--lp-hw-tick); opacity: 0.55; }
.lp-hw-key--after { width: 2px; height: 12px; border-radius: 1px; background: var(--lp-hw-blue); }

/* App-style controls (same look as the finder sidebar) */
.lp .lp-hw-input {
  -webkit-appearance: none;
  appearance: textfield;
  -moz-appearance: textfield;
  flex: none;
  width: 55px;
  height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  background: none;
  color: var(--lp-text);
  font: 14px/1 Inter, var(--lp-font);
  font-variant-numeric: tabular-nums;
}
.lp .lp-hw-input--box { width: 86px; height: 34px; padding: 0 7px; border-radius: 7px; }
.lp .lp-hw-input::-webkit-outer-spin-button,
.lp .lp-hw-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Panel A: drop distribution and listings */
.lp-hw-supply .lp-hw-keys { margin-top: 26px; }
.lp-hw-dist { margin-top: 14px; }
.lp-hw-plot-a { position: relative; cursor: pointer; }
.lp-hw-bars {
  display: block;
  width: 100%;
  height: clamp(110px, 15vw, 150px);
}
.lp-hw-bars path { fill: #4a4a4a; }
.lp-hw-strip { display: flex; height: 4px; }
.lp-hw-strip span { height: 100%; }
.lp-hw-ticks {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 10px;
  overflow: visible;
}
.lp-hw-ticks path,
.lp-hw-row path {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.lp-hw-ticks path { stroke: var(--lp-hw-tick); }
.lp-hw-outside {
  position: absolute;
  top: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
    rgba(28, 28, 28, 0.6);
  pointer-events: none;
}
.lp-hw-zone {
  position: absolute;
  top: -8px;
  bottom: -6px;
  border: 1px dashed rgba(0, 129, 185, 0.75);
  border-radius: 6px;
  background: rgba(0, 129, 185, 0.08);
  pointer-events: none;
}
.lp-hw-zone--hover {
  border-color: rgba(163, 163, 163, 0.45);
  background: rgba(255, 255, 255, 0.03);
}
.lp-hw-wearnames {
  position: relative;
  height: 18px;
  margin-top: 12px;
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 18px;
}
.lp .lp-hw-wearnames button {
  position: absolute;
  top: 0;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  transform: translateX(-50%);
  cursor: pointer;
  transition: color 0.15s;
}
.lp .lp-hw-wearnames button:hover,
.lp .lp-hw-wearnames button.is-hover { color: var(--lp-text-soft); }
.lp .lp-hw-wearnames button.is-active { color: var(--lp-text-strong); }
.lp .lp-hw-wearnames button:disabled { opacity: 0.35; cursor: default; }
.lp-hw-range {
  position: relative;
  height: 34px;
  margin-top: 6px;
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 1;
}
.lp-hw-range-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  border: 1px solid #555;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.lp-hw-range span:not(.lp-hw-range-line) { position: absolute; top: 16px; white-space: nowrap; }
.lp-hw-range-min { left: 0; }
.lp-hw-range-max { right: 0; }
.lp-hw-range-mid { left: 50%; transform: translateX(-50%); }

.lp-hw-volume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-line);
}
.lp-hw-volume label { color: var(--lp-text); font: 16px/1.3 Inter, var(--lp-font); }
.lp-hw-volume p { flex-basis: 100%; font-size: 15px; line-height: 1.5; }

.lp-hw-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}
.lp-hw-table th,
.lp-hw-table td { padding: 8px 2px; }
.lp-hw-table thead th { color: var(--lp-text-soft); font-weight: 700; }
.lp-hw-table thead abbr {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--c);
  text-decoration: none;
}
.lp-hw-table tbody th {
  width: 74px;
  padding-left: 0;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.lp-hw-table td { color: var(--lp-text-soft); }
.lp-hw-table [data-col] { cursor: pointer; transition: background-color 0.15s; }
.lp-hw-table .is-zoomed { background: rgba(0, 129, 185, 0.1); }
.lp-hw-table .is-hover:not(.is-zoomed) { background: rgba(255, 255, 255, 0.03); }
.lp-hw-table thead .is-zoomed,
.lp-hw-table thead .is-hover { border-radius: 6px 6px 0 0; }
.lp-hw-table tbody tr:last-child .is-zoomed,
.lp-hw-table tbody tr:last-child .is-hover { border-radius: 0 0 6px 6px; }

/* Panel B: one wear zoomed in, availability curve */
.lp-hw-controls {
  max-width: 400px;
  margin-top: 24px;
  font-family: Inter, var(--lp-font);
  line-height: normal;
}
.lp-hw-ctl-row { display: flex; align-items: center; gap: 12px; }
.lp-hw-ctl-row--below { margin-top: 18px; }
.lp-hw-ctl-row label { margin-right: auto; color: var(--lp-text); font-size: 14px; }
.lp-hw-ctl-row output { color: var(--lp-text); font-size: 14px; }
.lp-hw-hint { margin-top: 6px; color: var(--lp-muted); font-size: 13px; line-height: 1.4; }
.lp .lp-hw-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 16px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.lp .lp-hw-slider:focus-visible { outline: 2px solid #8fb4e6; outline-offset: 3px; }
.lp .lp-hw-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 1.5px; background: #a3a3a3; }
.lp .lp-hw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 1px solid #363636;
  border-radius: 50%;
  background: #a3a3a3;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}
.lp .lp-hw-slider::-moz-range-track { height: 3px; border-radius: 1.5px; background: #a3a3a3; }
.lp .lp-hw-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 1px solid #363636;
  border-radius: 50%;
  background: #a3a3a3;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.lp-hw-graph {
  --lp-hw-plot-h: clamp(140px, 17vw, 180px);
  display: grid;
  grid-template-columns: 14px 18px minmax(0, 1fr);
  margin-top: 32px;
  font-family: Inter, var(--lp-font);
  line-height: normal;
}
.lp-hw-graph-ylabel {
  height: var(--lp-hw-plot-h);
  color: rgba(163, 163, 163, 0.7);
  font-size: 12px;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.lp-hw-graph-yvals { position: relative; height: var(--lp-hw-plot-h); }
.lp-hw-graph-yvals span {
  position: absolute;
  right: 5px;
  color: rgba(163, 163, 163, 0.5);
  font-size: 11px;
  line-height: 11px;
}
.lp-hw-graph-yvals span:first-child { top: -5.5px; }
.lp-hw-graph-yvals span:last-child { bottom: -5.5px; }
.lp-hw-graph-main { min-width: 0; }
.lp-hw-plot {
  position: relative;
  height: var(--lp-hw-plot-h);
  border-bottom: 1px solid var(--lp-line);
  border-left: 1px solid var(--lp-line);
  cursor: crosshair;
  touch-action: pan-y;
}
.lp-hw-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-hw-area { fill: var(--lp-hw-blue); fill-opacity: 0.15; }
.lp-hw-line { fill: none; stroke: var(--lp-hw-blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lp-hw-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #6b6b6b;
  pointer-events: none;
}
.lp-hw-hover-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lp-text-strong);
  box-shadow: 0 0 0 3px var(--lp-panel);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.lp-hw-hover-label {
  position: absolute;
  padding: 4px 8px;
  border-radius: 6px;
  background: #2b2b2b;
  color: var(--lp-text-strong);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.lp-hw-plot [hidden] { display: none; }
.lp-hw-graph-x {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: rgba(163, 163, 163, 0.5);
  font-size: 11px;
}
.lp-hw-graph-x span:nth-child(2) { color: rgba(163, 163, 163, 0.7); font-size: 12px; }

.lp-hw-rows { margin-top: 22px; font-family: var(--lp-font); }
.lp-hw-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lp-text);
  font-size: 13px;
  line-height: 1.3;
}
.lp-hw-row-label span:last-child { margin-left: auto; color: var(--lp-text-soft); }
.lp-hw-row {
  display: block;
  width: 100%;
  height: 18px;
  margin-top: 6px;
  overflow: visible;
  background: linear-gradient(#2e2e2e, #2e2e2e) left bottom / 100% 1px no-repeat;
}
.lp-hw-row + .lp-hw-row-label { margin-top: 14px; }
.lp-hw-row-before { stroke: var(--lp-hw-tick); stroke-opacity: 0.55; }
.lp-hw-row-after { stroke: var(--lp-hw-blue); stroke-width: 2; }

.lp-hw-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-line);
}
.lp-hw-stats dt { color: var(--lp-muted); font-size: 13px; line-height: 1.3; }
.lp-hw-stats dd { margin-top: 4px; }
.lp-hw-stats dd > span:first-child {
  display: block;
  color: var(--lp-text-strong);
  font-size: 24px;
  line-height: 1.1;
}
.lp-hw-stats dd > span + span { display: block; margin-top: 4px; color: var(--lp-muted); font-size: 13px; line-height: 1.3; }
.lp-hw-foot { margin-top: 18px; color: rgba(163, 163, 163, 0.7); font-size: 12px; line-height: 1.5; }

/* Panel C: output card, same markup and sizes as the calculator */
.lp-hw-output {
  display: grid;
  gap: 26px 36px;
  align-items: center;
}
@media (min-width: 560px) {
  .lp-hw-output { grid-template-columns: auto minmax(0, 1fr); }
}
.lp-hw-card {
  justify-self: center;
  width: 175px;
  padding: 8px 9px;
  border-radius: 14px;
  background: var(--lp-card);
  font-family: Inter, var(--lp-font);
  line-height: normal;
  zoom: 1.25;
}
.lp-hw-card p { margin: 0; }
.lp-hw-card-name { color: var(--lp-text-soft); font-size: 11px; font-weight: 500; }
.lp-hw-card-coll { margin-top: 3px !important; color: rgba(163, 163, 163, 0.5); font-size: 10px; }
.lp-hw-card-img {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--rarity-color) 12%, transparent) 100%);
}
.lp-hw-card-img img {
  display: block;
  width: 77%;
  height: auto;
  padding: 4px 0;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.lp-hw-card-stripe { height: 2px; border-radius: 0 0 2px 2px; background: var(--rarity-color); }
.lp-hw-card-block { margin-top: 10px; }
.lp-hw-card-upper { display: flex; }
.lp-hw-card-upper p { font-size: 9px; }
.lp-hw-card-upper p:first-child { margin-top: auto; color: rgba(163, 163, 163, 0.7); font-weight: 600; }
.lp-hw-card-upper p + p { margin-left: auto; color: rgba(163, 163, 163, 0.5); }
.lp-hw-card-value { margin-top: 3px !important; color: var(--lp-text); font-size: 12px; }
.lp-hw-card-bar { position: relative; margin: 4px 0 6px; }
.lp-hw-card-bar svg { display: block; border-radius: 2px; }
.lp-hw-card-pointer { position: absolute; top: -2px; left: calc(var(--wear) * 100% - 2px); }
.lp-hw-card-price { position: relative; display: flex; }
.lp-hw-card-input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 27px;
  margin-top: 3px;
  padding: 0 18px 0 9px;
  border: 1px solid var(--lp-line);
  border-radius: 6px;
  color: var(--lp-text);
  font-size: 12px;
}
.lp-hw-card-input.is-used {
  border-color: rgba(82, 164, 154, 0.8);
  box-shadow: 0 0 0 2px rgba(82, 164, 154, 0.18);
}
.lp-hw-card-cur {
  position: absolute;
  top: 3px;
  right: 9px;
  bottom: 0;
  display: flex;
  align-items: center;
  color: rgba(163, 163, 163, 0.5);
  font-size: 12px;
}

.lp-hw-notes { display: grid; gap: 20px; }
.lp-hw-notes dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-text-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.lp-hw-notes dt::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: 1.5px solid #5c5c5c;
  border-radius: 3px;
}
.lp-hw-notes .is-used dt::before { border-color: var(--lp-teal); background: rgba(82, 164, 154, 0.25); }
.lp-hw-notes .is-chance dt::before { border-color: var(--lp-hw-blue); background: var(--lp-hw-blue); }
.lp-hw-notes dd { margin-top: 4px; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.lp-hw-ev {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--lp-line);
  font-size: 15px;
}
.lp-hw-ev strong { color: var(--lp-teal); font-weight: 400; }

/* Panel D: finder filters, same markup and sizes as the sidebar */
.lp-hw-filters {
  display: grid;
  column-gap: 30px;
  padding: 4px clamp(18px, 2.6vw, 30px) 8px;
  font-family: Inter, var(--lp-font);
  line-height: normal;
}
@media (min-width: 620px) {
  .lp-hw-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-hw-filter:nth-last-child(-n + 2) { border-bottom: 0; }
}
.lp-hw-filter { padding-bottom: 28px; border-bottom: 1px solid var(--lp-page); }
.lp-hw-filter:last-child { border-bottom: 0; }
.lp-hw-filter-head { display: flex; margin-bottom: 12px; }
.lp-hw-filter-head p { margin: 16px 0; color: var(--lp-text); font-size: 16px; }
.lp-hw-chevron { flex: none; margin: 19px 0 0 auto; color: var(--lp-text); }
.lp-hw-filter-body { padding: 0 4px; }
.lp-hw-dd { display: flex; align-items: center; color: var(--lp-text); font-size: 14px; }
.lp-hw-dd svg { margin-left: 3px; }
.lp-hw-box {
  display: flex;
  align-items: center;
  width: 86px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid var(--lp-line);
  border-radius: 7px;
  color: var(--lp-text);
  font-size: 14px;
}
.lp-hw-cost-line { position: relative; height: 6px; margin-bottom: 30px; }
.lp-hw-cost-line > span { display: block; height: 6px; border-radius: 3px; background: var(--lp-hw-blue); }
.lp-hw-cost-line svg { position: absolute; top: 2px; }
.lp-hw-cost-line svg:first-of-type { left: -6px; }
.lp-hw-cost-line svg:last-of-type { right: -6px; }
.lp-hw-fromto { display: flex; }
.lp-hw-sep { width: 6px; height: 1.5px; margin: auto; background: rgba(163, 163, 163, 0.5); }

/* ===== Live screen ===== */
.lp-screen-panel { padding: clamp(18px, 2.6vw, 28px); font-variant-numeric: tabular-nums; }
.lp-screen-cases { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) {
  .lp-screen-cases { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.lp-screen-case { padding: 16px 18px 18px; border-radius: 14px; background: var(--lp-card); }
.lp-screen-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lp-line);
  color: var(--lp-text);
  font: 14px/1.3 Inter, var(--lp-font);
}
.lp-screen-setting .lp-hw-box { flex: none; width: 64px; }
.lp-screen-stats { display: grid; gap: 14px; margin-top: 16px; }
.lp-screen-stats dt { color: var(--lp-muted); font-size: 13px; line-height: 1.3; }
.lp-screen-stats dd { margin-top: 2px; color: var(--lp-text-soft); font-size: 16px; line-height: 1.3; }
.lp-screen-roi dd {
  color: var(--lp-text-strong);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lp-screen-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--lp-text-strong);
  font-size: 14px;
  font-weight: 700;
}
.lp-screen-verdict::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v);
}

/* ===== Glossary ===== */
.lp-metrics .lp-lead { margin-top: 20px; }
.lp-metrics-link { margin-top: 32px; max-width: 46em; }
.lp-glossary {
  display: grid;
  column-gap: 48px;
  margin-top: clamp(36px, 4vw, 56px);
}
@media (min-width: 720px) {
  .lp-glossary { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .lp-glossary { grid-template-columns: repeat(3, 1fr); }
}
.lp-glossary > div {
  padding-block: 22px;
  border-top: 1px solid var(--lp-line);
}
.lp-glossary dt {
  color: var(--lp-text-strong);
  font-size: 17px;
  font-weight: 700;
}
.lp-glossary dd {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.lp-faq-grid {
  display: grid;
  gap: 32px 72px;
}
@media (min-width: 980px) {
  .lp-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; }
}
.lp-qa { border-top: 1px solid var(--lp-line); }
.lp-qa:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-qa summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  color: var(--lp-text-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa-icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
}
.lp-qa-icon::before,
.lp-qa-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--lp-text);
  transition: transform 0.2s;
}
.lp-qa-icon::after { transform: rotate(90deg); }
.lp-qa[open] .lp-qa-icon::after { transform: rotate(0deg); }
.lp-qa-a {
  max-width: 40em;
  padding: 0 40px 26px 0;
}
@media (max-width: 600px) {
  .lp-qa-a { padding-right: 0; }
}

/* ===== Final CTA ===== */
.lp-final { padding-top: 0; }
.lp-final-panel { padding: clamp(32px, 6vw, 80px); }
.lp-final-panel .lp-lead { margin-top: 18px; }

/* ===== Footer ===== */
.lp-footer {
  border-top: 1px solid var(--lp-line);
  background: var(--lp-panel);
}
.lp-footer-inner {
  display: grid;
  gap: 20px;
  padding-block: 40px 48px;
}
.lp-footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.lp-footer-links a {
  color: var(--lp-text);
  font-size: 15px;
  text-decoration: none;
}
.lp-footer-links a:hover { color: var(--lp-text-strong); }
.lp-footer-note {
  max-width: 62em;
  color: var(--lp-muted);
  font-size: 14px;
}