/* =====================================================================
   BetWinner Ethiopia — styles.css
   Design contract: research/design.md. Brand gold #FFCE06 on ink #0E0E0E.
   One owner of inter-section spacing: .section. No element-level padding
   fighting it.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand (sampled from real logo.svg) */
  --bw-yellow:  #FFCE06;
  --bw-yellow-2:#FFD93D;
  --bw-ink:     #0E0E0E;
  --bw-charcoal:#16181D;
  --bw-slate:   #1E2128;

  /* Neutrals */
  --white:      #FFFFFF;
  --text:       #F4F5F7;
  --text-muted: #9AA0AA;
  --line:       #2A2E37;

  /* Function */
  --success:    #0F8A5F;
  --danger:     #D64545;
  --bg-soft:    #F6F7F8;

  /* Spacing scale (single source) */
  --s-8: 8px; --s-12:12px; --s-16:16px; --s-24:24px;
  --s-32:32px; --s-48:48px; --s-64:64px; --s-96:96px;

  /* Radii */
  --r-card:16px; --r-tile:12px; --r-btn:999px; --r-btn2:12px;

  /* Shadow (one tier) */
  --shadow: 0 8px 24px rgba(0,0,0,.35);

  /* Type */
  --font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --container:1240px;

  color-scheme: dark;
}

/* ---------- 2. Reset / base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  color:var(--text);
  background:var(--bw-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg,picture{display:block;max-width:100%;height:auto}
img{vertical-align:middle}
a{color:var(--bw-yellow);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;color:inherit;cursor:pointer}
ul,ol{margin:0;padding-left:1.25rem}
p{margin:0 0 1rem}
h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.12;font-weight:800}
h2,h3,h4{text-wrap:balance}
strong{font-weight:700;color:var(--white)}

/* ---------- 3. Layout: container + section (single spacing owner) ---------- */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:clamp(16px,4vw,32px);
}
.section{padding-block:clamp(48px,7vw,96px)}
.section--tight{padding-block:clamp(32px,5vw,56px)}
.section--alt{background:var(--bw-charcoal)}
.section--soft{background:var(--bg-soft);color:#15171c}

/* ---------- 4. Typography utilities ---------- */
.display,h1,h2{letter-spacing:-.01em;text-transform:uppercase}
.eyebrow{
  display:inline-block;
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--bw-yellow);
  margin-bottom:.5rem;
}
.lead{font-size:clamp(1.05rem,2vw,1.25rem);color:var(--text-muted);max-width:65ch}
.section-head{margin-bottom:var(--s-32);max-width:70ch}
.section-head h2{font-size:clamp(1.5rem,3vw,2.25rem)}
.section-head p{margin-top:.5rem;color:var(--text-muted)}
.muted{color:var(--text-muted)}
.small{font-size:.875rem}

/* ---------- 5. Skip link + focus ring ---------- */
.skip-link{
  position:absolute;left:8px;top:-48px;z-index:200;
  background:var(--bw-yellow);color:var(--bw-ink);
  padding:8px 16px;border-radius:0 0 8px 8px;font-weight:700;
  transition:top .15s;
}
.skip-link:focus{top:0;text-decoration:none}
:focus-visible{outline:2px solid var(--bw-yellow);outline-offset:2px;border-radius:4px}

/* ---------- 6. Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.8rem 1.4rem;min-height:44px;
  border:0;border-radius:var(--r-btn2);
  font-weight:700;font-size:1rem;
  text-decoration:none;cursor:pointer;
  transition:transform .12s ease,background-color .15s ease,box-shadow .15s ease;
  line-height:1.2;
}
.btn:hover{text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--bw-yellow);color:var(--bw-ink)}
.btn--primary:hover{background:var(--bw-yellow-2)}
.btn--secondary{background:transparent;color:var(--text);border:1.5px solid var(--line)}
.btn--secondary:hover{border-color:var(--bw-yellow);color:var(--bw-yellow)}
.btn--ghost{background:var(--bw-slate);color:var(--text)}
.btn--ghost:hover{background:#272a32}
.btn--sm{padding:.55rem .9rem;font-size:.875rem}
.btn--block{display:flex;width:100%;justify-content:center}

/* ---------- 7. Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(14,14,14,.86);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;gap:var(--s-16);
  height:64px;min-width:0;
}
.header-inner > *{min-width:0;flex-shrink:0}
.header-tools{flex-shrink:1}
.brand{display:inline-flex;align-items:center;flex-shrink:0;min-width:0}
.brand img{height:24px;width:auto;max-width:100%}
.brand:focus-visible{outline-offset:4px;border-radius:4px}

.main-nav{margin-left:auto;min-width:0}
.nav-extras{display:none} /* mobile drawer controls; shown in mobile nav */
.nav-list{
  list-style:none;display:flex;gap:.25rem;margin:0;padding:0;
}
.nav-list a{
  display:block;padding:.5rem .8rem;border-radius:8px;
  color:var(--text);font-weight:600;font-size:.95rem;
}
.nav-list a:hover{background:var(--bw-slate);text-decoration:none}
.nav-list a[aria-current="page"]{color:var(--bw-yellow)}

.header-tools{display:flex;align-items:center;gap:.5rem;margin-left:var(--s-16)}
.lang-chip{
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.35rem .6rem;border:1px solid var(--line);border-radius:var(--r-btn);
  font-size:.8rem;font-weight:700;color:var(--text);background:var(--bw-charcoal);
}
.lang-chip svg{width:14px;height:14px}

.lite-toggle{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.5rem .7rem;min-height:40px;border:1px solid var(--line);border-radius:var(--r-btn);
  background:var(--bw-charcoal);color:var(--text);font-size:.8rem;font-weight:600;
}
.lite-toggle[aria-pressed="true"]{border-color:var(--bw-yellow);color:var(--bw-yellow)}
.lite-toggle .dot{
  width:9px;height:9px;border-radius:50%;background:var(--text);
}
.lite-toggle[aria-pressed="true"] .dot{background:var(--bw-yellow)}

.header-cta{margin-left:.25rem}

/* hamburger */
.nav-toggle{
  display:none;width:44px;height:44px;align-items:center;justify-content:center;
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:10px;
}
.nav-toggle svg{width:22px;height:22px}
.nav-toggle .close{display:none}
.nav-toggle[aria-expanded="true"] .open{display:none}
.nav-toggle[aria-expanded="true"] .close{display:block}

/* ---------- 8. Hero ---------- */
.hero{
  position:relative;overflow:hidden;
  background:var(--bw-ink);
  border-bottom:1px solid var(--line);
}
.hero::before{ /* yellow speed-stripe wedge */
  content:"";position:absolute;inset:0 auto 0 -12%;width:42%;
  background:linear-gradient(118deg,var(--bw-yellow) 0 15%,transparent 15.3%);
  opacity:1;pointer-events:none;
  clip-path:polygon(0 0,100% 0,52% 100%,0 100%);
}
.hero::after{ /* floodlight radial glow */
  content:"";position:absolute;right:-15%;top:-25%;width:75%;height:160%;
  background:radial-gradient(ellipse at 65% 42%,rgba(255,206,6,.28),rgba(255,206,6,.06) 42%,transparent 66%);
  pointer-events:none;
}
.hero .container{position:relative;z-index:2}
.hero-grid{
  display:grid;gap:var(--s-32);
  grid-template-columns:1fr;align-items:center;
  padding-block:clamp(40px,7vw,84px);
}
.hero-copy h1{
  font-size:clamp(1.7rem,5vw,3.5rem);
  margin-bottom:var(--s-16);
}
.hero-copy .lead{margin-bottom:var(--s-24)}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:var(--s-16)}
.trust-micro{
  display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:center;
  font-size:.85rem;font-weight:600;color:var(--text-muted);
  padding-top:var(--s-12);border-top:1px solid var(--line);max-width:max-content;
}
.trust-micro li{list-style:none;display:flex;align-items:center;gap:.35rem}
.trust-micro svg{width:15px;height:15px;color:var(--bw-yellow)}

.hero-visual{
  position:relative;border-radius:var(--r-card);overflow:hidden;
  border:1px solid var(--line);box-shadow:var(--shadow);aspect-ratio:12/5;
  background:var(--bw-slate);
}
.hero-visual img{width:100%;height:100%;object-fit:cover}

@keyframes glow-pulse{
  0%,100%{opacity:.20}
  50%{opacity:.34}
}

/* ---------- 9. Category tiles ---------- */
.cat-grid{
  display:grid;gap:var(--s-16);
  grid-template-columns:repeat(2,1fr);
}
.cat-tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
  padding:var(--s-24) var(--s-16);
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-tile);
  text-align:center;color:var(--text);font-weight:700;font-size:.95rem;
  transition:border-color .15s,transform .12s;
}
.cat-tile:hover{border-color:var(--bw-yellow);text-decoration:none;transform:translateY(-2px)}
.cat-tile svg{width:30px;height:30px;color:var(--bw-yellow)}

/* ---------- 10. Carousel ---------- */
.carousel-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s-16);
  margin-bottom:var(--s-24);flex-wrap:wrap;
}
.carousel-head h2{font-size:clamp(1.4rem,3vw,2rem)}
.carousel{position:relative}
.carousel-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,1fr);
  gap:var(--s-16);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:var(--s-8);scrollbar-width:thin;scrollbar-color:var(--line) transparent;
}
.carousel-track::-webkit-scrollbar{height:8px}
.carousel-track::-webkit-scrollbar-thumb{background:var(--line);border-radius:8px}
.carousel-track.dragging{scroll-snap-type:none;cursor:grabbing;user-select:none}
.carousel-track.dragging *{pointer-events:none}

.game-card{
  scroll-snap-align:start;
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  overflow:hidden;display:flex;flex-direction:column;
}
.game-card__media{position:relative;aspect-ratio:3/2;background:var(--bw-slate);overflow:hidden}
.game-card__media img{width:100%;height:100%;object-fit:cover}
.game-card__badge{
  position:absolute;top:8px;left:8px;z-index:2;
  background:var(--bw-yellow);color:var(--bw-ink);
  font-weight:800;font-size:.7rem;letter-spacing:.04em;text-transform:uppercase;
  padding:.2rem .5rem;border-radius:6px;
}
.game-card__body{padding:.85rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.game-card__title{font-size:1rem;font-weight:700;text-transform:none;letter-spacing:0;margin:0}
.game-card__meta{font-size:.78rem;color:var(--text-muted)}
.game-card__expand{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  margin-top:auto;padding:.5rem .1rem;font-size:.85rem;font-weight:700;
  background:none;border:0;color:var(--bw-yellow);text-align:left;
}
.game-card__expand svg{width:16px;height:16px;transition:transform .2s}
.game-card[aria-expanded="true"] .game-card__expand svg{transform:rotate(180deg)}
.game-card__panel{
  display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease;
}
.game-card__panel-inner{overflow:hidden}
.game-card[aria-expanded="true"] .game-card__panel{grid-template-rows:1fr}
.game-card__desc{padding:0 .1rem .35rem;font-size:.86rem;color:var(--text-muted)}
.game-card__cta{margin-top:.5rem}

.carousel-controls{display:flex;gap:.4rem}
.carousel-btn{
  width:42px;height:42px;border-radius:50%;
  background:var(--bw-charcoal);border:1px solid var(--line);color:var(--text);
  display:inline-flex;align-items:center;justify-content:center;
}
.carousel-btn:hover{border-color:var(--bw-yellow);color:var(--bw-yellow)}
.carousel-btn svg{width:18px;height:18px}
.carousel-btn:disabled{opacity:.35;cursor:not-allowed}

/* ---------- 11. Cards (promo / generic) ---------- */
.grid{display:grid;gap:var(--s-24)}
.grid--2{grid-template-columns:1fr}
.grid--3{grid-template-columns:1fr}
.grid--4{grid-template-columns:repeat(2,1fr)}

.card{
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  padding:var(--s-24);display:flex;flex-direction:column;gap:.75rem;
}
.card h3{font-size:1.2rem;text-transform:none;letter-spacing:0}
.card .media{border-radius:12px;overflow:hidden;aspect-ratio:12/5;background:var(--bw-slate)}
.card .media img{width:100%;height:100%;object-fit:cover}
.card__tag{
  align-self:flex-start;font-size:.72rem;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:var(--bw-yellow);
}
.card__bullet{font-size:.9rem;color:var(--text-muted);margin:0}
/* Keep actions aligned when cards have different amounts of copy. */
.card > .btn{margin-top:auto;align-self:flex-start}

/* featured promo card */
.card--feature{border-color:var(--bw-yellow);box-shadow:var(--shadow)}
.card--feature .card__tag{background:var(--bw-yellow);color:var(--bw-ink);padding:.2rem .5rem;border-radius:6px}

/* ---------- 12. Strips (providers / payments) ---------- */
.strip{
  display:flex;flex-wrap:wrap;gap:var(--s-16);align-items:center;justify-content:center;
}
.chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:104px;min-height:56px;padding:.5rem .9rem;
  background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:10px;
}
.chip img{
  max-height:36px;width:auto;max-width:120px;
}
/* Provider artwork already carries its own brand colours. Do not apply a
   monochrome filter here: it turns the rasterised SVG artwork into blank white
   blocks on some browsers. */
.chip--local{border-color:var(--bw-yellow);position:relative}
.chip--local::after{
  content:"ET";position:absolute;top:-8px;right:-6px;z-index:2;
  background:var(--bw-yellow);color:var(--bw-ink);font-size:.62rem;font-weight:800;
  padding:.1rem .3rem;border-radius:5px;
}
.strip-note{width:100%;color:var(--text-muted);font-size:.88rem;margin-top:.5rem}

/* ---------- 13. App block ---------- */
.app-block{
  display:grid;gap:var(--s-32);align-items:center;grid-template-columns:1fr;
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  padding:var(--s-32);
}
.app-block__stores{display:flex;flex-wrap:wrap;gap:.75rem}
.store-badge{display:inline-block;height:48px}
.store-badge img{height:48px;width:auto}
.app-block__icon{width:84px;height:84px;border-radius:18px;border:1px solid var(--line)}

/* ---------- 14. Trust / responsible ---------- */
.trust-grid{display:grid;gap:var(--s-24);grid-template-columns:repeat(2,minmax(0,1fr))}
.trust-card{
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  padding:var(--s-24);display:flex;flex-direction:column;gap:.75rem;align-items:flex-start;
}
.trust-card img{height:56px;width:auto}
.trust-card h3{font-size:1.05rem;text-transform:none;letter-spacing:0}
.age-badge{display:inline-flex;align-items:center;gap:.5rem;font-weight:800;color:var(--danger)}
.age-badge svg{width:34px;height:34px}
.responsible-banner{
  border:1px solid var(--line);background:var(--bw-slate);border-radius:var(--r-card);
  padding:var(--s-24);display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-16);
}
.responsible-banner p{margin:0;font-size:.9rem;color:var(--text-muted)}
.responsible-icons{display:flex;gap:var(--s-16);flex-wrap:wrap;align-items:center}
.responsible-icons img{height:42px;width:auto}

/* ---------- 15. Accordion (FAQ / game expand) ---------- */
.accordion{border-top:1px solid var(--line)}
.accordion-item{border-bottom:1px solid var(--line)}
.accordion-trigger{
  display:flex;align-items:center;justify-content:space-between;gap:var(--s-16);
  width:100%;padding:var(--s-16) 0;background:none;border:0;color:var(--text);
  font-weight:700;font-size:1.02rem;text-align:left;
}
.accordion-trigger:hover{color:var(--bw-yellow)}
.accordion-trigger .icon{flex-shrink:0;width:20px;height:20px;transition:transform .2s;color:var(--bw-yellow)}
.accordion-trigger[aria-expanded="true"] .icon{transform:rotate(45deg)}
.accordion-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}
.accordion-panel-inner{overflow:hidden}
.accordion-item[open] .accordion-panel,
.accordion-trigger[aria-expanded="true"] + .accordion-panel{grid-template-rows:1fr}
.accordion-panel p{padding:0 0 var(--s-16);color:var(--text-muted);margin:0;max-width:75ch}

/* native details fallback used in FAQ */
details.accordion-item{padding:0}
details.accordion-item > summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  gap:var(--s-16);padding:var(--s-16) 0;font-weight:700;font-size:1.02rem;color:var(--text);
}
details.accordion-item > summary::-webkit-details-marker{display:none}
details.accordion-item > summary:hover{color:var(--bw-yellow)}
details.accordion-item[open] > summary{color:var(--bw-yellow)}
details.accordion-item > .accordion-panel{display:block}
details.accordion-item[open] > .accordion-panel{animation:none}
details.accordion-item > summary .icon{flex-shrink:0;width:20px;height:20px;color:var(--bw-yellow);transition:transform .2s}
details.accordion-item[open] > summary .icon{transform:rotate(45deg)}

/* ---------- 16. Tables (stack on narrow) ---------- */
.table-wrap{width:100%;overflow:hidden}
table.data{
  width:100%;border-collapse:collapse;background:var(--bw-charcoal);
  border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden;font-size:.95rem;
}
table.data th,table.data td{padding:.85rem 1rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
table.data thead th{background:var(--bw-slate);font-weight:700;text-transform:uppercase;font-size:.78rem;letter-spacing:.05em;color:var(--text)}
table.data tbody tr:last-child td{border-bottom:0}
table.data td .pill{
  display:inline-block;font-size:.75rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;
  background:var(--bw-slate);color:var(--text);
}
table.data td .pill--maybe{background:rgba(255,206,6,.15);color:var(--bw-yellow)}
table.data td .pill--yes{background:rgba(15,138,95,.18);color:var(--success)}

/* ---------- 17. SEO text ---------- */
#seo-text{background:var(--bw-charcoal);border-top:1px solid var(--line)}
#seo-text .seo-body{max-width:80ch;color:var(--text-muted);font-size:.95rem}
#seo-text .seo-body p{margin-bottom:1rem}

/* ---------- 18. Reviews ---------- */
#reviews{background:var(--bw-ink)}
.reviews-summary{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;
  font-size:.9rem;color:var(--text-muted);margin-bottom:var(--s-24);
}
.reviews-summary b{color:var(--text)}
.stars{display:inline-flex;gap:1px;color:var(--bw-yellow)}
.stars svg{width:16px;height:16px}
.stars .empty{color:var(--line)}
.reviews-grid{display:grid;gap:var(--s-16);grid-template-columns:1fr}
/* On mobile, show the first 4 reviews and reveal the rest via "Show more". */
.reviews-grid--collapsed > .review:nth-child(n+5){display:none}
.reviews-more{margin-top:var(--s-16)}
.review{
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  padding:var(--s-24);display:flex;flex-direction:column;gap:.5rem;
}
.review__head{display:flex;justify-content:space-between;gap:.5rem;align-items:flex-start;flex-wrap:wrap}
.review__name{font-weight:700}
.review__meta{font-size:.8rem;color:var(--text-muted)}
.review__title{font-weight:700;color:var(--white);margin:.1rem 0 0}
.review__body{color:var(--text-muted);font-size:.92rem;margin:0}

/* review form */
.review-form{
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:var(--r-card);
  padding:var(--s-24);margin-top:var(--s-32);
}
.review-form h3{font-size:1.2rem;text-transform:none;letter-spacing:0}
.review-form .field{margin-bottom:var(--s-16);display:flex;flex-direction:column;gap:.4rem}
.review-form label{font-weight:600;font-size:.9rem}
.review-form .req{color:var(--danger)}
.review-form input[type=text],
.review-form textarea{
  width:100%;background:var(--bw-ink);border:1px solid var(--line);border-radius:10px;
  padding:.7rem .85rem;color:var(--text);font:inherit;font-size:.95rem;
}
.review-form input:focus,.review-form textarea:focus{outline:2px solid var(--bw-yellow);outline-offset:1px;border-color:var(--bw-yellow)}
.review-form textarea{min-height:110px;resize:vertical}
.rating-input{display:flex;gap:.25rem;flex-direction:row-reverse;justify-content:flex-end}
.rating-input input{position:absolute;opacity:0;width:0;height:0}
.rating-input label{font-size:1.6rem;line-height:1;cursor:pointer;color:var(--line)}
.rating-input input:checked ~ label,
.rating-input input:focus-visible ~ label{color:var(--bw-yellow)}
.rating-input label:hover,.rating-input label:hover ~ label{color:var(--bw-yellow-2)}
.field-check{flex-direction:row;align-items:flex-start;gap:.5rem}
.field-check input{margin-top:.25rem;flex-shrink:0;width:18px;height:18px;accent-color:var(--bw-yellow)}
.field-check label{font-weight:400;font-size:.88rem;color:var(--text-muted)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-note{font-size:.8rem;color:var(--text-muted);margin:0}
.form-error{color:var(--danger);font-size:.85rem;font-weight:600;display:none}
.form-error.show{display:block}
.form-success{
  display:none;background:rgba(15,138,95,.15);border:1px solid var(--success);color:var(--text);
  padding:var(--s-16);border-radius:12px;margin-bottom:var(--s-16);
}
.form-success.show{display:block}

/* ---------- 19. Footer ---------- */
.site-footer{background:var(--bw-ink);border-top:1px solid var(--line);padding-block:var(--s-48) var(--s-32)}
.footer-grid{display:grid;gap:var(--s-32);grid-template-columns:1fr}
.footer-col h4,.footer-col h3,.footer-h{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.75rem}
.footer-nav{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.2rem}
.footer-nav a{color:var(--text);font-size:.92rem;display:flex;align-items:center;min-height:40px;padding:.1rem .15rem}
.footer-nav a:hover{color:var(--bw-yellow)}
.footer-licence{font-size:.82rem;color:var(--text-muted);max-width:70ch}
.footer-legal{
  display:flex;flex-wrap:wrap;gap:var(--s-16);align-items:center;
  margin-top:var(--s-24);padding-top:var(--s-24);border-top:1px solid var(--line);
}
.footer-legal img{height:40px;width:auto}
.footer-bottom{
  margin-top:var(--s-24);padding-top:var(--s-16);border-top:1px solid var(--line);
  font-size:.8rem;color:var(--text-muted);display:flex;flex-wrap:wrap;gap:.5rem 1rem;justify-content:space-between;
}

/* ---------- 20. Misc ---------- */
.hr-line{height:1px;background:var(--line);border:0;margin:0}
.callout{
  border-left:3px solid var(--bw-yellow);background:var(--bw-slate);
  padding:var(--s-16) var(--s-24);border-radius:0 12px 12px 0;font-size:.92rem;color:var(--text-muted);
}
.prose{max-width:75ch}
.prose h2{font-size:clamp(1.4rem,3vw,2rem);margin-top:var(--s-32)}
.prose h3{font-size:1.15rem;text-transform:none;letter-spacing:0;margin-top:var(--s-24)}
.prose ul,prose ol{margin-bottom:1rem}
.prose li{margin-bottom:.4rem}
.prose p{color:var(--text)}
.steps{counter-reset:step;list-style:none;padding:0;margin:0 0 var(--s-32);display:grid;gap:var(--s-12)}
.steps li{
  position:relative;padding:.7rem .8rem .7rem 3rem;
  background:var(--bw-charcoal);border:1px solid var(--line);border-radius:12px;
}
.steps li::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:.8rem;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border-radius:50%;background:var(--bw-yellow);color:var(--bw-ink);
  display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.9rem;
}
.page-hero{background:var(--bw-charcoal);border-bottom:1px solid var(--line);padding-block:clamp(40px,6vw,72px)}
.page-hero h1{font-size:clamp(1.5rem,4.5vw,3rem);margin-bottom:var(--s-16)}
.page-hero .lead{margin-bottom:var(--s-16)}

/* reveal on scroll */
[data-reveal]{opacity:0;transform:translateY(16px)}
[data-reveal].is-visible{opacity:1;transform:none;transition:opacity .3s ease,transform .3s ease}

/* long offscreen sections: skip render cost */
.cv-auto{content-visibility:auto;content-intrinsic-size:auto 600px}

/* ---------- 21. Lite mode ---------- */
html.lite [data-reveal]{opacity:1 !important;transform:none !important}
html.lite .hero::after{display:none}
html.lite .hero::before{opacity:.7}
html.lite img[data-lite-src]{content:url("") !important}
html.lite .carousel-track{scroll-snap-type:none}
html.lite .lite-hide{display:none}

/* ---------- 22. Responsive ---------- */
@media (min-width:480px){
  .cat-grid{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:768px){
  .hero-grid{grid-template-columns:1.05fr .95fr}
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  .grid--2{grid-template-columns:repeat(2,1fr)}
  .grid--3{grid-template-columns:repeat(3,1fr)}
  .grid--4{grid-template-columns:repeat(4,1fr)}
  .carousel-track{grid-auto-columns:minmax(210px,1fr)}
  .app-block{grid-template-columns:1fr 1fr}
  .trust-grid{grid-template-columns:repeat(4,1fr)}
  .reviews-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:2fr 1fr 1fr}
  .nav-list a{padding:.5rem 1rem}
}

@media (min-width:1024px){
  .cat-grid{grid-template-columns:repeat(8,1fr)}
  .carousel-track{grid-auto-columns:minmax(230px,1fr)}
  .reviews-grid{grid-template-columns:repeat(3,1fr)}
  .nav-list a{padding:.5rem 1.1rem;font-size:1rem}
}

/* Mobile nav drawer */
@media (max-width:899px){
  /* A backdrop filter creates a containing block for fixed descendants in
     WebKit. Without this override the drawer is constrained to the 64px
     header and leaks a single navigation item over the hero. */
  .site-header{backdrop-filter:none;-webkit-backdrop-filter:none}
  .nav-toggle{display:inline-flex;order:3}
  .main-nav{
    position:fixed;inset:64px 0 0 0;margin:0;
    background:var(--bw-ink);border-bottom:1px solid var(--line);
    padding:var(--s-16) var(--s-16) var(--s-32);
    visibility:hidden;opacity:0;pointer-events:none;
    transition:opacity .2s ease,visibility 0s linear .2s;z-index:90;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .main-nav.open{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .2s ease}
  .nav-list{flex-direction:column;gap:.25rem}
  .nav-list a{padding:.85rem .5rem;font-size:1.05rem;min-height:44px;display:flex;align-items:center}
  .nav-extras{display:flex;gap:.6rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--line)}
  .header-tools .header-cta{padding:.55rem .9rem}
  body.menu-open{overflow:hidden}
}
@media (min-width:900px){
  .header-tools{margin-left:auto}
  .header-tools{flex-shrink:0}
}

/* Tight header at very narrow widths — zero horizontal scroll at 360 */
@media (max-width:640px){
  .header-inner{gap:.5rem;padding-inline:16px}
  .brand{max-width:calc(100vw - 176px)}
  .brand img{height:20px;max-width:100%}
  .header-tools .lang-chip,
  .header-tools .lite-toggle{display:none} /* moved into mobile drawer */
  .header-tools .header-cta{margin-left:0}
  .header-tools .header-cta{
    padding:.45rem .8rem;font-size:.85rem;
  }
}
@media (max-width:380px){
  .brand img{height:18px}
  .header-tools .header-cta{font-size:.8rem;padding:.4rem .7rem}
}

/* Stacked tables on very narrow screens — NO horizontal scroll */
@media (max-width:640px){
  table.data thead{display:none}
  table.data,table.data tbody,table.data tr,table.data td{display:block;width:100%}
  table.data tr{padding:var(--s-12) 0;border-bottom:1px solid var(--line)}
  table.data td{border:0;padding:.25rem 0}
  table.data td::before{
    content:attr(data-label);display:block;font-weight:700;font-size:.72rem;
    text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:.15rem;
  }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
  .hero::after{animation:none}
  [data-reveal]{opacity:1;transform:none}
}
