/* ============================================================
   ShieldPlayer — shared styles
   Design tokens, layout, components, page sections.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --black: #000000;
  --navy: #00293B;
  --gold: #E3B23C;
  --grey: #808080;
  --white: #FFFFFF;

  --navy-95: #002030;
  --navy-soft: #0E3A4D;
  --grey-100: #F5F6F7;
  --grey-200: #E8EAED;
  --grey-300: #D0D4D8;
  --grey-700: #4A4F55;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 41, 59, 0.06), 0 2px 8px rgba(0, 41, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 41, 59, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 41, 59, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --container-narrow: 880px;

  --t-fast: 120ms ease;
  --t-med:  240ms ease;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--grey-700); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--container-narrow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all var(--t-fast);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #d6a430; color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); color: var(--white); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 18px; }
.brand img { height: 36px; width: 36px; }
.brand span { letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: 15px; }
.nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); margin: 5px auto;
  transition: transform var(--t-fast);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); padding: 18px 24px;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow-md);
    gap: 14px;
  }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-decor img {
  width: 90%;
  margin: 0 auto;
  filter: drop-shadow(0 16px 60px rgba(227,178,60,.15));
  opacity: 0.98;
}
@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-decor img { width: 60%; }
}

/* ---------- Generic section ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark p { color: rgba(255,255,255,.78); }
.section.grey { background: var(--grey-100); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--grey-700); font-size: 17px; }
.section.dark .section-head p { color: rgba(255,255,255,.7); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

/* ---------- Platform icons strip ---------- */
.platforms {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 28px 0;
}
.platform-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 56px;
}
.platform-row .platform {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--grey);
  font-size: 13px; font-weight: 500;
}
.platform svg { width: 36px; height: 36px; color: var(--navy); }

/* ---------- Video placeholder ---------- */
.video-frame {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--navy-soft);
}
.video-frame::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(227,178,60,0.10) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, transparent 6px 12px);
}
.video-frame .play-icon {
  position: relative; z-index: 2;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(227,178,60,0.45);
}
.video-frame .play-icon::after {
  content: "";
  width: 0; height: 0;
  border-left: 24px solid var(--navy);
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.video-frame .label {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  color: rgba(255,255,255,.6); font-size: 13px;
  font-family: var(--font-mono);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--grey-200);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(227,178,60,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- Comparison block ---------- */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 28px; align-items: stretch;
}
.compare-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--grey-200);
}
.compare-card.them { background: var(--grey-100); }
.compare-card.us { background: var(--navy); color: var(--white); border-color: var(--navy); }
.compare-card.us h3 { color: var(--gold); }
.compare-card h3 { font-size: 18px; margin-bottom: 16px; }
.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card li {
  padding: 10px 0; padding-left: 28px;
  position: relative; font-size: 14.5px; line-height: 1.55;
  border-bottom: 1px solid rgba(0,41,59,.07);
}
.compare-card.us li { color: rgba(255,255,255,.88); border-bottom-color: rgba(255,255,255,.07); }
.compare-card li:last-child { border-bottom: 0; }
.compare-card li::before {
  position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.compare-card.them li::before { content: "✕"; background: rgba(128,128,128,.18); color: var(--grey); }
.compare-card.us li::before { content: "✓"; background: rgba(227,178,60,.18); color: var(--gold); }
.compare-divider {
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--gold); font-size: 28px;
}
@media (max-width: 880px) {
  .compare { grid-template-columns: 1fr; }
  .compare-divider { padding: 8px 0; }
}

/* ---------- Feature row (used on features page) ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--grey-200);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row .feature-text h2 { font-size: 1.6rem; }
.feature-row .feature-text .eyebrow { color: var(--gold); }
.feature-row .feature-text p { font-size: 16px; }
.feature-mock {
  background: var(--navy);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
}
.feature-mock::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(227,178,60,0.15) 0%, transparent 60%);
}
.feature-mock .mock-label {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: 13px;
  background: rgba(255,255,255,0.06);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature-row.reverse > :first-child { order: 0; }
}

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: inline-flex;
  background: var(--grey-100);
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto 36px;
  border: 1px solid var(--grey-200);
}
.pricing-toggle button {
  padding: 10px 20px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--grey-700);
  transition: all var(--t-fast);
}
.pricing-toggle button.active { background: var(--navy); color: var(--white); }
.pricing-toggle .badge {
  background: var(--gold); color: var(--navy);
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; margin-left: 6px; font-weight: 700;
}

.pricing-table {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.pricing-table-head {
  background: var(--navy); color: var(--white);
  padding: 14px 24px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 16px 24px;
  border-top: 1px solid var(--grey-200);
  align-items: center;
}
.pricing-row .price {
  font-weight: 700; color: var(--navy); font-size: 16px;
}
.pricing-row .unit { color: var(--grey); font-size: 13px; margin-left: 4px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400;
  color: var(--gold);
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--grey-700);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Guide page ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.guide-sidebar {
  position: sticky; top: 96px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 18px;
}
.guide-sidebar h4 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--grey);
  margin: 0 0 12px;
}
.guide-sidebar ul { list-style: none; padding: 0; margin: 0; }
.guide-sidebar a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: var(--navy); font-weight: 500;
  transition: background var(--t-fast);
}
.guide-sidebar a:hover { background: var(--grey-100); }
.guide-sidebar a.active { background: rgba(227,178,60,.12); color: var(--gold); }

.guide-body h2 { margin-top: 48px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body ol { padding-left: 22px; }
.guide-body ol li { padding: 8px 0; font-size: 15.5px; color: var(--navy); }
.guide-body .callout {
  background: rgba(227,178,60,.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
}
@media (max-width: 880px) {
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .guide-sidebar { position: static; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }
.footer-brand span { color: var(--white); font-weight: 700; font-size: 18px; }
.site-footer h4 {
  color: var(--white); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 5px 0; font-size: 14px; }
.site-footer ul a { color: rgba(255,255,255,.7); }
.site-footer ul a:hover { color: var(--gold); }
.contact-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.text-grey { color: var(--grey); }
