/* AI Mentor — public website. One stylesheet, no framework.
   The platform's own navy and gold (client/src/styles.css), on warm paper. */

:root {
  --navy: #1b2a4a;
  --navy-2: #24365c;
  --navy-deep: #0f1830;
  --gold: #b8862b;
  --gold-2: #d4a443;
  --gold-soft: #f6ecd6;
  --ink: #1d2230;
  --ink-2: #3b4254;
  --muted: #5d6576;
  --bg: #ffffff;
  --bg-soft: #f7f4ee;
  --card: #ffffff;
  --line: #e7e2d8;
  --pen: #c3362b;
  --green: #1f8f50;
  --paper: #fffdf7;
  --paper-rule: #e4ecf6;
  --shadow: 0 1px 2px rgba(15, 24, 48, .06), 0 10px 30px -12px rgba(15, 24, 48, .18);
  --shadow-lg: 0 2px 4px rgba(15, 24, 48, .06), 0 28px 60px -24px rgba(15, 24, 48, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hi: "Noto Sans Devanagari", "Plus Jakarta Sans", system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9ecf3;
    --ink-2: #cfd4df;
    --muted: #9aa3b5;
    --bg: #0d1424;
    --bg-soft: #121b2f;
    --card: #16213a;
    --line: #26324d;
    --gold-soft: #2a2416;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e9ecf3; --ink-2: #cfd4df; --muted: #9aa3b5; --bg: #0d1424; --bg-soft: #121b2f;
  --card: #16213a; --line: #26324d; --gold-soft: #2a2416; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.lang-hi { font-family: var(--font-hi); line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #9fb7e8; } }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--ink); }
.lang-hi h1, .lang-hi h2, .lang-hi h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr { 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; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 26px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.mt { margin-top: 1.4em; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .96rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #fff; box-shadow: 0 8px 20px -8px rgba(184, 134, 43, .7); }
.btn-gold:hover { box-shadow: 0 12px 26px -10px rgba(184, 134, 43, .85); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--navy-2); color: var(--ink); }
.btn-line-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-line-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--navy-2); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link-arrow { color: var(--gold-2); } }

.ico { width: 22px; height: 22px; flex: none; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 24, 48, .4); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; flex: none; }
.brand-light { color: #fff; }
.logo-mark { width: 36px; height: 36px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); }
.nav-actions-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .92rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch .ico { width: 18px; height: 18px; }
.lang-switch:hover { border-color: var(--navy-2); color: var(--ink); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.nav-toggle .ico-close { display: none; }
.nav-open .nav-toggle .ico-close { display: block; }
.nav-open .nav-toggle .ico-open { display: none; }

/* Six links since Sample copies joined (24 Oct): Contact steps into the footer
   and the menu before the row runs out of room. */
@media (max-width: 1260px) {
  .main-nav .nav-contact { display: none; }
  .main-nav a { padding: 8px 9px; }
}
@media (max-width: 1140px) {
  .lang-hi .main-nav .nav-contact { display: none; }
  .lang-hi .main-nav a { padding: 8px 9px; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .hide-sm { display: none; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; font-size: 1.02rem; }
  .main-nav .nav-contact { display: block; }
  .nav-actions-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .nav-actions-mobile .btn { width: 100%; }
}
@media (max-width: 380px) {
  .lang-switch span { display: none; }
  .brand span { font-size: 1.02rem; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(212, 164, 67, .22), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(36, 54, 92, .14), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lang-hi .eyebrow { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.eyebrow-gold { color: var(--gold-2); }
.hero h1 span { display: block; }
.hero h1 .hl { background: linear-gradient(90deg, var(--navy-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background: linear-gradient(90deg, #a9c1f0, var(--gold-2)); -webkit-background-clip: text; background-clip: text; } }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 40em; }
.lead-sm { font-size: 1.06rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: .92rem; color: var(--muted); margin: 0 0 18px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.trust .ico { width: 18px; height: 18px; color: var(--green); }
.mobile-live { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, var(--bg)); color: var(--green); font-weight: 700; font-size: .92rem; }
.mobile-live[hidden] { display: none; }
.mobile-live .ico { width: 18px; height: 18px; }
.hero-visual { position: relative; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.float-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: .88rem; color: var(--ink); border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.float-chip .ico { width: 18px; height: 18px; color: var(--gold); }
.chip-b { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ---- The marked copy ----------------------------------------------------- */
.sheet {
  margin: 0; position: relative; background: var(--paper); color: #24324f; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid #ece4cf; padding: 18px 18px 14px 18px; transform: rotate(-.6deg);
  font-family: var(--hand); font-size: 1.02rem; line-height: 1.55;
}
.sheet-lg { transform: rotate(.4deg); font-size: 1.08rem; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-bottom: 1px dashed #d9cfb7; padding-bottom: 10px; margin-bottom: 8px; }
.sheet-q { font-family: var(--font); font-size: .82rem; line-height: 1.45; color: #4a5468; font-weight: 600; }
.lang-hi .sheet-q { font-family: var(--font-hi); }
.sheet-score { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; border: 2.5px solid var(--pen); color: var(--pen); transform: rotate(-8deg); line-height: 1; }
.sheet-score b { font-size: 1.7rem; font-weight: 700; }
.sheet-score i { font-style: normal; font-size: .85rem; margin-top: -10px; }
.sheet-body { position: relative; }
.sheet-body::before { content: ""; position: absolute; top: 0; bottom: 0; right: 37%; border-left: 1.5px solid rgba(195, 54, 43, .35); }
.sheet-row { display: grid; grid-template-columns: 63% 37%; min-height: 34px; align-items: center; border-bottom: 1px solid var(--paper-rule); padding: 3px 0; }
.sheet-line { padding-right: 10px; overflow-wrap: anywhere; }
.sheet-note { color: var(--pen); font-size: .9em; line-height: 1.2; padding-left: 10px; position: relative; }
.sheet-note:not(:empty)::before { content: ""; position: absolute; left: -22px; top: 50%; width: 20px; border-top: 1.5px dashed rgba(195, 54, 43, .7); }
.pen-num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pen); font-size: .72rem; margin-right: 5px; font-family: var(--font); font-weight: 700; vertical-align: 1px; }
.pen-tick { color: var(--pen); font-size: 1.3em; margin-left: 4px; font-weight: 700; }
.pen-wave { text-decoration: underline wavy rgba(195, 54, 43, .8); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.pen-under { border-bottom: 2px solid rgba(195, 54, 43, .75); }
.sheet-parts { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #d9cfb7; color: var(--pen); font-size: .9rem; }
.sheet-parts span { border: 1.5px solid rgba(195, 54, 43, .5); border-radius: 8px; padding: 1px 8px; }
.sheet-parts em { font-style: normal; color: #4a5468; font-family: var(--font); font-size: .78rem; font-weight: 600; }
.lang-hi .sheet-parts em { font-family: var(--font-hi); }
@media (max-width: 560px) {
  .sheet { font-size: .9rem; padding: 14px 12px 12px; }
  .sheet-row { grid-template-columns: 60% 40%; min-height: 30px; }
  .sheet-body::before { right: 40%; }
  .sheet-note { font-size: .82em; }
  .sheet-score { width: 56px; height: 56px; }
  .sheet-score b { font-size: 1.4rem; }
}

/* ---- Live stats ---------------------------------------------------------- */
.stats-band { background: var(--navy); color: #fff; padding: 34px 0; position: relative; }
.stats-band h2 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0; opacity: .9; letter-spacing: 0; }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; line-height: 1.1; font-family: var(--font); }
.stat-l { font-weight: 600; font-size: .95rem; }
.stat-s { font-size: .82rem; opacity: .7; }
.stats-next { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: rgba(212, 164, 67, .14); border: 1px solid rgba(212, 164, 67, .4); color: #ffe7b0; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: radial-gradient(1200px 500px at 90% -10%, rgba(212, 164, 67, .18), transparent 60%), var(--navy-deep); color: #e8ecf5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead-sm, .section-navy p { color: #c9d1e3; }
.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(15, 24, 48, .02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.feature-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features, .features-2 { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; font-family: var(--font); }
.step p { color: var(--muted); margin: 0; }
@media (min-width: 901px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -18px; width: 18px; border-top: 2px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-even { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--green); width: 22px; height: 22px; margin-top: 3px; }

/* ---- Today's practice ---------------------------------------------------- */
.daily { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .daily { grid-template-columns: 1fr; } }
.daily-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.daily-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); font-size: .9rem; margin-bottom: 12px; }
.daily-tag .ico { width: 18px; height: 18px; }
.daily-tag span { color: var(--muted); font-weight: 600; }
.daily-stem { font-size: 1.04rem; overflow-wrap: anywhere; }
.daily-stem p { margin: 0 0 .5em; white-space: pre-line; }
.daily-opts { display: grid; gap: 8px; margin: 14px 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover { border-color: var(--navy-2); }
.opt[aria-checked="true"] { border-color: var(--navy-2); background: color-mix(in srgb, var(--navy-2) 8%, var(--bg)); }
.opt b { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .85rem; font-family: var(--font); }
.opt.is-right { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--bg)); }
.opt.is-right b { border-color: var(--green); background: var(--green); color: #fff; }
.opt.is-wrong { border-color: var(--pen); background: color-mix(in srgb, var(--pen) 8%, var(--bg)); }
.daily-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.daily-msg { margin: 0; font-weight: 700; }
.daily-msg.ok { color: var(--green); }
.daily-msg.no { color: var(--pen); }
.daily-meta { color: var(--muted); font-size: .92rem; }

/* ---- Finder & calculator ------------------------------------------------- */
.finder { max-width: 920px; margin: 0 auto; display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.finder-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder-q legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s ease; background: var(--bg); }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.finder-result { border-radius: 14px; background: var(--gold-soft); padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.finder-result p { margin: 0 0 8px; }
.finder-result .btn { margin-top: 6px; white-space: normal; }

.calc { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.calc label { font-weight: 700; }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); }
.calc-result { margin: 0; font-weight: 700; color: var(--navy-2); font-size: 1.06rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-result { color: var(--gold-2); } }
.cost-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.cost-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table td:last-child { text-align: right; white-space: nowrap; }

/* ---- Exams & calendar ---------------------------------------------------- */
.exam-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.exam-cards-compact { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
.exam-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-left: 5px solid var(--navy-2); }
.exam-cards-compact .exam-card { padding: 14px 18px; }
.exam-cards-compact .exam-card h3 { margin: 0 0 4px; }
.exam-bpsc { border-left-color: var(--gold); }
.exam-uppcs { border-left-color: var(--green); }
.exam-other { border-left-color: var(--muted); }
.exam-card p { color: var(--muted); margin: 0 0 8px; }
.exam-nums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 !important; font-size: .92rem; }
.exam-nums b { color: var(--ink); font-size: 1.05rem; }
@media (max-width: 700px) { .exam-cards { grid-template-columns: 1fr; } }
.calendar { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cal-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cal-date { text-align: center; border-radius: 10px; background: var(--navy); color: #fff; padding: 6px 4px; line-height: 1.15; font-family: var(--font); }
.cal-date b { display: block; font-size: 1.35rem; }
.cal-date small { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.cal-body { min-width: 0; }
.cal-body strong { display: block; line-height: 1.35; }
.cal-meta { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cal-days { color: var(--gold); font-weight: 700; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }

/* ---- Institutes band ----------------------------------------------------- */
.inst-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inst-points li { padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.inst-points h3 { font-size: 1.02rem; margin-bottom: 6px; }
.inst-points p { margin: 0; font-size: .93rem; }
@media (max-width: 560px) { .inst-points { grid-template-columns: 1fr; } }

/* ---- Plans --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; }
.plan h3 { margin-bottom: 8px; }
.plan-price { margin: 0; }
.plan-price span { font-size: 2rem; font-weight: 800; font-family: var(--font); }
.plan-price small { color: var(--muted); }
.plan-pts { margin: 4px 0 0; color: var(--ink-2); }
.plan-pts b { font-family: var(--font); }
.plan-ans { color: var(--muted); font-size: .9rem; margin: 2px 0 18px; }
.plan .btn { margin-top: auto; }
.plan-pop { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -12px; left: 20px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plans { grid-template-columns: 1fr; } }
.free-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px 22px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); margin-bottom: 26px; }
.free-strip > .ico { width: 34px; height: 34px; color: var(--gold); }
.free-strip > div { flex: 1 1 280px; }
.free-strip h2 { margin: 0 0 2px; }
.free-strip p { margin: 0; color: var(--ink-2); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); transition: transform .2s ease; font-weight: 400; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }
.faq-search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 18px; margin-bottom: 18px; }
.faq-search:focus-within { border-color: var(--navy-2); }
.faq-search .ico { color: var(--muted); width: 20px; height: 20px; }
.faq-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 14px 0; outline: none; }

/* ---- Page hero, blocks, callout, prose ----------------------------------- */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); background: radial-gradient(900px 380px at 85% -20%, rgba(212, 164, 67, .2), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18em; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.block { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.block h2 { font-size: 1.18rem; }
.block p { color: var(--muted); margin: 0; }
.block-n { display: block; font-weight: 800; color: var(--gold); font-family: var(--font); margin-bottom: 10px; }
@media (max-width: 960px) { .blocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blocks { grid-template-columns: 1fr; } }
.callout { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: var(--ink-2); }
.link-list { list-style: none; padding: 0; display: grid; gap: 12px; }

/* ---- Forms --------------------------------------------------------------- */
.form-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.section-navy .form-card p, .section-navy .form-card label { color: var(--ink); }
.enquiry { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field small { font-weight: 500; color: var(--muted); }
.req { color: var(--pen); }
.enquiry input:not([type="checkbox"]):not([type="radio"]), .enquiry select, .enquiry textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 46px;
}
.enquiry textarea { resize: vertical; min-height: 110px; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-2) 18%, transparent); }
.enquiry .invalid { border-color: var(--pen) !important; }
.chips-field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; cursor: pointer; background: var(--bg); }
.chip input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--green); }
.form-msg.no { color: var(--pen); }
.direct { margin-top: 18px; }
.direct-h { font-weight: 700; margin-bottom: 8px; }
.direct ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.direct a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: inherit; }

/* ---- CTA band & footer --------------------------------------------------- */
.cta-band { padding: clamp(44px, 7vw, 80px) 0; background: linear-gradient(120deg, var(--navy-deep), var(--navy-2)); color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: #c9d1e3; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .cta-actions, .cta-actions .btn { width: 100%; } .cta-actions .btn { white-space: normal; } }

.site-footer { background: #0b1222; color: #aab3c6; padding: 56px 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { color: #fff; font-size: .95rem; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: #d6dcea; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin: 14px 0 0; max-width: 34em; }
.footer-hosted { display: flex; align-items: center; gap: 8px; color: #8fd6ac; font-weight: 600; }
.footer-hosted .ico { width: 18px; height: 18px; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; display: grid; gap: 6px; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---- Language suggestion ------------------------------------------------- */
.lang-hint { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 10px 10px 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100% - 32px); }
.lang-hint a { color: #fff; font-weight: 800; }
.lang-hint button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---- Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .cta-band, .lang-hint, .nav-toggle { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* The search-intent pages (landing.js): their four points as a centred row. */
.trust-lg { justify-content: center; margin: 0 0 28px; gap: 10px 22px; }
.trust-lg li { font-size: 1rem; }
.plan-flag-value { background: #1f9d55; }
.plan-tag { color: var(--muted); font-size: .88rem; line-height: 1.4; margin: -2px 0 10px; min-height: 2.5em; }

/* Sample copies: the gallery and the view-only viewer (site.js openSample). */
.samples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.sample-card { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; color: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.sample-card:hover, .sample-card:focus-visible { border-color: var(--gold); box-shadow: 0 8px 24px rgba(27, 42, 74, .10); transform: translateY(-2px); }
.sample-flag { position: absolute; top: 14px; right: 14px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.sample-score b { font-size: 1.9rem; line-height: 1; color: var(--navy); }
.sample-score small { color: var(--muted); font-weight: 600; }
.sample-q { font-size: .95rem; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sample-meta { font-size: .82rem; color: var(--muted); }
.sample-open { margin-top: auto; font-weight: 700; color: var(--gold); }
@media (prefers-color-scheme: dark) { .sample-score b { color: #fff; } }

body.sv-open { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #0c1224; color: #fff; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #0f1830; }
.sv-title { display: flex; flex-direction: column; min-width: 0; }
.sv-title b { color: #ffd98a; }
.sv-title span { font-size: .82rem; opacity: .85; overflow-wrap: anywhere; }
.sv-tools { display: flex; gap: 6px; flex: 0 0 auto; }
.sv-tools button { min-width: 38px; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sv-tools button:disabled { opacity: .4; cursor: default; }
.sv-note { margin: 0; padding: 6px 16px; text-align: center; font-size: .82rem; color: #dfe6f5; background: rgba(255, 255, 255, .06); }
.sv-pages { flex: 1 1 auto; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sv-pages.zoomed { align-items: flex-start; }
.sv-page { position: relative; flex: 0 0 auto; margin: 0; width: min(100%, 900px); background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.sv-page img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.sv-page figcaption { position: absolute; right: 8px; bottom: 6px; font-size: .72rem; color: #5d6576; background: rgba(255, 255, 255, .85); padding: 1px 6px; border-radius: 6px; }
@media print { body.sv-open * { visibility: hidden !important; } }

/* A long button label ("Write this answer and get it evaluated") ran 15px past
   a 360px phone; on small screens a button wraps rather than widening the page. */
@media (max-width: 420px) { .btn { white-space: normal; max-width: 100%; text-align: center; } }
