/* Next Tier "Rink" theme — shared overlay loaded last on every page.
   Same palette as before (black, lime #AADD00, charcoal, red). Changes shape and surface only:
   grid-paper background, floating pill nav, rounded panels, pill buttons, .
   To roll back: remove the <link href="/rink-theme.css"> line from a page's <head>. */

:root {
  --rink-line: rgba(170,221,0,0.12);
  --rink-line-2: rgba(170,221,0,0.28);
  --rink-panel: rgba(17,17,17,0.92);
  --rink-radius: 18px;
}

/* ── Grid-paper ground ── */
body {
  background-color: #000;
  background-image:
    linear-gradient(var(--rink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

/* ── Floating pill nav ── */
nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px 16px 0;
  padding-left: 24px;
  padding-right: 12px;
  background: rgba(17,17,17,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rink-line-2);
  border-bottom: 1px solid var(--rink-line-2);
  border-radius: 999px;
}
.nav-cta, nav a.nav-cta { border-radius: 999px !important; padding: 10px 22px !important; }
.nav-avatar { box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--rink-line-2); }

/* ── Panels, cards, tiles, modals ── */
[class*="card"],
[class*="panel"],
[class*="tile"],
[class*="modal"]:not([class*="overlay"]):not([class*="backdrop"]):not([class*="bg"]),
[class*="faq-item"],
[class*="stat-item"],
[class*="box"],
.step,
.section-box {
  border-radius: var(--rink-radius);
}
[class*="card"],
[class*="panel"],
[class*="tile"],
[class*="faq-item"],
[class*="stat-item"] {
  border-color: var(--rink-line-2);
}

/* ── Buttons ── */
button,
input[type="submit"],
input[type="button"],
[class*="btn"],
a[class*="cta"],
button[class*="cta"] {
  border-radius: 999px;
}
.hsc-track, .hsc-fill, .pip, [class*="bar-track"], [class*="progress"] { border-radius: 999px; }

/* ── Form controls ── */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  border-radius: 12px;
}

/* ── Eyebrow tags become pills with a status dot ── */
.section-tag, .hero-eyebrow, .gloss-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rink-line-2);
  border-radius: 999px;
  padding: 5px 14px;
}
.section-tag::before, .hero-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--nt-green, #AADD00);
  box-shadow: 0 0 10px var(--nt-green, #AADD00);
  flex: none;
}

/* ── Phone ── */
@media (max-width: 760px) {
  nav { margin: 8px 8px 0; top: 8px; padding-left: 16px; padding-right: 8px; }
  body { background-size: 36px 36px; }
}

/* Logo sits inside the pill: keep its dark square from poking past the rounded edge */
.nav-logo img { height: 40px !important; width: auto; border-radius: 50%; }

/* Phone: the pill only has room for the logo, Login and the buttons */
@media (max-width: 560px) {
  .nav-links { gap: 8px; }
  .nav-links a:not([class*="cta"]):not([href*="login"]) { display: none; }
  .nav-links .nav-cta { padding: 8px 14px !important; font-size: 13px !important; }
}


/* ══ Mockup C match ══ */

/* Wordmark replaces the logo image everywhere */
.nav-logo { display: flex; align-items: baseline; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 26px; line-height: 1; color: #fff; letter-spacing: 0; }
.nav-logo img { display: none !important; }
.nav-logo::before { content: "NEXT"; }
.nav-logo::after  { content: "TIER"; color: var(--nt-green, #AADD00); }
nav { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.nav-links a { font-size: 14px; color: #ccc; }
.nav-links a:hover { color: #fff; }
.nav-cta, nav a.nav-cta { font-family: var(--font-mono, 'DM Mono', monospace) !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: .06em; box-shadow: none !important; padding: 10px 22px !important; }

/* Section bands go transparent so the grid shows through, like the mockup */
#how, #features, #tiers, #faq, .newsletter-strip, footer, .stat-strip { background: transparent; }
#how, #tiers, #faq { border-top: 1px solid var(--rink-line); border-bottom: 0; }
footer { border-top: 1px solid var(--rink-line); }
.feat-card, .step, .tier-card, .faq-item { background: var(--rink-panel); }
.stat-strip { border-block: 1px solid var(--rink-line); }
.stat-num { color: var(--nt-green, #AADD00); }

/* Hero + bento */
.rk-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rk-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 70px 0; }
.rk-tag { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono, 'DM Mono', monospace); font-size: 12px; color: var(--nt-green, #AADD00); border: 1px solid var(--rink-line-2); padding: 5px 12px; border-radius: 999px; margin-bottom: 22px; }
.rk-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nt-green, #AADD00); box-shadow: 0 0 10px var(--nt-green, #AADD00); }
.rk-h1 { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-weight: 400; font-size: clamp(60px, 8vw, 112px); line-height: .9; color: #fff; }
.rk-h1 em { font-style: normal; color: var(--nt-green, #AADD00); }
.rk-sub { margin: 20px 0 28px; max-width: 460px; color: #ccc; font-weight: 300; font-size: 16px; line-height: 1.6; }
.rk-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rk-btn { display: inline-block; font-family: var(--font-mono, 'DM Mono', monospace); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 26px; background: var(--nt-green, #AADD00); color: #000; font-weight: 500; border: 1px solid var(--nt-green, #AADD00); border-radius: 999px; text-decoration: none; }
.rk-btn.rk-ghost { background: transparent; color: var(--nt-green, #AADD00); }
.rk-rink { background: #111; border: 1px solid var(--rink-line-2); border-radius: 20px; padding: 20px; position: relative; }
.rk-rink svg { width: 100%; display: block; }
.rk-chip { position: absolute; background: #000; border: 1px solid var(--nt-green, #AADD00); border-radius: 10px; padding: 8px 12px; font-family: var(--font-mono, 'DM Mono', monospace); font-size: 11px; color: #fff; }
.rk-chip b { display: block; font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 28px; color: var(--nt-green, #AADD00); font-weight: 400; line-height: 1; }
.rk-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; padding-bottom: 60px; }
.rk-tile { background: var(--rink-panel); border: 1px solid rgba(170,221,0,.12); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.rk-tile h3 { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 34px; color: #fff; font-weight: 400; line-height: 1; }
.rk-tile.rk-hl { background: var(--nt-green, #AADD00); color: #000; }
.rk-tile.rk-hl h3 { color: #000; }
.rk-w2 { grid-column: span 2; } .rk-t2 { grid-row: span 2; }
.rk-m { font-family: var(--font-mono, 'DM Mono', monospace); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #777; }
.rk-hl .rk-m { color: #000; }
.rk-big { font-family: var(--font-display, 'Bebas Neue', sans-serif); font-size: 110px; color: var(--nt-green, #AADD00); line-height: .9; }
.rk-big.rk-score { color: #000; font-size: 170px; }
.rk-alert { border-color: var(--nt-red, #E8344A); }
.rk-alert .rk-big { color: var(--nt-red, #E8344A); }
@media (max-width: 860px) {
  .rk-hero { grid-template-columns: 1fr; padding: 40px 0; }
  .rk-bento { grid-template-columns: 1fr 1fr; }
  .rk-t2 { grid-row: span 1; }
  .rk-big.rk-score { font-size: 100px; }
  .rk-big { font-size: 80px; }
}

.stat-label { color: #777; }

/* Auth pages: same wordmark as the nav; tab buttons stay square so the active underline is straight */
.auth-logo { display: flex; justify-content: center; align-items: baseline; font-family: var(--font-display, "Bebas Neue", sans-serif); font-size: 34px; line-height: 1; color: #fff; }
.auth-logo img { display: none !important; }
.auth-logo::before { content: "NEXT"; }
.auth-logo::after { content: "TIER"; color: var(--nt-green, #AADD00); }
button[class*="tab"] { border-radius: 0; }

/* Very small phones (≤380px): tighten the pill nav so the buttons never run past the edge */
@media (max-width: 380px) {
  nav { padding-left: 12px; padding-right: 6px; }
  .nav-logo { font-size: 22px; }
  .nav-links { gap: 6px; }
  .nav-links .nav-cta, nav a.nav-cta { padding: 8px 10px !important; font-size: 12px !important; letter-spacing: .03em; }
}
