/* ==========================================================================
   Amorum AI — landing styles (plain CSS, no framework)
   ========================================================================== */

:root {
  /* Same brand family as app.amorum.ai (web_app/static/style.css --gradient-main),
     just a touch brighter: pink as the mid-stop instead of magenta. */
  --bg: #07060B;
  --bg-soft: #0B0712;
  --card: #151020;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f0eff4;
  --text-muted: #b6acc4;
  --text-dim: #8a8694;
  --violet: #7B3FA8;
  --rose: #E63E80;
  --gold: #F25C3F;
  --gradient-brand: linear-gradient(135deg, var(--gold) 0%, var(--rose) 50%, var(--violet) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(242,92,63,.12) 0%, rgba(230,62,128,.12) 50%, rgba(123,63,168,.12) 100%);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-brand: 0 20px 45px -20px rgba(230, 62, 128, 0.45);
  --container: 1160px;
}

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Ambient neon spots (same technique as app.amorum.ai) instead of flat black */
  background-image:
    radial-gradient(circle at 15% 0%, rgba(123, 63, 168, 0.20) 0%, transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(230, 62, 128, 0.16) 0%, transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(242, 92, 63, 0.14) 0%, transparent 40%),
    linear-gradient(180deg, #0B0712 0%, #09070F 45%, #07060B 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }

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

.section { padding: 64px 0; position: relative; }
.section-sm { padding: 40px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 12px; color: #fff; }
.section-head p { color: var(--text-muted); margin: 0; }

/* Long-form brand/SEO copy block */
.seo-prose {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.seo-prose p { margin: 0 0 16px; }
.seo-prose strong { color: var(--text); }
.seo-prose h3 {
  color: #fff;
  font-size: 1.18rem;
  margin: 28px 0 12px;
}
.seo-prose ul { margin: 0 0 16px; padding-left: 20px; }
.seo-prose li { margin-bottom: 8px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(230, 62, 128, 0.12);
  border: 1px solid rgba(230, 62, 128, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -18px rgba(230, 62, 128, 0.55); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Header */
.site-header { padding: 20px 0; position: relative; z-index: 30; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.brand img { height: 34px; width: 34px; border-radius: 10px; object-fit: cover; }
.brand span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text-muted); font-weight: 600; font-size: .95rem; transition: color .2s ease; }
.main-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand); color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-brand); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: #fff; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0; top: 78px;
    background: var(--bg-soft);
    flex-direction: column; align-items: flex-start;
    padding: 24px 20px; gap: 20px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: all .25s ease;
    z-index: 40;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero { padding: 40px 0 60px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.15; margin: 0 0 20px; color: #fff; }
.hero-copy h1 .accent {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p.lead { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 28px; max-width: 46ch; }

.feature-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); }
.feature-item .dot {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px;
  background: var(--gradient-soft); border: 1px solid rgba(230,62,128,.25);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .dot svg { width: 16px; height: 16px; color: var(--rose); }

.hero-stats { display: flex; gap: 28px; margin-top: 28px; }
.hero-stats div strong { display: block; font-size: 1.4rem; color: #fff; }
.hero-stats div span { color: var(--text-dim); font-size: .85rem; }

/* Chat preview card */
.chat-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 18px; height: 460px; display: flex; flex-direction: column;
  position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.chat-card::before {
  content: ""; position: absolute; inset: 0; background: var(--gradient-soft); opacity: .5; pointer-events: none;
}
.chat-messages {
  display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1;
  margin-top: auto; max-height: 100%; overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth; scrollbar-width: none; padding-right: 2px;
}
.chat-messages::-webkit-scrollbar { display: none; }
.msg { display: flex; align-items: flex-start; gap: 10px; opacity: 0; transform: translateY(8px); animation: fadeUp .5s ease forwards; }
.msg.user { justify-content: flex-end; }
.msg .avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--gradient-brand); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.msg .bubble { max-width: 240px; padding: 10px 14px; border-radius: 16px; font-size: .92rem; border: 1px solid var(--card-border); }
.msg.msg-picker .bubble { max-width: 300px; flex: 1 1 auto; min-width: 0; }
.msg.bot .bubble { border-bottom-left-radius: 4px; background: rgba(255,255,255,0.04); }
.msg.user .bubble { border-bottom-right-radius: 4px; background: var(--gradient-soft); border-color: rgba(230,62,128,.3); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Companion picker chips inside chat demo */
.chat-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-chip {
  border: 1px solid var(--card-border); background: rgba(255,255,255,0.04); color: var(--text-muted);
  padding: 6px 12px; border-radius: 999px; font-size: .82rem;
}

/* Hero chat-demo: character picker + age-gate */
/* Arrows sit beside the rail, not over it, so they never cover a face. */
.chat-char-wrap { display: flex; align-items: center; gap: 6px; }
.chat-char-nav {
  flex: 0 0 auto; width: 22px; height: 46px; border-radius: 8px; padding: 0;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.chat-char-nav:hover { background: var(--gradient-brand); border-color: transparent; }
.chat-char-nav svg { width: 13px; height: 13px; }
.chat-char-scroll {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0;
  scroll-snap-type: x proximity;
  user-select: none; -webkit-user-select: none; cursor: grab;
}
.chat-char-scroll::-webkit-scrollbar { display: none; }
.chat-char-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.chat-char-item { flex-shrink: 0; width: 56px; cursor: pointer; text-align: center; scroll-snap-align: start; }
.chat-char-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; -webkit-user-drag: none; }
.chat-char-item span { display: block; font-size: .7rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-age-buttons { display: flex; gap: 8px; margin-top: 6px; }
.chat-age-btn { padding: 8px 16px; border-radius: 10px; border: 1px solid; font-size: .85rem; font-weight: 600; background: transparent; }
.chat-age-btn.yes { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.12); }
.chat-age-btn.no { color: #f87171; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.12); }
.chat-age-btn:disabled { opacity: .5; cursor: default; }
.chat-final-cta { width: 100%; margin-top: 8px; padding: 10px 14px; font-size: .9rem; border-radius: 10px; }

/* Companion cards */
.carousel-wrap {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center; gap: 18px;
}
.carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  min-width: 0; padding: 8px 4px 20px; scrollbar-width: none;
  /* Rails are dragged, not selected — text selection would fight the drag. */
  user-select: none; -webkit-user-select: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel img { -webkit-user-drag: none; user-select: none; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 999px; background: rgba(20,12,32,.9);
  border: 1px solid var(--card-border); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.carousel-btn:hover { background: var(--gradient-brand); border-color: transparent; transform: scale(1.06); }
.carousel-btn svg { width: 20px; height: 20px; }

.companion-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  overflow: hidden; text-align: left;
  transition: border-color .2s ease, box-shadow .24s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.companion-card:hover,
.companion-card.is-hovered {
  border-color: rgba(230,62,128,.4);
  box-shadow:
    0 18px 40px -20px rgba(230,62,128,.52),
    0 0 0 1px rgba(230,62,128,.12);
}

.companion-media {
  position: relative; height: 280px; overflow: hidden; background: var(--gradient-brand); flex-shrink: 0;
}
.companion-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.companion-media-overlay { display: none; }
.companion-media.is-fallback::after {
  content: '★'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,.5);
}
.companion-media-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 20px; text-align: center; background: var(--card);
}
.companion-media-name h3 { margin: 0; color: #fff; font-size: 1.25rem; }

.companion-body { padding: 16px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.companion-body p { color: var(--text-muted); font-size: .9rem; margin: 0 0 16px; }
.companion-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--gradient-soft); border: 1px solid rgba(230,62,128,.25); color: var(--rose); font-size: .82rem; font-weight: 700;
  align-self: center; justify-content: center; margin-top: auto;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.companion-card:hover .companion-tag,
.companion-card.is-hovered .companion-tag {
  background: rgba(230,62,128,.14);
  border-color: rgba(230,62,128,.45);
  box-shadow: 0 6px 18px -10px rgba(230,62,128,.75);
}
.companion-card.more { align-items: center; justify-content: center; text-align: center; padding: 32px 24px; min-height: 380px; }
.companion-more-icon {
  width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 18px;
  background: rgba(255,255,255,0.06); border: 1px dashed var(--card-border);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--text-muted);
}
.companion-card.more h3 { margin: 0 0 10px; color: #fff; font-size: 1.15rem; }
.companion-card.more p { color: var(--text-muted); font-size: .9rem; margin: 0 0 16px; }
.companion-card.more .companion-tag { align-self: center; margin-top: 0; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.18); }

/* Feature grid (custom character) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; transition: transform .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(123,63,168,.35); }
.feature-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 999px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.feature-card .icon-wrap svg { width: 22px; height: 22px; color: #fff; }
.feature-card h3 { color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* Testimonials */
.testimonial-card {
  flex: 0 0 300px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 22px;
}
.testimonial-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.testimonial-head h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.stars { font-size: .95rem; letter-spacing: 1px; }
.testimonial-card p.comment { color: var(--text-muted); margin: 0 0 12px; font-size: .93rem; }
.testimonial-date { color: var(--text-dim); font-size: .78rem; margin: 0 0 12px; }
.admin-reply { background: var(--gradient-soft); border: 1px solid rgba(123,63,168,.25); border-radius: var(--radius-sm); padding: 12px; font-size: .85rem; color: var(--text-muted); }
.admin-reply strong { color: var(--rose); }
.testimonials-state { text-align: center; color: var(--text-dim); padding: 30px 0; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; background: none; border: none; color: #fff; text-align: left;
  padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question svg { width: 18px; height: 18px; color: var(--text-dim); transition: transform .25s ease; flex-shrink: 0; }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); font-size: .93rem; }

/* CTA band */
.cta-band {
  background: var(--gradient-brand); border-radius: var(--radius-lg);
  padding: 48px 32px; text-align: center; color: #fff;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { margin: 0 0 26px; opacity: .9; }
.cta-band-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* Footer */
.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--card-border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h3 { color: #fff; font-size: 1.05rem; margin: 0 0 16px; }
.footer-grid p { color: var(--text-muted); font-size: .9rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s ease; }
.footer-grid ul li a:hover { color: var(--rose); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 22px; text-align: center; color: var(--text-dim); font-size: .8rem; }
.footer-bottom p { max-width: 760px; margin: 0 auto 10px; }

/* Shared close button (used by the cookie consent banner) */
.modal-close { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); border: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.modal-close svg { width: 18px; height: 18px; }

/* Cookie / consent banner */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  transform: translateY(120%); opacity: 0; transition: all .4s ease; visibility: hidden;
}
.consent-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.consent-banner-inner {
  max-width: 920px; margin: 0 auto; background: rgba(20,12,32,.97); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 20px 24px; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6);
}
@media (min-width: 860px) { .consent-banner-inner { border-radius: var(--radius-lg); margin-bottom: 20px; } }
.consent-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.consent-top .badge { display: flex; align-items: center; gap: 10px; }
.consent-top .badge .icon-wrap { width: 32px; height: 32px; border-radius: 999px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.consent-top .badge .icon-wrap svg { width: 16px; height: 16px; color: #fff; }
.consent-top h3 { margin: 0; color: #fff; font-size: 1.05rem; }
.consent-top span.subtitle { color: var(--rose); font-size: .85rem; font-weight: 600; }
.consent-text { color: var(--text-muted); font-size: .88rem; }
.consent-text .full { display: none; }
.consent-text.is-expanded .full { display: block; }
.consent-text.is-expanded .short { display: none; }
.consent-list { background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 12px; margin: 12px 0; }
.consent-toggle { color: var(--rose); font-weight: 600; background: none; border: none; padding: 0; margin-top: 8px; }
.consent-actions { display: flex; gap: 12px; margin-top: 16px; }
.consent-actions .btn { flex: 1; }

/* Legal pages */
.legal-page main { padding: 40px 0 80px; }
.legal-page h1 { font-size: 1.8rem; color: #fff; margin-bottom: 28px; }
.legal-content { max-width: 820px; margin: 0 auto; color: var(--text-muted); }
.legal-content > div:first-child {
  background: var(--gradient-soft); border: 1px solid rgba(230,62,128,.2);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px;
}
.legal-content h3 { color: #fff; font-size: 1.15rem; margin: 28px 0 12px; }
.legal-content p { margin: 0 0 12px; line-height: 1.7; }
.legal-content strong { color: var(--text); }
.legal-content ul { margin: 8px 0 16px 22px; list-style: disc; }
.legal-content li { margin-bottom: 6px; }
.legal-content section { margin-bottom: 20px; }
.legal-content a { color: var(--rose); text-decoration: underline; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }

    /* Give the rail the full width and place controls below it, away from cards. */
    .carousel-wrap { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
    .carousel { grid-column: 1 / -1; grid-row: 1; }
    .carousel-btn { grid-row: 2; width: 42px; height: 42px; }
    .carousel-btn.prev { grid-column: 1; justify-self: end; }
    .carousel-btn.next { grid-column: 2; justify-self: start; }

    /* One companion card centred in the viewport. The side padding lets the
      first and last card reach the centre. */
  #companionsTrack {
    --card-w: min(76vw, 300px);
    padding-inline: calc((100% - var(--card-w)) / 2);
    scroll-padding-inline: calc((100% - var(--card-w)) / 2);
    gap: 16px;
  }
  #companionsTrack .companion-card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: center;
  }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .companion-media { height: 260px; }
}
