/* ==========================================================================
   Get Spotify Free - dark, app-style UI
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #121212;          /* page */
  --bg-deep: #000000;     /* header / footer */
  --elev-1: #181818;      /* cards */
  --elev-2: #1f1f1f;      /* card hover, inputs */
  --elev-3: #2a2a2a;      /* chips, borders on dark */
  --line: #2a2a2a;
  --line-strong: #3e3e3e;

  --text: #ffffff;
  --text-2: #b3b3b3;      /* secondary */
  --text-3: #7c7c7c;      /* tertiary */

  --green: #1fdf64;       /* primary accent */
  --green-hover: #3be477;
  --on-green: #000000;
  --red: #f15e6c;

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type scale - compact, app-like */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --pill: 999px;

  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.3, 0, 0, 1);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; } /* clear the sticky header on #anchor jumps */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }
p a:hover, li a:hover { text-decoration-color: var(--green); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--on-green); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.04em; }
h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--text); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.lede { font-size: var(--fs-md); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.accent { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: var(--on-green); padding: 8px 14px; border-radius: var(--pill); font-weight: 700; }
.skip:focus { left: 8px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.sec-head a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--pill);
  font: 700 var(--fs-base)/1 var(--font); letter-spacing: 0.01em;
  border: 1px solid var(--text-3); color: var(--text); background: transparent;
  cursor: pointer; transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s;
}
.btn:hover { transform: scale(1.04); border-color: var(--text); }
.btn:active { transform: scale(1); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn svg { flex: none; }

.play {
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--on-green); box-shadow: var(--shadow);
  transition: transform 0.15s var(--ease), background 0.15s;
}
.play:hover { transform: scale(1.06); background: var(--green-hover); }

/* ---------- "Now playing" equaliser (CSS only) ---------- */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; }
.eq i { flex: 1; background: var(--green); border-radius: 1px; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 60%; animation-delay: -0.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.6s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -0.4s; }
.eq i:nth-child(4) { height: 80%; animation-delay: -0.8s; }
.eq i { transform-origin: bottom; }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr-bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
@media (max-width: 480px) { .logo-full { display: none; } }
@media (min-width: 481px) { .logo-short { display: none; } }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; }
.links { display: flex; gap: 8px; margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--pill);
  background: var(--elev-3); color: var(--text); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: background 0.15s;
}
.chip:hover { background: #333; }
.chip[aria-current='page'] { background: var(--text); color: #000; }
@media (max-width: 860px) {
  .hdr-bar { gap: 16px; }
  .links {
    min-width: 0; overflow-x: auto; scrollbar-width: none; padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .links::-webkit-scrollbar { display: none; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0d5c2f 0%, #0b3a20 45%, var(--bg) 100%);
  padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { color: rgba(255, 255, 255, 0.78); }
.hero-meta { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Centered hero */
.hero-center { text-align: center; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); }
.hero-center h1 { max-width: 18ch; margin-inline: auto; }
.hero-center .lede { margin-inline: auto; }
.hero-center .hero-meta, .hero-center .ctas { justify-content: center; }

/* ---------- Features (one section per feature) ---------- */
.feat-intro { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); }
.feat-intro h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; margin-bottom: 8px; }
.feat-intro .muted { margin-bottom: 20px; }
.feat-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.feat-row {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line);
}
.feat-row:nth-of-type(even) .feat-art { order: 2; }
/* The panel takes each image's own shape: whole image, never cropped, stretched or upscaled */
.feat-art {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--tone); /* placeholder colour while the image loads */
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.feat-art img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.feat-row:hover .feat-art img { transform: scale(1.02); }
.feat-num {
  position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 10px; border-radius: var(--pill);
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.04em; color: #fff;
}
.feat-body h3 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; }
.feat-lead { color: var(--text-2); margin-bottom: 20px; max-width: 58ch; }
.feat-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.feat-compare div { background: var(--elev-1); border-radius: var(--r); padding: 14px 16px; border-left: 3px solid var(--elev-3); }
.feat-compare .is-premium { border-left-color: var(--green); }
.feat-compare dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.feat-compare .is-premium dt { color: var(--green); }
.feat-compare dd { margin: 0; font-size: var(--fs-sm); }

.tier {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.tier::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier-free { background: rgba(31, 223, 100, 0.12); color: var(--green); }
.tier-better { background: rgba(80, 155, 245, 0.14); color: #7ab4ff; }
.tier-premium { background: rgba(232, 17, 91, 0.14); color: #ff6b9a; }
.feat-note { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 760px) {
  .feat-row { grid-template-columns: 1fr; gap: 16px; }
  .feat-row:nth-of-type(even) .feat-art { order: 0; }
}
@media (max-width: 480px) {
  .feat-compare { grid-template-columns: 1fr; }
}

/* ---------- Browse tiles (categories / guides) ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; overflow: hidden; aspect-ratio: 1 / 0.62; border-radius: var(--r);
  background: var(--tone); padding: 16px; display: block;
  transition: transform 0.2s var(--ease);
}
.tile:hover { transform: scale(1.02); }
.tile h3 { font-size: var(--fs-lg); font-weight: 800; margin: 0; max-width: 70%; line-height: 1.15; }
.tile-art {
  position: absolute; right: -10px; bottom: -6px; width: 44%; aspect-ratio: 1; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.25); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: rotate(25deg); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9);
}
.tile-art svg { width: 55%; height: 55%; transform: rotate(-25deg); }

/* ---------- Content split + cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.panel { background: var(--elev-1); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.risk-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.risk-list li { display: flex; gap: 14px; padding: 16px; background: var(--elev-2); border-radius: var(--r); color: var(--text-2); }
.risk-list li strong { display: block; color: var(--text); margin-bottom: 2px; }
.risk-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(241, 94, 108, 0.15); color: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--elev-1); border-radius: var(--r); transition: background 0.15s; }
.faq details:hover, .faq details[open] { background: var(--elev-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--text-2); transition: transform 0.2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--green); }
.faq details p { color: var(--text-2); margin: 0; padding: 0 20px 18px; max-width: 72ch; }

/* ---------- Playlist-style page header (categories + guides) ---------- */
.page-head {
  background: linear-gradient(180deg, var(--tone, #535353) 0%, color-mix(in srgb, var(--tone, #535353) 45%, var(--bg)) 70%, var(--bg) 100%);
  padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px);
}
.ph-grid { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 32px); }
.ph-art {
  flex: none; width: clamp(128px, 18vw, 232px); aspect-ratio: 1; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 40%, #000));
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55); display: grid; place-items: center; color: rgba(255, 255, 255, 0.92);
}
.ph-art svg { width: 42%; height: 42%; }
.ph-type { font-size: var(--fs-sm); font-weight: 700; margin: 0 0 4px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { color: rgba(255, 255, 255, 0.75); font-size: var(--fs-base); margin-bottom: 8px; }
.ph-meta { font-size: var(--fs-sm); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.ph-meta span { color: rgba(255, 255, 255, 0.7); font-weight: 400; }
.crumbs { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.action-bar { display: flex; align-items: center; gap: 20px; padding-block: 8px 24px; }
.action-bar p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .ph-grid { flex-direction: column; align-items: flex-start; }
}

/* ---------- Empty state ---------- */
.empty-wrap { padding-bottom: clamp(48px, 8vw, 96px); }
.empty { background: var(--elev-1); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 64px) 24px; text-align: center; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--elev-3); display: grid; place-items: center; color: var(--text-2); }
.empty h2 { font-size: var(--fs-lg); margin-bottom: 8px; }
.empty p { color: var(--text-2); max-width: 44ch; margin: 0 auto 24px; }

/* ---------- Newsletter ---------- */
.nl { padding-block: clamp(40px, 6vw, 72px); }
.nl-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, #1e3264 0%, #3a1f6e 55%, #8400e7 130%);
}
.nl h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; margin-bottom: 8px; }
.nl .muted { color: rgba(255, 255, 255, 0.78); margin: 0; }
.nl-row { display: flex; gap: 8px; }
.nl input[type='email'] {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: var(--pill);
  border: 1px solid transparent; background: var(--text); color: #000; font: 500 var(--fs-base) var(--font);
}
.nl input[type='email']::placeholder { color: #6a6a6a; }
.nl input[type='email']:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.nl-msg { min-height: 1.4em; margin: 10px 0 0 4px; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.8); }
.nl-msg[data-state='ok'] { color: var(--green); font-weight: 700; }
.nl-msg[data-state='error'] { color: #ffb3bb; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.ftr { background: var(--bg); padding-block: 48px 32px; border-top: 1px solid var(--line); }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.ftr-brand { margin: 0 0 8px; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.ftr-nav { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.ftr-head { font-weight: 700; margin: 0 0 4px; }
.ftr-nav a { color: var(--text-2); font-size: var(--fs-sm); }
.ftr-nav a:hover { color: var(--text); text-decoration: underline; }
.disclaimer {
  margin-top: 40px; padding: 20px 24px; border-radius: var(--r-lg);
  background: var(--elev-1); border: 1px solid var(--line);
}
.disclaimer h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); margin: 0 0 10px; }
.disclaimer h2 svg { color: var(--text-2); }
.disclaimer p { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.6; margin: 0 0 8px; max-width: 110ch; }
.disclaimer p:last-child { margin-bottom: 0; }
.ftr-legal { margin: 20px 0 0; color: var(--text-3); font-size: var(--fs-xs); }

/* ==========================================================================
   Homepage reference sections (01-11)
   ========================================================================== */

/* Jump bar under the hero */
.jump { position: sticky; top: 64px; z-index: 40; background: rgba(18, 18, 18, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.jump-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.jump-row::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.jump a span { font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.jump a:hover { color: var(--text); background: var(--elev-2); }
.jump a:hover span { color: var(--green); }
[id] { scroll-margin-top: 128px; }

/* Section shell + numbered header */
.hs { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.hs:first-of-type { border-top: 0; }
.hs-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 20px; align-items: start; margin-bottom: clamp(24px, 4vw, 36px); max-width: 860px; }
.hs-num {
  font-size: 2.5rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1.5px var(--green); padding-top: 2px;
}
.hs-kicker { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.hs-head h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; margin-bottom: 10px; }
.hs-dek { margin: 0; color: var(--text-2); max-width: 66ch; }
.hs-foot { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.hs-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.nv { color: var(--text-3); font-weight: 500; font-style: italic; }
.split > .hs-head { grid-column: 1; }

/* 01 - App spec sheet */
.spec { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--elev-1), var(--bg)); overflow: hidden; }
.spec-top { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.spec-mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #000; flex: none; box-shadow: 0 8px 24px rgba(31, 223, 100, 0.25); }
.spec-id { flex: 1; min-width: 180px; }
.spec-name { margin: 0; font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.spec-dev { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.spec-cta { min-height: 40px; padding: 0 18px; font-size: var(--fs-sm); }
.spec-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; }
.spec-grid div { padding: 18px 24px; border-right: 1px solid var(--line); }
.spec-grid div:last-child { border-right: 0; }
.spec-grid dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.spec-grid dd { margin: 0; font-weight: 700; font-size: var(--fs-base); }
.spec-grid code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.85em; background: var(--elev-3); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 1000px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } .spec-grid div:nth-child(3) { border-right: 0; } .spec-grid div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr 1fr; } .spec-grid div { border-right: 0; border-bottom: 1px solid var(--line); } .spec-grid div:nth-child(odd) { border-right: 1px solid var(--line); } .spec-grid div:nth-last-child(-n+2) { border-bottom: 0; } }

/* 02 - Changelog */
.changelog { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cl-col { padding: 20px; border-right: 1px solid var(--line); min-height: 150px; }
.cl-col:last-child { border-right: 0; }
.cl-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; }
.cl-head span { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cl-new { --c: var(--green); } .cl-improved { --c: #509bf5; } .cl-fixed { --c: #ffb547; } .cl-known { --c: var(--red); }
.cl-col ul { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: var(--fs-sm); }
.cl-col li { margin-bottom: 6px; }
.cl-col li::marker { color: var(--c); }
.cl-empty { margin: 0; color: var(--text-3); font-size: var(--fs-sm); font-style: italic; }
.diff { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.diff-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--elev-1); font-size: var(--fs-sm); font-weight: 700; }
.diff-vers { color: var(--text-2); font-weight: 600; }
.diff-empty { margin: 0; padding: 16px 20px; color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 900px) { .changelog { grid-template-columns: 1fr 1fr; } .cl-col:nth-child(2) { border-right: 0; } .cl-col:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .changelog { grid-template-columns: 1fr; } .cl-col { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; } .cl-col:last-child { border-bottom: 0; } }

/* Shared data table */
.dtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.dtable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 480px; }
.dtable th, .dtable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dtable thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--elev-1); }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable-empty { color: var(--text-3); font-style: italic; text-align: center !important; padding: 28px 16px !important; }
.diff .dtable { min-width: 0; }

/* 03 - Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: var(--fs-sm); }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { vertical-align: bottom; padding-block: 20px 16px; background: var(--elev-1); border-bottom: 1px solid var(--line-strong); }
.cmp-plan { display: block; font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.02em; }
.cmp-sub { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); }
.cmp tbody th { font-weight: 600; width: 24%; }
.cmp .cmp-hl { background: rgba(31, 223, 100, 0.05); }
.cmp thead .cmp-hl { background: rgba(31, 223, 100, 0.1); box-shadow: inset 0 3px 0 var(--green); }
.cmp thead .cmp-hl .cmp-plan { color: var(--green); }
.cmp-group th { padding-block: 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--bg); }
.cmp tbody:last-child tr:last-child > * { border-bottom: 0; }
.cm { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.cm > span { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800; margin-top: 1px; }
.cm-yes > span { background: rgba(31, 223, 100, 0.16); color: var(--green); }
.cm-limited > span { background: rgba(255, 181, 71, 0.16); color: #ffb547; }
.cm-no { color: var(--text-2); } .cm-no > span { background: rgba(241, 94, 108, 0.16); color: var(--red); }
.cm-unverified { color: var(--text-3); } .cm-unverified > span { background: var(--elev-3); color: var(--text-2); }

/* 04 - feature jump, left aligned inside numbered section */
.feat-jump-left { justify-content: flex-start; margin-bottom: 8px; }

/* 05 - Compatibility */
.compat { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.compat > * { min-width: 0; } /* let the devices table scroll inside its frame instead of widening the page */
.compat-title { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.compat-matrix ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compat-matrix li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.compat-matrix li:last-child { border-bottom: 0; }
.compat-matrix li:nth-child(odd) { background: var(--elev-1); }
.cv-ver { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cv-ver svg { color: var(--green); }
.cv-note { width: 100%; color: var(--text-2); font-size: var(--fs-xs); }
@media (max-width: 860px) { .compat { grid-template-columns: 1fr; } }

/* 06 - Timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 760px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--line) 40%); }
.timeline li { position: relative; padding: 0 0 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.timeline li.is-current::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px rgba(31, 223, 100, 0.18); }
.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: var(--fs-sm); }
.tl-ver { font-weight: 800; font-size: var(--fs-md); }
.tl-meta time { color: var(--text-3); }
.tl-badge { font-size: var(--fs-xs); font-weight: 700; color: var(--on-green); background: var(--green); border-radius: var(--pill); padding: 2px 8px; }
.timeline p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.tl-issues { margin-top: 6px !important; }
.timeline-empty li:not(.is-current) { opacity: 0.6; }

/* 08 - Security */
.verify { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.verify-col { border-radius: var(--r-lg); padding: 22px 24px; border: 1px solid; }
.verify-can { border-color: rgba(31, 223, 100, 0.3); background: rgba(31, 223, 100, 0.05); }
.verify-cannot { border-color: rgba(241, 94, 108, 0.3); background: rgba(241, 94, 108, 0.05); }
.verify-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 800; font-size: var(--fs-md); }
.verify-head span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-sm); }
.verify-can .verify-head span { background: var(--green); color: #000; }
.verify-cannot .verify-head span { background: var(--red); color: #000; }
.verify-col ul { margin: 0; padding: 0; list-style: none; }
.verify-col li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: var(--fs-sm); color: var(--text-2); }
.verify-col li:first-child { border-top: 0; padding-top: 0; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.sec-grid h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.risks { margin: 0; }
.risks div { padding: 12px 0; border-top: 1px solid var(--line); }
.risks div:first-child { border-top: 0; padding-top: 0; }
.risks dt { font-weight: 700; margin-bottom: 2px; }
.risks dd { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.steps-list { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; font-size: var(--fs-sm); color: var(--text-2); }
.steps-list li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--elev-3); color: var(--text); font-size: var(--fs-xs); font-weight: 800; }
.perm-title { margin-top: 8px; }
@media (max-width: 760px) { .verify, .sec-grid { grid-template-columns: 1fr; } }

/* What is Spotify Premium APK - definition + key facts */
.whatis { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.whatis-text p { color: var(--text-2); margin-bottom: 14px; max-width: 68ch; }
.whatis-def { color: var(--text) !important; font-size: var(--fs-md); line-height: 1.6; padding-left: 18px; border-left: 3px solid var(--green); }
.whatis-facts { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; }
.whatis-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.whatis-facts div:nth-child(odd) { background: var(--elev-1); }
.whatis-facts div:last-child { border-bottom: 0; }
.whatis-facts dt { color: var(--text-3); font-weight: 700; }
.whatis-facts dd { margin: 0; font-weight: 600; }
.whatis-facts code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.9em; background: var(--elev-3); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 860px) { .whatis { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .whatis-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Editorial treatments (risks, known issues, methodology) ----------
   Typography-led on purpose: no boxed grids, no icon tiles, minimal pills. */

/* Is it safe? - pull-quote verdict beside a numbered list */
.ed { display: grid; grid-template-columns: minmax(240px, 0.75fr) 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.ed-aside { position: sticky; top: 140px; }
.pull { margin: 0; padding-left: 22px; border-left: 3px solid var(--red); }
.pull p { margin: 0 0 12px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.55; }
.pull .pull-big { margin-bottom: 8px; font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.pull footer { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ed-aside-note { margin: 20px 0 0; padding-left: 25px; font-size: var(--fs-sm); color: var(--text-3); }
.ed-aside-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.ed-aside-note a:hover { color: var(--text); }

.ed-list { list-style: none; margin: 0; padding: 0; }
.ed-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.ed-list li:first-child { border-top: 0; padding-top: 0; }
.ed-n { font-size: var(--fs-lg); font-weight: 300; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.3; }
.ed-list h3 { font-size: var(--fs-md); margin: 0 0 6px; line-height: 1.35; }
.ed-list p { margin: 0; color: var(--text-2); max-width: 64ch; }
.ed-sev { margin-left: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.ed-sev-high { color: var(--red); }
.ed-sev-medium { color: var(--text-3); }

.ed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.ed-pair h3 { font-size: var(--fs-md); margin-bottom: 14px; }
.ed-bullets, .ed-steps { margin: 0; padding: 0; list-style: none; }
.ed-bullets li, .ed-steps li { position: relative; padding: 9px 0 9px 26px; color: var(--text-2); font-size: var(--fs-sm); border-bottom: 1px dashed var(--line); }
.ed-bullets li:last-child, .ed-steps li:last-child { border-bottom: 0; }
.ed-bullets li::before { content: '•'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.ed-steps { counter-reset: st; }
.ed-steps li { counter-increment: st; }
.ed-steps li::before { content: counter(st) '.'; position: absolute; left: 0; color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }

.ed-close { margin: clamp(32px, 5vw, 48px) 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); max-width: 90ch; }
.ed-close strong { color: var(--text); }
.ed-close a { color: var(--green); font-weight: 700; white-space: nowrap; }
.ed-close a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .ed { grid-template-columns: 1fr; gap: 32px; }
  .ed-aside { position: static; }
  .ed-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ed-list li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; }
  .ed-sev { display: block; margin: 4px 0 0; }
}

/* Known issues - manual-style index */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.index li { border-bottom: 1px solid var(--line); }
.index li a.index-row { text-decoration: none; color: inherit; }
.index-row { display: grid; grid-template-columns: minmax(180px, 0.9fr) 2fr auto; gap: 8px 32px; align-items: baseline; padding: 18px 4px; }
.index-title { font-weight: 700; font-size: var(--fs-base); }
.index-text { color: var(--text-2); font-size: var(--fs-sm); }
.index-go { font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.index-row.is-link .index-go { color: var(--green); font-weight: 700; }
.index-row.is-link:hover .index-title { color: var(--green); }
.index-row.is-link:hover .index-go { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .index-row { grid-template-columns: 1fr auto; }
  .index-text { grid-column: 1 / -1; grid-row: 2; }
}

/* How we test - article-style steps + signed editorial note */
.method { display: grid; grid-template-columns: 1.5fr minmax(260px, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.method-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.method-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding-bottom: 28px; }
.method-steps li:last-child { padding-bottom: 0; }
.method-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--text-2); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
}
.method-steps li:first-child .method-n { border-color: var(--green); color: var(--green); }
.method-steps h3 { font-size: var(--fs-md); margin: 6px 0 6px; }
.method-steps p { margin: 0; color: var(--text-2); max-width: 62ch; }

.note { position: sticky; top: 140px; padding: 4px 0 4px 24px; border-left: 1px solid var(--line-strong); }
.note-label { margin: 0 0 16px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.note p { margin: 0 0 14px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.65; }
.note strong { color: var(--text); }
.note .note-sign { margin: 20px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text); font-style: italic; }
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .note { position: static; padding-left: 18px; }
}

/* ---------- Internal links, alternatives, topic index ---------- */

/* Contextual in-text links to categories */
a.in-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color 0.15s; }
a.in-link:hover { color: var(--green); }
.read-next { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.feat-more { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--text-3); }

/* Legal alternatives - compact numbered list: 4 columns × 2 rows on desktop */
.alts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.alts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-content: start; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.alts-n { grid-row: 1 / span 2; font-size: var(--fs-sm); font-weight: 300; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.6; }
.alts h3 { margin: 0; font-size: var(--fs-base); }
.alts h3 a { color: var(--green); text-decoration: none; }
.alts p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.4; }
@media (max-width: 860px) { .alts { grid-template-columns: 1fr 1fr; } }

/* Knowledge hub - topic index */
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.topics li { border-bottom: 1px solid var(--line); }
.topics li a.topics-row { text-decoration: none; color: inherit; }
.topics-row { display: grid; grid-template-columns: 36px minmax(140px, 0.7fr) 2fr auto; gap: 8px 24px; align-items: center; padding: 20px 4px; transition: background 0.15s; }
.topics-row:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent 60%); }
.topics-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 30%, transparent); color: #fff; }
.topics-name { font-weight: 800; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.topics-text { color: var(--text-2); font-size: var(--fs-sm); }
.topics-go { font-size: var(--fs-sm); font-weight: 700; color: var(--text-3); white-space: nowrap; transition: color 0.15s; }
.topics-row:hover .topics-go { color: var(--green); }
.topics-guides { margin-top: 28px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.guide-links a { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.guide-links a:hover { color: var(--text); text-decoration-color: var(--green); }
@media (max-width: 760px) {
  .topics-row { grid-template-columns: 32px 1fr; }
  .topics-text, .topics-go { grid-column: 2; }
}

/* ---------- Official app screenshots ----------
   Source images are small (phones 166×296, tablets 395×296): never display them larger than that. */

/* Hero - fanned trio of phones */
.hero-center { padding-bottom: 0; overflow: hidden; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: clamp(32px, 5vw, 48px); padding-bottom: 0; }
.hero-phones::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hphone { display: block; height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: hp-rise 0.9s var(--ease) both; }
.hphone-1 { position: relative; z-index: 2; width: 166px; margin-bottom: -24px; }
.hphone-0, .hphone-2 { width: 140px; filter: brightness(0.82); }
.hphone-0 { transform: rotate(-8deg) translate(22px, 10px); animation-delay: 0.08s; }
.hphone-2 { transform: rotate(8deg) translate(-22px, 10px); animation-delay: 0.16s; }
@keyframes hp-rise { from { opacity: 0; translate: 0 40px; } }
@media (max-width: 480px) {
  .hphone-1 { width: 140px; }
  .hphone-0, .hphone-2 { width: 112px; }
}

/* Latest version - swipeable screenshot strip */
.shots { margin: 28px 0 0; }
.shots-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; font-weight: 700; }
.shots-hint { font-size: var(--fs-xs); font-weight: 600; color: var(--text-3); }
.shots-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.shots-track::-webkit-scrollbar { height: 6px; }
.shots-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.shots-track:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.shot { flex: none; scroll-snap-align: start; margin: 0; }
.shot-phone { width: 166px; }
.shot-tablet { width: 395px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.3s var(--ease); }
.shot:hover img { transform: translateY(-3px); }
.shot p { margin: 10px 2px 0; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); line-height: 1.4; }
.shots-credit { margin: 4px 0 0; font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 480px) { .shot-tablet { width: 300px; } }

/* 10 - Knowledge hub labels */
.hub-label { margin: 0 0 12px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

@media (max-width: 640px) {
  .hs-head { grid-template-columns: 1fr; }
  .hs-num { font-size: 1.75rem; margin-bottom: 8px; }
}

/* ==========================================================================
   Category hubs - knowledge-base layout (Podcasts, …)
   ========================================================================== */

/* Header: compact, reference-style */
.kb-head { position: relative; padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); overflow: hidden; }
.kb-head::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none;
  background: radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 70%);
}
.kb-head .wrap { position: relative; }
.kb-head .crumbs { margin-bottom: 16px; color: var(--text-3); }
.kb-head .crumbs a { color: var(--text-2); }
.kb-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.kb-kicker-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--tone); color: #fff; }
.kb-head h1 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.kb-lede { font-size: var(--fs-md); color: var(--text-2); max-width: 68ch; margin-bottom: 16px; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.kb-meta span + span::before { content: '·'; margin-right: 18px; color: var(--line-strong); }

/* Two-column docs layout */
.kb-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px); }
.kb-body { max-width: 780px; min-width: 0; }

/* Sidebar TOC: sticky list on desktop, collapsible menu on small screens */
.kb-side { position: relative; }
.kb-toc-desk { position: sticky; top: 88px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.kb-toc-desk::before { content: 'On this page'; margin: 0 0 12px 16px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kb-toc-desk a {
  padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: var(--fs-sm); color: var(--text-2); transition: color 0.15s, border-color 0.15s;
}
.kb-toc-desk a:hover { color: var(--text); border-left-color: var(--green); }
.kb-toc-mob { display: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--elev-1); }
.kb-toc-mob summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.kb-toc-mob summary::-webkit-details-marker { display: none; }
.kb-toc-mob summary::after { content: '+'; color: var(--text-2); font-size: 1.1rem; }
.kb-toc-mob[open] summary::after { content: '−'; }
.kb-toc-mob nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 6px 0; }
.kb-toc-mob nav a { padding: 8px 16px; font-size: var(--fs-sm); color: var(--text-2); }

/* Sections */
.kb-sec { padding-top: 8px; margin-bottom: clamp(40px, 6vw, 64px); }
.kb-sec > h2 { font-size: var(--fs-xl); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.kb-sec > p { color: var(--text-2); }
.kb-sec > p:first-of-type:not(.kb-sub) { color: var(--text); }
.kb-sub { color: var(--text-2); margin-top: -4px; }

/* Rows: icon + title + description (features, Android topics) */
.kb-rows, .kb-links { list-style: none; margin: 0; padding: 0; }
.kb-rows li { border-bottom: 1px solid var(--line); }
.kb-rows li:first-child { border-top: 1px solid var(--line); }
.kb-rows a, .kb-rows div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 4px; }
.kb-rows a { transition: background 0.15s; border-radius: var(--r-sm); }
.kb-rows a:hover { background: var(--elev-1); }
.kb-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--elev-2); color: var(--text-2); }
.kb-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kb-title { font-weight: 600; }
.kb-text { font-size: var(--fs-sm); color: var(--text-2); }
.kb-soon {
  align-self: center; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 2px 8px;
}
.kb-go { align-self: center; color: var(--green); }

/* Compact link list, two columns (guides, troubleshooting) */
.kb-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.kb-links li { border-bottom: 1px solid var(--line); }
.kb-links li:nth-child(-n+2) { border-top: 1px solid var(--line); }
.kb-links a, .kb-links div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; font-size: var(--fs-sm); }
.kb-links a .kb-title::before, .kb-links div .kb-title::before { content: '›'; margin-right: 10px; color: var(--text-3); }
.kb-links a:hover .kb-title { color: var(--green); }
.kb-links div .kb-title { color: var(--text-2); font-weight: 500; }

/* Callouts */
.callout { border-radius: var(--r); padding: 16px 18px; margin: 0 0 20px; font-size: var(--fs-sm); }
.callout p { margin: 0; }
.callout-brand { background: rgba(31, 223, 100, 0.07); border: 1px solid rgba(31, 223, 100, 0.28); }
.callout-brand p { color: var(--text); }
.callout-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px !important; color: var(--green) !important; }
.callout-note { margin: 20px 0 0; background: var(--elev-1); border: 1px solid var(--line); color: var(--text-2); }
.callout-note p { display: flex; gap: 10px; align-items: flex-start; }
.callout-note svg { flex: none; margin-top: 1px; color: var(--text-2); }

/* Availability table */
.kb-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.kb-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--fs-sm); }
.kb-table th, .kb-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kb-table thead th { background: var(--elev-1); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.kb-table tbody th { font-weight: 600; }
.kb-table tbody tr:last-child > * { border-bottom: 0; }
.kb-notes { color: var(--text-3); }
.st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.st > span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800; }
.st-unverified { color: var(--text-2); }   .st-unverified > span { background: var(--elev-3); }
.st-available { color: var(--green); }     .st-available > span { background: rgba(31, 223, 100, 0.16); }
.st-limited { color: #ffb547; }            .st-limited > span { background: rgba(255, 181, 71, 0.16); }
.st-unavailable { color: var(--red); }     .st-unavailable > span { background: rgba(241, 94, 108, 0.16); }
.kb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: var(--fs-xs); }
.kb-checked { margin-left: auto; color: var(--text-3); }

/* Updates */
.kb-updates { list-style: none; margin: 0; padding: 0; }
.kb-updates li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.kb-updates time { color: var(--text-3); }
.kb-empty { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--text-2); font-size: var(--fs-sm); }
.kb-empty p { margin: 0; }
.kb-empty > span { color: var(--text-3); }

/* FAQ: flat, docs-style inside hubs */
.kb-body .faq { gap: 0; border-top: 1px solid var(--line); }
.kb-body .faq details { background: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.kb-body .faq details:hover, .kb-body .faq details[open] { background: none; }
.kb-body .faq summary { padding: 14px 2px; font-size: var(--fs-base); }
.kb-body .faq details p { padding: 0 2px 16px; font-size: var(--fs-sm); }

/* Next steps */
.kb-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-next a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.15s, background 0.15s;
}
.kb-next a:hover { border-color: var(--green); background: var(--elev-1); }
.kb-next-label { font-weight: 700; }
.kb-next-text { grid-column: 1; font-size: var(--fs-sm); color: var(--text-2); }
.kb-next .kb-go { grid-column: 2; grid-row: 1 / span 2; }

/* Related */
.kb-related { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-related a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); transition: color 0.15s, border-color 0.15s; }
.kb-related a:hover { color: var(--text); border-color: var(--text-2); }

/* Small screens: single column, collapsible TOC */
@media (max-width: 960px) {
  .kb-layout { grid-template-columns: 1fr; gap: 24px; }
  .kb-toc-desk { display: none; }
  .kb-toc-mob { display: block; }
}
@media (max-width: 600px) {
  .kb-links, .kb-next { grid-template-columns: 1fr; }
  .kb-links li:nth-child(2) { border-top: 0; }
  .kb-checked { margin-left: 0; width: 100%; }
}

/* ---------- 404 ---------- */
.nf { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.nf h1 { font-size: var(--fs-2xl); }
.nf .lede { margin-inline: auto; margin-bottom: 28px; }

/* ---------- Load-in (CSS only) ---------- */
.reveal { animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .nl-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nl-row { flex-direction: column; }
  .lede { font-size: var(--fs-base); }
  .hero-meta { font-size: var(--fs-xs); }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile h3 { font-size: var(--fs-md); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Wide desktop / mixed-reality screenshots (526×296 sources) */
.shot-wide { width: 526px; }
@media (max-width: 600px) { .shot-wide { width: 300px; } }
.shots-credit a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Spotify Plans page
   ========================================================================== */
.plans-table { min-width: 640px; }
.plans-table thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.plans-table tbody th { width: auto; }
.plan-name { display: block; font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.02em; }
.plan-flag { display: inline-block; margin-top: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.plan-price { font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-each { font-variant-numeric: tabular-nums; color: var(--text-2); }
.plan-for { color: var(--text-2); }
.plans-table tr.is-best > * { background: rgba(31, 223, 100, 0.06); }
.plans-table tr.is-best .plan-each { color: var(--green); font-weight: 700; }

/* What's included - two-column checklist */
.incl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.incl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.incl dt { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 4px; }
.incl dt span { color: var(--green); font-weight: 800; }
.incl dd { margin: 0 0 0 26px; font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 700px) { .incl { grid-template-columns: 1fr; } }

/* Which plan - reuses the index rows */
.chooser .index-text strong { color: var(--text); }
.chooser-price { color: var(--text) !important; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Ways to pay less - numbered list in two columns */
.save-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.save-list li:nth-child(2) { border-top: 0; padding-top: 0; }
@media (max-width: 800px) { .save-list { grid-template-columns: 1fr; } .save-list li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 22px; } }

/* Rules - definition rows */
.rules { margin: 0; border-top: 1px solid var(--line-strong); max-width: 900px; }
.rules div { display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 700; }
.rules dd { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 640px) { .rules div { grid-template-columns: 1fr; } }

/* ==========================================================================
   Company & legal pages + contact form
   ========================================================================== */
.legal-head h1 { font-size: var(--fs-2xl); }
.legal-summary { margin-bottom: clamp(32px, 5vw, 48px); padding: 18px 22px; border-left: 3px solid var(--green); background: rgba(31, 223, 100, 0.05); border-radius: 0 var(--r) var(--r) 0; }
.legal-summary-title { margin: 0 0 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.legal-summary ul { margin: 0; padding-left: 1.1em; }
.legal-summary li { margin-bottom: 6px; color: var(--text-2); }
.legal-summary li:last-child { margin-bottom: 0; }
.legal-summary strong { color: var(--text); }
.legal-sec p, .legal-sec li { color: var(--text-2); line-height: 1.7; }
.legal-sec strong { color: var(--text); }
.legal-sec ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-sec li { margin-bottom: 8px; }
.legal-sec li::marker { color: var(--green); }

.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 88px); padding-block: clamp(32px, 5vw, 56px) clamp(48px, 7vw, 88px); align-items: start; }
.contact h2 { font-size: var(--fs-lg); margin-bottom: 16px; }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: var(--fs-sm); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--elev-1); color: var(--text); font: 400 var(--fs-base) var(--font); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 223, 100, 0.2); }
.contact-consent { margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.contact-form .btn { justify-self: start; }
.contact-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r); font-size: var(--fs-sm); font-weight: 600; }
.contact-flash-ok { background: rgba(31, 223, 100, 0.1); color: var(--green); border: 1px solid rgba(31, 223, 100, 0.3); }
.contact-flash-error { background: rgba(241, 94, 108, 0.1); color: #ff9aa5; border: 1px solid rgba(241, 94, 108, 0.3); }
.contact-side { display: grid; gap: 28px; }
.contact-block h2 { font-size: var(--fs-base); margin-bottom: 8px; }
.contact-block p { margin: 0 0 4px; }
.contact-block ul { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: var(--fs-sm); }
.contact-block li { margin-bottom: 6px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Spotify Premium APK features - feature blocks with an icon tab on the top edge */
.fblocks { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 24px; padding-top: 26px; }
.fblock {
  position: relative; padding: 42px 26px 24px; border-radius: 18px;
  background: linear-gradient(180deg, var(--elev-1), var(--bg)); border: 1.5px solid var(--line-strong);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.fblock:hover { border-color: var(--text-3); transform: translateY(-2px); }
.fblock-tab {
  position: absolute; top: -26px; left: 24px; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; background: var(--elev-2); border: 1.5px solid var(--line-strong); color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.fblock-verdict { position: absolute; top: 16px; right: 18px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--pill); }
.fblock-false .fblock-verdict { background: rgba(241, 94, 108, 0.14); color: var(--red); }
.fblock-misleading .fblock-verdict { background: rgba(255, 181, 71, 0.14); color: #ffb547; }
.fblock-unverifiable .fblock-verdict { background: var(--elev-3); color: var(--text-2); }
.fblock-false .fblock-tab { color: var(--red); }
.fblock-misleading .fblock-tab { color: #ffb547; }
.fblock h3 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.fblock-claim { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--text-3); font-style: italic; }
.fblock-reality { margin: 0; color: var(--text-2); line-height: 1.6; }
.fblock-reality strong { color: var(--text); }
@media (max-width: 760px) { .fblocks { grid-template-columns: 1fr; gap: 44px; } }

/* Playlists hub - problem selector + compatibility table */
.problems { border-top: 1px solid var(--line); }
.problem { border-bottom: 1px solid var(--line); }
.problem summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 2px; font-weight: 700; }
.problem summary::-webkit-details-marker { display: none; }
.problem summary::after { content: '+'; margin-left: auto; color: var(--text-3); font-size: 1.1rem; }
.problem[open] summary::after { content: '−'; color: var(--green); }
.problem-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(241, 94, 108, 0.12); color: var(--red); flex: none; }
.problem[open] summary { color: var(--green); }
.problem-body { padding: 0 2px 18px 40px; }
.problem-label { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.problem-more { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.compat-table td { text-align: center; }
.compat-table thead th:not(:first-child) { text-align: center; }
.compat-table .st > span:first-child { width: 22px; height: 22px; }
@media (max-width: 520px) { .problem-body { padding-left: 2px; } }

/* Keep visually-hidden labels inside scrolling table frames (otherwise they widen the page on phones) */
.kb-table-wrap, .cmp-wrap, .dtable-wrap { position: relative; }

/* ==========================================================================
   Troubleshooting tool, homepage band, menu chip
   ========================================================================== */

/* Top-menu tool chip */
.chip-tool { gap: 6px; background: transparent; border: 1px solid rgba(225, 51, 0, 0.55); color: var(--text); }
.chip-tool svg { color: #ff7a52; }
.chip-tool:hover { background: rgba(225, 51, 0, 0.14); }
.chip-tool[aria-current='page'] { background: #e13300; border-color: #e13300; color: #fff; }
.chip-tool[aria-current='page'] svg { color: #fff; }

/* Tool layout */
.ts { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px); }
.ts-tool { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--elev-1), var(--bg)); padding: clamp(20px, 3vw, 32px); display: grid; gap: 28px; }
.ts-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ts-step legend, .ts-legend { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.01em; }
.ts-step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #000; font-size: var(--fs-sm); font-weight: 800; flex: none; }

/* Issue tiles (radio inputs) */
.ts-issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input, .pill-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line-strong); background: var(--bg); font-weight: 700; transition: border-color 0.15s, background 0.15s;
}
.opt-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--elev-2); color: var(--text-2); flex: none; transition: background 0.15s, color 0.15s; }
.opt:hover .opt-box { border-color: var(--text-3); }
.opt input:checked + .opt-box { border-color: var(--green); background: rgba(31, 223, 100, 0.07); }
.opt input:checked + .opt-box .opt-ico { background: var(--green); color: #000; }
.opt input:focus-visible + .opt-box, .pill-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Follow-up questions (pill radios) */
.ts-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.ts-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.ts-q legend { margin-bottom: 10px; padding: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; cursor: pointer; }
.pill-opt span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); transition: all 0.15s; }
.pill-opt:hover span { border-color: var(--text-3); color: var(--text); }
.pill-opt input:checked + span { background: var(--text); border-color: var(--text); color: #000; }
.ts-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 20px; }
.ts-submit p { margin: 0; }
@media (max-width: 700px) { .ts-questions { grid-template-columns: 1fr; } }

/* Diagnosis */
.ts-result { margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line-strong); }
.ts-result-kicker { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.ts-result-head h2 { font-size: var(--fs-2xl); letter-spacing: -0.035em; margin-bottom: 10px; }
.ts-answers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; font-size: var(--fs-sm); }
.ts-answers span { padding: 4px 12px; border-radius: var(--pill); background: var(--elev-3); font-weight: 600; }
.ts-answers a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.ts-alert { margin-bottom: 24px; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(241, 94, 108, 0.08); border: 1px solid rgba(241, 94, 108, 0.35); }
.ts-alert-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; color: var(--red); }
.ts-alert p { color: var(--text-2); }
.ts-alert .ed-steps { margin: 6px 0 0; }
.ts-alert-more { margin: 12px 0 0; font-size: var(--fs-sm); }
.ts-note { margin-bottom: 24px; padding: 16px 20px; border-radius: var(--r); background: var(--elev-1); border-left: 3px solid #ffb547; color: var(--text-2); font-size: var(--fs-sm); }
.ts-note p { margin: 0; }
.ts-note strong { color: var(--text); }
.ts-note-plan { border-left-color: var(--green); }
.ts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ts-grid h3 { font-size: var(--fs-lg); margin-bottom: 14px; }
.ts-causes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ts-causes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ts-cause-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 800; color: var(--text-2); }
.ts-causes li:first-child .ts-cause-n { border-color: var(--green); color: var(--green); }
.ts-cause-title { margin: 0 0 2px !important; font-weight: 700; color: var(--text) !important; }
.ts-causes p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.ts-likely { margin-left: 6px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.ts-steps { margin: 0; padding: 0; list-style: none; counter-reset: ts; }
.ts-steps li { counter-increment: ts; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px dashed var(--line); color: var(--text); }
.ts-steps li::before { content: counter(ts); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #000; font-size: var(--fs-sm); font-weight: 800; }
.ts-still { margin-top: 20px; padding: 16px 18px; border-radius: var(--r); background: var(--elev-1); font-size: var(--fs-sm); color: var(--text-2); }
.ts-still p { margin: 0; }
.ts-still-title { margin-bottom: 4px !important; font-weight: 800; color: var(--text); }
@media (max-width: 860px) { .ts-grid { grid-template-columns: 1fr; } }

/* All problems */
.ts-all { margin-top: clamp(40px, 6vw, 64px); }
.ts-all h2 { font-size: var(--fs-xl); margin-bottom: 14px; }
.ts-all .index li a.index-row { text-decoration: none; color: inherit; }

/* Homepage "Something not working?" band */
.fixband { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(225, 51, 0, 0.1), transparent 55%), var(--bg); }
.fixband-inner { display: grid; grid-template-columns: minmax(220px, 0.8fr) 2fr auto; gap: 20px 32px; align-items: center; padding-block: 24px; }
.fixband-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ff7a52; }
.fixband-text h2 { font-size: var(--fs-lg); margin: 0 0 2px; }
.fixband-text p:last-child { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.fixband-issues { display: flex; flex-wrap: wrap; gap: 8px; }
.fixband-issues a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--elev-2); font-size: var(--fs-sm); font-weight: 600; transition: background 0.15s; }
.fixband-issues a span { display: grid; color: var(--text-2); }
.fixband-issues a:hover { background: var(--elev-3); }
.fixband-cta { white-space: nowrap; }
@media (max-width: 1100px) { .fixband-inner { grid-template-columns: 1fr; } .fixband-cta { justify-self: start; } }

/* Homepage - "Spotify Premium APK" info table right after the hero */
.apkinfo { padding-block: clamp(28px, 4vw, 44px); }
.apkinfo-card { max-width: 720px; margin-inline: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, var(--elev-1), var(--bg)); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7); }
.apkinfo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-strong); }
.apkinfo-head h2 { margin: 0; font-size: var(--fs-lg); }
.apkinfo-head p { margin: 0; font-size: var(--fs-xs); color: var(--text-3); }
.apkinfo-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.apkinfo-table th, .apkinfo-table td { padding: 13px 22px; border-bottom: 1px solid var(--line); text-align: left; }
.apkinfo-table tr:last-child > * { border-bottom: 0; }
.apkinfo-table th { width: 42%; font-weight: 700; color: var(--text-2); }
.apkinfo-table td { font-weight: 700; }
.apkinfo-table tr:nth-child(even) > * { background: rgba(255, 255, 255, 0.015); }
.apkinfo-status { display: inline-flex; align-items: center; gap: 8px; }
.apkinfo-status span { width: 10px; height: 10px; border-radius: 50%; }
.apkinfo-status.is-verified { color: var(--green); }
.apkinfo-status.is-verified span { background: var(--green); box-shadow: 0 0 0 4px rgba(31, 223, 100, 0.18); }
.apkinfo-status.is-pending { color: #ffb547; }
.apkinfo-status.is-pending span { background: #ffb547; box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.18); }
@media (max-width: 480px) { .apkinfo-table th, .apkinfo-table td { padding: 12px 16px; } }

/* ==========================================================================
   Blog posts, post lists, author pages (CMS)
   ========================================================================== */
.post-wrap { max-width: 780px; }
.post-head { padding-block: clamp(36px, 6vw, 64px) 24px; background: radial-gradient(60% 100% at 0% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%); }
.post-cat { margin: 0 0 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.post-cat a { color: var(--green); }
.post-head h1 { font-size: var(--fs-2xl); margin-bottom: 12px; }
.post-excerpt { font-size: var(--fs-md); color: var(--text-2); margin-bottom: 18px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: var(--fs-sm); color: var(--text-3); }
.post-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.post-author img { border-radius: 50%; object-fit: cover; }
.post-cover { margin: 8px auto 0; }
.post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); }
.post-body { padding-block: 32px; font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.post-body h2 { font-size: var(--fs-xl); color: var(--text); margin: 1.8em 0 0.6em; }
.post-body h3 { font-size: var(--fs-lg); color: var(--text); margin: 1.5em 0 0.5em; }
.post-body p { margin: 0 0 1.2em; }
.post-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li::marker { color: var(--green); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r); }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--text); font-size: var(--fs-md); }
.post-body strong { color: var(--text); }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: var(--fs-sm); }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-authorbox { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-block: 1px solid var(--line); }
.post-authorbox img { border-radius: 50%; object-fit: cover; flex: none; }
.post-authorbox p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.post-authorbox-name { margin-bottom: 4px !important; font-weight: 800; color: var(--text) !important; font-size: var(--fs-base) !important; }
.post-authorbox-name span { font-weight: 500; color: var(--text-3); margin-left: 6px; }
.post-related { padding-block: 32px 64px; }
.post-related h2 { font-size: var(--fs-lg); margin-bottom: 12px; }
.post-related .index li a.index-row, .author-body .index li a.index-row { text-decoration: none; color: inherit; }

.post-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line-strong); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 4px; padding: 18px 4px; }
.post-list a:hover .post-list-title { color: var(--green); }
.post-list-title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.02em; transition: color 0.15s; }
.post-list-excerpt { color: var(--text-2); font-size: var(--fs-sm); }
.post-list-meta { color: var(--text-3); font-size: var(--fs-xs); }

.author-head { display: flex; gap: 24px; align-items: center; }
.author-avatar { border-radius: 50%; object-fit: cover; flex: none; }
.author-body { padding-block: 32px 64px; }
.author-bio { color: var(--text-2); font-size: var(--fs-md); margin-bottom: 32px; }
.author-body h2 { font-size: var(--fs-lg); margin-bottom: 12px; }

/* Button shown without a link (e.g. hero button with an empty URL in the CMS) */
span.btn { cursor: default; }
