:root {
  --green: #43B02A;
  --accent: #43B02A;
  --text: #0a0a0a;
  --muted: #555;
  --bg: #ffffff;
  --card: #f7f7f7;
  --card-hover: #f0f0f0;
  --border: #e0e0e0;
  --border-subtle: #eaeaea;
  --shadow: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --text: #e8e8e8;
  --muted: #888;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #222;
  --border-subtle: #1a1a1a;
  --shadow: 0 2px 8px rgba(255,255,255,0.02);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; font-size: 16px }
body { 
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px }
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:8px;top:8px;width:auto;height:auto;background:var(--green);color:white;padding:12px 16px;border-radius:4px;z-index:999}

.site-header { 
  border-bottom: 1px solid var(--border); 
  background: var(--bg);
  position: sticky; 
  top: 0; 
  z-index: 10;
  transition: border-color 0.3s ease;
}
.header-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 24px 0;
  gap: 20px;
}
.logo { 
  font-weight: 800; 
  font-size: 20px;
  color: var(--text); 
  text-decoration: none; 
  letter-spacing: -0.5px;
  transition: opacity 0.2s ease;
}
.logo:hover { opacity: 0.7 }
.nav-list { 
  list-style: none; 
  display: flex; 
  gap: 32px; 
  margin: 0; 
  padding: 0;
}
.nav a { 
  color: var(--muted); 
  text-decoration: none; 
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.2s ease;
}
.nav a:hover { color: var(--text) }
.nav a:hover::after { width: 100% }
.nav a:focus { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 2px }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); padding: 8px 12px; border-radius: 4px; cursor: pointer; color: var(--text); font-size: 14px }
.theme-toggle { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  border: 1px solid var(--border); 
  background: var(--bg); 
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.theme-toggle svg path {
  fill: var(--text);
}
.theme-toggle:hover { background: var(--card); border-color: var(--muted); transform: scale(1.08) }
.theme-toggle:focus { outline: 2px solid var(--green); outline-offset: 4px }

.language-selector {
  position: relative;
  display: inline-block;
}
.language-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.language-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.language-btn svg path {
  fill: var(--text);
}
.language-btn:hover {
  background: var(--card);
}
.language-btn:focus {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 150px;
  z-index: 100;
  padding: 4px 0;
}
.language-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 0;
  width: 100%;
  height: 8px;
}
.language-selector:hover .language-dropdown,
.language-dropdown:hover {
  display: block;
}
.language-option {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.language-option:last-child {
  border-bottom: none;
}
.language-option:hover {
  background: var(--bg);
  color: var(--text);
}
.language-option.active {
  color: var(--green);
  font-weight: 600;
}

.hero { 
  padding: 180px 0 160px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1 }
.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero h1 { 
  font-size: clamp(44px, 7vw, 76px); 
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
}
.subhead { 
  color: var(--muted); 
  font-size: clamp(17px, 2.5vw, 22px); 
  margin-bottom: 48px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-row { 
  display: flex; 
  gap: 16px; 
  justify-content: center;
  flex-wrap: wrap;
}
.btn { 
  display: inline-block; 
  padding: 14px 28px; 
  border-radius: 4px; 
  text-decoration: none; 
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary { 
  background: var(--green); 
  color: white;
  border-color: var(--green);
}
.btn-primary:hover { 
  background: transparent;
  color: var(--green);
  transform: translateY(-1px);
}
.btn-secondary { 
  border: 2px solid var(--border); 
  background: transparent; 
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn-tertiary { 
  color: var(--muted);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}
.btn-tertiary:hover { color: var(--text) }
.btn:focus { outline: 2px solid var(--green); outline-offset: 4px }

/* ==========================================
   Section Titles (shared)
   ========================================== */
.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  text-align: center;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ==========================================
   Brand Statement
   ========================================== */
.brand-statement {
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.brand-text {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 65ch;
  margin: 0 auto;
}
.brand-text + .brand-text {
  margin-top: 12px;
}

/* ==========================================
   Ecosystem Pillars
   ========================================== */
.pillars {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.pillar-card {
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pillar-icon {
  margin-bottom: 20px;
  color: var(--accent);
  opacity: 0.7;
}

.pillar-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}

@media (max-width: 600px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pillar-card {
    padding: 28px 24px;
  }
}

/* ==========================================
   Philosophy
   ========================================== */
.philosophy {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.philosophy-quote {
  font-style: normal;
  text-align: center;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
  max-width: 800px;
  margin: 24px auto 32px;
  color: var(--text);
}

.philosophy-quote p {
  margin: 0;
}

.philosophy-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

.products { 
  padding: 100px 0;
}
.products h2 { 
  font-size: clamp(32px, 5vw, 48px); 
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
}

.platform-group + .platform-group {
  margin-top: 80px;
}

.platform-group__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}

.platform-hero {
  margin-top: 28px;
  --device-screen-scale: -3.2%;
  --mac-screen-scale: 9%;
}

.platform-hero__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.platform-hero__link .device-shot {
  cursor: pointer;
}

.platform-hero__link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 6px;
}

.platform-group .product-grid {
  margin-top: 32px;
}

.product-grid--two {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

@media (max-width: 700px) {
  .product-grid--two {
    grid-template-columns: 1fr;
  }
}

.product-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 40px;
  margin-top: 60px;
}
.product-card { 
  display: flex;
  flex-direction: column;
  gap: 20px; 
  padding: 40px 32px; 
  border-radius: 2px; 
  background: var(--card); 
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--green);
}
.product-icon { 
  width: 80px; 
  height: 80px; 
  margin-bottom: 8px;
}
.product-content h3 { 
  margin: 0 0 8px; 
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.product-content .tagline { 
  color: var(--muted); 
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
}
.product-content .blurb { 
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 14px;
}
.features { 
  margin: 0 0 24px; 
  padding-left: 20px;
  list-style: none;
}
.features li {
  position: relative;
  padding-left: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}
.features li:before {
  content: "—";
  position: absolute;
  left: -20px;
  color: var(--green);
  font-weight: 700;
}
.actions { 
  display: flex; 
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.actions img {
  transition: opacity 0.2s ease;
}
.actions a:hover img {
  opacity: 0.8;
}
.product-card:focus-within { outline: 2px solid var(--green); outline-offset: 4px }

.highlight { 
  padding: 80px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote { 
  font-style: normal; 
  color: var(--text); 
  text-align: center;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
}

.about, .contact { 
  padding: 80px 0;
  max-width: 700px;
  margin: 0 auto;
}
.about p {
  max-width: 65ch;
}
.about h2, .contact h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.about p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.contact-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 16px;
}
.contact-list li {
  font-size: 16px;
  color: var(--muted);
}
.contact-list a { 
  color: var(--green); 
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.contact-list a:hover {
  opacity: 0.7;
}

.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 60px 0 40px;
  background: var(--card);
}
.footer-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 20px; 
  flex-wrap: wrap;
}
.footer-inner small {
  color: var(--muted);
  font-size: 14px;
}
.footer-links { 
  list-style: none; 
  display: flex; 
  gap: 24px; 
  margin: 0; 
  padding: 0;
}
.footer-links a { 
  color: var(--muted); 
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text);
}

/* Product pages (scoped by .product-page) */
.product-page {
  padding: 40px 0;
  /* Screenshot sizing knob: 0% = default. Increase to shrink screen; decrease to grow. */
  --device-screen-scale: -3.2%;
  --mac-screen-scale: 9%;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.product-hero__icon {
  margin-bottom: 20px;
}

.product-lead {
  color: var(--muted);
  margin: 12px 0 20px;
  font-size: 18px;
  line-height: 1.6;
}

.product-highlights {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}

.product-highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.product-highlights li:before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.product-cta img {
  transition: opacity 0.2s ease;
}

.product-cta a:hover img {
  opacity: 0.8;
}

.product-section {
  margin-top: 80px;
  max-width: 720px;
}

.product-section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
}

.product-section h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 40px 0 16px;
}

.product-section > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.product-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 24px;
}

.product-section li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.product-section li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.product-section li strong {
  color: var(--text);
  font-weight: 600;
}

.product-shot-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.product-shot-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.device-shot {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.device-shot__stage {
  position: relative;
}

.device-shot__bezel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.device-shot__screen {
  position: absolute;
  overflow: visible;
  z-index: 1;
}

.device-shot__screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 900px) {
  .device-shot__screen img {
    cursor: pointer;
  }
}

.device-shot figcaption {
  margin-top: 12px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

/* Insets are best-effort; tune per bezel asset */
.device-shot--iphone .device-shot__screen {
  --screen-inset-y: 5.5%;
  --screen-inset-x: 8.5%;
  top: calc(var(--screen-inset-y) + var(--device-screen-scale));
  bottom: calc(var(--screen-inset-y) + var(--device-screen-scale));
  left: calc(var(--screen-inset-x) + var(--device-screen-scale));
  right: calc(var(--screen-inset-x) + var(--device-screen-scale));
  border-radius: 8%;
  overflow: hidden;
}

.device-shot--iphone .device-shot__screen img {
  border-radius: 8%;
}

.device-shot--ipad .device-shot__screen {
  --screen-inset-y: 7.5%;
  --screen-inset-x: 6.5%;
  top: calc(var(--screen-inset-y) + var(--device-screen-scale));
  bottom: calc(var(--screen-inset-y) + var(--device-screen-scale));
  left: calc(var(--screen-inset-x) + var(--device-screen-scale));
  right: calc(var(--screen-inset-x) + var(--device-screen-scale));
}

/* Portrait iPad bezel — different proportions to landscape */
.device-shot--ipad-portrait .device-shot__screen {
  --screen-inset-y: 5.0%;
  --screen-inset-x: 8.0%;
  top: calc(var(--screen-inset-y) + var(--device-screen-scale));
  bottom: calc(var(--screen-inset-y) + var(--device-screen-scale));
  left: calc(var(--screen-inset-x) + var(--device-screen-scale));
  right: calc(var(--screen-inset-x) + var(--device-screen-scale));
}

.device-shot--mac .device-shot__screen {
  --screen-inset-y: 6.5%;
  --screen-inset-x: 10%;
  top: calc(var(--screen-inset-y) + var(--mac-screen-scale));
  bottom: calc(var(--screen-inset-y) + var(--mac-screen-scale));
  left: calc(var(--screen-inset-x) + var(--mac-screen-scale));
  right: calc(var(--screen-inset-x) + var(--mac-screen-scale));
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px !important;
  }

  .hero { padding: 100px 0 80px }
  .hero h1 { font-size: 34px; letter-spacing: -1.5px }
  .hero-label { font-size: 11px; margin-bottom: 20px }
  .brand-statement { padding: 60px 0 }
  .brand-text { font-size: 17px }
  .pillars { padding: 60px 0 }
  .pillar-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px }
  .philosophy { padding: 60px 0 }
  .philosophy-quote { font-size: 20px }
  .products { padding: 60px 0 }
  .products h2 { margin-bottom: 16px }
  .product-grid { gap: 24px }
  .nav-toggle { display: block }
  .nav-list { display: none }
  .nav[data-open="true"] .nav-list { 
    display: flex; 
    flex-direction: column; 
    background: var(--card); 
    position: absolute; 
    top: 70px; 
    right: 24px; 
    padding: 16px; 
    border-radius: 4px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    gap: 16px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Product page mobile improvements */
  .product-page {
    padding: 32px 0;
  }

  .product-hero {
    gap: 32px;
    padding-top: 32px;
  }

  .product-hero__icon {
    margin-bottom: 16px;
    width: 96px;
    height: 96px;
  }

  .product-page h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .product-lead {
    font-size: 16px;
    margin: 12px 0 16px;
  }

  .product-highlights {
    margin: 0 0 20px;
  }

  .product-highlights li {
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 18px;
  }

  .product-cta {
    margin-top: 20px;
  }

  .product-cta img {
    max-width: 140px;
  }

  .product-shot-title {
    font-size: 20px;
    margin: 0 0 6px;
  }

  .product-shot-lead {
    font-size: 13px;
    margin: 0 0 16px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .device-shot {
    padding: 14px;
  }

  .device-shot figcaption {
    margin-top: 12px;
    font-size: 13px;
  }

  .product-section {
    margin-top: 56px;
  }

  .product-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .product-section h3 {
    font-size: 18px;
    margin: 32px 0 12px;
  }

  .product-section > p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .product-section li {
    margin-bottom: 16px;
    font-size: 14px;
    padding-left: 20px;
  }
}

@media (min-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
  }

  .product-hero__copy {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* Screenshot Modal/Lightbox */
.screenshot-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.screenshot-modal.is-open {
  display: flex;
}

.screenshot-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.screenshot-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-modal__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-modal__close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.screenshot-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.screenshot-modal__close:focus {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

/* ==========================================
   Theory Coverage Section
   ========================================== */
.theory-coverage {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.theory-coverage h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.theory-coverage > p {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.6;
}

.theory-group {
  margin-bottom: 40px;
}

.theory-group + .theory-group {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.theory-group h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
  color: var(--text);
}

.theory-group > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.theory-group h4 {
  font-size: 12px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.theory-group h4:first-of-type {
  margin-top: 0;
}

.theory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.theory-tags li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  white-space: nowrap;
}

.theory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.theory-stat {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.theory-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--green);
  margin-bottom: 4px;
}

.theory-stat span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .theory-coverage {
    margin-top: 56px;
    padding-top: 48px;
  }
  .theory-coverage h2 {
    font-size: 22px;
  }
  .theory-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .theory-stat {
    padding: 14px 8px;
  }
  .theory-stat strong {
    font-size: 24px;
  }
  .theory-stat span {
    font-size: 11px;
  }
  .theory-tags li {
    font-size: 12px;
    padding: 4px 8px;
  }
  .theory-group {
    margin-bottom: 32px;
  }
  .theory-group + .theory-group {
    padding-top: 24px;
  }
}

/* ==========================================
   Cookie Consent Banner
   ========================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 20px;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent__text {
  flex: 1;
  min-width: 250px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.cookie-consent__text a {
  color: var(--green);
  text-decoration: underline;
}

.cookie-consent__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.cookie-consent__btn--accept {
  background: var(--green);
  color: white;
}

.cookie-consent__btn--accept:hover {
  background: #00a86b;
}

.cookie-consent__btn--deny {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-consent__btn--deny:hover {
  background: var(--bg);
}

@media (max-width: 768px) {
  .cookie-consent__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .cookie-consent__buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookie-consent__btn {
    width: 100%;
    text-align: center;
  }
}

/* Coming Soon store badges */
.store-badge--disabled {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.coming-soon-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
