/* DigitalIncomeAI — Neon Digital Stream Theme */
:root {
  --bg: #0F0F12;
  --surface: #16161D;
  --surface-2: #1C1C26;
  --teal: #14B8A6;
  --teal-dim: rgba(20, 184, 166, 0.15);
  --magenta: #D946EF;
  --magenta-dim: rgba(217, 70, 239, 0.12);
  --grey: #94A3B8;
  --white: #F8FAFC;
  --border: rgba(20, 184, 166, 0.35);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 8px;
  --shadow-glow: 0 0 24px rgba(20, 184, 166, 0.25);
  --max-w: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--magenta); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.logo span { color: var(--teal); }

.nav-desktop { display: none; }

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-desktop a {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--white); }

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
}

.nav-mobile.open { display: block; }

.nav-mobile ul { list-style: none; padding: 0; }
.nav-mobile li { border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--white);
  font-weight: 500;
}

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--magenta);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

.btn-outline:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

/* Main */
main { padding-top: var(--header-h); }

section { padding: 4rem 0; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--teal-dim), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, var(--magenta-dim), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--teal-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-sub { font-size: 1.125rem; color: var(--grey); max-width: 580px; }

.hero-clarify {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--magenta);
  font-size: 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.stream-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* Callout / Disclaimer boxes */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-warning {
  border-color: rgba(217, 70, 239, 0.4);
  background: var(--magenta-dim);
}

.callout h3 { color: var(--teal); font-size: 1rem; }

.disclaimer-block {
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  margin: 2rem 0;
}

.disclaimer-block strong { color: var(--white); }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; padding: 1rem; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}

.stat-label { font-size: 0.85rem; color: var(--grey); }

@media (min-width: 768px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--magenta);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.15);
  transform: translateY(-2px);
}

.card-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
}

/* Programme cards */
.program-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.program-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
}

.program-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.program-card-body { padding: 1.5rem; }

.program-ref {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  margin: 0.75rem 0;
  color: var(--grey);
}

.program-price {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Method steps */
.method-steps { counter-reset: step; }

.method-step {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  counter-increment: step;
}

.method-step::before {
  content: 'Step ' counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .method-step { grid-template-columns: 120px 1fr; align-items: start; }
}

/* FAQ */
.faq-list { list-style: none; padding: 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  color: var(--teal);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { content: '−'; color: var(--magenta); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--grey);
}

.faq-item.open .faq-answer { display: block; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-group input { width: auto; margin-top: 0.3rem; accent-color: var(--teal); }

.checkbox-group label { font-size: 0.875rem; color: var(--grey); font-weight: 400; }

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.form-status.show { display: block; }
.form-status.success { background: var(--teal-dim); border: 1px solid var(--teal); color: var(--white); }
.form-status.error { background: var(--magenta-dim); border: 1px solid var(--magenta); color: var(--white); }

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.trust-item { display: flex; align-items: center; gap: 0.5rem; }
.trust-item::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { max-width: 640px; }

/* Content prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; color: var(--teal); }

.content-wide { max-width: 900px; }

/* Two column layout */
.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Snapshot / testimonial */
.snapshot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--teal);
}

.snapshot-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--teal-dim), var(--magenta-dim));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-section h2 { margin-bottom: 1rem; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo { margin-bottom: 1rem; display: inline-block; }

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--grey); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-disclaimer {
  font-size: 0.8rem;
  padding: 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 1.5rem;
  line-height: 1.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.cookie-text { font-size: 0.875rem; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }

.cookie-customise {
  display: none;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-customise.show { display: block; }

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

@media (min-width: 768px) {
  .cookie-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
}

/* Animations */
.js .fade-in,
.js .slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .fade-in.visible,
.js .slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .fade-in,
.no-js .slide-up { opacity: 1; transform: none; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Service detail */
.service-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.service-block:last-child { border-bottom: none; }

.service-included {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 600px) {
  .service-included { grid-template-columns: 1fr 1fr; }
}

.included-list h4 { color: var(--teal); font-size: 0.9rem; margin-bottom: 0.5rem; }
.not-included h4 { color: var(--magenta); font-size: 0.9rem; margin-bottom: 0.5rem; }

.included-list ul,
.not-included ul { font-size: 0.9rem; }

/* Legal tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.info-table th {
  background: var(--surface-2);
  color: var(--white);
  font-weight: 600;
  width: 35%;
}

/* Contact hours */
.contact-info { list-style: none; padding: 0; }
.contact-info li { margin-bottom: 0.75rem; padding-left: 0; }
.contact-info strong { color: var(--white); }

.map-placeholder {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--grey);
}
