/* ============================================================
   TALK TODAY. — Design System
   Brand Identity V1.0 · Hearth-light on evening navy
   ============================================================ */

:root {
  /* Palette */
  --hearth: #FF5A1F;      /* Primary 01 · Hearth Orange */
  --navy:   #1A2B4A;      /* Anchor 02 · Evening Navy   */
  --sky:    #00BFFF;      /* Breath 03 · Sky            */
  --mist:   #DFE5EE;      /* Ground 04 · Mist Grey      */
  --ink:    #2C2825;      /* Text 05 · Ink (never pure black) */
  --cream:  #F4F1EC;

  /* Light theme (default) */
  --bg: var(--mist);
  --bg-raise: #EDF1F7;
  --surface: #FFFFFF;
  --text: var(--ink);
  --text-strong: var(--navy);
  --text-muted: #5B6472;
  --hero-bg: var(--navy);
  --hero-text: #EDF1F7;
  --hero-muted: #A9B4C6;
  --border: rgba(26, 43, 74, .12);
  --shadow: 0 10px 30px rgba(26, 43, 74, .10);

  --font-display: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --max-w: 1080px;
}

[data-theme="dark"] {
  --bg: #14213A;
  --bg-raise: #182642;
  --surface: var(--navy);
  --text: #D9E0EB;
  --text-strong: #EDF1F7;
  --text-muted: #A9B4C6;
  --hero-bg: #101B31;
  --hero-text: #EDF1F7;
  --hero-muted: #A9B4C6;
  --border: rgba(223, 229, 238, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  transition: background .3s ease, color .3s ease;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 0 0 .5em;
}
h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.5rem); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 2.5vw, 1.6rem); letter-spacing: -0.03em; }

.accent { color: var(--hearth); }
.italic-soul {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text-muted);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hearth);
  margin: 0 0 1rem;
}
.lead { font-size: 1.1rem; max-width: 46rem; }

/* ---------- Ember ---------- */
.ember {
  display: inline-block;
  color: var(--hearth);
  animation: ember-pulse 2.8s ease-in-out infinite;
}
@keyframes ember-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 6px rgba(255, 90, 31, .55); }
  50%      { opacity: .72; text-shadow: 0 0 14px rgba(255, 90, 31, .9); }
}
@media (prefers-reduced-motion: reduce) {
  .ember { animation: none; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-w); margin: 0 auto;
}
.logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; line-height: .9; letter-spacing: -0.04em;
  text-transform: uppercase; text-decoration: none;
  color: var(--text-strong);
}
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-weight: 600; font-size: .85rem; text-decoration: none;
  color: var(--text); opacity: .85;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--hearth); opacity: 1; }

.nav-controls { display: flex; gap: 8px; align-items: center; }
.ctrl-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; line-height: 1;
  transition: border-color .2s, color .2s;
}
.ctrl-btn:hover { border-color: var(--hearth); color: var(--hearth); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-strong); margin: 5px 0; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 18px 24px;
    border-bottom: 1px solid var(--border); gap: 14px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-text);
  padding: 96px 0 88px;
}
.hero h1 { color: var(--hero-text); max-width: 18ch; }
.hero .italic-soul { color: var(--hero-muted); max-width: 44rem; }
.hero .eyebrow { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: .95rem; text-decoration: none; border-radius: 10px;
  padding: 14px 26px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn-primary { background: var(--hearth); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 90, 31, .35); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1.5px solid currentColor; opacity: .9;
}
.btn-ghost:hover { color: var(--hearth); opacity: 1; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  color: var(--text); /* don't inherit light text from dark .band sections */
}
.card h3 { color: var(--text-strong); }
.card p { color: var(--text); }
.card h3 { margin-top: .4rem; }
.card .eyebrow { margin-bottom: .3rem; }

.question-card {
  background: var(--navy); color: #EDF1F7;
  border-radius: var(--radius); padding: 38px 34px;
  max-width: 420px; box-shadow: var(--shadow);
}
.question-card .meta {
  display: flex; justify-content: space-between;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 26px;
}
.question-card .q {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.05;
  letter-spacing: -0.03em; text-transform: uppercase; color: #fff;
}
.question-card .hint {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: .95rem; color: #A9B4C6; margin-top: 18px;
}
.question-card .foot {
  display: flex; justify-content: space-between; margin-top: 30px;
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: #6B7A96;
}

/* ---------- Dark band section ---------- */
.band {
  background: var(--hero-bg); color: var(--hero-text);
}
.band h2 { color: var(--hero-text); }
.band .italic-soul { color: var(--hero-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 480px; }
.field label {
  display: block; font-weight: 600; font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
  color: var(--text-strong);
}
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%; padding: 13px 15px; font-family: var(--font-body);
  font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--hearth); }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.checkbox-row input { margin-top: 4px; accent-color: var(--hearth); }
.form-status { font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1F9D55; }
.form-status.err { color: var(--hearth); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Lists ---------- */
.sample-list { list-style: none; margin: 0; padding: 0; }
.sample-list li {
  padding: 14px 0 14px 26px; position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
}
.sample-list li::before {
  content: "●"; color: var(--hearth); font-size: .55rem;
  position: absolute; left: 0; top: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-bg); color: var(--hero-muted);
  padding: 54px 0 40px; margin-top: 40px; font-size: .88rem;
}
.site-footer .logo { color: #EDF1F7; font-size: 1.3rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--hero-muted); text-decoration: none; }
.site-footer a:hover { color: var(--hearth); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(223,229,238,.12); font-size: .78rem; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; text-transform: none; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose p, .prose li { font-size: .98rem; }

/* ---------- Early-bird sticker (small floating promo) ---------- */
.eb-sticker {
  position: fixed; z-index: 90;
  width: 158px; height: 158px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(16, 27, 49, .4));
  transition: transform .25s ease;
  animation: eb-pop .5s ease .8s backwards;
}
.eb-sticker img { display: block; width: 100%; height: 100%; }
.eb-sticker:hover { transform: scale(1.07) rotate(2deg) !important; }
.eb-sticker .eb-close {
  position: absolute; top: 2px; right: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #EDF1F7;
  border: 1px solid rgba(223,229,238,.4);
  font-size: .85rem; line-height: 1; cursor: pointer;
}
.eb-sticker .eb-close:hover { color: var(--hearth); }
@keyframes eb-pop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
@media (max-width: 760px) { .eb-sticker { width: 118px; height: 118px; } }
@media (prefers-reduced-motion: reduce) { .eb-sticker { animation: none; } }

/* ---------- Price line (early bird vs regular) ---------- */
.price-line {
  display: flex; align-items: baseline; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin: 1.2rem 0 1.4rem;
}
.price-old {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--text-muted); text-decoration-thickness: 2px;
}
.price-new {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em;
  color: var(--hearth);
}
.price-line .badge { transform: translateY(-6px); }

/* ---------- Feedback modal (exit intent) ---------- */
.fb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 27, 49, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.fb-overlay.show { opacity: 1; pointer-events: auto; }
.fb-modal {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 34px 30px 28px; position: relative;
  transform: translateY(14px); transition: transform .3s ease;
}
.fb-overlay.show .fb-modal { transform: translateY(0); }
.fb-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--text-muted); padding: 6px;
}
.fb-close:hover { color: var(--hearth); }
.fb-modal h2 {
  font-size: 1.5rem; margin-bottom: .4rem;
}
.fb-modal .fb-intro { font-size: .95rem; color: var(--text-muted); margin: 0 0 1.2rem; }
.fb-modal textarea {
  width: 100%; min-height: 110px; resize: vertical;
  padding: 13px 15px; font-family: var(--font-body); font-size: 1rem;
  color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; outline: none;
}
.fb-modal textarea:focus { border-color: var(--hearth); }

/* ---------- Start here: flip deck ---------- */
.flip-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 2.5rem;
}
@media (max-width: 1000px) { .flip-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px)  { .flip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .flip-grid { grid-template-columns: repeat(2, 1fr); } }

.flip-card {
  position: relative;
  display: block;
  perspective: 900px;
  aspect-ratio: 3 / 4.6;
  min-height: 150px;            /* fallback if aspect-ratio unsupported */
  cursor: pointer;
  border: 0; background: none; padding: 0; /* it's a <button> */
  -webkit-tap-highlight-color: transparent;
}
.flip-inner {
  display: block;               /* spans are inline — without this the card collapses */
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.25,1);
}
.flip-card.open .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
/* back of the card (visible while face-down) — must stand out on the navy hero */
.flip-back {
  background: linear-gradient(160deg, #35507F 0%, #24395F 55%, #1A2B4A 100%);
  border: 1.5px solid rgba(223,229,238,.35);
  align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(223,229,238,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .5s ease, opacity .5s ease;
}
.flip-card:not(.open):not(.spent):hover .flip-back { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(16,27,49,.45); }
.flip-back .logo-mini {
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: -0.02em; text-transform: uppercase; color: #EDF1F7;
  line-height: .95; text-align: center;
}
.flip-back .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hearth);
  box-shadow: 0 0 8px rgba(255,90,31,.8); animation: ember-pulse 2.8s ease-in-out infinite; }
/* front of the card (the question) */
.flip-front {
  transform: rotateY(180deg);
  background: var(--navy); color: #EDF1F7;
  border: 1px solid rgba(255,90,31,.45);
  padding: 12px 12px 10px; justify-content: space-between;
  box-shadow: 0 12px 30px rgba(16,27,49,.5);
}
.flip-front .no {
  font-size: .58rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sky);
}
.flip-front .q {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(.78rem, 1.6vw, 1rem); line-height: 1.12;
  letter-spacing: -0.02em; color: #fff; margin: 8px 0;
}
.flip-front .ticker {
  font-variant-numeric: tabular-nums;
  font-size: .85rem; font-weight: 600; color: var(--hearth);
}
/* spent: flipped back + blurred */
.flip-card.spent { cursor: default; }
.flip-card.spent .flip-back { filter: blur(3px) saturate(.6); opacity: .55; }
.flip-card.spent::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
}
.flip-counter {
  font-weight: 600; font-size: .95rem; margin-top: 1.6rem;
}
.flip-msg { font-weight: 600; color: var(--hearth); min-height: 1.4em; margin-top: .6rem; }

/* ---------- Deck photo ---------- */
.deck-photo { margin: 0; }
.deck-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(16, 27, 49, .45);
}
.deck-photo figcaption {
  margin-top: 14px; font-size: 1rem; text-align: center;
}

/* ---------- Language blocks (long prose) ---------- */
html[data-lang="de"] .lang-en { display: none; }
html[data-lang="en"] .lang-de { display: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block; background: var(--hearth); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; border-radius: 6px; padding: 5px 10px;
}
