/* Starlink Affiliate Sites — Shared Design System */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);
  --max: 1100px;
  --header-h: 64px;
  --sticky-h: 56px;
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-card: #162033;
  --text: #e8eef8;
  --text-muted: #9aa8c0;
  --border: rgba(255,255,255,.08);
  --accent: #4da3ff;
  --accent-hover: #6bb4ff;
  --accent-contrast: #061018;
  --success: #3dd68c;
  --warning: #f5c542;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: calc(var(--sticky-h) + 16px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header-h);
}
.logo {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--accent); }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  text-decoration: none; padding: .35rem .5rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; }

/* Hero variants */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) {
  .hero-inner.hero-split { grid-template-columns: 1.15fr .85fr; }
}
.hero-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1rem;
}
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 38rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.hero-note { font-size: .85rem; color: var(--text-muted); }
.hero-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.stat {
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  padding: .85rem; text-align: center;
}
.stat strong { display: block; font-size: 1.25rem; color: var(--accent); }
.stat span { font-size: .78rem; color: var(--text-muted); }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: .75rem; letter-spacing: -.015em;
}
.section-intro { color: var(--text-muted); max-width: 40rem; margin-bottom: 1.75rem; }

.grid-2, .grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); display: grid; place-items: center;
  font-weight: 800; margin-bottom: .85rem; font-size: .9rem;
}

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-card); color: var(--text); font-weight: 700; }
td { color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
td.highlight { color: var(--success); font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: .65rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, var(--bg)), var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius); padding: 2rem; text-align: center;
  margin: 2rem 0;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.25rem; }

/* Accessories */
.product-list { display: grid; gap: 1rem; }
.product {
  display: grid; gap: .75rem; align-items: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
@media (min-width: 640px) {
  .product { grid-template-columns: 1fr auto; align-items: center; }
}
.product h3 { margin-bottom: .35rem; }
.product p { color: var(--text-muted); font-size: .92rem; }

/* Disclosure / legal */
.disclosure {
  font-size: .8rem; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin: 1.5rem 0;
}
.disclaimer {
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem; margin-top: 2rem;
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid; gap: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-grid h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; color: var(--text-muted); }
.footer-grid a { display: block; color: var(--text-muted); font-size: .9rem; margin-bottom: .4rem; text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; }

/* Sticky CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .65rem 1rem;
}
.sticky-inner {
  width: min(100%, var(--max)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sticky-inner p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.sticky-inner strong { color: var(--text); }

/* Content pages */
.page-hero { padding: 2.5rem 0 1.5rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: .75rem;
}
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose p { margin-bottom: 1rem; color: var(--text-muted); }
.prose ul, .prose ol { margin-bottom: 1rem; color: var(--text-muted); }
.prose strong { color: var(--text); }

.range-note {
  font-size: .85rem; color: var(--warning);
  border-left: 3px solid var(--warning);
  padding: .5rem .85rem; margin: 1rem 0;
  background: color-mix(in srgb, var(--warning) 8%, transparent);
}

.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav .nav-hide { display: none; }
  .sticky-inner p { display: none; }
}
