/*
 * Shared styles for the home landing page (en/index.html, de/index.html, es/index.html).
 * Includes a @media (prefers-color-scheme: dark) block so dark mode works automatically.
 */

/* ── Hero ──────────────────────────────────────────────────────────────── */

.alt-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 0;
  min-height: 580px;
  margin: 1.5rem 0 3.5rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #16213e 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.alt-hero-copy {
  padding: clamp(2.5rem, 4vw, 3.75rem) clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.alt-hero-media {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center 20%;
}

/* Blend the photo into the dark panel on its left edge */
.alt-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #16213e 0%, rgba(22, 33, 62, 0.35) 22%, transparent 55%);
}

.alt-hero .alt-nerve {
  display: block;
  margin: 0 0 0.6rem;
  color: #cbd5e1;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}

.alt-hero .alt-nerve strong {
  color: #fcd34d;
  font-weight: 700;
  white-space: nowrap;
}

.alt-hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  font-weight: 800;
}

.alt-hero .alt-stance {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: #cbd5e1;
}

.alt-hero .alt-stance strong { color: #fcd34d; }

.alt-hero .alt-breadth {
  margin: 0 0 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
}

.alt-hero .alt-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.alt-hero .alt-cta a {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  background: #d97706;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.alt-hero .alt-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.4);
}

.alt-hero .alt-cta-note {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
}

@media (max-width: 820px) {
  .alt-hero {
    grid-template-columns: 1fr;
  }
  .alt-hero-media {
    order: -1;
    min-height: 240px;
    background-position: center 18%;
  }
  .alt-hero-media::after {
    background: linear-gradient(0deg, #16213e 0%, rgba(22, 33, 62, 0.2) 40%, transparent 75%);
  }
}

/* ── "What I'm not / What I am" comparison ─────────────────────────────── */

.alt-isnt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.alt-isnt-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.9rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.alt-isnt-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.alt-isnt-no .alt-isnt-label { color: #b91c1c; }
.alt-isnt-yes .alt-isnt-label { color: #15803d; }

.alt-isnt-yes {
  border-top: 3px solid #16a34a;
}

.alt-isnt-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alt-isnt-col li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.9rem;
  line-height: 1.5;
  color: #334155;
  font-size: 0.97rem;
}

.alt-isnt-col li + li { border-top: 1px solid #f1f5f9; }

.alt-isnt-col li::before {
  position: absolute;
  left: 0;
  top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.alt-isnt-no li::before {
  content: "\00d7";
  background: #fee2e2;
  color: #b91c1c;
}

.alt-isnt-yes li::before {
  content: "\2713";
  background: #dcfce7;
  color: #15803d;
}

@media (max-width: 720px) {
  .alt-isnt-grid { grid-template-columns: 1fr; }
}

/* ── FAQ cards ─────────────────────────────────────────────────────────── */

.alt-faq {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.alt-faq-list {
  column-count: 2;
  column-gap: 1.25rem;
}

@media (max-width: 720px) {
  .alt-faq-list { column-count: 1; }
}

.alt-faq-item {
  position: relative;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.75rem 1.5rem 3.4rem;
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.alt-faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
  border-color: #c7d2fe;
}

.alt-faq-item::before {
  content: "Q";
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 800;
}

.alt-faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #0f172a;
}

.alt-faq-item p {
  margin: 0;
  line-height: 1.65;
  color: #475569;
}

.alt-faq-item p + p { margin-top: 0.65rem; }

/* ── Review banner ─────────────────────────────────────────────────────── */

.alt-review-banner {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px dashed #f0c987;
  color: #8a5a00;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.alt-review-banner code {
  font-size: 0.95em;
  word-break: break-word;
}

/* ── Alternating full-bleed bands ──────────────────────────────────────── */

.alt-band {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem;
  box-sizing: border-box;
}

.alt-band > .alt-band-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.alt-band-tint {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f8 18%, #e6edf6 82%, #ffffff 100%);
}

.alt-band-dark {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(217, 119, 6, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #0f172a 0%, #16213e 100%);
  color: #e2e8f0;
}

.alt-band-dark { position: relative; }

.alt-band-dark::before,
.alt-band-dark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}

.alt-band-dark::before {
  top: -48px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.16) 100%);
}

.alt-band-dark::after {
  bottom: -48px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.16) 100%);
}

.alt-band .overview {
  margin-bottom: 0;
}

/* ── Section header ────────────────────────────────────────────────────── */

.alt-section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.alt-section-head .alt-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alt-section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.alt-section-head .alt-lede {
  max-width: 58ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #64748b;
  text-wrap: balance;
}

/* Dark band overrides for the section header */
.alt-band-dark .alt-section-head h2 { color: #f8fafc; }
.alt-band-dark .alt-section-head .alt-lede { color: #cbd5e1; }
.alt-band-dark .alt-section-head .alt-eyebrow {
  background: rgba(252, 211, 77, 0.15);
  color: #fcd34d;
}

/* ── CTA panel (inside dark band) ──────────────────────────────────────── */

.alt-cta-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.alt-cta-panel .alt-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.15);
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alt-cta-panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.alt-cta-panel > p {
  max-width: 56ch;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  text-wrap: balance;
}

.alt-cta-panel-note {
  margin: 1rem auto 0 !important;
  font-size: 0.92rem;
  color: #94a3b8 !important;
}

/* ── Section dividers ──────────────────────────────────────────────────── */

.alt-band-dark .section-divider { margin-top: 0; }
.alt-band-dark .section-divider::before {
  background: linear-gradient(to right, transparent, rgba(148,163,184,0.35), transparent);
}
.alt-band-dark .section-divider span {
  background: transparent;
  color: #cbd5e1;
}

.section-divider {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.section-divider span {
  background: white;
  padding: 0 1.5rem;
  position: relative;
  color: #6b7280;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Story cards ───────────────────────────────────────────────────────── */

.stories-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.story-card-mini {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.story-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.story-card-mini img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
}

.story-card-mini .card-content {
  padding: 1rem;
}

.story-card-mini h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #1a1a2e;
}

.story-card-mini .subtitle {
  font-size: 0.8rem;
  color: #8b1538;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.story-card-mini p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.story-card-mini.coming-soon {
  opacity: 0.9;
}

div.story-card-mini.coming-soon {
  cursor: default;
}

.story-card-mini.coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.story-card-mini .coming-badge {
  display: inline-block;
  background: #d97706;
  color: white;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .stories-preview {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Dark mode overrides
   ══════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {

  /* The tint band gets a dark equivalent */
  .alt-band-tint {
    background: linear-gradient(180deg, #121212 0%, #181e2a 18%, #151b28 82%, #121212 100%);
  }

  /* Section divider pill background on plain body */
  .section-divider span {
    background: #121212;
    color: #9aa5b4;
  }

  .section-divider::before {
    background: linear-gradient(to right, transparent, #333, transparent);
  }

  /* Section header h2 + lede on light bands */
  .alt-section-head h2 {
    color: #e8e8e8;
  }

  .alt-section-head .alt-lede {
    color: #9aa5b4;
  }

  .alt-section-head .alt-eyebrow {
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
  }

  /* "What I'm not / What I am" cards */
  .alt-isnt-col {
    background: #1e1e1e;
    border-color: #2e2e2e;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  }

  .alt-isnt-label {
    border-bottom-color: #2e2e2e;
  }

  .alt-isnt-no .alt-isnt-label { color: #f87171; }
  .alt-isnt-yes .alt-isnt-label { color: #4ade80; }

  .alt-isnt-yes {
    border-top-color: #4ade80;
  }

  .alt-isnt-col li {
    color: #cbd5e1;
  }

  .alt-isnt-col li + li { border-top-color: #2a2a2a; }

  .alt-isnt-no li::before {
    background: #3f1515;
    color: #f87171;
  }

  .alt-isnt-yes li::before {
    background: #14321e;
    color: #4ade80;
  }

  /* FAQ cards */
  .alt-faq-item {
    background: #1e1e1e;
    border-color: #2e2e2e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }

  .alt-faq-item:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    border-color: #4338ca;
  }

  .alt-faq-item::before {
    background: #1e1b4b;
    color: #818cf8;
  }

  .alt-faq-item h3 {
    color: #e2e8f0;
  }

  .alt-faq-item p {
    color: #94a3b8;
  }

  /* Review banner */
  .alt-review-banner {
    background: #1e1508;
    border-color: #7a5f20;
    color: #d4a843;
  }

  /* Story cards */
  .story-card-mini {
    background: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  }

  .story-card-mini:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
  }

  .story-card-mini h4 {
    color: #e2e8f0;
  }

  .story-card-mini .subtitle {
    color: #e0559e;
  }

  .story-card-mini p {
    color: #94a3b8;
  }
}
