/* ─── CosmoCast — Astral Ephemeris (Direction C) ─── */

:root {
  --ink: #0E0820;
  --ink-2: #1A0F2E;
  --fog: #241638;
  --cream: #F5EBD7;
  --mute: #A89DC7;
  --rose: #E84393;
  --magenta: #C73CB8;
  --violet: #7C5CFF;
  --gold: #E8B84A;
  --line: rgba(245, 235, 215, 0.12);
  --line-strong: rgba(245, 235, 215, 0.22);
  --card: rgba(245, 235, 215, 0.04);
  --card-hi: rgba(245, 235, 215, 0.06);

  --display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad-x: clamp(20px, 4vw, 64px);
}

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

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

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 1100px 700px at 80% -100px, rgba(232, 67, 147, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 900px 600px at -10% 20%, rgba(124, 92, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 100%, rgba(232, 184, 74, 0.10) 0%, transparent 70%),
    var(--ink);
}

/* Star field — subtle constellation across the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 12% 8%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 22%, var(--cream) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 67% 4%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 18%, var(--cream) 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 95% 32%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 38%, var(--cream) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 42% 48%, var(--cream) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 78% 58%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 72%, var(--cream) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 60% 84%, var(--cream) 50%, transparent 51%),
    radial-gradient(0.9px 0.9px at 92% 76%, var(--cream) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 96%, var(--cream) 50%, transparent 51%);
  opacity: 0.55;
}

main, header, section, footer, nav { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--rose); color: var(--cream); }

/* ─── Layout shell ─── */

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── Top bar ─── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(232, 67, 147, 0.55));
}

.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.6px;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 2px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px;
  background: var(--card);
}

.lang a {
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.lang a:hover { color: var(--cream); }

.lang a.is-active {
  background: var(--card-hi);
  color: var(--gold);
  border: 1px solid var(--line);
}

/* ─── Section frame ─── */

section, header.hero, .final-cta {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3 { margin: 0; font-family: var(--display); }

h2 {
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--cream);
  margin-top: 16px;
  margin-bottom: 18px;
  max-width: 780px;
  text-wrap: balance;
}

h2 em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 60%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--cream);
  margin-bottom: 10px;
}

p { margin: 0 0 14px; color: var(--cream); opacity: 0.92; text-wrap: pretty; }

/* ─── Hero ─── */

.hero {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(60px, 9vw, 120px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

h1.hero-title {
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 0 0 24px;
  text-wrap: balance;
  max-width: 18ch;
}

h1.hero-title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 30%, var(--rose) 65%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1.8px;
}

.hero-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--mute);
  margin-bottom: 36px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--magenta) 100%);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.2px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow:
    0 0 0 1px rgba(245, 235, 215, 0.08),
    0 18px 48px -16px rgba(232, 67, 147, 0.65),
    0 0 60px -10px rgba(124, 92, 255, 0.35);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(245, 235, 215, 0.12),
    0 22px 60px -16px rgba(232, 67, 147, 0.8),
    0 0 80px -10px rgba(124, 92, 255, 0.5);
}

.cta-arrow {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.cta-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.6;
  text-wrap: balance;
}

/* ─── Hero visual: orbital chart card ─── */

.hero-chart {
  position: relative;
  /* Square aspect — supports old iOS Safari (≤14) which silently
     ignores aspect-ratio and would collapse to 0 height. The
     padding-bottom hack works everywhere, the @supports below
     swaps to the modern property when available. */
  padding-bottom: 100%;
  height: 0;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 30%, rgba(232, 67, 147, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(232, 184, 74, 0.18) 0%, transparent 55%),
    linear-gradient(155deg, rgba(36, 22, 56, 0.9), rgba(14, 8, 32, 0.95));
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(124, 92, 255, 0.08);
}

/* Modern browsers — use intrinsic aspect-ratio so the parent has a real
   content box instead of relying on the padding-bottom trick. Safari 15+
   and all evergreen browsers support this. */
@supports (aspect-ratio: 1 / 1) {
  .hero-chart {
    padding-bottom: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.hero-chart-meta {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-chart-meta strong { color: var(--cream); font-weight: 500; }

.hero-chart-foot {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
}

.hero-chart-foot .num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--gold);
}

/* ─── Problem section ─── */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.problem-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}

.problem-card.is-them {
  opacity: 0.65;
}

.problem-card.is-us {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(232, 67, 147, 0.10), rgba(124, 92, 255, 0.06));
}

.problem-card.is-us::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--violet));
}

.problem-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
}

.problem-card.is-us .problem-tag { color: var(--gold); }

.problem-card h3 { margin-bottom: 12px; }

.problem-card p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ─── Features ─── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.feature {
  background: var(--ink);
  padding: 36px 32px;
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 18px;
  row-gap: 0;
  align-items: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}

.feature h3 {
  font-size: 22px;
  margin: 0;
  grid-row: 1;
  grid-column: 2;
  align-self: center;
}

.feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mute);
  margin: 18px 0 0;
  grid-row: 2;
  grid-column: 1 / -1;  /* span both columns */
}

/* ─── How it works ─── */

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--card);
  position: relative;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  opacity: 0.7;
}

.steps h3 { margin-top: 24px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--mute); margin: 0; }

.step-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
}

/* ─── Example ─── */

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 48px;
}

.example-caption-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-left: 0;
  list-style: none;
}

.example-caption-list li {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--card);
  font-size: 15px;
  color: var(--mute);
  line-height: 1.5;
}

.example-caption-list li::before { content: none; }

.example-caption-list li strong {
  color: var(--cream);
  font-weight: 500;
  font-family: var(--display);
  font-size: 16px;
  margin-right: 8px;
}

/* Phone mockup — realistic Telegram chat */
.phone {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 44px;
  background: #060209;
  padding: 12px;
  border: 1px solid rgba(245, 235, 215, 0.10);
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(245, 235, 215, 0.04),
    0 0 80px -20px rgba(232, 67, 147, 0.3);
  position: relative;
}

.phone-screen {
  width: 100%;
  border-radius: 34px;
  background: #17212B;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #ECECEC;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 22px 4px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.phone-tg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background: #212D3B;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.phone-tg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 35% 35%, #5a3a8a 0%, #1A0F2E 70%);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 14px;
}

.phone-tg-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.phone-tg-status {
  font-size: 10px;
  color: #7d96b1;
  line-height: 1.2;
}

.phone-chat {
  padding: 8px 8px 14px;
  position: relative;
}

.phone-msg {
  background: #182533;
  border-radius: 10px 10px 10px 2px;
  padding: 10px 12px 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #ECECEC;
  position: relative;
}

.phone-msg .msg-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.phone-msg .msg-section {
  font-weight: 700;
  color: #fff;
  margin-top: 9px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}

.phone-msg .msg-section:first-of-type { margin-top: 6px; }

.phone-msg .msg-line { margin: 0 0 2px; color: #ECECEC; opacity: 0.92; }

.phone-msg .msg-line b { color: #fff; font-weight: 600; }

.phone-msg .msg-meta {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  font-size: 9.5px;
  color: #7d96b1;
  margin-top: 6px;
}

.phone-fade { display: none; }

/* ─── Pricing ─── */

.pricing-intro {
  font-size: 18px;
  color: var(--mute);
  max-width: 540px;
  margin-top: 8px;
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pricing-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  /* Span the full shell width so cards line up with the section's
     h2 / intro text on the left edge — no extra centering inset. */
}

.pricing-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  opacity: 0.6;
  font-family: var(--mono);
}

/* Symmetric vertical rows: badge → title → price → sub → desc.
   Each card uses a 5-row grid with fixed row sizes, so values align
   horizontally across cards even when some rows are empty. */
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  background: var(--card);
  display: grid;
  grid-template-rows:
    [badge] 28px
    [title] auto
    [price] auto
    [sub] auto
    [desc] 1fr;
  row-gap: 12px;
  position: relative;
}

.price-badge {
  grid-row: badge;
  justify-self: start;
  align-self: start;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.18), rgba(232, 67, 147, 0.14));
  border: 1px solid rgba(232, 184, 74, 0.45);
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

.price-card.is-featured {
  background: linear-gradient(165deg, rgba(232, 184, 74, 0.10), rgba(232, 67, 147, 0.06));
  border-color: rgba(232, 184, 74, 0.35);
}

.price-card h3 {
  grid-row: title;
  font-size: 16px;
  margin: 0;
  color: var(--cream);
}

.price-card .price {
  grid-row: price;
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -1px;
  color: var(--cream);
  line-height: 1.1;
  margin: 0;
}

.price-card.is-featured .price {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-card .price-sub {
  grid-row: sub;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  min-height: 1.4em;
}

.price-card .price-desc {
  grid-row: desc;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute);
  margin: 0;
  align-self: start;
}

/* ─── FAQ ─── */

.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--cream);
}

.faq-list summary::-webkit-details-marker { display: none; }

/* h3 inside summary — neutralise default heading styling so the disclosure
   keeps looking the same. The h3 is here purely for crawlers and screen
   readers (proper heading hierarchy alongside the FAQPage microdata). */
.faq-list summary h3 {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  display: inline;
}
.faq-list details p,
.faq-list details div[itemprop="text"] p {
  margin: 14px 0 0;
}
.faq-list details div[itemprop="text"] {
  margin: 0;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.2s;
  flex: 0 0 auto;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

/* ─── Final CTA ─── */

.final-cta {
  text-align: center;
}

.final-cta-inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 67, 147, 0.16), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 92, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(36, 22, 56, 0.6), rgba(14, 8, 32, 0.4));
  position: relative;
  overflow: hidden;
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(245, 235, 215, 0.04) 30%, transparent 31%),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(245, 235, 215, 0.04) 45%, transparent 46%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(245, 235, 215, 0.04) 60%, transparent 61%);
  pointer-events: none;
}

.final-cta .eyebrow {
  margin-bottom: 24px;
}

.final-cta h2 {
  margin: 0 auto 24px;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  /* Width tuned so the new short copy ('Ваш первый прогноз — уже сегодня.')
     balances onto 2 lines instead of 3. text-wrap:balance from the base h2
     rule still applies. */
  max-width: 22ch;
}

.final-cta p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ─── Footer ─── */

footer.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.foot-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
}

.foot-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
}

.foot-links a:hover { color: var(--cream); }

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Chart first — it's the visual anchor; text + CTA follow */
  .hero-grid > div:first-child { order: 2; }
  .hero-chart { order: 1; max-width: 320px; margin: 0 auto; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }

  /* "How it works" steps on mobile: icon + title in one row, body
     paragraph spans full width below. Keeps the step number badge in
     the top-right corner unchanged. */
  .steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding-right: 56px;  /* leave space for the 01/02/03 corner badge */
  }
  .steps .step-icon {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }
  .steps h3 {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    align-self: center;
    font-size: 19px;
    line-height: 1.25;
  }
  .steps p {
    grid-row: 2;
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .pricing-grid { grid-template-columns: 1fr; }

  /* Topbar stays one row on mobile — was column-stacked, made the
     language switcher take ~50px of its own row. Compact instead:
     - smaller logo
     - hide "ephemeris · daily" subtitle (decorative, not informational)
     - tighter padding
     Brand sits left, language pill right, total height ~60px. */
  .topbar {
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 12px;
  }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .brand-sub  { display: none; }

  /* Compact feature cards on mobile: icon to the LEFT of title+text */
  .feature {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    padding: 24px 20px;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 1;
    align-self: start;
  }
  .feature h3 {
    grid-column: 2;
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
  }
  .feature p {
    /* Body text spans the FULL grid width on mobile — starts from the
       left edge of the card, not under the title. Reads as one continuous
       paragraph instead of a narrow column. */
    grid-column: 1 / -1;
    margin-top: 14px;
  }
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin-left: auto;
  z-index: 9999;
  background: rgba(14, 8, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 235, 215, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner a { color: var(--gold); border-bottom: 1px solid rgba(232,184,74,0.35); }
.cookie-banner button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232,184,74,0.5);
  background: linear-gradient(135deg, rgba(232,184,74,0.18), rgba(232,67,147,0.14));
  color: var(--gold);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button:hover { background: linear-gradient(135deg, rgba(232,184,74,0.28), rgba(232,67,147,0.22)); }
@media (max-width: 560px) {
  .cookie-banner { grid-template-columns: 1fr; }
}
