/* ============================================================
   SUPPORT CENTER — support.css
   All sp-* prefixed classes are local to this page.
   ============================================================ */

/* ── Font faces ── */
/* Nohemi (variable) is declared only once, in components/base.css */

/* ── Design tokens ──
   Colours, type and spacing come from components/base.css. Only the
   values specific to this page are declared here. */
:root {
  --border-dark: rgba(255, 255, 255, 0.08);
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(255, 90, 31, 0.15);
  --nav-height: 58px;
}

/* ── Base (reset in components/base.css) ── */
body { background: var(--surface); }
video { display: block; max-width: 100%; }
address { font-style: normal; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* ── Shared typography ── */
.sp-eyebrow {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-ink);
  margin-bottom: var(--sp-2);
}
.sp-eyebrow--light { color: var(--primary-on-dark); }

.sp-section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}
.sp-section-title--light { color: var(--text-on-dark); }

.sp-section-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 540px;
}
.sp-section-sub--light { color: var(--text-muted-on-dark); }
.sp-section-sub--center { margin: 0 auto; text-align: center; }

.sp-section-header { margin-bottom: var(--sp-6); }
.section-header--left { text-align: left; }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* ── Shared buttons ── */
.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary-solid);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .sp-btn-primary:hover {
    background: var(--primary-solid-hover);
    box-shadow: 0 0 60px rgba(255, 90, 31, 0.28);
    transform: translateY(-1px);
  }
}

/* ============================================================
   S1 — HERO
   ============================================================ */
.sp-hero {
  position: relative;
  background: var(--dark-bg);
  padding-top: calc(var(--nav-height) + var(--sp-7));
  padding-bottom: var(--sp-8);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 90, 31, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 212, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* ── ORBIT ANIMATION ── */
.sp-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Hub */
.sp-anim-hub {
  position: absolute;
  top: 50%;
  left: calc(50% + 500px);   /* right of the 640px content column */
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
}
.sp-anim-hub-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.25), rgba(99, 102, 241, 0.2));
  border: 1.5px solid rgba(255, 90, 31, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 160, 255, 0.9);
  box-shadow: 0 0 40px rgba(255, 90, 31, 0.2), inset 0 0 20px rgba(255, 90, 31, 0.1);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.sp-anim-hub-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.3);
  animation: sp-hub-pulse 3s ease-out infinite;
}
.sp-anim-hub-pulse--2 { animation-delay: 1s; }
.sp-anim-hub-pulse--3 { animation-delay: 2s; }
@keyframes sp-hub-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Orbit rings (static, decoration) */
.sp-anim-ring {
  position: absolute;
  top: 50%;
  left: calc(50% + 500px);   /* right of the 640px content column */
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: translate(-50%, -50%);
}
.sp-anim-ring--1 { width: 200px; height: 200px; border-color: rgba(255, 90, 31, 0.1); }
.sp-anim-ring--2 { width: 360px; height: 360px; border-color: rgba(255, 90, 31, 0.06); }
.sp-anim-ring--3 { width: 520px; height: 520px; border-color: rgba(255, 90, 31, 0.03); }

/* Orbit containers (rotate around hub) */
.sp-anim-orbit {
  position: absolute;
  top: 50%;
  left: calc(50% + 500px);   /* right of the 640px content column */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.sp-anim-orbit--1 {
  width: 200px;
  height: 200px;
  animation: sp-orbit-cw 18s linear infinite;
}
.sp-anim-orbit--2 {
  width: 360px;
  height: 360px;
  animation: sp-orbit-ccw 28s linear infinite;
}
@keyframes sp-orbit-cw  { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(360deg);  } }
@keyframes sp-orbit-ccw { from { transform: translate(-50%,-50%) rotate(0deg);   } to { transform: translate(-50%,-50%) rotate(-360deg); } }

/* Nodes (counter-rotate so icons stay upright) */
.sp-anim-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(15, 15, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 12px rgba(255, 90, 31,0.1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sp-anim-node img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }

/* Orbit 1 — 200×200 container, radius 100px, 2 nodes at 0° / 180° */
/* center = (100,100). Node size = 48px → offset -24px */
.sp-anim-node--a {
  top: -24px;         /* y = 0  → 0   - 24 */
  left: 76px;         /* x = 100 → 100 - 24 */
  animation: sp-counter-cw 18s linear infinite;
}
.sp-anim-node--b {
  top: 176px;         /* y = 200 → 200 - 24 */
  left: 76px;
  animation: sp-counter-cw 18s linear infinite;
}

/* Orbit 2 — 360×360 container, radius 180px, 3 nodes at 0° / 120° / 240° */
/* center = (180,180). sin/cos values: sin120=0.866, cos120=-0.5 */
.sp-anim-node--c {
  top: -24px;         /* y = 180-180 = 0  → 0   - 24 */
  left: 156px;        /* x = 180+0  = 180 → 180 - 24 */
  animation: sp-counter-ccw 28s linear infinite;
}
.sp-anim-node--d {
  top: 246px;         /* y = 180 - 180*cos120 = 180+90 = 270 → 270 - 24 */
  left: 312px;        /* x = 180 + 180*sin120 = 180+156 = 336 → 336 - 24 */
  animation: sp-counter-ccw 28s linear infinite;
}
.sp-anim-node--e {
  top: 246px;         /* y = 180 - 180*cos240 = 180+90 = 270 → 270 - 24 */
  left: 0px;          /* x = 180 + 180*sin240 = 180-156 = 24  →  24 - 24 */
  animation: sp-counter-ccw 28s linear infinite;
}

@keyframes sp-counter-cw  { from { transform: rotate(0deg);    } to { transform: rotate(-360deg);  } }
@keyframes sp-counter-ccw { from { transform: rotate(0deg);    } to { transform: rotate(360deg);   } }

/* Connection lines */
.sp-anim-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sp-line {
  stroke-dashoffset: 0;
  animation: sp-dash 3s linear infinite;
}
.sp-line--2 { animation-delay: 1s; }
.sp-line--3 { animation-delay: 2s; }
@keyframes sp-dash { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -32; } }

/* Status chips */
.sp-anim-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 28, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  font-size: var(--fs-meta);
  font-weight: 550;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.sp-anim-chip svg { color: var(--accent-mint); }

.sp-anim-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sp-anim-chip-dot--green  { background: #22C55E; box-shadow: 0 0 6px #22C55E; animation: sp-dot-blink 2s ease-in-out infinite; }
.sp-anim-chip-dot--blue   { background: #FD9E7C; box-shadow: 0 0 6px #FD9E7C; animation: sp-dot-blink 2.5s 0.4s ease-in-out infinite; }
.sp-anim-chip-dot--purple { background: #A78BFA; box-shadow: 0 0 6px #A78BFA; animation: sp-dot-blink 2.2s 0.8s ease-in-out infinite; }
@keyframes sp-dot-blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* Chips sit around the orbit, outside the content column (the stats row ends at ~50% + 340px) */
.sp-anim-chip--1 { top: 20%; left: calc(50% + 380px); animation: sp-chip-float-a 5s ease-in-out infinite; }
.sp-anim-chip--3 { top: 66%; left: calc(50% + 420px); animation: sp-chip-float-c 5.5s 0.4s ease-in-out infinite; }
.sp-anim-chip--4 { top: 82%; left: calc(50% + 410px); animation: sp-chip-float-a 6.5s 1.2s ease-in-out infinite; }

@keyframes sp-chip-float-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes sp-chip-float-b { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes sp-chip-float-c { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.sp-hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.sp-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
}

.sp-hero-copy { max-width: 700px; }

.sp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-on-dark);
  margin-bottom: var(--sp-2);
}
.sp-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.7);
  animation: sp-pulse 2.2s ease-in-out 2;   /* ends before 5 s */
}
@keyframes sp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.sp-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.sp-hero-headline-em {
  background: linear-gradient(135deg, #FD9E7C, #FF5A1F, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--text-muted-on-dark);
  max-width: 580px;
  margin: 0 auto;
}

/* Search */
.sp-search-wrap {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sp-search {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.sp-search:focus-within {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.1);
}
.sp-search-icon { color: rgba(255, 255, 255, 0.35); flex-shrink: 0; }
.sp-search-input {
  flex: 1;
  align-self: stretch;     /* the whole pill height is the field */
  min-width: 0;
  min-height: 44px;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}
.sp-search-input::placeholder { color: rgba(242, 240, 237, 0.6); }
.sp-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  background: var(--primary-solid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .sp-search-btn:hover {
    background: var(--primary-solid-hover);
    transform: scale(1.05);
  }
}

/* Empty-search feedback */
.sp-search-msg {
  min-height: 1.4em;
  margin: -6px 0 -6px;
  font-size: var(--fs-small);
  color: var(--primary-on-dark);
}
.sp-search-msg:empty { min-height: 0; margin: 0; }

.sp-search-hints {
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}
.sp-search-hints a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(242, 240, 237, 0.85);
  font-weight: 500;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition), border-color var(--transition);
}
.sp-search-hints a:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Stats */
.sp-hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.sp-hero-stat { padding: 0 var(--sp-4); }
.sp-hero-stat + .sp-hero-stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.sp-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sp-hero-stat-n {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
  color: var(--text-on-dark);
  line-height: 1;
}
.sp-hero-stat-label {
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
}

/* ============================================================
   S2 — CHANNELS
   ============================================================ */
.sp-channels {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) 0;
}
.sp-channels-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sp-channel-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--surface-card);
  transition: transform var(--transition-smooth), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sp-channel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.03), transparent);
  transition: opacity var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .sp-channel-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 90, 31, 0.2);
    box-shadow: var(--shadow-hover);
  }
}
.sp-channel-card:hover::before { opacity: 1; }

.sp-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-channel-icon--blue   { background: rgba(255, 90, 31, 0.1); color: var(--primary); }
.sp-channel-icon--purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.sp-channel-icon--mint   { background: rgba(0, 212, 170, 0.1); color: var(--accent-mint); }
.sp-channel-icon--orange { background: rgba(249, 115, 22, 0.1); color: #F97316; }

.sp-channel-body { flex: 1; min-width: 0; }
.sp-channel-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.sp-channel-desc {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-secondary);
}

.sp-channel-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform var(--transition), color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .sp-channel-card:hover .sp-channel-arrow {
    transform: translateX(4px);
    color: var(--primary);
  }
}

/* ============================================================
   S3 — PRODUCT SUPPORT
   ============================================================ */
.sp-products {
  padding: var(--sp-8) 0;
  background: var(--surface-muted);
}

.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-product-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition);
}
/* The card is not a link (its three rows are): no lift on hover */

.sp-product-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sp-product-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.sp-product-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.sp-product-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sp-product-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}
.sp-product-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.sp-product-links a svg { color: var(--primary); flex-shrink: 0; opacity: 0.7; }
.sp-product-links a:hover {
  background: rgba(255, 90, 31, 0.05);
  color: var(--primary-on-light);
}
.sp-product-links a:hover svg { opacity: 1; }

/* ============================================================
   S4 — COMMUNITY
   ============================================================ */
.sp-community {
  position: relative;
  background: var(--dark-bg);
  padding: var(--sp-8) 0;
  overflow: hidden;
}
.sp-community-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 212, 170, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255, 90, 31, 0.08) 0%, transparent 60%);
}

.sp-community-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.sp-community-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.sp-community-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sp-forum-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  transition: background var(--transition), border-color var(--transition), transform var(--transition-smooth);
}
@media (hover: hover) and (pointer: fine) {
  .sp-forum-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
}

.sp-forum-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.2);
  color: #FD9E7C;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-forum-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.sp-forum-card a {
  font-size: var(--fs-meta);
  color: var(--primary-on-dark);
  font-weight: 500;
  text-underline-offset: 3px;
}
/* The link covers the card: a 60px+ target instead of a 13px line */
.sp-forum-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.sp-forum-card:hover a { text-decoration: underline; }
.sp-forum-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.sp-forum-card a:focus-visible { outline: none; }

/* ============================================================
   S5 — TIERS  (two-world comparison layout)
   ============================================================ */
.sp-tiers {
  position: relative;
  padding: var(--sp-8) 0;
  background: var(--dark-bg);
  overflow: hidden;
}

/* Noise texture overlay */
.sp-tiers-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* Blue glow emanating from right (licensed side) */
.sp-tiers-glow {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 90, 31, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Section header overrides for dark bg */
.sp-tiers .sp-section-title--light { color: var(--text-on-dark); }
.sp-tiers .sp-section-sub--muted   { color: var(--text-muted-on-dark); }

/* ── Comparison layout ── */
.sp-tiers-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

/* ── Panel base ── */
.sp-tier-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sp-tier-panel-inner {
  position: relative;
  z-index: 1;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}

/* ── Contrast floor for both cards: AAA (≥ 7:1) for every text,
   measured at the lightest point of each surface (glow included) ── */

/* ── Trial panel — quiet: neutral surface, neutral icons ── */
.sp-tier-panel--trial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Licensed panel — the highlighted one. It stands out through its warm
   border, top accent and glow, not through a lighter surface: the previous
   mid-brown (#554632) kept most of its text at AA only (4.6–6.7:1). ── */
.sp-tier-panel--licensed {
  background: #33291D;
  border: 1px solid rgba(255, 140, 90, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.08), 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 80px rgba(255, 90, 31, 0.12);
}
.sp-tier-panel--licensed::before {          /* top accent */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #FFA98A);
  z-index: 2;
}

.sp-tier-panel-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 90, 31, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Labels ── */
.sp-tier-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  width: fit-content;
}

.sp-tier-label--trial {
  background: rgba(107, 104, 97, 0.1);
  color: #B4AFA7;
  border: 1px solid rgba(180, 175, 167, 0.25);
}

.sp-tier-label--licensed {
  background: rgba(255, 90, 31, 0.14);
  color: #FFC9B5;                          /* 7.1:1 on the tinted pill */
  border: 1px solid rgba(255, 140, 90, 0.45);
}

.sp-tier-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: sp-tier-dot-pulse 2s ease-in-out 2;   /* ends before 5 s */
  flex-shrink: 0;
}

@keyframes sp-tier-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(255, 90, 31, 0); }
}

/* ── Panel headers ── */
.sp-tier-panel-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-tier-panel-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(242, 240, 237, 0.82);
  margin-top: 4px;
}

.sp-tier-panel--licensed .sp-tier-panel-name {
  color: var(--text-on-dark);
}

.sp-tier-panel-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(242, 240, 237, 0.78);         /* trial: 9.3:1 */
  margin-top: 4px;
  max-width: 40ch;
}

.sp-tier-panel--licensed .sp-tier-panel-desc { color: rgba(242, 240, 237, 0.88); }   /* 8.4:1 under the glow */

/* ── Big metric display ── */
.sp-tier-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
}

.sp-tier-metric--trial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-tier-metric--licensed {
  background: rgba(255, 90, 31, 0.08);
  border: 1px solid rgba(255, 140, 90, 0.28);
  align-items: center;
  justify-content: flex-start;   /* the three figures share a line even when a unit wraps */
  text-align: center;
  padding: var(--sp-2) var(--sp-1);
}

.sp-tier-metric-n {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sp-tier-metric--trial .sp-tier-metric-n { color: rgba(242, 240, 237, 0.82); }
.sp-tier-metric--licensed .sp-tier-metric-n { color: #FFD3C2; }   /* 8.2:1 */

.sp-tier-metric-unit {
  margin-top: 4px;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  text-wrap: balance;
}

.sp-tier-metric--trial .sp-tier-metric-unit   { color: rgba(242, 240, 237, 0.78); }
.sp-tier-metric--licensed .sp-tier-metric-unit { color: rgba(242, 240, 237, 0.88); }   /* 7.7:1 */

/* Row of 3 metrics for licensed: equal columns */
.sp-tier-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ── Feature lists ── */
.sp-tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-dark);
  flex: 1;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.sp-tier-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(242, 240, 237, 0.85);          /* trial: 10.4:1 */
}
.sp-tier-list-item > span[aria-hidden] { margin-top: 1px; }

.sp-tier-list-item--lit { color: rgba(242, 240, 237, 0.92); }   /* 10.8:1 */

/* Not included: struck through + lock icon + "Not included" for screen readers.
   Quieter than the included rows but still AAA (≥ 7.4:1 at every width). */
.sp-tier-list-item--locked {
  color: rgba(242, 240, 237, 0.7);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(242, 240, 237, 0.4);
}

.sp-tier-list-item--lit strong {
  color: var(--text-on-dark);
  font-weight: 550;
  font-size: inherit;
}

/* Check icons */
.sp-tier-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-tier-check--dim {
  background: rgba(180, 175, 167, 0.14);
  color: #B4AFA7;
}

.sp-tier-check--bright {
  background: rgba(0, 212, 170, 0.14);
  color: var(--mint-on-dark);                 /* 5.9:1 (icons need 3:1) */
}

/* Lock icon */
.sp-tier-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 240, 237, 0.55);
  flex-shrink: 0;
}

/* ── Actions ── */
.sp-tier-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.sp-tier-action--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: rgba(242, 240, 237, 0.88);
}

.sp-tier-action--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-on-dark);
}

.sp-tier-action--primary {
  background: var(--primary-solid);
  color: #fff;
  box-shadow: 0 0 32px rgba(255, 90, 31, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .sp-tier-action--primary:hover {
    background: var(--primary-solid-hover);
    box-shadow: 0 0 60px rgba(255, 90, 31, 0.45);
    transform: translateY(-1px);
  }
}

.sp-tier-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--sp-2);
}

.sp-tier-action-note {
  font-size: var(--fs-label);
  font-weight: 600;
  color: rgba(242, 240, 237, 0.8);            /* 8.6:1 */
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
}

/* ── Center divider with upgrade arrow ── */
.sp-tiers-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
}

.sp-tiers-divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.sp-tiers-upgrade-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.3);
  background: rgba(255, 90, 31, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  animation: sp-upgrade-pulse 2.4s ease-in-out 2;   /* ends before 5 s */
}

@keyframes sp-upgrade-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(255, 90, 31, 0); }
}

/* ============================================================
   S6 — CONTACT
   ============================================================ */
.sp-contact {
  position: relative;
  background: var(--dark-bg);
  padding: var(--sp-8) 0;
  overflow: hidden;
}
.sp-contact-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 90, 31, 0.1) 0%, transparent 60%);
}

.sp-contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.sp-contact-header {
  text-align: center;
  max-width: 600px;
}

.sp-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

.sp-contact-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-dark);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform var(--transition-smooth), border-color var(--transition), background var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .sp-contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
  }
}
.sp-contact-card--primary {
  border-color: rgba(255, 90, 31, 0.3);
  background: rgba(255, 90, 31, 0.06);
}
.sp-contact-card--primary:hover {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.1);
}
/* Information, not a link: no fill, no hover, so it doesn't read as a third button */
.sp-contact-card--info {
  transform: none;
  background: transparent;
  border-color: var(--border-dark);
}
@media (hover: hover) and (pointer: fine) {
  .sp-contact-card--info:hover {
    transform: none;
    background: transparent;
    border-color: var(--border-dark);
  }
}

.sp-contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.sp-contact-card--primary .sp-contact-card-icon {
  background: rgba(255, 90, 31, 0.15);
  border-color: rgba(255, 90, 31, 0.3);
  color: #FD9E7C;
}

.sp-contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.sp-contact-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
  flex: 1;
}
.sp-contact-card address {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted-on-dark);
}
.sp-contact-hours {
  font-size: var(--fs-meta);
  color: var(--text-muted-on-dark);
  font-weight: 500;
}
.sp-contact-card-action {
  font-size: 14px;
  font-weight: 550;
  color: #FD9E7C;
  transition: color var(--transition);
}
.sp-contact-card:hover .sp-contact-card-action { color: #FEC5B1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Mobile spacing tokens ── */
@media (max-width: 768px) {
  :root { --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; }
}
@media (max-width: 480px) {
  :root { --sp-4: 24px; --sp-5: 24px; --sp-6: 36px; --sp-7: 48px; --sp-8: 64px; }
}

/* The orbit needs the space right of the content column: hidden when there isn't any */
@media (max-width: 1240px) {
  .sp-anim { display: none; }
  .sp-hero .motion-toggle { display: none; }
}

@media (max-width: 1024px) {
  .sp-channels-inner { grid-template-columns: repeat(2, 1fr); }
  .sp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-community-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
}

@media (max-width: 768px) {
  /* ── Hero legibility fixes ── */

  /* Hide the orbit animation — it overlaps the text on narrow viewports */
  .sp-anim { display: none; }

  /* Darker background: increase the gradient density to guarantee contrast */
  .sp-hero-bg {
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 90, 31, 0.22) 0%, transparent 60%),
      radial-gradient(ellipse 120% 50% at 50% 50%, rgba(10, 10, 15, 0.55) 0%, transparent 80%),
      radial-gradient(ellipse 80% 80% at 50% 100%, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
  }

  /* Sub text: more legible */
  .sp-hero-sub { color: rgba(255, 255, 255, 0.72); }

  /* Stats: one compact row instead of three tall blocks */
  .sp-hero-stats { flex-wrap: nowrap; width: 100%; }
  .sp-hero-stat { flex: 1; min-width: 0; padding: 0 var(--sp-1); }
  .sp-hero-stat-n { font-size: 22px; }
  .sp-hero-stat-label { line-height: 1.35; }
  .sp-channels-inner { grid-template-columns: 1fr; }
  .sp-product-grid { grid-template-columns: 1fr; }
  .sp-community-cards { grid-template-columns: 1fr; }
  .sp-tiers-comparison {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .sp-tiers-divider {
    flex-direction: row;
    padding: var(--sp-3) 0;
    height: 56px;
  }
  .sp-tiers-divider-line {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  }
  .sp-tiers-upgrade-ring {
    transform: rotate(90deg);
  }
  /* Three compact metrics side by side (stacking them made three tall boxes) */
  .sp-tier-metrics-row { gap: 8px; }
  .sp-tier-metric--licensed .sp-tier-metric-n { font-size: 22px; }
  /* keep old grid ref for safety */
  .sp-tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .sp-contact-cards { grid-template-columns: 1fr; max-width: 480px; }
  .sp-hero-headline { font-size: clamp(40px, 12vw, 64px); }
}

@media (max-width: 480px) {
  .sp-search-hints { gap: 8px; }

  /* Reduce min-height so the hero isn't too tall */
  .sp-hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--sp-5)); padding-bottom: var(--sp-6); }

  /* More compact headline */
  .sp-hero-headline { font-size: clamp(36px, 11vw, 52px); }

  /* Sub: maximum legibility on small screens (reading text stays 16px) */
  .sp-hero-sub { color: rgba(255, 255, 255, 0.78); font-size: var(--fs-body); }

  /* Stats: two side by side, the support hours on a full row below.
     Three columns squeezed "9am–5pm MST support hours" into four lines. */
  .sp-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-3); }
  .sp-hero-stat { padding: 0 var(--sp-2); }
  .sp-hero-stat-label { text-align: center; }
  .sp-hero-stat:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: var(--sp-3);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Condense the search box on small mobile (16px text: iOS doesn't zoom) */
  .sp-search { padding: 4px 4px 4px 16px; }
}
