/* ==========================================================================
   CricLive — design system
   Premium sports platform. Bade safed hisse, gol kinare, halki parchhai.
   Glass effect sirf hero ke andar. Bekaar ki border kahin nahi.
   ========================================================================== */

/* ---------- Inter, apne hi server se (koi bahri CDN nahi = tez + private) ---------- */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; font-style: normal;
  src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; font-style: normal;
  src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; font-style: normal;
  src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; font-style: normal;
  src: url('/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; font-style: normal;
  src: url('/fonts/inter-800.woff2') format('woff2'); }

:root {
  /* Brand */
  --red:        #D91F26;
  --red-deep:   #B0161C;
  --navy:       #0B1633;
  --plum:       #1B1028;

  /* Surfaces */
  --bg:         #F7F7F7;
  --card:       #FFFFFF;
  --line:       #ECECEC;
  --raised:     #F4F4F5;

  /* Text */
  --ink:        #111111;
  --muted:      #6B7280;
  --on-dark:    #FFFFFF;
  --on-dark-mut:#A8B0C2;

  /* Semantic — accent se alag rakhe gaye hain */
  --live:       #FF3B30;
  /* Win bar ke do rang — team A neela, team B amber */
  --teamA:      #2563EB;
  --teamB:      #F59E0B;
  --ok:         #16A34A;
  --warn:       #FFB800;

  /* Elevation — halki, bhaari nahi */
  --sh-1: 0 1px 2px rgba(17,17,17,.04), 0 2px 8px rgba(17,17,17,.04);
  --sh-2: 0 2px 4px rgba(17,17,17,.04), 0 12px 28px rgba(17,17,17,.07);
  --sh-3: 0 8px 16px rgba(17,17,17,.06), 0 24px 48px rgba(17,17,17,.10);
  --sh-panel: 0 20px 60px rgba(11,22,51,.14), 0 4px 12px rgba(11,22,51,.06);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --hero: linear-gradient(112deg, #8E1218 0%, #D91F26 16%, #2B0F1E 46%, #0B1633 78%, #12275C 100%);
}

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
  --bg:      #070C1A;
  --card:    #101A2E;
  --line:    #1C2740;
  --raised:  #17203A;
  --ink:     #F2F4F8;
  --muted:   #93A0B8;
  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  --sh-2: 0 2px 4px rgba(0,0,0,.3), 0 12px 28px rgba(0,0,0,.3);
  --sh-3: 0 8px 16px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.4);
  --sh-panel: 0 20px 60px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Logo (resources/views/components/logo.blade.php)

   Do version markup me hain — safed wala gehre background ke liye, kaala
   wala halke ke liye. Kaunsa dikhega ye CSS tay karta hai. Default GEHRA
   maana jaata hai (hero, footer); jis dabbe par `.on-light` lagega wahan
   kaala wala aa jayega.
   ========================================================================== */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo img { display: none; width: auto; }
.logo img.logo-word { margin-top: 1px; }

/* Ek hi tone bheja gaya ho (hero ka bada logo, footer) — wahi dikhao */
.logo-solo img { display: block; }

/*
 | Header ka logo (tone="auto"): teeno tone markup me hain, CSS ek chunta hai.
 |
 | ⚠️ Yahan pehle "sab chhupao, phir ek dikhao" likha tha — aur wo TOOT gaya:
 | chhupane wala rule (.on-light .logo-auto img) dikhane wale se kam
 | specificity ka tha, isliye purana logo chhupta hi nahi tha aur do-teen
 | logo ek saath dikhte the.
 |
 | Ab har haalat ek DOOSRE SE ALAG hai (`:not(.on-light)` vs `.on-light`) —
 | do rule kabhi ek saath match hi nahi karte, to takkar ka sawaal hi nahi.
 */

/* Hero ke upar: nishaan LAAL BALL wala, par naam poora safed — background
   waha laal hai aur laal "LIVE" usme ghul jaata. */
.hdr:not(.on-light) .logo-auto img.logo-tone-light:not(.logo-word) { display: block; }
.hdr:not(.on-light) .logo-auto img.logo-word.logo-tone-white       { display: block; }

/* Scroll ke baad thos halka surface — sab kaala + laal */
.hdr.on-light .logo-auto img.logo-tone-dark { display: block; }

/* ...lekin dark theme me wo surface bhi GEHRA hai — to safed + laal */
:root[data-theme="dark"] .hdr.on-light .logo-auto img.logo-tone-dark  { display: none; }
:root[data-theme="dark"] .hdr.on-light .logo-auto img.logo-tone-light { display: block; }

/* ==========================================================================
   Header — hero par transparent, scroll par thos
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hdr .wrap { display: flex; align-items: center; gap: 20px; height: 82px; }
.hdr.stuck {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--sh-1);
}

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  position: relative; color: rgba(255,255,255,.82);
  font-size: 15px; font-weight: 600; padding: 10px 15px;
  transition: color .2s var(--ease);
}
.nav a:hover { color: #fff; }
.hdr.stuck .nav a { color: var(--muted); }
.hdr.stuck .nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px;
  height: 2.5px; border-radius: 2px; background: var(--red);
}

/* Download button nav ke andar bhi hai, par wo SIRF mobile menu ke liye
   hai — desktop par wo header ke daayein alag se lagta hai. */
.nav .btn { display: none; }

/* margin-left:auto zaroori hai — mobile par `.nav` position:fixed ho jaata
   hai, yaani flow se bahar, to uske bina ye group logo se chipak jaata hai. */
.hdr-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; background: rgba(255,255,255,.1);
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.2); }
.hdr.stuck .icon-btn { color: var(--ink); background: var(--raised); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 14px 26px; border-radius: 12px; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(217,31,38,.34); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217,31,38,.42); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14.5px; border-radius: 11px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero); color: #fff;
  padding: 130px 0 190px;      /* neeche jagah — panel isi par tairta hai */
  isolation: isolate;
}
/* Tirchhi roshni ki lakeerein */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(102deg, transparent 8%,  rgba(255,255,255,.055) 9%,  transparent 11%),
    linear-gradient(102deg, transparent 20%, rgba(255,255,255,.04)  21%, transparent 24%),
    linear-gradient(102deg, transparent 72%, rgba(120,170,255,.10)  74%, transparent 78%),
    linear-gradient(102deg, transparent 84%, rgba(120,170,255,.07)  85%, transparent 88%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 780px; height: 780px; right: -180px; top: -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,100,255,.26), transparent 68%);
  filter: blur(60px);
}
.hero-in { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.06; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance; margin-bottom: 22px;
}
/* Laal lafz gradient ke LAAL hisse ke upar baithta hai — isliye thoda
   chamkeela laal + peeche gehri halki chhaya, warna "with…ut" ghul jaata */
.hero h1 span {
  display: block; color: #FF5A50;
  text-shadow: 0 0 18px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.35);
}
.hero-sub { font-size: 19px; color: rgba(255,255,255,.82); max-width: 430px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.hero-art { display: grid; place-items: center; }
/* Asli logo file — apne gradient ke saath. Gol kinare aur halki chamak se
   ye hero me tairta hua tile lagta hai, chipka hua chaukor nahi. */
.hero-logo img { filter: drop-shadow(0 20px 50px rgba(0,0,0,.45)); max-width: 100%; }

/* ==========================================================================
   Floating panel — hero ke upar chadha hua
   ========================================================================== */
.panel-lift { margin-top: -150px; position: relative; z-index: 5; }
.panel { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-panel); padding: 26px 28px; }
.panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.panel-head h2 { font-size: 15px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-head .spacer { flex: 1; }
.panel-head .link { font-size: 14px; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.panel-head .link svg { width: 15px; height: 15px; }
.live-ico { color: var(--live); display: grid; place-items: center; }
.live-ico svg { width: 21px; height: 21px; }

.board { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }

.tabs { display: inline-flex; gap: 4px; background: var(--raised); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.tabs button {
  font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 20px; border-radius: 9px;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--red); color: #fff; box-shadow: 0 3px 10px rgba(217,31,38,.3); }

/* ==========================================================================
   Match card
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(266px, 1fr)); gap: 16px; }
.mcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px 14px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }

.mcard-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mcard-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--live);
}
.mcard-state::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 1.6s var(--ease) infinite;
}
.mcard-state.up { color: var(--muted); }
.mcard-state.done { color: var(--ok); }
.mcard-state.up::before, .mcard-state.done::before { animation: none; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.mcard-meta {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.mteam { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mteam.dim .mteam-name, .mteam.dim .mteam-score { color: var(--muted); }
.mteam-flag {
  width: 26px; height: 26px; border-radius: 6px; overflow: hidden; flex: 0 0 auto;
  background: var(--raised); display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: var(--muted);
}
.mteam-flag img { width: 100%; height: 100%; object-fit: cover; }
.mteam-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mteam-score { font-size: 19px; font-weight: 800; letter-spacing: -.02em; text-align: right; }
.mteam-overs { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.mteam-yet { font-size: 12.5px; color: var(--muted); }

.mcard-status {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line);
}
.mcard-status b { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.mcard-status.live b { color: var(--red); }
.mcard-status.done b { color: var(--ok); }
.mcard-status span { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Win probability — dono team ka hissa, do rang */
.winbar { margin-top: 11px; }
.winbar-track { height: 6px; border-radius: 4px; display: flex; gap: 3px; }
.winbar-a { background: var(--teamA); border-radius: 4px; transition: width .6s var(--ease); }
.winbar-b { background: var(--teamB); border-radius: 4px; flex: 1; }
.winbar-foot { display: flex; margin-top: 7px; font-size: 12px; font-weight: 700; }
.winbar-foot .a { color: var(--teamA); }
.winbar-foot .b { margin-left: auto; color: var(--teamB); }

.mcard-when {
  display: flex; align-items: center; gap: 8px;
  margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.mcard-when svg { width: 15px; height: 15px; flex: 0 0 auto; }
.mcard-series {
  margin-top: 9px; font-size: 11.5px; color: var(--muted); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcard-when .chev { margin-left: auto; }

/* ==========================================================================
   News
   ========================================================================== */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: opacity .2s var(--ease); }
.news-item:last-of-type { border-bottom: 0; }
.news-item:hover { opacity: .72; }
.news-thumb {
  width: 78px; height: 62px; border-radius: 11px; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, var(--plum), var(--navy));
  display: grid; place-items: center; color: rgba(255,255,255,.35);
}
/* RSS me tasveerein nahi aatin — to teen brand-gradient baari-baari, taaki
   list ek hi navy dabbe ki copy-paste na lage */
.news-item:nth-child(3n+2) .news-thumb { background: linear-gradient(135deg, var(--red-deep), var(--plum)); }
.news-item:nth-child(3n)   .news-thumb { background: linear-gradient(135deg, var(--navy), #12275C); }
.news-thumb svg { width: 24px; height: 24px; }
.news-body { min-width: 0; }
.news-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.news-sum { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 5px; display: block; }
.news-meta { margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.news-meta b { color: var(--red); font-weight: 700; }
.news-empty { padding: 24px 0; color: var(--muted); font-size: 14px; }
.news-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   Features — ek hi patti me chaar
   ========================================================================== */
.feats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 4px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.feat { display: flex; gap: 13px; padding: 14px 16px; border-radius: var(--r); transition: background-color .2s var(--ease); }
.feat:hover { background: var(--raised); }
.feat-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red);
}
.feat-ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 3px; }
.feat p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty { padding: 52px 24px; text-align: center; }
.empty-ico {
  width: 54px; height: 54px; border-radius: 17px; margin: 0 auto 15px;
  display: grid; place-items: center; background: var(--raised); color: var(--muted);
}
.empty-ico svg { width: 24px; height: 24px; }
.empty h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.empty p { color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   Section (panel ke neeche)
   ========================================================================== */
.sec { padding: 56px 0; }
.sec h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.sec-lead { color: var(--muted); font-size: 16.5px; max-width: 620px; margin-bottom: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--navy); color: #fff; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 56px 0 38px; }
.foot-about { font-size: 14px; color: var(--on-dark-mut); line-height: 1.65; margin-top: 16px; max-width: 280px; }
.foot h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 16px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot ul a { font-size: 14px; color: var(--on-dark-mut); transition: color .2s var(--ease); }
.foot ul a:hover { color: #fff; }
.foot-soon { font-size: 14px; color: var(--on-dark-mut); line-height: 1.6; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: var(--on-dark-mut);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { background: var(--red); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 30px; text-align: center; font-size: 13px; color: var(--on-dark-mut); }
.foot-bar a { color: var(--on-dark-mut); }
.foot-bar a:hover { color: #fff; }
.foot-credit { margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,.35); line-height: 1.6; }

/* ==========================================================================
   Entry animation
   ========================================================================== */
.rise { opacity: 0; transform: translateY(16px); }
.rise.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 34px; }
}
/* Mobile menu — hamburger dabane par nav khulta hai */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }

  .nav {
    position: fixed; inset: 82px 0 auto 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--card); box-shadow: var(--sh-2);
    padding: 8px 16px 18px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s var(--ease), visibility .3s var(--ease);
  }
  .nav.open { max-height: 480px; visibility: visible; }
  .nav a, .hdr.stuck .nav a {
    color: var(--ink); font-size: 16px; padding: 13px 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--red); }

  .hero { padding: 112px 0 170px; }
  .hero-in { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .hero-art { order: -1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 96px 0 140px; }
  .hero h1 { font-size: clamp(29px, 8.4vw, 40px); }
  .hero-sub { font-size: 16.5px; }
  .hero-cta .btn { width: 100%; }
  .hdr .wrap { height: 70px; gap: 8px; }
  .nav { inset: 70px 0 auto 0; }

  /* Mobile header: logo POORA dikhna chahiye (sirf nishaan adhoora lagta
     hai), isliye chhota kiya hai — aur "Get the app" header se hatakar
     menu ke andar bhej diya, warna teen cheezein ek line me thus jaati hain. */
  .hdr .logo img:not(.logo-word) { height: 32px; }
  .hdr .logo img.logo-word { height: 25px; }
  .hdr .logo { gap: 7px; }
  .hdr-right > .btn { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .hdr-right { gap: 8px; }

  /* Menu ke andar wala download button */
  .nav .btn { display: flex; width: 100%; margin-top: 14px; }
  .panel-lift { margin-top: -120px; }
  .panel { padding: 20px 16px; border-radius: 20px; }
  .cards { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 10px; }
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .sec { padding: 40px 0; }
}

/* ==========================================================================
   Legal pages (privacy, terms)
   ========================================================================== */
.legal-head { background: var(--hero); color: #fff; padding: 140px 0 56px; }
.legal-head h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.legal-head p { color: rgba(255,255,255,.65); font-size: 15px; margin-top: 8px; }

.legal { max-width: 760px; margin: 0 auto; padding: 46px 24px 72px; }
.legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 38px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15.5px; color: var(--ink); line-height: 1.72; }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 7px 0; }
.legal a { color: var(--red); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
/* ⚠️ Upar wala rule (.legal a) button ke safed text ko bhi laal kar deta
   tha — laal button par laal likhai = gayab. Button ko safed hi rakho. */
.legal a.btn-primary { color: #fff; }
.legal a.btn-primary:hover { text-decoration: none; }

.legal-key {
  background: var(--card); border-radius: var(--r); box-shadow: var(--sh-1);
  border-left: 4px solid var(--red);
  padding: 20px 24px; margin: 0 0 12px;
}
.legal-key p { margin: 0; }

.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.legal th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
  padding: 9px 14px 9px 0; border-bottom: 2px solid var(--line);
}
.legal td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.legal code { font-size: 13.5px; background: var(--raised); padding: 2px 7px; border-radius: 6px; }
