/* Coraxis Storefront — glassmorphism theme (Phase 3) */

:root {
  --bg-1: #0a0e1a;
  --bg-2: #111a2e;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --text-1: #e8edf6;
  --text-2: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-fallback: rgba(20, 28, 46, 0.92);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(59, 130, 246, 0.45);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
               Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-1);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Static blurred radial glows for atmospheric depth */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(140px);
}
body::before {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(59, 130, 246, 0) 65%);
  opacity: 0.55;
}
body::after {
  bottom: -25%;
  right: -15%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0) 65%);
  opacity: 0.45;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 5rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 3rem;
}
.brand {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
}
.brand .dot { color: var(--accent); }
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.site-nav a:hover { color: var(--text-1); }

/* Typography */
h1, h2, h3 {
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { color: var(--text-2); margin: 0; }
a { color: var(--accent); text-decoration: none; transition: color 150ms ease; }
a:hover { color: #60a5fa; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Hero */
.hero { padding: 1rem 0 2.5rem; max-width: 640px; }
.hero h1 { margin-top: 0; margin-bottom: 1rem; letter-spacing: -0.025em; }
.hero p { font-size: 1.05rem; line-height: 1.6; }

/* Section heading */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1.25rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Glass surface */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.25);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-fallback); }
}

/* Cards */
.card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-1);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  min-height: 100%;
}
.card .meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.card h3 { margin: 0; }
.card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
}
.card .price-hint {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: no-preference) {
  .card-link:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.07) inset,
      0 18px 44px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(59, 130, 246, 0.12),
      0 0 32px rgba(59, 130, 246, 0.18);
  }
}

/* Icon tiles */
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.icon-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.icon-tile.placeholder {
  position: relative;
}
.icon-tile.placeholder::after {
  content: "";
  width: 40%;
  height: 40%;
  border-radius: 22%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.icon-tile.large {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 22px;
  padding: 1rem;
}
.icon-tile.large img { max-width: 70%; max-height: 70%; }

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--text-1); }

/* Page intro (category) */
.page-intro { max-width: 680px; margin-bottom: 0.5rem; }
.page-intro h1 { margin-bottom: 0.75rem; }
.page-intro .lead {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
}

/* Spacing utilities */
.gap-top { margin-top: 1.5rem; }
.gap-top-lg { margin-top: 3rem; }

/* Empty state */
.empty-state {
  padding: 2rem 1.5rem;
  text-align: center;
}
.empty-state h3 { margin-bottom: 0.5rem; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.product-icon { display: flex; justify-content: center; }
@media (min-width: 760px) {
  .product-detail {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }
  .product-icon { justify-content: flex-start; }
}
.product-body h1 { margin: 0.25rem 0 1rem; }
.product-body .summary {
  color: var(--text-1);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.product-body .description {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.category-pill {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.category-pill:hover { color: #93c5fd; }

/* Pricing */
.pricing {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.price-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.price-card .price-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
}
.price-card .price-value {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.price-card .price-value .interval {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
}

/* Buy button */
.btn-buy {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.btn-buy:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .btn-buy:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  }
}

/* 404 */
.not-found {
  padding: 3rem 1.5rem;
  text-align: center;
}
.not-found .code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h2 { margin: 0.5rem 0 0.75rem; }
.not-found p { margin-bottom: 1.5rem; }

/* Admin link (only rendered when logged in) */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
}
.admin-link {
  color: var(--text-2);
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.04em;
}
.admin-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* Product page redesign (5b) */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 760px) {
  .product-hero {
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
  }
}
.hero-main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-main .category-pill { align-self: flex-start; margin: 0; }
.hero-main .hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem;
  flex-shrink: 0;
}
.hero-main .hero-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.hero-main .hero-icon.placeholder { position: relative; }
.hero-main .hero-icon.placeholder::after {
  content: "";
  width: 40%;
  height: 40%;
  border-radius: 22%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.hero-main h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-main .lead-summary {
  color: var(--text-1);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0;
}

.buy-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 980px) {
  .buy-panel { position: sticky; top: 1rem; }
}
.buy-panel .price-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.buy-panel .price-row + .price-row {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.buy-panel .price-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.buy-panel .price-value {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.buy-panel .price-value .interval {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
}
.buy-panel .btn-buy { margin-top: 0.25rem; }

/* Video — responsive 16:9 in a glass frame */
.video-section { margin-top: 2.5rem; }
.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Description */
.product-desc {
  margin-top: 2.5rem;
  padding: 2rem;
}
.product-desc h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.product-desc .desc-body {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 70ch;
}

/* Media + description, 2-column on desktop (5c+layout) */
.media-desc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 760px) {
  .media-desc {
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .media-desc.no-video,
  .media-desc.no-desc {
    grid-template-columns: 1fr;
  }
}
.media-desc .video-col {
  width: 100%;
  max-width: 400px;
}
.media-desc .desc-col {
  padding: 1.75rem 2rem;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.75;
}

/* Rich product page (5.3): tagline, features, CTA, monthly framing */
.tagline-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
}
.lead-summary.muted { color: var(--text-2); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.25rem;
}
@media (min-width: 600px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-1);
  font-size: 0.95rem;
  line-height: 1.45;
}
.feature-list .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.price-monthly {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.price-monthly .interval {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
}
.price-sub-note {
  font-size: 0.75rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.cta-button {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.cta-button:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cta-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  }
}

/* When CTA is present, downgrade purchase buttons to secondary (outline) */
.buy-panel .cta-button ~ .price-row .btn-buy {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: none;
  font-weight: 500;
}
.buy-panel .cta-button ~ .price-row .btn-buy:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
  box-shadow: none;
  filter: none;
  transform: none;
}

/* Hero image fills the same 16:9 frame as the video (5.5c) */
.video-wrap .media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Testimonial callout (5.6c) */
.testimonial {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}
.testimonial blockquote {
  margin: 0;
  font-style: italic;
  color: var(--text-1);
  line-height: 1.6;
  font-size: 1.02rem;
}
.testimonial figcaption {
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
}
.testimonial .t-author {
  display: block;
  color: var(--text-1);
  font-weight: 600;
}
.testimonial .t-role {
  display: block;
  color: var(--text-2);
}

/* NSCA partner badge — landing-page credibility card */
.nsca-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.nsca-badge .nsca-logo {
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  height: 80px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.nsca-badge .nsca-text {
  margin: 0;
  color: var(--text-1);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

/* Hero with NSCA badge on the right — compact, content-sized */
.hero-with-badge {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
}
.hero-with-badge .hero-text {
  flex: 1 1 420px;
  min-width: 0;
}
.hero-with-badge .nsca-badge {
  flex: 0 0 auto;
  margin: 0;
  max-width: 280px;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.25rem;
  text-align: center;
}
.hero-with-badge .nsca-badge .nsca-logo {
  height: 64px;
  max-width: 220px;
  padding: 10px 14px;
}
.hero-with-badge .nsca-badge .nsca-text {
  font-size: 0.92rem;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .hero-with-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero-with-badge .nsca-badge {
    align-self: stretch;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }
}

/* NSCA badge link wrapper — keeps chip-above-text stacking on the anchor */
.nsca-badge .nsca-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nsca-badge .nsca-link .nsca-text { color: var(--text-1); }

/* Category cards — image-top, navy body, blue accent divider, asymmetric corners */
.cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px 18px 4px 18px;
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cat-card { background: var(--glass-bg-fallback); }
}
.cat-card:hover { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .cat-card:hover {
    transform: translateY(-3px);
    border-color: var(--glass-border-hover);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(59, 130, 246, 0.12),
      0 0 32px rgba(59, 130, 246, 0.18);
  }
}
.cat-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card-body {
  padding: 1.25rem 1.5rem;
  background: var(--bg-2);
  border-top: 3px solid var(--accent);
  flex: 1 1 auto;
}
.cat-card > .cat-card-body:first-child {
  border-top: 0;
}
.cat-card-body .cat-count {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
  font-weight: 600;
}
.cat-card-body h3 {
  color: var(--text-1);
  margin: 0.4rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cat-card-body p {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  font-size: 0.92rem;
}

/* NSCA badge as a centered standalone strip below the categories */
.nsca-badge.nsca-badge-strip {
  max-width: 360px;
  margin: 2rem auto;
}

/* Two-tone wordmark (top-left brand-mark) */
.brand-mark {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  display: inline-flex;
  gap: 0.4ch;
  align-items: baseline;
}
.brand-corax { color: var(--text-1); }
.brand-store { color: var(--accent); font-weight: 700; }

/* Landing-page search box */
.store-search {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
  width: 100%;
  margin: 1.5rem 0 0;
}
.store-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.store-search-input::placeholder { color: var(--text-2); }
.store-search-input:focus { border-color: var(--accent); }
.store-search-btn {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.store-search-btn:hover { filter: brightness(1.08); }

/* Site footer (shared across all storefront pages) */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.footer-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}
.footer-copy {
  color: var(--text-2);
  font-size: 0.85rem;
}

/* "Pricing Coming Soon" pill — listing card + detail buy panel */
.coming-soon {
  display: inline-block;
  background: rgba(59, 130, 246, 0.18);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  line-height: 1.2;
  white-space: nowrap;
}
.buy-panel .coming-soon {
  font-size: 0.9rem;
  margin: 0;
}
.price-hint.coming-soon { display: inline-block; padding: 0.35em 0.8em; }

/* Responsive trims */
@media (max-width: 480px) {
  .shell { padding: 1rem 1rem 3rem; }
  .site-header { padding-bottom: 2rem; }
  .grid { gap: 1rem; }
  .product-detail { gap: 1.5rem; }
  .hero-main { padding: 1.5rem; }
  .buy-panel { padding: 1.25rem; }
  .product-desc { padding: 1.5rem; }
  .media-desc .desc-col { padding: 1.25rem 1.5rem; }
  .price-monthly { font-size: 1.55rem; }
  .testimonial { padding: 1rem 1rem 1rem 1.25rem; }
  .nsca-badge { flex-direction: column; gap: 0.6rem; text-align: center; }
  .nsca-badge .nsca-logo { height: 60px; padding: 10px 14px; }
  .store-search-btn { padding: 0.85rem 1.1rem; }
}

/* Pricing page (per-product tiers) */
.pricing-intro {
  margin: 1.5rem 0 0.5rem;
  text-align: center;
}
.pricing-intro h1 {
  color: var(--text-1);
  font-size: 2rem;
  margin: 0.25rem 0;
}
.pricing-intro .muted {
  color: var(--text-2);
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 16px;
  color: var(--text-1);
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 36px rgba(59, 130, 246, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.pricing-badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.tier-name {
  color: var(--text-1);
  font-size: 1.25rem;
  margin: 0.25rem 0 0.75rem;
}

.tier-price {
  color: var(--text-1);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.tier-price .tier-interval {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 0.15rem;
}
.tier-price-muted {
  color: var(--text-2);
  font-size: 1.25rem;
  font-weight: 600;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--text-1);
}
.tier-features li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--glass-border);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--accent);
  font-weight: 700;
}

.tier-bestfor {
  margin-top: auto;
  background: var(--accent-soft);
  color: var(--text-1);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
.tier-bestfor-label { font-weight: 700; }

.tier-select {
  display: block;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease;
}
.tier-select:hover { background: var(--accent-strong); }
.tier-select.disabled {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  cursor: not-allowed;
}
.tier-select.disabled:hover { background: transparent; }

/* "See Pricing & Plans" button on the product page buy-panel */
.see-pricing-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 150ms ease;
}
.see-pricing-btn:hover { background: var(--accent-strong); color: #fff; }

/* Featured app section on the landing page */
.featured-app {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-top: 1rem;
  border-radius: 18px;
}
.featured-media {
  flex: 0 0 200px;
  max-width: 200px;
}
.featured-media img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.featured-body {
  flex: 1 1 auto;
  min-width: 0;
}
.featured-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.featured-name {
  font-size: 1.6rem;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}
.featured-tagline {
  font-size: 1.05rem;
  color: var(--text-1);
  margin: 0 0 0.5rem;
}
.featured-summary {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.featured-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.featured-cta {
  width: auto;
  display: inline-block;
  margin-bottom: 0;
}
.featured-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.featured-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .featured-app {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .featured-media {
    flex-basis: auto;
    max-width: 200px;
    width: auto;
  }
  .featured-cta {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* "View Plans" pill on listing cards (price-hint slot, tier-only products) */
.price-hint.view-plans {
  color: var(--accent);
  font-weight: 600;
}

/* Featured App divider heading on landing page */
.featured-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 3rem 0 1.25rem;
}
.featured-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.featured-divider-label {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Product hero statistic callout (009) */
.stat-callout {
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin: 0;
  color: var(--text-1);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Hero top row: left column (icon/pill/name/tagline/summary) + right column (stat) */
.hero-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}
.hero-top-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
  min-width: 0;
}
.hero-top-right { display: none; }
@media (min-width: 760px) {
  .hero-top { flex-direction: row; align-items: flex-start; }
  .hero-top-right { display: block; flex: 1 1 auto; max-width: none; }
}

/* Promotional pricing on product buy panel (010) */
.price-row.promo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.promo-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 999px;
}
.promo-label {
  color: var(--text-1);
  font-weight: 600;
  font-size: 0.9rem;
}
.price-regular-strike {
  color: var(--text-2);
  text-decoration: line-through;
  font-size: 1.05rem;
}
.price-monthly.promo-price {
  color: var(--text-1);
  font-size: 2rem;
  font-weight: 800;
}
.promo-note {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Promotional pricing on tier cards (010) — reuses .promo-badge .promo-label .price-regular-strike .promo-note from P4 */
.tier-promo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.tier-promo .tier-price { margin-bottom: 0; }
.setup-fee-note { color: var(--text-2); font-size: 0.8rem; margin: 0.5rem 0 0; line-height: 1.4; }

.btn-demo {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.btn-demo:hover { background: var(--accent); color: #fff; }

/* Client logo marquee — "Trusted by Industry Leaders" */
.client-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  background: linear-gradient(90deg, #e9edf3 0%, #ffffff 50%, #e9edf3 100%);
  border-radius: 14px;
  padding: 1.5rem 0;
}
.client-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: client-scroll 30s linear infinite;
}
.client-marquee:hover .client-track { animation-play-state: paused; }
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
@keyframes client-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
