/* ==========================================================================
   LingoNews — lingonews.app
   Brand system: cream #F2EDE6 · navy #1B3A5C · ochre #EB984E · terra #CA6F1E
   Type: Merriweather (display / German text) · Source Sans 3 (UI / body)
   ========================================================================== */

:root {
  --cream: #F2EDE6;
  --paper: #FBF8F3;
  --white: #FFFFFF;
  --navy: #1B3A5C;
  --navy-deep: #14293F;
  --navy-soft: #2E4E72;
  --ochre: #EB984E;
  --terra: #CA6F1E;
  --ink: #1B3A5C;
  --muted: rgba(27, 58, 92, 0.72);
  --faint: rgba(27, 58, 92, 0.52);
  --line: rgba(27, 58, 92, 0.14);
  --line-soft: rgba(27, 58, 92, 0.08);
  --cream-on-navy: rgba(242, 237, 230, 0.82);
  --shadow-sm: 0 1px 2px rgba(20, 41, 63, 0.06), 0 2px 8px rgba(20, 41, 63, 0.06);
  --shadow-md: 0 2px 6px rgba(20, 41, 63, 0.07), 0 12px 32px rgba(20, 41, 63, 0.10);
  --shadow-lg: 0 4px 12px rgba(20, 41, 63, 0.10), 0 24px 64px rgba(20, 41, 63, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--ochre); color: var(--navy-deep); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-ochre {
  background: var(--ochre);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-ochre:hover { background: #F0A660; box-shadow: var(--shadow-md); }

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-width: 190px;
}
.btn-store:hover { background: var(--navy); text-decoration: none; transform: translateY(-1px); }
.btn-store svg { width: 26px; height: 26px; flex: none; fill: var(--cream); }
.btn-store .store-label { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store .store-label small {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 237, 230, 0.7);
}
.btn-store .store-label strong { font-size: 1.05rem; font-weight: 700; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 237, 230, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover {
  background: rgba(27, 58, 92, 0.07);
  text-decoration: none;
}
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 10px 20px;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--navy-soft); }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231B3A5C" d="M7 10l5 5 5-5z"/></svg>') right 8px center / 14px no-repeat;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 28px 8px 14px;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 20px; }
.hero .lede {
  font-size: 1.22rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--faint);
}

.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: 0.04em;
  height: 0.16em;
  border-radius: 0.08em;
  background: var(--ochre);
  z-index: -1;
}

/* ---------- Phone mock & article demo ---------- */

.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -6% -4% -6%;
  background: radial-gradient(closest-side, rgba(235, 152, 78, 0.22), transparent 72%);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(340px, 88vw);
  background: var(--navy-deep);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
}
.phone-top {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}
.phone-top span {
  width: 84px;
  height: 8px;
  border-radius: 4px;
  background: rgba(27, 58, 92, 0.12);
}

.article-demo {
  padding: 16px 16px 22px;
}
.article-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.article-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.32;
  margin-bottom: 12px;
}
.article-body {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 2.6;
  color: var(--ink);
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* Inline gloss — the product's signature mechanic.
   The label is in-flow (space is always reserved, so labels can never
   overlap the line above). The gloss box is an inline-block, and an
   inline-block's baseline is the baseline of its LAST line — the German
   word — so glossed words sit on exactly the same reading line as the
   surrounding text. */
.gloss {
  display: inline-block;
  vertical-align: baseline;
  text-align: center;
  line-height: 1.4;
}
.gloss .tr {
  display: block;
  width: fit-content;
  margin: 0 auto 2px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72em;
  line-height: 1.5;
  color: #fff;
  background: var(--ochre);
  border-radius: 7px;
  padding: 0 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.gloss .tr-plain {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.72em;
  line-height: 1.5;
  color: var(--ochre);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.gloss .de {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.4;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid rgba(235, 152, 78, 0.8);
  border-radius: 6px;
  padding: 0 4px;
}
.glosses-in .gloss .tr,
.gloss.in .tr,
.glosses-in .gloss .tr-plain,
.gloss.in .tr-plain {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Audio player bar (word-synced narration, as in the app) */
.article-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: var(--white);
  border: 1.5px solid rgba(235, 152, 78, 0.55);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.article-player .play {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-player .play svg { width: 16px; height: 16px; fill: var(--white); margin-left: 2px; }
.article-player .meta { min-width: 0; }
.article-player .meta strong {
  display: block;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-player .wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-top: 3px;
}
.article-player .wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--ochre);
  height: 30%;
}
.article-player .wave i:nth-child(2n) { height: 80%; }
.article-player .wave i:nth-child(3n) { height: 55%; }
.article-player .wave i:nth-child(5n) { height: 100%; }
.article-player .time {
  margin-left: auto;
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--faint);
}

.article-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--navy);
  background: var(--white);
}
.chip.chip-fill { background: var(--ochre); border-color: var(--ochre); color: var(--navy-deep); }
.chip svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
  padding: 22px 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.98rem;
}
.trust-items span { display: inline-flex; align-items: center; gap: 10px; }
.trust-items .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  flex: none;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}

.alt-bg { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Method (comprehensible input) ---------- */

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.method-copy p { color: var(--muted); font-size: 1.08rem; }
.method-copy p strong { color: var(--ink); }

.method-quote {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 40px 34px;
  box-shadow: var(--shadow-md);
}
.method-quote blockquote {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.55;
}
.method-quote figcaption {
  font-size: 0.92rem;
  color: var(--cream-on-navy);
}
.method-quote .q-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--ochre);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Evidence (research) cards ---------- */

.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.evidence-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--ochre);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.evidence-card .ev-stat {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 10px;
}
.evidence-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.evidence-card p { color: var(--muted); font-size: 0.97rem; margin: 0 0 14px; flex: 1; }
.evidence-card cite {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

/* ---------- Level / who it's for (with Elliot) ---------- */

.level-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.level-copy p { color: var(--muted); font-size: 1.08rem; }
.level-copy p strong { color: var(--ink); }
.elliot-fig {
  margin: 0;
  text-align: center;
}
.elliot-fig img { width: 150px; height: auto; margin: 0 auto; }
.elliot-fig figcaption {
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 6px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1rem;
  color: var(--terra);
  background: rgba(235, 152, 78, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; font-size: 1rem; }
.step .step-de {
  font-family: var(--font-serif);
  color: var(--ink);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(235, 152, 78, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--terra); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Languages ---------- */

.lang-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.lang-pill {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
}

/* ---------- Pricing ---------- */

#pricing.section { padding: 72px 0; }
#pricing .section-head { margin-bottom: 36px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 28px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--ochre);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ochre);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 16px;
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.price-amount {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  margin: 10px 0 4px;
}
.price-amount small {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
}
.price-sub { color: var(--faint); font-size: 0.92rem; margin-bottom: 14px; }
.price-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}
.price-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 5px 0;
  color: var(--muted);
}
.price-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ochre);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z"/></svg>') center / contain no-repeat;
}
.pricing-note {
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
  margin-top: 28px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 2.5px solid var(--terra);
  border-bottom: 2.5px solid var(--terra);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(235, 152, 78, 0.28), transparent);
}
.cta-elliot {
  position: absolute;
  right: 44px;
  bottom: 0;
  width: 150px;
  height: auto;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream-on-navy); font-size: 1.12rem; max-width: 34em; margin: 0 auto 30px; }
.cta-band .store-buttons { justify-content: center; }
.cta-band .btn-store { background: var(--cream); color: var(--navy-deep); }
.cta-band .btn-store svg { fill: var(--navy-deep); }
.cta-band .btn-store .store-label small { color: rgba(20, 41, 63, 0.65); }
.cta-band .btn-store:hover { background: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--cream-on-navy);
  margin-top: 96px;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(242, 237, 230, 0.12);
}
.footer-brand .brand { color: var(--cream); font-size: 1.35rem; }
.footer-brand p { font-size: 0.95rem; margin-top: 14px; max-width: 26em; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--cream-on-navy); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.88rem;
  color: rgba(242, 237, 230, 0.55);
}

/* ---------- Inner pages (support / legal) ---------- */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 0; }

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 56px 0 24px;
}
.support-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.support-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.support-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 12px; }
.support-card a.card-link { font-weight: 700; }

.support-section { padding: 48px 0; scroll-margin-top: 90px; }
.support-section h2 {
  font-size: 1.5rem;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ochre);
  display: inline-block;
  margin-bottom: 28px;
}

.contact-banner {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 8px;
}
.contact-banner h2 { color: var(--cream); margin: 0 0 6px; font-size: 1.4rem; }
.contact-banner p { color: var(--cream-on-navy); margin: 0; }
.contact-banner .btn-ochre { flex: none; }

/* ---------- Legal pages ---------- */

.legal-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.legal-layout .legal-meta {
  color: var(--faint);
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line-soft);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1em; }
.legal-body h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 1.3em; }
.legal-body strong { color: var(--ink); }

.paste-here {
  border: 2px dashed var(--ochre);
  background: rgba(235, 152, 78, 0.08);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--terra);
  font-weight: 600;
  margin: 1.4em 0;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gloss .tr, .gloss .tr-plain { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .btn-store { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .cta-elliot { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 72px; }
  .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .features, .support-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .steps, .features, .support-cards { grid-template-columns: 1fr; }

  .lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%231B3A5C" d="M7 10l5 5 5-5z"/></svg>') right 8px center / 14px no-repeat;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 28px 8px 14px;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--navy); }

.nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .nav-links a.nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-links .lang-select { width: 100%; margin-top: 6px; }

  .cta-band { padding: 48px 24px; }
  .contact-banner { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .store-buttons { width: 100%; }
  .btn-store { flex: 1; justify-content: center; min-width: 0; }
}

/* ---------- Footer logo ---------- */

.footer-logo { width: 210px; height: auto; margin-bottom: 10px; }

@media (max-width: 980px) {
  .evidence { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .level-grid { grid-template-columns: 1fr; gap: 24px; }
  .elliot-fig img { width: 130px; }
}

/* ============ RTL support (Arabic) ============ */
[dir="rtl"] .nav-links a.nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .article-player .time { margin-left: 0; margin-right: auto; }
[dir="rtl"] .evidence-card { border-left: 1px solid var(--line-soft); border-right: 4px solid var(--ochre); }
[dir="rtl"] .cta-elliot { right: auto; left: 44px; }
[dir="rtl"] .cta-band::before { right: auto; left: -120px; }
[dir="rtl"] .legal-body ul { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .article-player .play svg { margin-left: 0; margin-right: 2px; }
