/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.site-dev-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(59, 130, 246, 0.92);
  color: #ffffff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 0;
  text-transform: uppercase;
}

:root {
  --color-primary: #0274be;
  --color-primary-dark: #015a96;
  --color-accent: #61ce70;
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-dark: #0a0e27;
  --color-dark-card: rgba(255, 255, 255, 0.06);
  --color-glow: #3b82f6;
  --font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, sans-serif;
  --max-width: 1240px;
  --header-height: 64px;
}

html {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  font-family: var(--font-family);
}

body {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-dark);
  color: var(--color-white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: var(--color-white);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu toggle (hidden - using bottom tab bar instead) */
.mobile-menu-toggle {
  display: none;
}

/* ===== Mobile Bottom Tab Bar ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 6px 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 8px;
  min-width: 56px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (hover: hover) {
  .mobile-nav-item:hover {
    color: #60a5fa;
    text-decoration: none;
  }
}

.mobile-nav-item.active {
  color: #60a5fa;
  font-weight: 600;
}

.mobile-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.mobile-nav-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: block;
}

/* ===== Mobile Bottom Sheet ===== */
.mobile-sheet-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.mobile-sheet-overlay.show {
  display: block;
}

.mobile-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  animation: sheetSlideUp 0.3s ease;
  border-top: 1px solid rgba(59, 130, 246, 0.3);
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
}

.mobile-sheet-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.mobile-sheet-close:hover {
  color: var(--color-white);
}

.mobile-sheet-item,
.mobile-sheet-item:visited,
.mobile-sheet-item:link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
}

.mobile-sheet-item:last-child {
  border-bottom: none;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

.mobile-sheet-item.active,
.mobile-sheet-item.active:visited {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  text-decoration: none;
}

.mobile-sheet-item:active {
  background: rgba(59, 130, 246, 0.2);
  text-decoration: none;
}

@media (hover: hover) {
  .mobile-sheet-item:hover {
    text-decoration: none;
    color: #60a5fa;
  }
}

.mobile-sheet-icon {
  font-size: 1.2rem;
}

/* ===== Navigation ===== */
.site-nav {
  background: var(--color-dark);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.nav-list {
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-list > li > a:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Dropdown label (non-link) */
.nav-dropdown-label {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: default;
}

.nav-dropdown-label::after {
  content: ' \25BE';
  font-size: 0.7em;
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' \25BE';
  font-size: 0.7em;
}

.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #111838;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 50;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown li a:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  text-decoration: none;
}

/* ===== Hero Section ===== */
.hero {
  background: var(--color-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(59, 130, 246, 0.04) 50px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.hero-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

.hero-card-img {
  width: 160px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.hero-card-date {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-stocktrackr {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-stocktrackr:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  color: var(--color-white);
}

.btn-stocktrackr .btn-icon {
  margin-right: 0.3rem;
}

/* ===== Home Body ===== */
.home-body {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin: 2rem auto;
  max-width: 800px;
  overflow: hidden;
}

.home-body-inner {
  padding: 2.5rem 3rem;
  text-align: center;
}

.home-body-inner p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.home-body-inner a {
  color: var(--color-primary);
  text-decoration: underline;
}

.home-body-inner a:hover {
  color: var(--color-primary-dark);
}

.discord-section {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.discord-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s;
}

.discord-logo:hover {
  transform: scale(1.1);
}

/* ===== Main Content (for non-home pages) ===== */
.content {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.content ul, .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

/* Override text color on dark-background pages */
.content.st-page p,
.content.st-page li,
.content.models-page p,
.content.models-page li,
.content.od-page p,
.content.od-page li {
  color: rgba(255, 255, 255, 0.9);
}

/* Restore dark text inside white cards on dark pages */
.content.od-page .od-card p,
.content.od-page .od-card li {
  color: var(--color-text-light);
}

/* Placeholder notice for pages awaiting content */
.placeholder-notice {
  background: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
}

.placeholder-notice h2 {
  color: var(--color-primary);
}

/* ===== About Page ===== */
.content.about-page {
  background: var(--color-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 60%);
  max-width: 100%;
  border-radius: 0;
  padding: 2.5rem 2rem;
}

.content.about-page h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
}

.about-card {
  background: var(--color-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.about-card h3 {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.about-card p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-card p:last-of-type {
  margin-bottom: 0;
}

.about-card a {
  color: var(--color-primary);
}

/* Hero card */
.about-hero-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.about-hero-wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.about-version-badge {
  display: inline-block;
  background: rgba(2, 116, 190, 0.18);
  color: var(--color-primary);
  border: 1px solid rgba(2, 116, 190, 0.35);
  border-radius: 5px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-hero-desc {
  max-width: 540px;
  margin: 0 auto 0.5rem;
}

/* kv grid for env info */
.about-kv-grid {
  columns: 2;
  column-gap: 2rem;
}

.about-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  break-inside: avoid;
}

.about-kv:last-child { border-bottom: none; }

.about-k {
  color: rgba(255, 255, 255, 0.45);
}

.about-v {
  color: rgba(255, 255, 255, 0.85);
}

.about-v code {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--color-primary);
}

/* Tables */
.about-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.about-table td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.about-table tr:last-child td {
  border-bottom: none;
}

.about-table td:first-child {
  color: rgba(255, 255, 255, 0.45);
  width: 45%;
}

.about-table td:last-child {
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.about-table-deps th {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.about-table-deps td {
  color: rgba(255, 255, 255, 0.7);
}

.about-table-deps td:first-child {
  width: auto;
  color: rgba(255, 255, 255, 0.7);
}

.about-table-deps td:last-child,
.about-table-deps th:last-child {
  text-align: right;
}

.about-table-deps a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Dev badges */
.about-badge-yes {
  background: rgba(97, 206, 112, 0.15);
  color: var(--color-accent);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
}

.about-badge-no {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 600;
}

.about-licenses-intro {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.about-licenses-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.75rem;
}

/* Dev banner */
.about-dev-banner {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(234, 179, 8);
}

@media (max-width: 600px) {
  .about-kv-grid { columns: 1; }
}

/* ===== Models & Pricing Page ===== */
.content.models-page {
  background: var(--color-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 60%);
  max-width: 100%;
  border-radius: 0;
  padding: 2.5rem 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.content.models-page h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1.5rem;
}

.mp-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Tabs */
.mp-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.mp-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.6rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.mp-tab:hover {
  background: rgba(59, 130, 246, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.mp-tab.active {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: var(--color-white);
  border-color: transparent;
}

/* Tab content */
.mp-tab-content {
  display: none;
}

.mp-tab-content.active {
  display: block;
}

/* Intro text */
.mp-intro {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Cards */
.mp-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.mp-card h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Tier note */
.mp-tier-note {
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Pills */
.mp-pills {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.mp-pill,
.mp-fpill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.mp-pill:hover,
.mp-fpill:hover {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.mp-pill.active,
.mp-fpill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}

/* Tier / family panels */
.mp-tier,
.mp-family {
  display: none;
}

.mp-tier.active,
.mp-family.active {
  display: block;
}

/* Table wrapper for horizontal scroll on mobile */
.mp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tables */
.mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 500px;
}

.mp-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.7rem 0.75rem;
  text-align: center;
  white-space: nowrap;
}

.mp-table th:first-child {
  border-radius: 8px 0 0;
  text-align: left;
}

.mp-table th:last-child {
  border-radius: 0 8px 0 0;
}

.mp-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}

.mp-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.mp-table tbody tr:nth-child(even) {
  background: rgba(97, 206, 240, 0.1);
}

/* Latest generation highlight column */
.mp-col-latest {
  background: rgba(59, 130, 246, 0.08);
  font-weight: 600;
}

th.mp-col-latest {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
}

/* Latest generation highlight row (models table) */
.mp-latest {
  background: rgba(59, 130, 246, 0.06) !important;
}

.mp-latest td {
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

/* Models table specific */
.mp-table-models td {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Footnotes */
.mp-note {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  text-align: right;
}

.mp-card .mp-note {
  color: var(--color-text-light);
}

/* Desktop/mobile visibility */
.mp-mobile-only {
  display: none;
}

/* Mobile cards */
.mp-mobile-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.mp-mobile-card h3 {
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mp-mobile-card h3 span {
  font-weight: 400;
  color: var(--color-text-light);
}

.mp-mobile-card h4 {
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.mp-mobile-card-latest {
  border-left: 3px solid #3b82f6;
}

.mp-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: var(--color-text);
  gap: 1rem;
}

.mp-mobile-row:last-child {
  border-bottom: none;
}

.mp-mobile-label {
  font-weight: 600;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.mp-mobile-row-latest {
  background: rgba(59, 130, 246, 0.06);
  margin: 0 -1.25rem;
  padding: 0.4rem 1.25rem;
  border-radius: 4px;
}

.mp-mobile-row-latest .mp-mobile-label {
  color: #3b82f6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #60a5fa;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom p + p {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== StockTrackr Page ===== */
.content.st-page {
  background: var(--color-dark);
  border-radius: 0;
  padding: 2.5rem 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 100%;
}

.content.st-page h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.st-heading-stock {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.st-heading-trackr {
  color: var(--color-white);
}

/* StockTrackr Screenshots Slideshow */
.st-slideshow-section {
  margin: 0 auto 2rem;
  max-width: 860px;
}

.st-slideshow-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #0d0d1a;
}

.st-slideshow-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.st-chrome-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-chrome-dot-red    { background: #ff5f57; }
.st-chrome-dot-yellow { background: #febc2e; }
.st-chrome-dot-green  { background: #28c840; }

.st-chrome-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-right: 36px;
}

.st-slideshow {
  position: relative;
  aspect-ratio: 900 / 740;
  overflow: hidden;
  background: #0d0d1a;
}

.st-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-slide.active {
  opacity: 1;
}

.st-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.st-slideshow-caption {
  padding: 10px 48px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  background: #1a1a2e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 36px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-slide-btn {
  position: absolute;
  top: calc(50% - 10px);
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  padding: 0;
}

.st-slide-btn:hover {
  background: rgba(96, 165, 250, 0.35);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.5);
}

.st-slide-prev { left: 10px; }
.st-slide-next { right: 10px; }

.st-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
}

.st-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.st-dot.active {
  background: #60a5fa;
  transform: scale(1.35);
}

.st-dot:hover {
  background: rgba(96, 165, 250, 0.6);
}

.content.st-page .st-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* StockTrackr Featured Video */
.st-featured {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  text-align: center;
}

.st-featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.4rem 1.25rem;
  border-radius: 28px;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.content.st-page .st-featured h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.st-video-link {
  display: block;
  text-decoration: none;
}

.st-video-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: #000000;
  cursor: pointer;
}

.st-video-thumb {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.st-video-link:hover .st-video-thumb {
  opacity: 0.8;
}

.st-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  transition: background 0.2s;
}

.st-video-link:hover .st-video-play-btn {
  background: rgba(255, 0, 0, 1);
}

/* StockTrackr Features + Download row */
.st-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.st-features {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 0;
}

.content.st-page .st-features h3 {
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.st-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.st-features li {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.st-features li strong {
  color: var(--color-white);
}

/* StockTrackr Download */
.st-download {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 280px;
}

.content.st-page .st-download h3 {
  color: var(--color-white);
}

.st-version {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.st-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.st-btn-windows,
.st-btn-mac {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.st-btn-windows {
  background: linear-gradient(135deg, #0078D7, #0058a3);
  color: white;
}

.st-btn-windows:hover {
  background: linear-gradient(135deg, #0058a3, #003e73);
  transform: translateY(-1px);
}

.st-btn-mac {
  background: linear-gradient(135deg, #e8e8e8, #b0b0b0);
  color: #1a1a1a;
}

.st-btn-mac:hover {
  background: linear-gradient(135deg, #f2f2f2, #c4c4c4);
  transform: translateY(-1px);
}

.st-btn-windows:disabled,
.st-btn-mac:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* StockTrackr Download Modal */
.st-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.st-modal {
  background: rgba(15, 21, 53, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 14px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.st-modal h3 {
  margin: 0 0 12px;
  color: #e9edf7;
  font-size: 18px;
}

.st-modal p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 14px;
}

.st-modal-progress {
  margin: 16px 0;
}

.st-modal-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.st-modal-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

@keyframes st-progress-indeterminate {
  0%   { left: -40%; width: 40%; }
  60%  { left: 100%; width: 40%; }
  100% { left: 100%; width: 40%; }
}

.st-modal-progress-bar.indeterminate {
  position: relative;
  width: 100% !important;
  background: transparent;
  transition: none;
}

.st-modal-progress-bar.indeterminate::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  border-radius: 4px;
  animation: st-progress-indeterminate 1.4s ease-in-out infinite;
}

.st-modal-progress-status {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

.st-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.st-modal-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e9edf7;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-width: 80px;
}

.st-modal-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(96, 165, 250, 0.6);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.st-modal-btn.primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.st-modal-btn.primary:hover {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

/* StockTrackr Mobile Message */
.st-mobile-message {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.st-desktop-icon {
  font-size: 48px;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.content.st-page .st-mobile-message h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.st-mobile-message p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* StockTrackr Release Notes */
.st-donate {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.content.st-page .st-donate h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.st-donate p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.st-donate-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.st-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}

.st-donate-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.st-donate-stripe {
  background: #635bff;
  color: #ffffff;
}

.st-donate-starling {
  background: #6935d8;
  color: #ffffff;
}

.st-release-notes {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content.st-page .st-release-notes h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-white);
}

/* Release notes cards */
.st-rn-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.st-rn-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.st-rn-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.st-rn-version {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-white);
}

.st-rn-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.st-rn-body {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}


.st-legacy-notes {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.st-legacy-notes summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  -webkit-user-select: none;
  user-select: none;
  list-style: none;
}

.st-legacy-notes summary::-webkit-details-marker { display: none; }

.st-legacy-notes summary::before {
  content: '▶ ';
  font-size: 0.7rem;
}

.st-legacy-notes[open] summary::before {
  content: '▼ ';
}

.st-legacy-notes summary:hover {
  color: rgba(255, 255, 255, 0.7);
}

.st-legacy-notes table {
  margin-top: 0.75rem;
}

.release-notes-md h1,
.release-notes-md h2,
.release-notes-md h3,
.release-notes-md h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0.75rem 0 0.25rem;
}
.release-notes-md h1:first-child,
.release-notes-md h2:first-child,
.release-notes-md h3:first-child,
.release-notes-md h4:first-child {
  margin-top: 0;
}
.release-notes-md p {
  margin: 0.25rem 0;
}
.release-notes-md ul,
.release-notes-md ol {
  margin: 0.25rem 0 0.5rem 1.25rem;
  padding: 0;
}
.release-notes-md li {
  margin: 0.15rem 0;
}
.release-notes-md strong {
  color: var(--color-white);
  font-weight: 600;
}
.release-notes-md code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.85em;
}

/* ===== Ordering Cycle Page ===== */
.content.od-page {
  background: var(--color-dark);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.07) 0%, transparent 60%);
  max-width: 100%;
  border-radius: 0;
  padding: 2.5rem 2rem;
}

.content.od-page h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1rem;
}

.od-intro {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.od-intro + .od-intro {
  margin-bottom: 1.5rem;
}

.od-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Year pills */
.od-pills {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.od-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.od-pill:hover {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.od-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}

.od-pill-year {
  font-weight: 400;
  opacity: 0.7;
}

/* Cycle panels */
.od-cycle {
  display: none;
}

.od-cycle.active {
  display: block;
}

/* Card */
.od-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
}

.od-card h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.od-expected {
  color: var(--color-text-light);
  font-size: 0.8rem;
  text-align: center;
  font-style: italic;
  margin-bottom: 1rem;
}

/* Table wrap for horizontal scroll */
.od-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop table */
.od-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 600px;
}

.od-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.od-col-date { width: 20%; }
.od-col-subject { width: 25%; }
.od-col-info { width: 55%; }

.od-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
  line-height: 1.5;
}

.od-table tbody tr:nth-child(even) {
  background: rgba(97, 206, 240, 0.06);
}

.od-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

/* Highlight row (delivery/launch day) */
.od-highlight {
  background: rgba(97, 206, 112, 0.12) !important;
}

.od-highlight td {
  font-weight: 600;
  color: #1a7a2e;
  border-bottom: 2px solid rgba(97, 206, 112, 0.4);
}

/* Desktop/mobile visibility */
.od-mobile-only {
  display: none;
}

/* Mobile cards */
.od-mobile-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.od-mobile-item:last-child {
  border-bottom: none;
}

.od-mobile-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.od-mobile-subject {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.od-mobile-info {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Mobile highlight */
.od-mobile-highlight {
  background: rgba(97, 206, 112, 0.1);
  margin: 0 -1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  border-bottom: none;
}

.od-mobile-highlight .od-mobile-subject {
  color: #1a7a2e;
}

.od-mobile-highlight .od-mobile-info {
  color: #1a7a2e;
  font-weight: 600;
}

/* ===== Pre-Ordering Page (reuses od-page) ===== */
.od-card-text {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.od-card-text:last-child {
  margin-bottom: 0;
}

.od-card-text a {
  color: var(--color-primary);
  word-break: break-all;
}

.od-card-subheading {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.od-card-emphasis {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
}

.od-stocktrackr-cta {
  text-align: center;
  margin-top: 1rem;
}

/* Retailer table columns */
.po-col-retailer { width: 15%; }
.po-col-from { width: 20%; }
.po-col-info { width: 65%; }

.po-table td:first-child {
  font-weight: 600;
}

.po-table td:first-child a {
  color: var(--color-primary);
}

/* Mobile retailer cards */
.po-mobile-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.po-mobile-card:last-child {
  border-bottom: none;
}

.po-mobile-retailer {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.po-mobile-retailer a {
  color: var(--color-primary);
}

.po-mobile-from {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

/* ===== Despatch Page (reuses od-page) ===== */
.ds-table { min-width: 0; }
.ds-col-reseller { width: 40%; }
.ds-col-courier { width: 60%; }

.ds-table td:first-child {
  font-weight: 600;
}

.ds-table td a {
  color: var(--color-primary);
}

.ds-courier-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.ds-courier-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-courier-list li:last-child {
  border-bottom: none;
}

.ds-courier-list a {
  color: var(--color-primary);
}

/* ===== Trading In Page (reuses od-page) ===== */
.ti-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ti-pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: var(--color-white);
  color: var(--color-text-light);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ti-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ti-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.ti-logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 0.75rem;
}

.ti-section {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.ti-section.active {
  display: flex;
}

.ti-stages-list {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.ti-stages-list li {
  margin-bottom: 0.35rem;
}

.ti-stages-list ul {
  padding-left: 1.25rem;
  margin: 0.2rem 0;
  list-style-type: disc;
}

.ti-stages-list ul li {
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
}

.ti-figure {
  margin: 0.75rem 0;
  text-align: center;
}

.ti-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.ti-figure-sm img {
  max-width: min(100%, 280px);
}

.ti-figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.4rem;
}

/* ===== Apple Software Page ===== */
.as-inner {
  max-width: 960px;
  margin: 0 auto;
}

.as-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.as-intro a {
  color: var(--color-primary);
}

.as-mac-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.as-mac-note strong {
  color: rgba(255, 255, 255, 0.75);
}

/* Category pills */
.as-pills {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.as-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.as-pill:hover {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.as-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}

/* Category panels */
.as-category {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.as-category.active {
  display: flex;
}

/* Device card tweaks */
.as-device-card {
  margin-bottom: 0.75rem;
}

.as-device-card:last-child {
  margin-bottom: 0;
}

.as-device-card h3 {
  margin-bottom: 0.25rem;
}

.as-identifier {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-family: monospace;
}

/* Latest firmware summary */
.as-latest {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}

.as-latest-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.as-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.as-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Signing badges */
.as-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.as-badge-signed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.as-badge-unsigned {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.as-badge-sm {
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
}

/* Download button / link */
.as-download-btn {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.as-download-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #93bbfd;
  text-decoration: none;
}

.as-download-btn-alt {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.as-download-btn-alt:hover {
  background: rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.as-download-btn-sm {
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
}

.as-download-group {
  display: flex;
  gap: 0.4rem;
}

.as-download-link {
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.as-download-link:hover {
  text-decoration: underline;
}

.as-download-link + .as-download-link {
  margin-left: 0.5rem;
}

/* Model pills (second-level within category) */
.as-model-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.as-model-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.as-model-pill:hover {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.as-model-pill.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Model panels */
.as-model-panel {
  display: none;
}

.as-model-panel.active {
  display: block;
}

/* Product line pills (iPad: Pro, Air, Standard, Mini) */
.as-line-pills {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.as-line-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.as-line-pill:hover {
  background: rgba(59, 130, 246, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.as-line-pill.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}

/* Product line panels */
.as-line-panel {
  display: none;
}

.as-line-panel.active {
  display: block;
}

/* Release history (details/summary) */
.as-history {
  margin-top: 0.5rem;
}

.as-history-toggle {
  cursor: pointer;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0;
  list-style: none;
}

.as-history-toggle::-webkit-details-marker {
  display: none;
}

.as-history-toggle::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.7em;
  transition: transform 0.2s;
}

.as-history[open] > .as-history-toggle::before {
  transform: rotate(90deg);
}

.as-history-content {
  padding-top: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.as-history-show-row td {
  text-align: center;
  padding: 0.5rem;
}

.as-history-show-all {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.as-history-show-all:hover {
  background: var(--color-bg);
}

/* Firmware table */
.as-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.as-table th {
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.as-table th:first-child {
  border-radius: 6px 0 0;
}

.as-table th:last-child {
  border-radius: 0 6px 0 0;
}

.as-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.as-table tbody tr:nth-child(even) {
  background: rgba(59, 130, 246, 0.04);
}

/* Last updated */
.as-updated {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .as-pills {
    gap: 0.3rem;
  }

  .as-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .as-latest {
    flex-direction: column;
    gap: 0.5rem;
  }

  .as-latest-item {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0.3rem 0;
  }

  .as-table {
    font-size: 0.8rem;
  }

  .as-table th,
  .as-table td {
    padding: 0.4rem 0.5rem;
  }

  .as-model-pill {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }

  .as-line-pills {
    gap: 0.3rem;
  }

  .as-line-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* ===== 404 Page ===== */
.error-page {
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h2 {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile bottom bar */
  .desktop-nav {
    display: none !important;
  }

  .mobile-nav {
    display: block !important;
  }

  /* Extend footer behind fixed nav so no white gap shows */
  .site-footer {
    padding-bottom: 80px;
  }

  /* Hide footer links on mobile (moved to Resources bottom sheet) */
  .desktop-footer-links {
    display: none;
  }

  /* Hide About link in footer on mobile (available in More sheet) */
  .footer-about-link {
    display: none;
  }

  /* Slightly smaller tab items to fit 7 */
  .mobile-nav-item {
    min-width: 40px;
    padding: 6px 2px;
    font-size: 8.5px;
  }

  .mobile-nav-icon {
    font-size: 18px;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-body-inner {
    padding: 1.5rem;
  }

  /* StockTrackr responsive */
  .content.st-page {
    padding: 1.5rem 1rem;
  }

  .st-slideshow-section {
    margin-bottom: 1.5rem;
  }

  .st-slide-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .st-featured {
    padding: 1.5rem 1rem;
  }

  .content.st-page .st-featured h3 {
    font-size: 1.25rem;
  }

  .st-desktop-only {
    display: none !important;
  }

  .st-mobile-message {
    display: block;
  }

  .st-rn-card-header {
    flex-wrap: wrap;
  }

  .st-rn-body {
    font-size: 0.85rem;
  }

  .st-release-notes table {
    font-size: 0.85rem;
  }

  .st-release-notes th,
  .st-release-notes td {
    padding: 0.5rem 0.3rem;
  }

  /* Models & Pricing responsive */
  .content.models-page {
    padding: 1.5rem 1rem;
  }

  .mp-desktop-only {
    display: none !important;
  }

  .mp-mobile-only {
    display: block !important;
  }

  .mp-tabs {
    gap: 0.35rem;
  }

  .mp-tab {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .mp-card {
    padding: 1rem;
  }

  .mp-pills {
    gap: 0.3rem;
  }

  .mp-pill,
  .mp-fpill {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Ordering Cycle responsive */
  .content.od-page {
    padding: 1.5rem 1rem;
  }

  .od-desktop-only {
    display: none !important;
  }

  .od-mobile-only {
    display: block !important;
  }

  .od-pills {
    gap: 0.3rem;
  }

  .od-pill {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .od-card {
    padding: 1rem 1.25rem;
  }

  .od-intro {
    font-size: 0.88rem;
  }
}


.mp-note-inline {
  font-size: 0.75rem;
  opacity: 0.5;
  font-weight: 400;
  white-space: nowrap;
}
