/* ==========================================================================
   Salah K Services — site styles
   Colours and fonts follow BRAND.md
   ========================================================================== */

:root {
  --bg: #0F1A2B;
  --card: #172741;
  --line: #1F3350;
  --border: #263C5C;
  --border-strong: #304D6D;
  --accent: #63ADF2;
  --accent-hover: #86C0F6;
  --icy: #A7CCED;
  --steel: #82A0BC;
  --dusk: #304D6D;
  --slate: #545E75;
  --light: #EEF4FB;
  --light-border: #D5E3F2;
  --ink: #16233A;
  --text: #F2F6FB;
  --online: #4ADE80;
  --success-bg: #14532D;
  --white: #FFFFFF;

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 { font-family: var(--font-head); }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--icy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.section--light :focus-visible,
.price-card--featured :focus-visible { outline-color: var(--ink); }

.accent { color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); font-weight: 700;
  padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--bg); }

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

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700; text-align: center;
  padding: 16px 28px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--sm { font-size: 15px; padding: 12px 22px; }
.btn--compact { padding: 13px 22px; }
.btn--lg { font-size: 17px; padding: 17px 30px; }
.btn--block { width: 100%; margin-top: auto; padding: 14px; }

.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }

.btn--outline { border: 1.5px solid var(--border-strong); color: var(--text); font-weight: 600; padding: 15px 24px; }
.btn--outline:hover { border-color: var(--accent); color: var(--text); }
.btn--outline.btn--lg { padding: 16px 26px; }
.btn--outline.btn--block { padding: 13px; }

.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: var(--ink); color: var(--text); }

.btn--pulse { animation: pulse 2.4s infinite; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Shared bits ---------- */

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--online { background: var(--online); animation: ping 1.8s infinite; }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
}
.section--light .eyebrow { color: var(--dusk); }

.lift { transition: transform .35s ease, border-color .35s ease; }
@media (hover: hover) {
  .lift:hover { transform: translateY(-6px); border-color: var(--accent); }
}

/* Scroll reveal (driven by IntersectionObserver in main.js).
   Only hidden when JS is running, so the page is readable without it. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
  opacity: 1;
  animation: reveal .7s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}

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

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); order: 1; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  overflow: hidden; flex: none; display: flex; align-items: flex-end; justify-content: center;
}
.brand__mark picture, .founder__photo picture, .phone__poster { display: contents; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }

.site-header__cta { order: 2; margin-left: auto; }

.nav-toggle {
  order: 3; width: 44px; height: 44px; flex: none;
  display: none; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px;
  color: var(--text); cursor: pointer; padding: 0;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle__bars span {
  display: block; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  order: 4; flex-basis: 100%;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  font-size: 15px; font-weight: 500;
}
.site-nav a { color: var(--icy); }
.site-nav a:hover { color: var(--text); }

/* Mobile menu: collapsed until the toggle opens it */
.js .site-nav { display: none; }
.js .site-nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  padding: 6px 0 4px; border-top: 1px solid var(--line);
}
.js .site-nav.is-open a { padding: 12px 2px; font-size: 16px; }
.js .site-nav.is-open a + a { border-top: 1px solid var(--line); }

/* Compact header so logo, button and menu stay on one row on phones */
@media (max-width: 519.98px) {
  .site-header__inner { column-gap: 10px; }
  .brand { gap: 10px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 16px; line-height: 1.15; max-width: 80px; }
  .site-header__cta { font-size: 14px; padding: 11px 14px; }
}
@media (max-width: 399.98px) {
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 15px; max-width: 74px; }
  .site-header__cta { font-size: 13px; padding: 10px 12px; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 355.98px) {
  .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav {
    order: 2; flex-basis: auto; display: flex; flex-wrap: nowrap; gap: 28px;
  }
  .site-header__cta { order: 3; margin-left: 0; }
}

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

.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.badge {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-strong); background: var(--card); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--icy);
}

h1 {
  font-weight: 800; font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04; letter-spacing: -2px;
}
.hero__lead { font-size: 19px; color: var(--icy); max-width: 540px; }

.ticks { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 500; color: var(--steel); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--accent); flex: none; }

/* Video + rings + notifications */
.hero__visual {
  position: relative; width: 100%; max-width: 548px; height: 600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}

.ring { position: absolute; inset: 0; margin: auto; aspect-ratio: 1; border-radius: 50%; }
.ring--outer { width: min(522px, 100%); height: auto; border: 1px solid var(--border); animation: spin 40s linear infinite; }
.ring--inner { width: min(402px, 80%); height: auto; border: 1px dashed var(--border-strong); animation: spin 60s linear infinite reverse; }
.ring__dot {
  position: absolute; top: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}

.phone {
  position: relative; width: min(302px, 100%); aspect-ratio: 302 / 535;
  border-radius: 30px; overflow: hidden; border: 1px solid var(--border-strong);
  background: var(--bg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  animation: floatY 6s ease-in-out infinite;
}
/* The poster image sits behind the video; the video is transparent until it plays */
.phone__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__video { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }

.phone__play {
  position: absolute; left: 50%; top: 50%; margin: -38px 0 0 -38px;
  width: 76px; height: 76px; border-radius: 50%; border: none; padding: 0;
  background: var(--accent); color: var(--bg);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; animation: pulse 2s infinite;
  transition: background-color .2s ease;
}
.phone__play:hover { background: var(--accent-hover); }
.phone__play:focus-visible { outline-color: var(--text); }
.phone__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(15, 26, 43, .85); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 8px 12px; font-size: 13px; font-weight: 600; text-align: center;
  display: none; pointer-events: none;
}
/* With JS, the video stays hidden behind the poster until the visitor presses play */
.js .hero__visual:not(.is-playing) .phone__video { visibility: hidden; }
.js .phone__play { display: flex; }
.js .phone__caption { display: block; }

.notifs { position: absolute; inset: 0; pointer-events: none; }
.notif {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 12px 16px; white-space: nowrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  opacity: 0; animation: notif 9s infinite;
}
.notif--1 { left: 0; top: 70px; }
.notif--2 { right: 0; top: 250px; animation-delay: 3s; }
.notif--3 { left: 10px; bottom: 60px; animation-delay: 6s; }
/* On narrow screens the middle card would sit on top of the play button, so it drops below it */
@media (max-width: 539.98px) {
  .notif--2 { top: 352px; }
}
.notif__icon {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--dusk); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.notif__icon--success { background: var(--success-bg); color: var(--online); }
.notif__text { display: flex; flex-direction: column; }
.notif__text strong { font-size: 13px; font-weight: 700; }
.notif__text span { font-size: 12px; color: var(--steel); }

/* While the video is playing: the frame keeps floating and the rings keep turning,
   but the play button, caption and notification cards step aside so nothing covers it */
.hero__visual.is-playing .phone__play,
.hero__visual.is-playing .phone__caption,
.hero__visual.is-playing .notifs { display: none; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden;
}
.marquee__track {
  display: flex; width: max-content;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--steel);
  white-space: nowrap; animation: marquee 30s linear infinite;
}
.marquee__group { display: flex; gap: 48px; padding-right: 48px; }
.marquee__group li { display: flex; align-items: center; gap: 48px; }
.marquee__group li::after { content: "●"; content: "●" / ""; color: var(--accent); flex: none; }

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

.section { padding: 100px 0; }
.section--light { background: var(--light); color: var(--ink); padding: 96px 0; }

.section__stack { display: flex; flex-direction: column; gap: 44px; }
.section__stack--lg { gap: 48px; }
.section__stack--sm { gap: 40px; }
.section__stack--xs { gap: 32px; }

.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.section__head--wide { gap: 14px; max-width: 760px; }

h2 {
  font-weight: 800; font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08; letter-spacing: -1.2px;
}
.h2--xl { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -1.4px; }
.section__lead { font-size: 18px; color: var(--icy); }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid--4 { gap: 18px; }

@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 959.98px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cards */
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 30px;
}
.card--light { background: var(--white); border-color: var(--light-border); }
.card--light p { color: var(--slate); }

/* ---------- What you're losing ---------- */

.loss-card { gap: 14px; position: relative; overflow: hidden; }
.loss-card__num { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--icy); }
.loss-card h3 { font-size: 22px; font-weight: 700; }

.drips { display: flex; gap: 10px; height: 70px; }
.drips span {
  width: 9px; height: 13px; background: var(--accent);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: drip 2.4s infinite;
  animation-delay: calc(var(--drip-offset, 0s) + var(--drip-step, 0s));
}
.drips span:nth-child(2) { --drip-step: .8s; }
.drips span:nth-child(3) { --drip-step: 1.6s; }
.loss-card:nth-child(2) .drips { --drip-offset: .4s; }
.loss-card:nth-child(3) .drips { --drip-offset: .2s; }

.banner {
  background: var(--ink); color: var(--text); border-radius: 22px; padding: 26px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.banner__text { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }

/* ---------- Engine ---------- */

.engine-card { gap: 18px; border-radius: 26px; }
.engine-card__top { display: flex; align-items: center; gap: 14px; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.flow-line { flex: 1; min-width: 0; display: block; }
.flow-line line {
  stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 8 8;
  animation: flow 1.2s linear infinite;
}
.always-on { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--icy); }
.engine-card__label { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--steel); }
.engine-card h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.4px; }
.engine-card__desc { color: var(--icy); }

.mini-browser { background: var(--light); color: var(--ink); border-radius: 14px; overflow: hidden; }
.mini-browser__bar { display: flex; gap: 5px; padding: 8px 10px; background: var(--light-border); }
.mini-browser__bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }
.mini-browser__body { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mini-browser__line { display: block; border-radius: 4px; }
.mini-browser__line--title { height: 8px; width: 70%; background: var(--ink); }
.mini-browser__line--sub { height: 6px; width: 50%; background: var(--icy); }
.mini-browser__btn { align-self: flex-start; background: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: 10px; font-weight: 700; }

.lead-chips, .chat { display: flex; flex-direction: column; gap: 8px; }
.chip {
  background: var(--dusk); border-radius: 999px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; animation: floatY 4s ease-in-out infinite;
}
.chip--start { align-self: flex-start; }
.chip--end { align-self: flex-end; animation-delay: 1s; }
.chip--center { align-self: center; animation-delay: 2s; }
.chip--accent { background: var(--accent); color: var(--bg); font-weight: 700; }

.chat__bubble { padding: 8px 12px; font-size: 13px; }
.chat__bubble--in { align-self: flex-start; background: var(--border); border-radius: 14px 14px 14px 4px; }
.chat__bubble--out { align-self: flex-end; background: var(--accent); color: var(--bg); font-weight: 600; border-radius: 14px 14px 4px 14px; }
.chat__typing { align-self: flex-end; display: flex; gap: 4px; padding: 10px 12px; background: var(--dusk); border-radius: 14px 14px 4px 14px; }
.chat__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--icy); animation: typing 1.2s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .2s; }
.chat__typing span:nth-child(3) { animation-delay: .4s; }

/* ---------- Benefits ---------- */

.benefit-card { gap: 10px; border-radius: 22px; padding: 26px; }
.benefit-card svg { color: var(--dusk); flex: none; }
.benefit-card h3 { font-size: 20px; font-weight: 700; }
.benefit-card p { font-size: 15px; }

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

.price-card { gap: 16px; padding: 28px; }
.price-card__label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--steel); }
.price-card h3 { font-size: 22px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price__amount { font-family: var(--font-head); font-size: 42px; font-weight: 800; }
.price__term { font-size: 14px; color: var(--steel); }
.price__setup { font-size: 14px; font-weight: 600; }
.price-card__features { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--icy); }

.price-card--featured { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.price-card--featured .price-card__label,
.price-card--featured .price__term { color: inherit; }
.price-card--featured .price__term { font-weight: 600; }
.price-card--featured .price-card__features { color: inherit; font-weight: 500; }
.price-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill { background: var(--bg); color: var(--text); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (hover: hover) {
  .price-card--featured.lift:hover { border-color: var(--text); }
}

.pricing__note { font-size: 14px; color: var(--steel); }

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

.faq { display: flex; flex-direction: column; gap: 12px; }
#faq h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.55; }

.faq__item { background: var(--white); border: 1px solid var(--light-border); border-radius: 18px; }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 18px; font-weight: 700;
  cursor: pointer; list-style: none; border-radius: 18px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { font-size: 26px; color: var(--dusk); flex: none; transition: transform .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { margin-top: -8px; padding: 0 24px 20px; color: var(--slate); }

/* ---------- Contact ---------- */

.contact { padding: 110px 0; position: relative; }
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }

.founder { position: relative; width: 150px; height: 150px; }
.founder__ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed var(--border-strong); animation: spin 30s linear infinite; }
.founder__photo {
  position: absolute; inset: 0; border-radius: 50%; background: var(--accent); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  animation: floatY 5s ease-in-out infinite;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact__hello { font-size: 15px; font-weight: 600; color: var(--icy); }
.contact__title { font-size: clamp(34px, 5vw, 62px); line-height: 1.04; letter-spacing: -1.8px; }
.contact__lead { font-size: 19px; color: var(--icy); max-width: 620px; }
.contact__email { font-weight: 600; }

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

.site-footer { border-top: 1px solid var(--line); color: var(--steel); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px; }
.site-footer__brand { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer__links a { color: var(--steel); }
.site-footer__links a:hover { color: var(--icy); }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.legal { min-height: 60vh; }
.legal__inner { display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
.legal__updated { font-size: 14px; font-weight: 600; color: var(--dusk); }
.legal__intro { font-size: 18px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-top: 18px; }
.legal p, .legal li { color: var(--slate); }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--dusk); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal .legal__notice { background: #FFF6DB; border: 1px solid #E8C55A; border-radius: 14px; padding: 14px 18px; color: var(--ink); }
.legal .legal__placeholder { background: var(--white); border: 1.5px dashed var(--dusk); border-radius: 14px; padding: 14px 18px; color: var(--ink); font-weight: 600; }
.legal__back { align-self: flex-start; margin-top: 18px; }
.legal .legal__back { color: var(--bg); text-decoration: none; }

/* ---------- Keyframes ---------- */

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes notif {
  0% { opacity: 0; transform: translateY(14px) scale(.96); }
  6%, 30% { opacity: 1; transform: translateY(0) scale(1); }
  38%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(99, 173, 242, .55); } 100% { box-shadow: 0 0 0 24px rgba(99, 173, 242, 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- Reduced motion: everything still, everything visible ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

  .js .reveal { opacity: 1; }
  .notif { opacity: 1; }

  .marquee__track { width: auto; white-space: normal; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding: 0 var(--gutter); }
  .marquee__group li { gap: 32px; }
  .marquee__group[aria-hidden="true"] { display: none; }
}
