/* Janta Kirana marketing site. One stylesheet for every page and language (en, hi, ur/RTL).
   Colours follow the apps' tokens (apps/customer/src/index.css): brand green, amber accent, ink greys. */

:root {
  --brand-50: #ecfbf1; --brand-100: #d2f5de; --brand-200: #a6ebbf; --brand-300: #6fdb98; --brand-400: #34c46e;
  --brand-500: #16a952; --brand-600: #0e8a42; --brand-700: #0b6e35; --brand-800: #0a572c; --brand-900: #083f21; --brand-950: #04261a;
  --accent-50: #fff7e6; --accent-100: #ffebc2; --accent-300: #ffc95c; --accent-400: #ffb42e; --accent-500: #f59e0b; --accent-600: #d97706;

  --bg: #fbfcfa;
  --bg-soft: #f3f6f2;
  --surface: #ffffff;
  --surface-2: #f7f9f6;
  --line: #e3e9e3;
  --line-strong: #cfd8d0;
  --ink: #111713;
  --ink-2: #3a463f;
  --ink-3: #5c6b62;
  --on-dark: #f4faf5;
  --on-dark-2: #c6d6cb;
  --primary: var(--brand-600);
  --primary-ink: #ffffff;
  --link: var(--brand-700);
  --shadow-sm: 0 1px 2px rgba(17, 23, 19, .06), 0 1px 1px rgba(17, 23, 19, .04);
  --shadow: 0 10px 30px -12px rgba(8, 63, 33, .25), 0 2px 6px rgba(17, 23, 19, .06);
  --shadow-lg: 0 40px 80px -30px rgba(8, 63, 33, .45), 0 10px 24px -10px rgba(17, 23, 19, .18);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-xl: 32px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b110d; --bg-soft: #0f1712; --surface: #121b15; --surface-2: #16211a;
    --line: #223027; --line-strong: #2d3d33;
    --ink: #eef5f0; --ink-2: #c3d1c8; --ink-3: #93a59a;
    --primary: var(--brand-500); --link: var(--brand-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b110d; --bg-soft: #0f1712; --surface: #121b15; --surface-2: #16211a;
  --line: #223027; --line-strong: #2d3d33;
  --ink: #eef5f0; --ink-2: #c3d1c8; --ink-3: #93a59a;
  --primary: var(--brand-500); --link: var(--brand-300);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Hindi: Devanagari needs room above and below; letter-spacing must stay normal or conjuncts break. */
:lang(hi) { --font-sans: "Noto Sans Devanagari", "Inter", system-ui, sans-serif; --font-display: "Noto Sans Devanagari", "Plus Jakarta Sans", sans-serif; }
/* Urdu: Naskh for reading, Nastaliq for big headings (it is tall: generous line-height). */
:lang(ur) { --font-sans: "Noto Naskh Arabic", "Inter", system-ui, sans-serif; --font-display: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
:lang(hi) body, :lang(ur) body { font-size: 17.5px; }
:lang(ur) body { line-height: 1.9; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
:lang(hi) :is(h1, h2, h3, h4), :lang(ur) :is(h1, h2, h3, h4), :lang(hi) .eyebrow, :lang(ur) .eyebrow, :lang(hi) .btn, :lang(ur) .btn { letter-spacing: normal; }
:lang(hi) :is(h1, h2, h3) { line-height: 1.32; font-weight: 700; }
:lang(ur) :is(h1, h2) { line-height: 1.9; font-weight: 700; }
:lang(ur) :is(h3, h4) { font-family: "Noto Naskh Arabic", serif; line-height: 1.6; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.soft { background: var(--bg-soft); }
.section.dark { background: radial-gradient(1200px 600px at 80% -10%, #0f6b37 0%, transparent 60%), var(--brand-950); color: var(--on-dark); }
.section.dark :is(h1, h2, h3, h4) { color: #fff; }
.section.dark p, .section.dark li { color: var(--on-dark-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px;
}
:root[data-theme="dark"] .eyebrow { color: var(--brand-300); background: rgba(22, 169, 82, .12); border-color: rgba(22, 169, 82, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--brand-300); background: rgba(22, 169, 82, .12); border-color: rgba(22, 169, 82, .3); } }
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.section.dark .eyebrow, .hero .eyebrow { color: var(--brand-200); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
:lang(hi) .eyebrow, :lang(ur) .eyebrow { text-transform: none; font-size: 14px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 16px; }
.section-head p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-3); margin-top: 16px; }
.section.dark .section-head p { color: var(--on-dark-2); }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); }

/* Buttons */
.btn {
  --b: var(--primary); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--b); color: var(--primary-ink); border: 1px solid transparent; box-shadow: 0 8px 20px -8px rgba(14, 138, 66, .6);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(14, 138, 66, .7); text-decoration: none; background: var(--brand-700); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: var(--brand-900); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn.light:hover { background: var(--brand-50); }
.btn.glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .2); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.over-hero:not(.scrolled) { background: transparent; }
.site-header.over-hero:not(.scrolled) :is(.brand, .nav a, .lang-switch a, .menu-btn) { color: #fff; }
.site-header.over-hero:not(.scrolled) .lang-switch { border-color: rgba(255, 255, 255, .3); }
.nav-wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Plus Jakarta Sans", var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-header.over-hero:not(.scrolled) .nav a:hover, .site-header.over-hero:not(.scrolled) .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-switch a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 700; padding: 5px 10px; border-radius: 999px; line-height: 1.3; }
.lang-switch a[aria-current="true"] { background: var(--primary); color: #fff !important; }
.lang-switch a[lang="ur"] { font-family: "Noto Naskh Arabic", serif; }
.lang-switch a[lang="hi"] { font-family: "Noto Sans Devanagari", sans-serif; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; border-radius: 10px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 1200px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 17px; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .menu-btn { display: inline-flex; margin-inline-start: auto; }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) { .brand span { font-size: 17px; } .lang-switch a { padding: 5px 8px; font-size: 13px; } }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; margin-top: -72px; padding-top: 72px; background: var(--brand-950); }
.hero-media { position: absolute; inset: 0; }
.hero-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4, 38, 26, .92) 0%, rgba(4, 38, 26, .78) 38%, rgba(4, 38, 26, .35) 70%, rgba(4, 38, 26, .55) 100%),
  linear-gradient(0deg, rgba(4, 38, 26, .85) 0%, transparent 35%); }
[dir="rtl"] .hero-media::after { background:
  linear-gradient(270deg, rgba(4, 38, 26, .92) 0%, rgba(4, 38, 26, .78) 38%, rgba(4, 38, 26, .35) 70%, rgba(4, 38, 26, .55) 100%),
  linear-gradient(0deg, rgba(4, 38, 26, .85) 0%, transparent 35%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: min(860px, 100svh); padding-block: 72px 96px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 76px); margin-top: 20px; }
:lang(ur) .hero h1 { font-size: clamp(34px, 5vw, 62px); }
.hero .lead { color: rgba(255, 255, 255, .86); margin-top: 20px; max-width: 620px; }
.hero .btn-row { margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 36px; color: rgba(255, 255, 255, .85); font-size: 15px; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--brand-300); }
.hero-devices { position: relative; height: 660px; }
.hero-devices .device { position: absolute; }
.hero-devices .device.front { width: 300px; inset-inline-start: 4%; top: 30px; z-index: 2; }
.hero-devices .device.back { width: 270px; inset-inline-end: 4%; top: 110px; transform: rotate(4deg); opacity: .96; }
[dir="rtl"] .hero-devices .device.back { transform: rotate(-4deg); }
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 72px; }
  .hero-devices { height: 560px; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-devices .device.front { width: min(270px, 52%); inset-inline-start: 0; top: 0; }
  .hero-devices .device.back { width: min(240px, 46%); top: 70px; inset-inline-end: 0; }
}
@media (max-width: 560px) { .hero-devices { height: 440px; } }
.page-hero { position: relative; overflow: hidden; color: #fff; margin-top: -72px; padding-top: 72px; background: var(--brand-950); }
.page-hero .hero-media::after { background: linear-gradient(0deg, rgba(4, 38, 26, .9), rgba(4, 38, 26, .55)); }
.page-hero-inner { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(56px, 8vw, 96px); max-width: 860px; }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5.5vw, 68px); margin-top: 18px; }
.page-hero .lead { color: rgba(255, 255, 255, .86); margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }

/* Device frames */
.device { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); }
.device .frame { position: relative; background: #0b0f0c; border-radius: 44px; padding: 10px; box-shadow: inset 0 0 0 2px #2b332d, inset 0 0 0 4px #121612; }
.device .screen { border-radius: 34px; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; }
.device .screen :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device.pos .screen { aspect-ratio: 512 / 800; }
.device.pos .frame { border-radius: 36px; }
.device.pos .frame::before { display: none; }
.device.phone .frame::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; background: #0b0f0c; border-radius: 999px; z-index: 2; }
.device.tablet .frame { border-radius: 30px; padding: 14px; }
.device.tablet .screen { border-radius: 18px; aspect-ratio: 1280 / 800; }
.device.desktop .frame { border-radius: 16px; padding: 0; background: #e8ece9; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); overflow: hidden; }
.device.desktop .bar { display: flex; gap: 7px; padding: 12px 14px; background: #eef2ef; border-bottom: 1px solid #dde3de; }
.device.desktop .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3dad5; }
.device.desktop .bar i:nth-child(1) { background: #f26b5b; } .device.desktop .bar i:nth-child(2) { background: #f5bf4f; } .device.desktop .bar i:nth-child(3) { background: #5bc366; }
.device.desktop .screen { border-radius: 0; aspect-ratio: 1440 / 900; }
.device.flat { filter: none; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 20px; margin-top: 18px; }
.card p { color: var(--ink-3); margin: 10px 0 0; font-size: 16px; }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.amber { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100); }
:root[data-theme="dark"] .icon-chip { background: rgba(22, 169, 82, .12); border-color: rgba(22, 169, 82, .28); color: var(--brand-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-chip { background: rgba(22, 169, 82, .12); border-color: rgba(22, 169, 82, .28); color: var(--brand-300); } }
.section.dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section.dark .card p { color: var(--on-dark-2); }
.section.dark .icon-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--brand-300); }

/* Audience split */
.audience { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.audience > img, .audience > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s ease; }
.audience:hover > img, .audience:hover > picture img { transform: scale(1.04); }
.audience::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 38, 26, .95) 8%, rgba(4, 38, 26, .55) 55%, rgba(4, 38, 26, .1) 100%); }
.audience .inner { padding: clamp(24px, 4vw, 40px); }
.audience h3 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-top: 14px; }
.audience p { color: rgba(255, 255, 255, .85); margin-top: 12px; }
.audience ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.audience li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.audience li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--brand-300); }

/* Feature rows (alternating media + text) */
.rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.row:nth-child(even) .row-media { order: 2; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row-media { order: 0; } }
.row-text h3 { font-size: clamp(26px, 3.2vw, 40px); margin-top: 14px; }
.row-text > p { color: var(--ink-3); font-size: 18px; margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--brand-600); background: var(--brand-50); border-radius: 50%; padding: 3px; }
.section.dark .checks li { color: var(--on-dark-2); }
.section.dark .checks li svg { background: rgba(22, 169, 82, .18); color: var(--brand-300); }
.row-media { position: relative; display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl); background:
  radial-gradient(600px 300px at 30% 0%, var(--brand-100), transparent 70%), linear-gradient(160deg, var(--brand-50), var(--surface-2)); border: 1px solid var(--line); min-height: 420px; overflow: hidden; }
:root[data-theme="dark"] .row-media { background: radial-gradient(600px 300px at 30% 0%, rgba(22, 169, 82, .2), transparent 70%), var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row-media { background: radial-gradient(600px 300px at 30% 0%, rgba(22, 169, 82, .2), transparent 70%), var(--surface); } }
.row-media.amber { background: radial-gradient(600px 300px at 70% 0%, var(--accent-100), transparent 70%), linear-gradient(160deg, var(--accent-50), var(--surface-2)); }
.row-media .device.phone { width: min(290px, 70%); }
.row-media .device.tablet { width: 100%; }
.row-media .device.desktop { width: 100%; }
.row-media.photo { padding: 0; background: none; }
.row-media.photo > img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.row-media .float { position: absolute; width: 38%; inset-inline-end: 6%; bottom: 6%; }
.row-media .tag { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm); }

/* Video showcase (tabs) */
.showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.tabs { display: grid; gap: 10px; }
.tab { text-align: start; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--on-dark); cursor: pointer; font: inherit; transition: background .2s, border-color .2s; }
.tab .icon-chip { grid-column: 1; grid-row: 1 / span 2; width: 42px; height: 42px; }
.tab strong { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 18px; color: #fff; }
.tab > span:not(.icon-chip) { color: var(--on-dark-2); font-size: 15px; grid-column: 2; grid-row: 2; }
.tab[aria-selected="true"] { background: rgba(22, 169, 82, .16); border-color: rgba(52, 196, 110, .55); }
.tab:hover { background: rgba(255, 255, 255, .07); }
.stage { position: sticky; top: 100px; display: grid; place-items: center; min-height: 600px; }
.showcase { align-items: start; }
.stage .panel { display: none; width: 100%; place-items: center; }
.stage .panel.active { display: grid; animation: fade .5s ease; }
.stage .device.phone { width: min(320px, 78%); }
.stage .device.pos { width: min(400px, 86%); }
.row-media .device.pos { width: min(360px, 82%); }
.stage .device.tablet { width: 100%; }
.stage .device.desktop { width: 100%; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-family: "Plus Jakarta Sans", sans-serif; }
.step h3 { font-size: 19px; margin-top: 18px; }
.step p { color: var(--ink-3); margin: 8px 0 0; font-size: 16px; }

/* Language gallery */
.lang-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: end; }
.lang-gallery figure { margin: 0; text-align: center; }
.lang-gallery .device { width: min(260px, 100%); margin-inline: auto; }
.lang-gallery figcaption { margin-top: 18px; font-weight: 700; font-size: 18px; }
.lang-gallery figure:nth-child(2) .device { transform: translateY(-24px); }
@media (max-width: 760px) { .lang-gallery { grid-template-columns: 1fr; } .lang-gallery figure:nth-child(2) .device { transform: none; } }
.lang-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.lang-cloud span { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.section.dark .lang-cloud span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }

/* Download / QR */
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 520px) { .app-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.qr { width: 168px; height: 168px; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex: none; }
.qr svg { width: 100%; height: 100%; }
.app-card h3 { font-size: 24px; }
.app-card p { color: var(--ink-3); margin: 8px 0 16px; font-size: 16px; }
.app-icon { width: 52px; height: 52px; border-radius: 14px; }
.app-head { display: flex; gap: 14px; align-items: center; }
@media (max-width: 520px) { .app-head { justify-content: center; } }
.section.dark .app-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section.dark .app-card p { color: var(--on-dark-2); }
.mini-note { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.section.dark .mini-note { color: var(--on-dark-2); }

/* Features directory */
.feature-nav { position: sticky; top: 72px; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.feature-nav .container { display: flex; gap: 12px; align-items: center; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.feature-nav .container::-webkit-scrollbar { display: none; }
.feature-nav a { flex: none; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.feature-nav a:hover { border-color: var(--brand-400); color: var(--ink); }
.search-box { position: relative; flex: 0 0 260px; }
.search-box input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); padding-inline: 40px 14px; font: inherit; font-size: 15px; }
.search-box svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.feature-group { padding-top: 56px; }
.feature-group h2 { font-size: clamp(26px, 3vw, 36px); display: flex; align-items: center; gap: 14px; }
.feature-group .count { font-size: 14px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border-radius: 999px; padding: 4px 10px; font-family: var(--font-sans); letter-spacing: 0; }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
@media (max-width: 980px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }
.feature-item { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-item h3 { font-size: 17px; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.feature-item h3 svg { width: 20px; height: 20px; flex: none; color: var(--brand-600); margin-top: 2px; }
.feature-item p { color: var(--ink-3); font-size: 15.5px; margin: 8px 0 0; }
.feature-item[hidden] { display: none; }
.no-results { display: none; text-align: center; color: var(--ink-3); padding: 48px 0; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform .25s; color: var(--brand-600); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { color: var(--ink-2); padding-bottom: 18px; }

/* Media helpers */
.photo-frame { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.photo-frame img, .photo-frame video { width: 100%; height: 100%; object-fit: cover; }
.cta-band { position: relative; border-radius: var(--radius-xl); overflow: hidden; color: #fff; isolation: isolate; padding: clamp(40px, 7vw, 88px); }
.cta-band > :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 38, 26, .95), rgba(4, 38, 26, .6)); }
[dir="rtl"] .cta-band::before { background: linear-gradient(270deg, rgba(4, 38, 26, .95), rgba(4, 38, 26, .6)); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); max-width: 720px; }
.cta-band p { color: rgba(255, 255, 255, .86); max-width: 620px; margin-top: 16px; font-size: 19px; }
.cta-band .btn-row { margin-top: 28px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.trust svg { width: 24px; height: 24px; flex: none; color: var(--brand-300); margin-top: 2px; }
.trust strong { color: #fff; display: block; font-size: 17px; }
.trust span { color: var(--on-dark-2); font-size: 15.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.note-box { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--accent-50); border: 1px solid var(--accent-100); color: #6b4a07; font-size: 15.5px; }
:root[data-theme="dark"] .note-box { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: var(--accent-300); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note-box { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: var(--accent-300); } }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 18px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .device { width: 200px; flex: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }
[dir="rtl"] .marquee .track { animation-direction: reverse; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Footer */
.site-footer { background: var(--brand-950); color: var(--on-dark-2); padding-block: 72px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 15px; font-family: var(--font-sans); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
:lang(hi) .site-footer h4, :lang(ur) .site-footer h4 { text-transform: none; letter-spacing: 0; font-size: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; }
.theme-toggle { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.theme-toggle svg { width: 16px; height: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .card, .btn, .audience > img { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
