/* ============================================================
   AadhuInfoTech — site styles
   Design tokens with light + dark themes.
   Theme is set on <html data-theme="light|dark"> by theme.js.
   ============================================================ */

/* ---- Light theme (default) ---- */
:root {
  --ink: #0F172A;
  --muted: #475569;
  --faint: #64748B;

  --indigo-950: #1E1B4B;
  --indigo-800: #312E81;
  --indigo-700: #4338CA;
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-50: #EEF2FF;

  --emerald: #10B981;
  --emerald-600: #059669;
  --emerald-50: #ECFDF5;
  --emerald-border: #A7F3D0;

  --line: #E7E9F2;
  --bg: #ffffff;
  --bg-soft: #F8FAFC;
  --bg-violet: #F5F3FF;
  --card: #ffffff;
  --card-2: #ffffff;
  --footer-bg: #1E1B4B;
  --footer-ink: #E0E7FF;
  --footer-faint: #A5B4FC;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 30px rgba(30, 27, 75, .08);
  --shadow-lg: 0 20px 50px rgba(30, 27, 75, .12);

  --hero-glow: radial-gradient(720px 420px at 82% -10%, #EEF2FF, rgba(238, 242, 255, 0) 70%);
}

/* ---- Dark theme ---- */
:root[data-theme="dark"] {
  --ink: #F1F5F9;
  --muted: #A9B4C7;
  --faint: #8A97AD;

  --indigo-950: #C7D2FE;   /* headings on dark read light */
  --indigo-800: #A5B4FC;
  --indigo-700: #818CF8;
  --indigo-600: #818CF8;
  --indigo-500: #6366F1;
  --indigo-50: #1E1B3A;    /* soft indigo surface on dark */

  --emerald: #34D399;
  --emerald-600: #34D399;
  --emerald-50: #08251C;
  --emerald-border: #14532D;

  --line: #24304A;
  --bg: #0B1020;
  --bg-soft: #0F1628;
  --bg-violet: #11132B;
  --card: #121A2E;
  --card-2: #0F1628;
  --footer-bg: #070B16;
  --footer-ink: #C7D2FE;
  --footer-faint: #7C88B8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);

  --hero-glow: radial-gradient(720px 420px at 82% -10%, rgba(67, 56, 202, .22), rgba(11, 16, 32, 0) 70%);
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--indigo-950);
}
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--indigo-600); text-decoration: none; }
a:hover { color: var(--indigo-700); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.section { padding: 76px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--indigo-600); background: var(--indigo-50);
  padding: 7px 13px; border-radius: 999px;
}
.center { text-align: center; }

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo-700); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; min-height: 46px; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo-700); color: #fff; }
.btn-primary:hover { background: var(--indigo-800); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--indigo-500); }

/* Google Play badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0F172A; color: #fff; border-radius: 13px; padding: 11px 20px; min-height: 52px;
}
:root[data-theme="dark"] .store-badge { background: #10192E; border: 1px solid var(--line); }
.store-badge:hover { color: #fff; box-shadow: var(--shadow-md); }
.store-badge .sb-sub { font-size: 10px; opacity: .72; letter-spacing: .04em; }
.store-badge .sb-main { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; color: #fff; }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.chip-live {
  color: var(--emerald-600); background: var(--emerald-50);
  border-color: var(--emerald-border); font-weight: 700;
}
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--emerald); }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--indigo-50); flex: none;
}
.feature-icon.em { background: var(--emerald-50); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #4338CA, #10B981);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark span { font-family: 'Sora', sans-serif; font-weight: 800; color: #fff; font-size: 13px; }
.brand-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 9px;
}
.nav a:hover, .nav a.active { color: var(--ink); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { border-color: var(--indigo-500); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { display: block; padding: 14px 24px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero { background: var(--hero-glow), var(--bg); padding: 70px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; font-weight: 800; margin-top: 20px; color: var(--indigo-950); }
.hero h1 .accent { color: var(--emerald-600); }
.hero p.lede { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; margin-top: 34px; }
.trust .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; color: var(--indigo-700); }
.trust .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.trust .sep { width: 1px; background: var(--line); }

/* phone mock */
.phone {
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--card); max-width: 340px; margin-left: auto;
}
.phone-top { background: linear-gradient(135deg, #312E81, #4338CA); padding: 18px; color: #fff; }
.phone-top .meta { display: flex; justify-content: space-between; font-size: 12px; opacity: .88; font-weight: 600; }
.progress { height: 6px; background: rgba(255, 255, 255, .22); border-radius: 99px; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: #34D399; border-radius: 99px; }
.phone-body { padding: 18px; background: var(--bg-soft); }
.q { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }
.opt {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 9px;
  display: flex; justify-content: space-between; align-items: center;
}
.opt.correct { border: 1.5px solid var(--emerald); background: var(--emerald-50); color: var(--emerald-600); font-weight: 700; }

/* ============================================================
   Exam strip
   ============================================================ */
.exam-strip { background: linear-gradient(135deg, var(--indigo-800), var(--indigo-700)); }
:root[data-theme="dark"] .exam-strip { background: linear-gradient(135deg, #1B1740, #241E63); }
.exam-strip .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.exam-strip .label { color: #C7D2FE; font-weight: 600; font-size: 14px; }
.exam-strip .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.exam-strip .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #E0E7FF; }
.exam-strip .chip-live { background: rgba(16,185,129,.16); border-color: rgba(52,211,153,.5); color: #6EE7B7; }

/* ============================================================
   Sections / feature + app grids
   ============================================================ */
.sec-head { max-width: 640px; }
.sec-head h2 { font-size: 36px; font-weight: 800; }
.sec-head.center { margin: 0 auto; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

.feature h3 { font-size: 18px; font-weight: 700; margin-top: 16px; color: var(--ink); }
.feature p { color: var(--muted); font-size: 15px; margin-top: 7px; }

/* app cards */
.app-card { display: flex; flex-direction: column; }
.app-card .app-top { display: flex; align-items: center; gap: 14px; }
.app-logo { width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.app-logo.lawcet { background: linear-gradient(135deg, #4338CA, #6366F1); }
.app-logo.soon { background: var(--bg-soft); border: 1px solid var(--line); }
.app-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.app-card .sub { font-size: 13px; color: var(--faint); }
.app-card .desc { color: var(--muted); font-size: 15px; margin-top: 14px; flex: 1; }
.app-card .app-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.badge-soon { font-size: 12px; font-weight: 700; color: var(--faint); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.badge-live { font-size: 12px; font-weight: 700; color: var(--emerald-600); background: var(--emerald-50); border: 1px solid var(--emerald-border); padding: 5px 11px; border-radius: 999px; }

/* how it works */
.step-num { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-700); color: #fff; font-family: 'Sora'; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }

/* testimonials */
.stars { color: #F59E0B; letter-spacing: 2px; font-size: 15px; }
.quote { font-size: 16px; color: var(--ink); margin-top: 14px; line-height: 1.6; }
.byline { margin-top: 16px; font-size: 14px; }
.byline .name { font-weight: 700; color: var(--ink); }
.byline .role { color: var(--faint); }

/* CTA band */
.cta-band { border-radius: 28px; background: linear-gradient(140deg, #312E81, #059669); padding: 60px 40px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 34px; font-weight: 800; color: #fff; }
.cta-band p { color: #DBEAFE; font-size: 17px; margin-top: 12px; }

/* ============================================================
   Page head (subpages)
   ============================================================ */
.page-head { padding: 60px 0 20px; background: var(--hero-glow), var(--bg); }
.page-head h1 { font-size: 44px; font-weight: 800; margin-top: 16px; }
.page-head p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 640px; }
.breadcrumb { font-size: 14px; color: var(--faint); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo-600); }

/* filter tabs */
.tabs { display: inline-flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.tabs button { border: none; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.tabs button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: 'Sora'; font-weight: 600; font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--indigo-600); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { color: var(--muted); font-size: 15px; padding: 0 0 18px; }

/* syllabus list */
.syl-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.syl-row:last-child { border-bottom: none; }
.syl-row .name { font-weight: 600; color: var(--ink); }
.syl-row .marks { font-family: 'Sora'; font-weight: 700; color: var(--indigo-700); }

/* prose (privacy / terms / about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; font-weight: 700; margin-top: 40px; }
.prose h3 { font-size: 18px; font-weight: 700; margin-top: 26px; color: var(--ink); }
.prose p, .prose li { color: var(--muted); font-size: 16px; margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose a { text-decoration: underline; }
.prose .meta { font-size: 14px; color: var(--faint); }

/* contact form */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--indigo-500); outline-offset: 1px; border-color: transparent; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.site-footer a { display: block; color: var(--footer-ink); font-size: 15px; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .about { font-size: 15px; color: var(--footer-ink); opacity: .85; margin-top: 14px; max-width: 300px; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--footer-faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .phone { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .sec-head h2 { font-size: 28px; }
  .cta-band { padding: 44px 24px; }
  .cta-band h2 { font-size: 26px; }
  .page-head h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust { gap: 18px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
