/* Apna Institute website. One small file shared by every page; system fonts
   only, so nothing else has to be downloaded. */
:root {
  --bg: #f8fafc; --card: #fff; --text: #0f172a; --muted: #475569;
  --line: #e2e8f0; --brand: #4f46e5; --brand-dark: #3730a3; --navy: #1e1b4b;
  --soft: #eef2ff; --gold: #fbbf24; --danger: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a; --card: #1e293b; --text: #f1f5f9; --muted: #94a3b8;
    --line: #334155; --brand: #818cf8; --brand-dark: #a5b4fc; --soft: #26264f;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 9; }

/* header */
header.top { background: var(--navy); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.main { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav.main a { color: #e0e7ff; text-decoration: none; font-size: 15px; }
nav.main a:hover, nav.main a:focus { color: #fff; text-decoration: underline; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: 16px; cursor: pointer; }
.btn.primary { background: var(--gold); color: #1e1b4b; }
.btn.primary:hover { background: #f59e0b; }
.btn.ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.solid { background: var(--brand); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* hero */
.hero { background: linear-gradient(180deg, var(--navy), #312e81); color: #fff; padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; color: #e0e7ff; margin: 0 0 24px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: #c7d2fe; }

/* phone frame */
.phone { width: min(260px, 70vw); margin: 0 auto; border: 8px solid #0b0a24; border-radius: 34px; background: #0b0a24; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; background: #fff; }

/* sections */
section { padding: 52px 0; }
section.alt { background: var(--card); border-block: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 42em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
section.alt .card { background: var(--bg); }
.card .ic { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* screens */
.shots { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); justify-items: center; }
.shots figure { margin: 0; text-align: center; max-width: 240px; }
.shots .phone { width: 100%; border-width: 6px; border-radius: 28px; box-shadow: 0 8px 22px rgba(15,23,42,.25); }
.shots .phone img { border-radius: 22px; }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* steps and faq */
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 16px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* text pages */
main.doc { padding: 36px 0 56px; }
.doc .wrap { max-width: 820px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.doc h1 { margin-top: 0; font-size: 32px; border-bottom: 3px solid var(--brand); padding-bottom: 10px; }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc li { margin-bottom: 6px; }
.alert { background: #fef2f2; color: #7f1d1d; border-left: 4px solid var(--danger); padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .alert { background: #3b1d1d; color: #fecaca; } }
.form-group { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="email"] { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 16px; }
.hidden { display: none; }
.btn.danger { background: var(--danger); color: #fff; }

/* footer */
footer { background: var(--navy); color: #c7d2fe; padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
footer a { color: #e0e7ff; }
footer .right { margin-left: auto; }
