/* Linxi Tarot — official site design system.
   Tokens mirror the app (app/src/utils/theme.ts): primary #1A1A2E, accent #D4AF37. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg-top: #12121f;
  --bg-bottom: #1a1a2e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text-primary: #f2f0ea;
  --text-secondary: rgba(242, 240, 234, 0.72);
  --text-muted: rgba(242, 240, 234, 0.5);
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.35);
  --accent-glow: rgba(212, 175, 55, 0.18);

  --font-display: 'Cormorant Garamond', 'Noto Serif TC', 'Noto Serif JP', 'Noto Serif KR', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'Noto Sans JP', 'Noto Sans KR', 'PingFang TC', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 45%, #15152a 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 var(--space-2); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: 760px; }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1a2e;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(18, 18, 31, 0.72);
  border-bottom: 1px solid var(--surface-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 14px var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }

.lang-switch { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
}
.lang-switch a[aria-current="true"] {
  color: var(--accent);
  background: var(--surface);
  font-weight: 600;
}
.lang-switch a:hover { color: var(--text-primary); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: var(--space-6) var(--space-3) var(--space-5);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin: 0 auto var(--space-2);
  position: relative;
}
.hero__subtitle {
  max-width: 52ch;
  margin: 0 auto var(--space-4);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  position: relative;
}
.hero__cta-note { margin-top: 12px; }

.hero__cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: -24px;
  margin: 0 auto var(--space-4);
  height: 260px;
}
.hero__cards img {
  width: 150px;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--surface-border);
  transition: transform 0.4s var(--ease);
}
.hero__cards img:nth-child(1) { transform: rotate(-9deg) translateX(28px); z-index: 1; }
.hero__cards img:nth-child(2) { transform: translateY(-18px) scale(1.06); z-index: 2; }
.hero__cards img:nth-child(3) { transform: rotate(9deg) translateX(-28px); z-index: 1; }
.hero__cards:hover img:nth-child(1) { transform: rotate(-12deg) translateX(34px) translateY(-6px); }
.hero__cards:hover img:nth-child(3) { transform: rotate(12deg) translateX(-34px) translateY(-6px); }

/* ---- CTA / store badges ---- */
.cta-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  min-height: 48px;
  border-radius: var(--radius-md);
  background: var(--text-primary);
  color: #17172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(212, 175, 55, 0.5); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-border);
}
.store-badge--disabled {
  opacity: 0.5;
  cursor: default;
}
.store-badge--disabled:hover { transform: none; box-shadow: none; }

/* ---- Sections ---- */
section { padding: var(--space-5) 0; }
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--space-4);
}
.section-head__eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.section-head p { color: var(--text-secondary); margin-top: var(--space-2); }

/* ---- Continuity narrative (3 steps) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.step {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

.phone-frame {
  border-radius: 32px;
  border: 8px solid #0b0b14;
  background: #0b0b14;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone-frame img { width: 100%; }
.showcase__caption {
  text-align: center;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Screenshot carousel (autoplay + dots) ---- */
.carousel { position: relative; max-width: 460px; margin: 0 auto; }
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  padding: 0 4px;
}
.carousel__caption {
  text-align: center;
  margin-top: var(--space-2);
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 1.4em;
}
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-2); }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--surface-border);
  cursor: pointer;
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.carousel__dot[aria-current="true"] { width: 22px; background: var(--accent); }

/* ---- Card marquee (continuous auto-scroll row, per suit) ---- */
.marquee-row + .marquee-row { margin-top: var(--space-3); }
.marquee-row__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 var(--space-1) var(--space-3);
}
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-bottom), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg-bottom), transparent); }
.marquee__track {
  display: flex;
  gap: var(--space-2);
  width: max-content;
  animation: marquee-scroll linear infinite;
  animation-duration: var(--marquee-duration, 60s);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  width: 130px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  transition: transform 0.25s var(--ease);
}
.marquee__track a:hover img { transform: translateY(-6px); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Two buttons now (cards hub + spreads hub); flex-wrap so they stack rather than
   crowd on narrow screens, where each still gets a full-width tap target. */
.gallery-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---- Low-friction / trust band ---- */
.trust-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.02));
  border: 1px solid var(--accent-soft);
  padding: var(--space-4);
  text-align: center;
}
.trust-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: var(--space-2); }
.trust-band p { color: var(--text-secondary); max-width: 46ch; margin: 0 auto var(--space-3); }

.closing-cta { text-align: center; }
.closing-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: var(--space-2); }
.closing-cta p { color: var(--text-secondary); max-width: 48ch; margin: 0 auto var(--space-3); }

/* ---- Spreads hub: one card per spread, name above its real arrangement ---- */
/* Narrower than the surrounding prose column: the arrangement is the content here,
   and at full width the diagrams floated in a lot of dead space. */
.spread-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  max-width: 560px;
  margin: 0 auto;
}
.spread-card {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
a.spread-card:hover,
a.spread-card:focus-visible {
  border-color: var(--accent-soft);
  background: var(--surface-strong);
  transform: translateY(-2px);
}
.spread-card--soon { opacity: 0.5; }
.spread-card__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--surface-border);
}
.spread-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
  transition: color 0.2s var(--ease);
}
a.spread-card:hover .spread-card__name { color: var(--accent); }
.spread-card__soon {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
}
/* Stage height is left to the arrangement rather than fixed: a ten-card cross
   genuinely occupies more room than one card, and letting that show is part of what
   the diagram is for. The min-height only stops the single card looking cramped. */
.spread-card__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: var(--space-3) 0 var(--space-1);
}

/* Card size is one variable so both layout modes stay in step. The slot needs an
   explicit width: as a flex item its `width:auto` plus an `img{width:100%}` child is
   circular, and browsers then fall back to the image's intrinsic 1024px — which is
   what broke the four row-based spreads on the first pass. */
.spread-diagram {
  --card-w: 66px;
  --card-gap: 10px;
  flex-shrink: 0;
}
.spread-diagram--rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--card-gap);
}
.spread-diagram__row {
  display: flex;
  gap: var(--card-gap);
}
/* Celtic Cross only. Column 4 is the gutter between the cross and the staff:
       .   5   .   |  10
       4  1/2  6   |   9
       .   3   .   |   8
       .   .   .   |   7
   These coordinates are the single source for the arrangement — spread-layouts.js
   deliberately does not repeat them. The gutter is wide enough that the staff reads
   as a separate column rather than a fourth arm of the cross. */
.spread-diagram--grid {
  display: grid;
  grid-template-columns: repeat(3, var(--card-w)) calc(var(--card-w) * 0.85) var(--card-w);
  gap: var(--card-gap);
  align-items: center;
  justify-items: center;
}
.spread-diagram__slot--p1 { grid-column: 2; grid-row: 2; }
.spread-diagram__slot--p2 { grid-column: 2; grid-row: 2; }
.spread-diagram__slot--p3 { grid-column: 2; grid-row: 3; }
.spread-diagram__slot--p4 { grid-column: 1; grid-row: 2; }
.spread-diagram__slot--p5 { grid-column: 2; grid-row: 1; }
.spread-diagram__slot--p6 { grid-column: 3; grid-row: 2; }
.spread-diagram__slot--p7 { grid-column: 5; grid-row: 4; }
.spread-diagram__slot--p8 { grid-column: 5; grid-row: 3; }
.spread-diagram__slot--p9 { grid-column: 5; grid-row: 2; }
.spread-diagram__slot--p10 { grid-column: 5; grid-row: 1; }

.spread-diagram__slot {
  position: relative;
  display: block;
  width: var(--card-w);
}
/* The backs are dark navy on a dark navy surface, so without a rim the arrangement
   does not read at a glance — the shape is the whole point of the diagram. */
.spread-diagram__slot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.7);
}
/* Numbered in a corner badge rather than across the middle: gold digits over the
   gold-and-blue back art were unreadable, and the art is the reason for using the
   real card back at all. */
.spread-diagram__slot b {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-top);
  border: 1px solid var(--accent-soft);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
/* The Celtic Cross's second card lies across the first, in the same grid cell. */
.spread-diagram__slot--cross {
  transform: rotate(90deg);
  z-index: 1;
}
/* Rotating the slot carries its badge to the top-right, landing it against card 6's.
   Anchoring this one to the opposite corner puts it clear of both neighbours. */
.spread-diagram__slot--cross b {
  left: auto;
  right: -7px;
  transform: rotate(-90deg);
}

@media (max-width: 560px) {
  .spread-diagram { --card-w: 46px; --card-gap: 7px; }
  .spread-diagram__slot b { width: 17px; height: 17px; font-size: 0.62rem; top: -6px; left: -6px; }
  .spread-card__stage { min-height: 120px; }
}

/* ---- Spread positions ---- */
/* Numbered because position order is meaningful in a spread — <ol>, not <ul>.
   The marker is drawn by .position-item__num rather than the list marker so it
   can take the accent colour and align with the heading, not the paragraph. */
.position-list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.position-item {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.position-item h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.position-item__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 1.4em;
}
.position-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: var(--space-2) 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-secondary);
  margin-top: var(--space-1);
  padding-right: var(--space-4);
}

/* ---- Card meaning page ---- */
.section--card-hero { padding-top: var(--space-4); }
.section--tight { padding-top: 0; }
.draft-banner {
  display: inline-block;
  margin: 16px 0;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.card-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  align-items: center;
}
.card-hero img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.6);
}
.card-hero__meta { font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.card-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: var(--space-2); }
.card-hero__keywords { display: flex; gap: 8px; flex-wrap: wrap; }
.keyword-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-3); }
.chip {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
}

.meaning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.meaning-card {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.meaning-card h2, .meaning-card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); color: var(--accent); }
.meaning-card--reversed h2, .meaning-card--reversed h3 { color: var(--text-secondary); }

.journal-callout {
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-soft);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
  padding: var(--space-4);
}
.journal-callout h2 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.journal-callout p { color: var(--text-secondary); }

.card-cta { text-align: center; }
.card-cta h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: var(--space-2); }
.card-cta p { color: var(--text-secondary); max-width: 46ch; margin: 0 auto var(--space-3); }

/* ---- Cards hub (/cards/) ---- */
.card-grid-section + .card-grid-section { margin-top: var(--space-4); }
.card-grid-section h2 { font-size: 1.3rem; margin-bottom: var(--space-2); color: var(--accent); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-2);
}
.card-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
}
.card-grid__item img {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  transition: transform 0.25s var(--ease);
}
.card-grid__item span { font-size: 0.82rem; color: var(--text-secondary); }
.card-grid__item:hover img { transform: translateY(-4px); }
.card-grid__item--soon { opacity: 0.55; }
.card-grid__item--soon em { font-size: 0.72rem; font-style: normal; color: var(--text-muted); }

.card-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  border-top: 1px solid var(--surface-border);
  padding-top: var(--space-3);
}
.card-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-nav a:hover { color: var(--accent); }
/* Sits between prev/next; on narrow screens the row wraps and this goes full-width
   rather than being squeezed between two card names. */
.card-nav__aside { color: var(--text-muted); }
@media (max-width: 560px) {
  .card-nav { flex-wrap: wrap; }
  .card-nav__aside { order: 3; width: 100%; justify-content: center; }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: var(--space-4) 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-links { display: flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { max-width: 60ch; line-height: 1.6; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .steps, .showcase, .meaning-grid { grid-template-columns: 1fr; }
  .card-hero { grid-template-columns: 1fr; text-align: center; }
  .card-hero__keywords { justify-content: center; }
  .card-hero img { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .site-header__inner { padding: 12px var(--space-2); }
  .brand { font-size: 1.05rem; gap: 8px; }
  .lang-switch a { padding: 5px 8px; font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
}
