/* ============================================================
   SPOTIFI template — all styling lives here.
   Change the look from the variables in :root below.
   ============================================================ */

:root {
  /* Colours — change these to rebrand the whole site */
  --bg:        #0a0a0c;   /* page background        */
  --surface:   #141418;   /* cards and bars         */
  --surface-2: #1c1c22;   /* hover / image boxes    */
  --border:    rgba(255, 255, 255, .09);
  --border-2:  rgba(255, 255, 255, .16);
  --text:      #f2f2f4;   /* main text              */
  --muted:     #a1a1aa;   /* secondary text         */
  --faint:     #6b6b74;   /* placeholders           */
  --accent:    #10b981;   /* buttons / active state — your brand colour */
  --on-accent: #04130d;   /* text on the accent     */

  /* Sizes */
  --rail: 76px;           /* width of the left icon rail */
  --topbar-h: 64px;
  --radius: 10px;
  --gap: 22px;
  --maxw: 1480px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(125% 58% at 50% 112%,
      color-mix(in srgb, var(--accent) 46%, transparent) 0%,
      color-mix(in srgb, var(--accent) 20%, transparent) 34%,
      color-mix(in srgb, var(--accent) 7%, transparent) 58%,
      transparent 78%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  font: 400 15px/1.5 "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- App frame ---------- */
.app {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* ---------- Left rail ---------- */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.rail-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--on-accent);
  background: var(--accent);
}
.rail-mark svg { width: 24px; height: 24px; }
.rail-nav { display: flex; flex-direction: column; gap: 10px; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn:hover { color: var(--text); background: var(--surface-2); }
.rail-btn.is-active { color: var(--text); background: var(--surface-2); }

/* ---------- Main column ---------- */
.main { min-width: 0; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.tb-nav { display: flex; gap: 8px; }
.round {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.round svg { width: 18px; height: 18px; }
.round:hover { background: var(--border-2); }

.search {
  position: relative;
  flex: 1;
  max-width: 460px;
}
.search-i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--border-2); background: var(--surface-2); }

.tb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--border-2));
  border: 1px solid var(--border);
}

/* ---------- Content ---------- */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ===== Hero: left image + right text ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: var(--gap);
  align-items: stretch;
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-2), #0f0f13);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Background video + green tint behind the equalizer */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 42%, transparent));
  mix-blend-mode: multiply;
}
/* Animated equalizer in the hero box — same green as the buttons (var(--accent)).
   Bars share one keyframe but run at different speeds and offsets, so they move
   independently like a real music visualiser. */
.eq {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 0 5%;
  height: 58%;
  min-height: 76px;
}
.eq-bar {
  flex: 1 1 0;
  min-width: 5px;
  max-width: 16px;
  height: 30%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px -3px color-mix(in srgb, var(--accent) 75%, transparent);
  animation: eq 1s ease-in-out infinite;
  will-change: height;
}
.eq-bar:nth-child(3n+1) { animation-duration: 1.05s; animation-delay: -0.20s; }
.eq-bar:nth-child(3n+2) { animation-duration: 1.35s; animation-delay: -0.50s; }
.eq-bar:nth-child(3n)   { animation-duration: 0.90s; animation-delay: -0.10s; }
.eq-bar:nth-child(5n)   { animation-duration: 1.50s; animation-delay: -0.70s; }
.eq-bar:nth-child(7n+2) { animation-duration: 0.95s; animation-delay: -0.35s; }
@keyframes eq {
  0%, 100% { height: 26%; }
  50%      { height: 100%; }
}
/* Hold still, at varied heights, for anyone who prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .eq-bar { animation: none; }
  .eq-bar:nth-child(3n+1) { height: 55%; }
  .eq-bar:nth-child(3n+2) { height: 82%; }
  .eq-bar:nth-child(3n)   { height: 38%; }
  .eq-bar:nth-child(5n)   { height: 100%; }
}

/* ===== Shelf: how-it-works steps above the feature row ===== */
.shelf {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.step-card {
  flex: 1 1 0;
  min-width: 228px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-num {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
}
.step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.step-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== Footer bar (accent green, full width) ===== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--on-accent);
}
.foot-copy {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}
.foot-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 26px;
}
.foot-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-accent);
  text-decoration: none;
  white-space: nowrap;
}
.foot-nav a:hover { opacity: .72; }
@media (max-width: 820px) {
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
  .foot-copy, .foot-nav { grid-column: 1; justify-self: center; }
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 8px 8px 4px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-title-mark {
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-right: .22em;
  vertical-align: -.1em;
}
.hero-sub {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, filter .15s;
}
.btn:hover { transform: scale(1.03); filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn.ghost:hover { background: var(--surface-2); transform: none; }

/* ===== Chips ===== */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0 18px;
}
.chip {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip:hover { background: var(--border-2); }
.chip.is-active { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ===== Tiles ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background .15s, border-color .15s;
}
.tile:hover { background: var(--surface-2); border-color: var(--border-2); }
.t-art {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-2), #0e0e12);
  border: 1px solid var(--border);
  overflow: hidden;
}
.t-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Empty-state placeholders so the blank tiles still show their shape.
   They disappear as soon as you add text/images. */
.t-title {
  min-height: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-title:empty { width: 90px; border-radius: 4px; background: var(--surface-2); }
.t-sub { min-height: 12px; font-size: 13px; color: var(--muted); }
.t-sub:empty { width: 56px; border-radius: 4px; background: var(--surface-2); opacity: .6; }

/* ===== Feature row: icon, title, description (four across) ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
  margin-top: 18px;
}
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature-ic { width: 30px; height: 30px; color: var(--accent); }
.feature-ic svg { display: block; width: 100%; height: 100%; }
.feature h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--text); }
.feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 32ch; }

/* ===== Plan cards =====
   Blank placeholders built from .ph blocks. Replace them with real text, and drop a
   logo <img> into .plan-logo, when you fill the cards in. */
.ph { background: var(--surface-2); border-radius: 5px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.plan-badge { width: 96px; height: 24px; border-radius: 999px; background: var(--surface-2); }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-logo {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.plan-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-label { height: 12px; width: 72px; }
.plan-name { height: 26px; width: 58%; border-radius: 6px; }
.plan-price { height: 14px; width: 42%; }
.plan-rule { width: 100%; height: 0; margin: 4px 0 2px; border: 0; border-top: 1px solid var(--border); }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-feats li { display: flex; align-items: center; gap: 10px; }
.plan-feats .fd { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--faint); }
.plan-feats .fl { flex: 1; height: 11px; }
.plan-feats li:nth-child(2) .fl { max-width: 82%; }
.plan-feats li:nth-child(3) .fl { max-width: 60%; }
.plan-cta { height: 46px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; }
.plan-fine { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 2px; }
.plan-fine .ph { height: 9px; }
.plan-fine .ph:first-child { width: 85%; }
.plan-fine .ph:last-child { width: 55%; }

/* ===== Card 1 — upgrade key (violet; visual only) ===== */
.card-key { --v: var(--accent); gap: 16px; }
.ck-head { display: flex; align-items: center; gap: 12px; }
.ck-badge {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px;
  color: var(--v);
  background: color-mix(in srgb, var(--v) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--v) 42%, transparent);
}
.ck-badge svg { width: 20px; height: 20px; }
.ck-title {
  margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--v);
}
.ck-field {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--faint);
}
.ck-field svg { width: 18px; height: 18px; flex: none; }
.ck-ph { font-size: 15px; letter-spacing: .12em; }
.ck-note {
  display: flex; gap: 10px; padding: 14px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--v) 24%, var(--border));
  background: color-mix(in srgb, var(--v) 7%, transparent);
}
.ck-note svg { width: 18px; height: 18px; flex: none; color: var(--v); margin-top: 1px; }
.ck-note p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ck-note strong { display: block; margin-bottom: 3px; color: var(--v); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.ck-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
  min-height: 48px; padding: 0 18px; border-radius: 10px;
  background: var(--v); color: var(--on-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
}
.ck-btn svg { width: 18px; height: 18px; }
.ck-btn-ghost {
  margin-top: 0;
  justify-content: flex-start;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.ck-btn-ghost:hover { border-color: var(--v); color: var(--v); }
.ck-login-mark {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  object-fit: contain;
}

/* ===== upgrade key: live input, cookie box, status, renewal ===== */
.ck-field input,
.ck-field textarea {
  flex: 1; width: 100%; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 15px;
}
.ck-field input::placeholder,
.ck-field textarea::placeholder { color: var(--faint); letter-spacing: .12em; }
.ck-field:focus-within { border-color: var(--v); }
.ck-field-area { align-items: flex-start; padding: 12px 14px; min-height: 96px; }
.ck-field-area textarea {
  resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; letter-spacing: .02em;
}
.ck-status { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ck-status:empty { display: none; }
.ck-cookie { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; border-top: 1px solid var(--border); }
.ck-cookie[hidden] { display: none; }
.ck-flash { animation: ck-flash 1.6s ease-out; }
@keyframes ck-flash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v) 60%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.renew-wrap { padding: 0; }
.renew-card {
  display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto;
  padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.renew-card[hidden] { display: none; }
.renew-card .ck-btn { margin-top: 0; }
.ck-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ck-link {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--v); font: inherit; font-size: 13.5px; text-decoration: underline;
}

/* ===== Card 2 — reset your key (green) ===== */
.card-reseller { --v: var(--accent); }
.cr-head { display: flex; align-items: center; gap: 12px; }
.cr-badge {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.cr-badge svg { width: 20px; height: 20px; }
.cr-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.cr-sub { margin: -2px 0 2px; font-size: 14px; color: var(--muted); }
.cr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cr-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.cr-list svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 2px; }
.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; margin-top: auto; min-height: 46px;
  border-radius: 999px; background: transparent; border: 1px solid var(--border-2);
  color: var(--text); font-weight: 600; font-size: 14px;
}

/* ===== Card 3 — partner tile with a background image you add ===== */
.card-partner {
  position: relative; overflow: hidden; padding: 0; min-height: 280px; text-decoration: none;
  background: linear-gradient(135deg, #241a3a, #122033 55%, #10231c);
}
.cp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-overlay {
  position: relative; z-index: 1; margin-top: auto; width: 100%; padding: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .74) 12%, rgba(0, 0, 0, 0));
}
.cp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.cp-name { font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.cp-visit { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13px; font-weight: 600; color: #fff; }
.cp-visit svg { width: 15px; height: 15px; }
@media (hover: hover) {
  .cp-bg { transition: transform .3s ease; }
  .card-partner:hover .cp-bg { transform: scale(1.04); }
  .card-partner:hover .cp-name { text-decoration: underline; text-underline-offset: 3px; }
}

/* ===== Top header: brand + nav links ===== */
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav a { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.nav-sep { width: 1px; height: 18px; background: var(--border-2); }
.buy-key {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .12s, filter .15s;
}
.buy-key:hover { transform: scale(1.04); filter: brightness(1.06); }
@media (max-width: 600px) {
  .site-nav { gap: 14px; }
  .site-nav a[href="#"] { display: none; }   /* hide Support to fit the button */
  .nav-sep { display: none; }
  .buy-key { padding: 0 16px; }
}

/* ===== Account login (visual only — buttons toggle the view, no backend) ===== */
.login-wrap { margin-top: 46px; display: flex; justify-content: center; }
.login {
  width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.login-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.login-sub { margin: -6px 0 6px; font-size: 14px; color: var(--muted); }
.field-row { display: flex; gap: 10px; }
.in {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--border-2); border-radius: 10px; background: rgba(0, 0, 0, .25);
}
.in svg { width: 18px; height: 18px; flex: none; color: var(--faint); }
.in input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.in input::placeholder { color: var(--faint); letter-spacing: normal; }
.in input:focus { outline: none; }
.in:focus-within { border-color: var(--accent); }
#login-code { letter-spacing: .3em; }
.btn-accent {
  flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.btn-accent:hover { filter: brightness(1.06); }
.btn-accent:active { transform: scale(.98); }
.login-status { margin: 2px 0 0; min-height: 18px; font-size: 13px; color: var(--muted); }
.login-status.is-error { color: #f87171; }
.login-resend {
  align-self: flex-start; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 460px) {
  .field-row { flex-direction: column; }
  .btn-accent { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .app { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; gap: 10px; }
  .tb-nav { display: none; }
  .content { padding: 20px 14px 48px; }
  .tiles { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

/* ===== Spotify-style top nav (reference strip) ===== */
:root { --spnav-h: 64px; }

.sp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--spnav-h); padding: 0 40px;
  background: #000;
  font-family: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
.sp-logo { display: inline-flex; align-items: center; gap: 9px; }
.sp-mark { display: block; width: 32px; height: 32px; flex: none; object-fit: contain; }
.sp-mark svg { display: block; width: 100%; height: 100%; }
.sp-word { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff; }
.sp-reg { font-size: 9px; font-weight: 600; vertical-align: super; color: #fff; }
.sp-links { display: flex; align-items: center; gap: 30px; }
.sp-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.sp-link:hover { opacity: .75; }
.sp-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .28); }
.sp-cta {
  height: 42px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  background: #1ED760; color: #fff; white-space: nowrap;
  transition: transform .12s, filter .15s;
}
.sp-cta:hover { transform: scale(1.04); filter: brightness(1.05); }

/* the bar pushes the app down; the rail sticks below it */
.app { min-height: calc(100vh - var(--spnav-h)); }
.rail { top: var(--spnav-h); height: calc(100vh - var(--spnav-h)); }

/* ===== Login modal ===== */
.login-modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px);
}
.login-modal[hidden] { display: none; }
.login-sheet {
  position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
.login-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font: inherit; font-size: 18px; cursor: pointer;
}
.login-close:hover { color: var(--text); background: var(--surface-2); }

@media (max-width: 760px) {
  .sp-nav { padding: 0 16px; gap: 14px; }
  .sp-links { gap: 16px; }
  .sp-hide-sm { display: none; }
  .sp-sep { display: none; }
}
@media (max-width: 520px) {
  .sp-word { display: none; }
}

/* ===== Upgrade-key row: 2 cards, opening to 3 once the cookie box appears ===== */
.plan[hidden] { display: none; }
.plans { grid-template-columns: repeat(2, 1fr); }
.plans.has-cookie { grid-template-columns: repeat(3, 1fr); }

/* partner tile, moved below the row and stretched full width */
.partner-wrap { margin-top: 16px; }
.partner-wrap .card-partner { display: flex; width: 100%; min-height: 300px; }

@media (max-width: 1100px) {
  .plans, .plans.has-cookie { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .plans, .plans.has-cookie { grid-template-columns: 1fr; }
}

/* ===== Hero price tag (bottom right of the hero box) ===== */
.hero-price-group {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-price-was {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: .8;
}
.hero-price {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 85%, transparent);
  transition: transform .12s, filter .15s;
}
.hero-price:hover { transform: scale(1.04); filter: brightness(1.06); }
@media (max-width: 820px) {
  .hero-price-group { position: static; margin-top: 18px; align-self: flex-start; }
}
