/* ============================================================
   Taigers — case pages (e.g. /cases/sneakerpicks)
   Builds on styles.css tokens and components
   ============================================================ */

.case-page section { padding: clamp(72px, 9vw, 140px) 0; }

/* ---------- Hero ---------- */
.case-hero { padding-top: clamp(140px, 16vw, 200px) !important; padding-bottom: 48px !important; }
.case-hero .crumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 13px; color: var(--muted-2); margin-bottom: 28px;
}
.case-hero .crumbs a:hover { color: var(--turquoise); }
.case-hero h1 {
  font-size: clamp(36px, 9vw, 120px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-top: 22px;
}
.case-hero .lede {
  margin-top: 28px;
  max-width: 760px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
}
.case-hero .lede b { color: var(--white); font-weight: 600; }
.case-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 36px; }

.case-facts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline);
}
.case-facts > div { padding: 24px 24px 24px 0; }
.case-facts > div + div { padding-left: 24px; border-left: 1px solid var(--hairline); }
.case-facts b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-facts span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-facts > div { padding: 18px 12px 18px 0; }
  .case-facts > div + div { padding-left: 0; border-left: 0; }
  .case-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hairline); }
  .case-facts > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

/* ---------- Browser-frame screenshots ---------- */
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: #0c0e16;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(70,199,199,0.06);
}
.shot .bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--hairline);
}
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.shot .bar span {
  margin-left: 10px; font-size: 12px; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot img { display: block; width: 100%; height: auto; }
.case-hero .shot { margin-top: 64px; }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem {
  border-radius: 22px; padding: 30px;
  background: linear-gradient(180deg, rgba(20,24,38,0.72), rgba(12,14,22,0.78));
  border: 1px solid var(--hairline);
}
.problem .q {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.problem p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- Feature rows (text + visual) ---------- */
.feature {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(80px, 9vw, 140px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy .kicker {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--turquoise);
}
.feature-copy h3 { font-size: clamp(28px, 3vw, 42px); margin: 16px 0 20px; line-height: 1.08; }
.feature-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.feature-copy p + p { margin-top: 14px; }
.feature-copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-copy li {
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.5; color: var(--white);
}
.feature-copy li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 2px; background: var(--gradient); border-radius: 2px;
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- Taste-profile mockup ---------- */
.taste {
  border-radius: 22px; padding: 28px;
  background: linear-gradient(180deg, rgba(20,24,38,0.82), rgba(12,14,22,0.88));
  border: 1px solid var(--hairline-2);
  display: grid; gap: 22px;
}
.taste .label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 10px;
}
.taste .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.taste .chip {
  font-size: 13px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-2); color: var(--muted);
}
.taste .chip.like { border-color: rgba(70,199,199,0.5); color: var(--white); background: rgba(70,199,199,0.10); }
.taste .chip.nope { text-decoration: line-through; opacity: 0.55; }
.taste .bars { display: grid; gap: 10px; }
.taste .bars div { display: grid; grid-template-columns: 110px 1fr 38px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.taste .bars s {
  display: block; height: 6px; border-radius: 6px; text-decoration: none;
  background: var(--gradient); box-shadow: 0 0 12px rgba(70,199,199,0.35);
}
.taste .bars em { font-style: normal; text-align: right; color: var(--white); }
.taste .rec {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: 14px; border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.03);
}
.taste .rec .thumb {
  width: 54px; height: 54px; border-radius: 10px; flex: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(70,199,199,0.35), rgba(58,91,160,0.15) 70%), #0c0e16;
  display: grid; place-items: center; font-size: 24px;
}
.taste .rec b { display: block; font-size: 15px; }
.taste .rec span { font-size: 13px; color: var(--muted); }
.taste .rec .why { color: var(--turquoise); }

/* ---------- Price-history mockup ---------- */
.pricechart {
  border-radius: 22px; padding: 28px;
  background: linear-gradient(180deg, rgba(20,24,38,0.82), rgba(12,14,22,0.88));
  border: 1px solid var(--hairline-2);
}
.pricechart .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pricechart .top b { font-size: 15px; }
.pricechart .verdict {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: #ffb38a;
  border: 1px solid rgba(241,97,34,0.45); background: rgba(241,97,34,0.10);
}
.pricechart svg { display: block; width: 100%; height: auto; margin: 22px 0 14px; overflow: visible; }
.pricechart .legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pricechart .legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; }

/* ---------- Tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool {
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,24,38,0.72), rgba(12,14,22,0.78));
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  transition: border-color 0.4s, transform 0.4s;
}
.tool:hover { border-color: var(--hairline-2); transform: translateY(-2px); }
.tool .img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--hairline); background: #0c0e16; }
.tool .img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.tool .body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool .tag { font-size: 11px; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; }
.tool h3 { font-size: 22px; }
.tool p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.tool .more {
  margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--white); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.tool .more:hover { color: var(--turquoise); }
.tool .more svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- Under the hood ---------- */
.stack {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-2);
}
.stack > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--hairline); }
.stack > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--hairline); }
.stack b { display: block; font-size: 16px; margin-bottom: 8px; }
.stack p { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .stack { grid-template-columns: 1fr; }
  .stack > div, .stack > div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
}

/* ---------- Quote ---------- */
.case-quote {
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.case-quote .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-quote-meta { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* ---------- Closing CTA ---------- */
.case-cta {
  border-radius: 28px;
  padding: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(70,199,199,0.22), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(58,91,160,0.28), transparent 60%),
    linear-gradient(180deg, rgba(20,24,38,0.8), rgba(12,14,22,0.85));
  border: 1px solid var(--hairline-2);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.case-cta h2 { font-size: clamp(36px, 5vw, 68px); }
.case-cta p { margin-top: 16px; color: var(--muted); max-width: 560px; font-size: 17px; line-height: 1.55; }
@media (max-width: 800px) { .case-cta { grid-template-columns: 1fr; } }

.case-page footer { position: relative; z-index: 2; }

/* ---------- Topbar: solid glass once scrolled, so content never runs through it ---------- */
.case-page .topbar {
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
  border-bottom: 1px solid transparent;
}
.case-page .topbar .wordmark img { transition: height 0.3s ease; }
.case-page .topbar .beeldmerk-corner { transition: width 0.3s ease, height 0.3s ease; }
.case-page .topbar.is-scrolled {
  background: rgba(10, 12, 20, 0.86);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--hairline);
  padding-top: 6px;
  padding-bottom: 6px;
}
.case-page .topbar.is-scrolled .wordmark img { height: 58px !important; }
.case-page .topbar.is-scrolled .beeldmerk-corner { width: 34px; height: 34px; }
@media (max-width: 800px) {
  .case-page .topbar.is-scrolled .wordmark img { height: 32px !important; }
}
