/* ============================================================
   KBUS Private Limited — Khatabook-themed static site
   Palette inspired by khatabook.com (brand red + warm neutrals)
   ============================================================ */

:root {
  /* Brand — exact Khatabook red */
  --brand:        #DC343B;
  --brand-dark:   #B4262C;
  --brand-darker: #8E1B20;
  --brand-light:  #FDECEC;
  --brand-tint:   #FEF5F5;

  /* Ink & neutrals */
  --ink:      #17171C;
  --ink-2:    #33333B;
  --muted:    #63636E;
  --muted-2:  #8A8A95;
  --line:     #ECECEF;
  --line-2:   #F4F4F6;

  /* Surfaces */
  --bg:       #FFFFFF;
  --bg-soft:  #FDF0F0;   /* Khatabook soft pink */
  --surface:  #FFFFFF;

  /* Accents */
  --gold:     #F9A825;
  --star:     #FFB300;

  /* App icon gradients */
  --g-alertpay:   linear-gradient(135deg, #16A34A 0%, #5AE08A 100%);
  --g-attendance: linear-gradient(135deg, #E23744 0%, #FF7A5C 100%);
  --g-gst:        linear-gradient(135deg, #0E9F8E 0%, #2FD3A5 100%);
  --g-score:      linear-gradient(135deg, #6D28D9 0%, #A855F7 100%);
  --g-passbook:   linear-gradient(135deg, #1D4ED8 0%, #38BDF8 100%);
  --g-sms:        linear-gradient(135deg, #EA580C 0%, #FBBF24 100%);
  --g-autopay:    linear-gradient(135deg, #DB2777 0%, #FB7BB0 100%);

  /* Effects — flat, restrained, border-led */
  --radius:     8px;
  --radius-lg:  12px;
  --radius-sm:  6px;
  --shadow-sm:  0 1px 2px rgba(20,20,30,.05);
  --shadow:     0 4px 14px rgba(20,20,30,.07);
  --shadow-lg:  0 8px 24px rgba(20,20,30,.09);
  --ring:       0 0 0 3px rgba(226,55,68,.12);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body:    "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 7px 14px; border-radius: 100px;
}
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 8px;
  transition: background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-light:hover { background: rgba(255,255,255,.24); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-book { width: 26px; height: 34px; flex: none; display: block; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  letter-spacing: -.01em; color: var(--brand); line-height: 1;
}
.brand-pill {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .005em; color: #fff; background: var(--brand);
  padding: 4px 9px 5px; border-radius: 6px; line-height: 1; margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 168px 0 96px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 700; margin: 20px 0 18px; }
/* Khatabook-style caret with handwritten insert */
/* Matches khatabook.com "Business hua ^(aur bhi) easy" formatting */
.caret-wrap { position: relative; display: inline-block; margin: 0 .1em; top: -0.4em; }
.cw-mark { display: inline-block; font-weight: 400; font-size: .68em; line-height: 1.4; }
.cw-word {
  position: absolute; left: 50%; bottom: 1.02em;
  transform: translateX(-10%) rotate(-6.6deg); transform-origin: center;
  font-family: "Grand Hotel", cursive; font-weight: 400;
  font-size: .77em; line-height: 1; color: var(--ink); white-space: nowrap;
}
.hero h1 .accent { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content:""; position:absolute; left:0; right:0; bottom:.08em; height:.22em; background: var(--brand-light); z-index:-1; border-radius: 4px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--ink); display: block; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: 14px; color: var(--muted); }

/* Hero visual — floating phone + app tiles */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.hero-glow { position: absolute; width: 440px; height: 440px; border-radius: 50%; background: #FADEDF; z-index: 0; top: 20px; }
.hero-dot { position: absolute; border-radius: 50%; z-index: 0; }
.hero-dot-1 { width: 20px; height: 20px; background: var(--brand); opacity: .5; top: 50px; left: 70px; }
.hero-dot-2 { width: 13px; height: 13px; background: var(--gold); bottom: 70px; right: 84px; }
/* Passbook screenshot card, tucked behind the hand */
.shot {
  position: absolute; height: auto; border-radius: 20px;
  border: 5px solid #fff; box-shadow: var(--shadow-lg); background: #fff;
}
.shot { top: 40px; }
.shot-b { width: 182px; z-index: 1; left: 38px; transform: rotate(-8deg); }
.shot-c { width: 182px; z-index: 1; right: 38px; transform: rotate(8deg); }

/* Hand holding phone with app screen overlaid */
.hero-mock { position: relative; width: 100%; max-width: 336px; z-index: 2; transform: translateX(58px); }
.mock-hand { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.mock-screen {
  position: absolute; z-index: 2;
  left: 13.75%; top: 2.55%; width: 37.75%; height: 65.85%;
  object-fit: cover; object-position: top center;
  border-radius: 9% / 4.6%;
}
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.phone {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-3deg);
  width: 240px; height: 490px; border-radius: 38px; background: #111318;
  padding: 11px; box-shadow: var(--shadow-lg); z-index: 3;
}
.phone::before { content:""; position:absolute; top:20px; left:50%; transform:translateX(-50%); width:96px; height:24px; background:#111318; border-radius:0 0 16px 16px; z-index: 4; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, var(--brand) 0%, var(--brand-darker) 100%);
  display: flex; flex-direction: column; padding: 44px 20px 20px; color:#fff;
}
.phone-screen .ps-top { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.phone-screen .ps-top span { display:block; font-family: var(--font-body); font-weight:500; font-size:12px; opacity:.8; }
.phone-apps { margin-top: 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.phone-apps .pa { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.16); }
.phone-apps .pa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-card { margin-top: auto; background: rgba(255,255,255,.96); border-radius: 18px; padding: 14px; color: var(--ink); }
.phone-card .pc-row { display:flex; align-items:center; gap:10px; }
.phone-card .pc-ic { width:38px;height:38px;border-radius:11px; background: var(--g-passbook); flex:none; }
.phone-card .pc-t b { font-family: var(--font-display); font-size:14px; display:block; }
.phone-card .pc-t span { font-size:11px; color: var(--muted); }
.phone-card .pc-bar { height:8px; border-radius:6px; background: var(--line); margin-top:12px; overflow:hidden; }
.phone-card .pc-bar i { display:block; height:100%; width:72%; background: linear-gradient(90deg,var(--brand),#FF7A5C); border-radius:6px; }

.floaty {
  position: absolute; background: #fff; border:1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 13px 15px;
  display: flex; align-items: center; gap: 11px; z-index: 5;
}
.floaty .fi { width: 40px; height: 40px; border-radius: 8px; flex: none; display:grid; place-items:center; }
.floaty .fi svg { width: 22px; height: 22px; stroke: #fff; }
.floaty b { font-family: var(--font-display); font-size: 14px; display:block; }
.floaty span { font-size: 12px; color: var(--muted); }
.floaty.f1 { top: 44px; left: -6px; }
.floaty.f2 { bottom: 52px; right: -6px; }

.hero-blob { position:absolute; z-index:1; }

/* Marquee trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background:#fff; padding: 26px 0; }
.trust-inner { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; color: var(--muted); font-size: 14px; }
.trust b { font-family: var(--font-display); color: var(--ink); }
.trust .dot { width:5px;height:5px;border-radius:50%;background:var(--line); display:inline-block; }

/* ============================================================
   APPS
   ============================================================ */
.apps { background: var(--bg); }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.app-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.app-top { display:flex; align-items:flex-start; gap:16px; margin-bottom:18px; }
.app-icon {
  width: 58px; height: 58px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.app-icon svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 2; fill: none; }
.app-icon--img { border: 1px solid var(--line); overflow: hidden; background: #fff; }
.app-icon--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.app-head h3 { font-size: 20px; }
.app-head .dev { font-size: 13px; color: var(--muted-2); margin-top: 2px; }
.app-meta { display:flex; align-items:center; gap:12px; margin-top: 8px; flex-wrap:wrap; }
.badge-cat { font-family: var(--font-display); font-weight:700; font-size: 11px; letter-spacing:.04em; text-transform:uppercase; color: var(--ink-2); background: var(--line-2); padding: 4px 10px; border-radius: 100px; }
.rating { display:inline-flex; align-items:center; gap:4px; font-size:13px; font-weight:600; color: var(--ink-2); }
.rating svg { width: 15px; height:15px; fill: var(--star); }
.installs { font-size:12.5px; font-weight:600; color: var(--muted); }
.installs::before { content:"↓ "; color: var(--brand); }
.app-desc { color: var(--muted); font-size: 15px; margin: 4px 0 18px; flex: 1; }
.app-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 22px; }
.app-tags span { font-size:12px; color: var(--ink-2); background: var(--brand-tint); border:1px solid var(--brand-light); padding:5px 11px; border-radius:100px; }
.app-actions { display:flex; align-items:center; gap:10px; margin-top:auto; }
.gplay {
  display:inline-flex; align-items:center; gap:10px; background: var(--ink); color:#fff;
  padding: 10px 16px; border-radius: 8px; transition: background .25s;
}
.gplay:hover { background:#000; }
.gplay svg { width: 22px; height: 22px; }
.gplay .gp-t { font-family: var(--font-display); line-height:1.1; }
.gplay .gp-t small { display:block; font-size: 9px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.gplay .gp-t b { font-size: 15px; font-weight:700; }
.legal-links { display:flex; gap:14px; margin-left:auto; }
.legal-links a { font-size:12.5px; font-weight:600; color: var(--muted); transition: color .2s; border-bottom:1px solid transparent; }
.legal-links a:hover { color: var(--brand); border-color: var(--brand); }

/* ============================================================
   FEATURES / WHY
   ============================================================ */
.why { background: var(--bg-soft); }
.why-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.feature { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { transform: translateY(-3px); border-color: var(--brand); }
.feature .fi { width:52px;height:52px;border-radius:10px; background: var(--brand-light); display:grid; place-items:center; margin-bottom:18px; }
.feature .fi svg { width:26px;height:26px; stroke: var(--brand); stroke-width:2; fill:none; }
.feature h3 { font-size:18px; margin-bottom:8px; }
.feature p { font-size:14.5px; color: var(--muted); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.about-copy .eyebrow { margin-bottom:18px; }
.about-copy h2 { font-size: clamp(28px,3.6vw,40px); margin-bottom:18px; }
.about-copy p { color: var(--muted); font-size:16.5px; margin-bottom:16px; }
.about-list { display:grid; gap:14px; margin-top:24px; }
.about-list li { display:flex; gap:12px; align-items:flex-start; font-size:15.5px; color: var(--ink-2); }
.about-list--row { grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 940px; margin: 44px auto 0; }
.about-list--row li { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (max-width: 820px){ .about-list--row { grid-template-columns: 1fr; max-width: 520px; } }
.about-list .ck { width:24px;height:24px;border-radius:50%;background:var(--brand);flex:none;display:grid;place-items:center;margin-top:2px; }
.about-list .ck svg { width:13px;height:13px;stroke:#fff;stroke-width:3;fill:none; }

.about-card {
  background: var(--brand-darker);
  border-radius: var(--radius-lg); padding: 40px; color:#fff; position:relative; overflow:hidden;
}
.about-card h3 { color:#fff; font-size:22px; margin-bottom:6px; }
.about-card .sub { opacity:.82; font-size:14px; margin-bottom:26px; }
.entity-row { display:flex; align-items:center; gap:14px; padding:16px 0; border-top:1px solid rgba(255,255,255,.16); }
.entity-row:first-of-type { border-top:none; }
.entity-row .en { width:46px;height:46px;border-radius:13px; background:rgba(255,255,255,.16); display:grid;place-items:center; font-family:var(--font-display); font-weight:800; font-size:14px; flex:none; }
.entity-row b { font-family: var(--font-display); font-size:15px; display:block; }
.entity-row span { font-size:13px; opacity:.8; }
.entity-row.me { background: rgba(255,255,255,.1); margin: 6px -16px 0; padding:16px; border-radius:14px; border:1px solid rgba(255,255,255,.2); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 30px 0 100px; }
.cta-box {
  background: var(--ink);
  border-radius: var(--radius-lg); padding: 60px 48px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.cta-box h2 { color:#fff; font-size: clamp(28px,4vw,42px); margin-bottom:16px; }
.cta-box p { opacity:.85; font-size:18px; max-width:560px; margin: 0 auto 32px; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0F0F13; color: #C9C9D1; padding: 72px 0 32px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom:48px; }
.footer .brand { margin-bottom:16px; }
.footer .brand-word { color:#fff; }
.footer-about { font-size:14px; color:#9A9AA4; max-width:300px; }
.footer h4 { color:#fff; font-size:14px; letter-spacing:.06em; text-transform:uppercase; margin-bottom:18px; }
.footer ul li { margin-bottom:11px; }
.footer ul a { font-size:14.5px; color:#9A9AA4; transition:color .2s; }
.footer ul a:hover { color: #fff; }
.footer-company { max-width: 340px; }
.footer-contact { margin-top: 22px; display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #9A9AA4; line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--brand); flex: none; margin-top: 2px; }
.footer-contact a { color: #9A9AA4; transition: color .2s; }
.footer-contact a:hover { color: #fff; }
.footer-contact .hl { color: #fff; background: rgba(220,52,59,.30); border: 1px solid rgba(220,52,59,.5); padding: 1px 7px; border-radius: 5px; font-weight: 700; letter-spacing: .02em; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:26px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color:#7A7A85; }
.footer-bottom-links { display:flex; align-items:center; gap:20px; }
.footer-bottom-links a { color:#9A9AA4; font-weight:600; transition:color .2s; }
.footer-bottom-links a:hover { color:#fff; }
.footer-bottom-links .fb-note { color:#61616B; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { padding: 150px 0 60px; background: var(--bg-soft); border-bottom:1px solid var(--line); }
.legal-hero h1 { font-size: clamp(32px,5vw,52px); margin:16px 0 12px; }
.legal-hero p { color: var(--muted); font-size:17px; max-width:640px; }
.legal-layout { display:grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 60px 0 100px; align-items:start; }
.legal-nav { position: sticky; top: 100px; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; background:#fff; }
.legal-nav h4 { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color: var(--muted); margin-bottom:14px; }
.legal-nav a { display:block; font-family:var(--font-display); font-weight:600; font-size:14.5px; color: var(--ink-2); padding:9px 12px; border-radius:10px; transition: background .2s, color .2s; }
.legal-nav a:hover, .legal-nav a.active { background: var(--brand-light); color: var(--brand); }
.legal-doc { max-width: 760px; }
.legal-note { background: var(--brand-tint); border:1px solid var(--brand-light); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 40px; display:flex; gap:14px; align-items:flex-start; }
.legal-note svg { width:22px;height:22px; stroke: var(--brand); flex:none; margin-top:2px; fill:none; stroke-width:2; }
.legal-note p { font-size:14.5px; color: var(--ink-2); }
.policy { scroll-margin-top: 100px; padding: 40px 0; border-top:1px solid var(--line); }
.policy:first-of-type { border-top:none; padding-top:0; }
.policy-head { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.policy-head .app-icon { width:52px;height:52px; }
.policy-head .app-icon svg { width:26px;height:26px; }
.policy h2 { font-size:26px; }
.policy .meta { font-size:13px; color: var(--muted-2); }
.policy h3 { font-size:18px; margin:26px 0 10px; }
.policy p, .policy li { color: var(--ink-2); font-size:15.5px; margin-bottom:12px; }
.policy ul { list-style:disc; padding-left:22px; }
.policy ul li { margin-bottom:8px; }
.editable { background: #FFFBEB; border-left:3px solid var(--gold); padding: 4px 10px; border-radius: 6px; color:#7A5A00; font-size:14px; font-style:italic; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Reveal animation disabled — content is always visible, no fade on load/scroll */
.reveal, .reveal.in { opacity:1; transform:none; transition:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 460px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav { position: static; display:flex; flex-wrap:wrap; gap:6px; }
  .legal-nav h4 { width:100%; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background:#fff; padding: 20px 24px; gap: 6px; box-shadow: var(--shadow); border-top:1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom:1px solid var(--line-2); }
  .section { padding: 68px 0; }
  .apps-grid, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .cta-box { padding: 44px 24px; }
  .footer-bottom { justify-content:center; text-align:center; }
}
@media (max-width: 420px) {
  .app-actions { flex-direction: column; align-items: stretch; }
  .legal-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity:1; transform:none; }
}
