/* DakPariksha homepage — brand gradient system shared with the portal, auth and admin screens. */
.hm { --w: 1200px; color: var(--pk-ink); }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm a { text-decoration: none; }
.hm-wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.hm-h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.12 'Fraunces', Georgia, serif; letter-spacing: -.02em; margin: 0 0 12px; color: var(--pk-ink); }
.hm-h2 em { font-style: italic; background: var(--pk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 2px; }
.hm-sub { font-size: 16.5px; line-height: 1.65; color: var(--pk-muted); margin: 0; max-width: 620px; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pk-accent); margin-bottom: 14px; }
.hm-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--pk-grad); }
.hm-head { text-align: center; margin: 0 auto 44px; max-width: 700px; }
.hm-head .hm-sub { margin: 0 auto; }
.hm-sec { padding: 96px 0; position: relative; }

.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 14px; font-size: 15.5px; font-weight: 700; border: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.hm-btn svg { width: 18px; height: 18px; }
.hm-btn.pri { color: #fff !important; background: var(--pk-grad); box-shadow: 0 16px 30px -14px rgba(155,74,146,.95); }
.hm-btn.pri:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(155,74,146,1); }
.hm-btn.sec { color: var(--pk-ink) !important; background: var(--pk-card); border: 1.5px solid var(--pk-line); }
.hm-btn.sec:hover { border-color: var(--pk-ink-2); }
.hm-btn.light { color: #7A1430 !important; background: #fff; box-shadow: 0 14px 28px -14px rgba(0,0,0,.5); }
.hm-btn.light:hover { transform: translateY(-2px); }
.hm-btn.ghost-light { color: #fff !important; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.hm-btn.ghost-light:hover { background: rgba(255,255,255,.16); }

/* ---------- Hero ---------- */
.hm-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 45% at 12% 18%, rgba(214,40,57,.13), transparent 70%),
              radial-gradient(35% 45% at 88% 12%, rgba(78,92,179,.16), transparent 70%),
              radial-gradient(40% 50% at 70% 85%, rgba(155,74,146,.12), transparent 70%); }
.hm-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--pk-line) 1px, transparent 1px), linear-gradient(90deg, var(--pk-line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%); }
.hm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
/* Grid children must be allowed to shrink, or one long test title stretches the whole preview card off-screen. */
.hm-hero-grid > *, .hm-app-body > * { min-width: 0; }
.hm-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--pk-card); border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); font-size: 13px; font-weight: 600; color: var(--pk-ink-2); margin-bottom: 24px; }
.hm-pill b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--pk-grad); color: #fff; font-size: 11.5px; letter-spacing: .04em; }
.hm-hero h1 { font: 700 clamp(40px, 5.6vw, 68px)/1.02 'Fraunces', Georgia, serif; letter-spacing: -.03em; margin: 0 0 20px; color: var(--pk-ink); }
.hm-hero h1 em { font-style: italic; background: var(--pk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.hm-hero-lead { font-size: 18px; line-height: 1.65; color: var(--pk-muted); margin: 0 0 30px; max-width: 540px; }
.hm-hero-lead b { color: var(--pk-ink-2); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hm-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hm-avs { display: flex; }
.hm-avs span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; border: 2.5px solid var(--pk-bg); margin-left: -10px; }
.hm-avs span:first-child { margin-left: 0; }
.hm-proof p { margin: 0; font-size: 14px; color: var(--pk-muted); line-height: 1.4; }
.hm-proof p b { color: var(--pk-ink); }
.hm-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.hm-checks li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--pk-ink-2); }
.hm-checks svg { width: 16px; height: 16px; color: #16A34A; }

/* Product preview */
.hm-preview { position: relative; }
.hm-preview-glow { position: absolute; inset: 8% 6%; background: var(--pk-grad); filter: blur(60px); opacity: .28; border-radius: 40px; }
.hm-app { position: relative; background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(15,23,42,.55), 0 1px 2px rgba(15,23,42,.06); overflow: hidden; }
.hm-app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--pk-line); background: var(--pk-sunken); }
.hm-app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--pk-line); }
.hm-app-bar span { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--pk-muted); }
.hm-app-bar em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #16A34A; }
.hm-app-bar em::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22,163,74,.18); animation: hm-pulse 2s infinite; }
@keyframes hm-pulse { 50% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } }
.hm-app-body { padding: 18px; display: grid; gap: 14px; }
.hm-banner { border-radius: 16px; padding: 18px; color: #fff; background: var(--pk-grad); position: relative; overflow: hidden; }
.hm-banner::after { content: ''; position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hm-banner small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.hm-banner b { display: block; font: 700 21px/1.2 'Fraunces', Georgia, serif; margin: 4px 0 12px; }
.hm-banner-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.hm-banner-stats div { min-width: 0; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 9px 10px; }
.hm-banner-stats strong { display: block; font-size: 19px; font-weight: 800; }
.hm-banner-stats span { font-size: 11px; opacity: .85; }
.hm-list-t { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pk-muted); margin: 2px 0 8px; }
.hm-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--pk-line); background: var(--pk-card); }
.hm-row + .hm-row { margin-top: 8px; }
.hm-row-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(214,40,57,.1); color: var(--pk-accent); }
.hm-row-ic svg { width: 18px; height: 18px; }
.hm-row-t { flex: 1; min-width: 0; }
.hm-row-t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--pk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row-t small { font-size: 12px; color: var(--pk-muted); }
.hm-row-go { font-size: 12px; font-weight: 700; color: var(--pk-accent); padding: 6px 10px; border-radius: 8px; background: rgba(214,40,57,.08); white-space: nowrap; }
.hm-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--pk-card); border: 1px solid var(--pk-line); box-shadow: 0 20px 40px -20px rgba(15,23,42,.5); font-size: 12.5px; color: var(--pk-muted); animation: hm-float 6s ease-in-out infinite; }
.hm-float b { display: block; font-size: 14px; color: var(--pk-ink); }
.hm-float i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-style: normal; }
.hm-float i svg { width: 18px; height: 18px; }
.hm-float.a { left: -40px; bottom: -24px; }
.hm-float.b { right: -28px; top: -26px; animation-delay: -3s; }
@keyframes hm-float { 50% { transform: translateY(-8px); } }

/* ---------- Stats ---------- */
.hm-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 22px; box-shadow: var(--pk-shadow); }
.hm-stat { padding: 26px 24px; text-align: center; }
.hm-stat + .hm-stat { border-left: 1px solid var(--pk-line); }
.hm-stat b { display: block; font: 700 40px/1 'Fraunces', Georgia, serif; letter-spacing: -.02em; background: var(--pk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-stat span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--pk-muted); }

/* ---------- Exams ---------- */
.hm-exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hm-exam { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--pk-card); border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.hm-exam::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c, var(--pk-accent)); opacity: .9; }
.hm-exam:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--pk-line)); box-shadow: 0 30px 50px -30px rgba(15,23,42,.5); }
.hm-exam-top { display: flex; justify-content: space-between; align-items: center; }
.hm-exam-no { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--pk-faint); }
.hm-exam-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.hm-exam-route { display: flex; align-items: center; gap: 10px; font: 700 23px/1.15 'Fraunces', Georgia, serif; color: var(--pk-ink); }
.hm-exam-route svg { width: 22px; height: 22px; color: var(--c); flex-shrink: 0; }
.hm-exam-route span:last-child { color: var(--c); }
.hm-exam p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--pk-muted); flex: 1; }
.hm-exam-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--pk-line); font-size: 13px; font-weight: 700; color: var(--pk-ink-2); }
.hm-exam-foot em { font-style: normal; color: var(--c); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Features ---------- */
.hm-sec.alt { background: var(--pk-card); border-top: 1px solid var(--pk-line); border-bottom: 1px solid var(--pk-line); }
.hm-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hm-feat { grid-column: span 2; padding: 26px; border-radius: 20px; background: var(--pk-bg); border: 1px solid var(--pk-line); display: flex; flex-direction: column; gap: 10px; }
.hm-feat.big { grid-column: span 3; }
.hm-feat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.hm-feat-ic svg { width: 22px; height: 22px; }
.hm-feat h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--pk-ink); }
.hm-feat p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--pk-muted); }
.hm-mini { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--pk-card); border: 1px solid var(--pk-line); }
.hm-q { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--pk-muted); margin-bottom: 10px; }
.hm-q b { color: var(--pk-accent); font-variant-numeric: tabular-nums; }
.hm-opts { display: grid; gap: 6px; }
.hm-opts span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--pk-line); font-size: 12.5px; color: var(--pk-ink-2); }
.hm-opts span i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pk-line); flex-shrink: 0; font-style: normal; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.hm-opts span.sel { border-color: #16A34A; background: rgba(22,163,74,.08); }
.hm-opts span.sel i { background: #16A34A; border-color: #16A34A; color: #fff; }
.hm-bars { display: flex; align-items: flex-end; gap: 8px; height: 88px; }
.hm-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--pk-grad); opacity: .85; }
.hm-bars-l { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--pk-faint); }

/* ---------- Steps ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.hm-steps::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--pk-line) 0 8px, transparent 8px 16px); }
.hm-step { position: relative; text-align: center; padding: 0 12px; }
.hm-step-n { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center; font: 700 26px/1 'Fraunces', Georgia, serif; color: #fff; background: var(--pk-grad); box-shadow: 0 16px 30px -14px rgba(155,74,146,.9); position: relative; }
.hm-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--pk-ink); }
.hm-step p { margin: 0 auto; font-size: 14.5px; line-height: 1.6; color: var(--pk-muted); max-width: 300px; }

/* ---------- Plans ---------- */
.hm-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.hm-plan { padding: 30px; border-radius: 22px; background: var(--pk-card); border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); display: flex; flex-direction: column; }
.hm-plan.pro { position: relative; border: none; color: #fff; background: linear-gradient(160deg, #1B2344, #10162C); box-shadow: 0 40px 70px -40px rgba(15,23,42,.9); overflow: hidden; }
.hm-plan.pro::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 100% 0%, rgba(245,158,11,.25), transparent 70%); pointer-events: none; }
.hm-plan > * { position: relative; }
.hm-plan-name { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pk-muted); }
.hm-plan.pro .hm-plan-name { color: #FFD27A; }
.hm-plan-name span { font-size: 11px; padding: 4px 10px; border-radius: 99px; background: rgba(255,210,122,.16); color: #FFD27A; letter-spacing: .04em; }
.hm-plan-price { font: 700 44px/1 'Fraunces', Georgia, serif; margin: 16px 0 4px; }
.hm-plan-price small { font: 600 15px/1 'Inter', sans-serif; opacity: .7; }
.hm-plan-note { font-size: 13.5px; opacity: .75; margin-bottom: 20px; }
.hm-plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; flex: 1; }
.hm-plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.hm-plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #16A34A; }
.hm-plan.pro li svg { color: #FFD27A; }
.hm-plan .hm-btn { width: 100%; }
.hm-plan.pro .hm-btn { background: linear-gradient(135deg, #F6C453, #E0A526); color: #3A2604 !important; box-shadow: 0 16px 30px -14px rgba(224,165,38,.8); }

/* ---------- Fresh ---------- */
.hm-fresh { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hm-panel { padding: 24px; border-radius: 20px; background: var(--pk-card); border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); }
.hm-panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hm-panel-h h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--pk-ink); }
.hm-panel-h a { font-size: 13px; font-weight: 700; color: var(--pk-accent); }
.hm-empty { padding: 18px; text-align: center; font-size: 13.5px; color: var(--pk-muted); border: 1px dashed var(--pk-line); border-radius: 12px; }

/* ---------- Final CTA ---------- */
.hm-final { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff; background: var(--pk-grad); box-shadow: 0 50px 90px -50px rgba(155,74,146,1); }
.hm-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 90% 0%, rgba(255,210,122,.3), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(20,24,60,.35), transparent 70%); }
.hm-final::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, #fff 0 12px, transparent 12px 24px, rgba(30,58,138,.9) 24px 36px, transparent 36px 48px); opacity: .6; }
.hm-final > * { position: relative; }
.hm-final h2 { font: 700 clamp(30px, 4vw, 48px)/1.1 'Fraunces', Georgia, serif; margin: 0 0 14px; letter-spacing: -.02em; }
.hm-final h2 em { color: #FFD27A; }
.hm-final p { margin: 0 auto 28px; max-width: 560px; font-size: 16.5px; line-height: 1.6; opacity: .92; }
.hm-final .hm-cta { justify-content: center; margin: 0; }
.hm-final small { display: block; margin-top: 18px; font-size: 13px; opacity: .8; }

/* ---------- Reveal ---------- */
.hm-js .hm-r { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.hm-js .hm-r.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hm-preview { max-width: 560px; margin: 0 auto; width: 100%; }
  .hm-exams { grid-template-columns: repeat(2, 1fr); }
  .hm-feat, .hm-feat.big { grid-column: span 3; }
}
@media (max-width: 720px) {
  .hm-wrap { padding: 0 16px; }
  .hm-sec { padding: 64px 0; }
  .hm-hero { padding: 28px 0 48px; }
  .hm-hero-lead { font-size: 16px; }
  .hm-cta .hm-btn { flex: 1 1 100%; }
  .hm-float { display: none; }
  .hm-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hm-stat { padding: 20px 12px; }
  .hm-stat:nth-child(3) { border-left: none; }
  .hm-stat:nth-child(n+3) { border-top: 1px solid var(--pk-line); }
  .hm-stat b { font-size: 32px; }
  .hm-exams, .hm-plans, .hm-fresh { grid-template-columns: 1fr; }
  .hm-bento { grid-template-columns: 1fr; }
  .hm-feat, .hm-feat.big { grid-column: auto; }
  .hm-steps { grid-template-columns: 1fr; gap: 32px; }
  .hm-steps::before { display: none; }
  .hm-final { padding: 44px 20px; border-radius: 22px; }
  .hm-head { margin-bottom: 30px; }
  .hm-banner-stats strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-js .hm-r { opacity: 1; transform: none; transition: none; }
  .hm-float, .hm-app-bar em::before { animation: none; }
}

/* grid children may shrink below their longest nowrap title */
.hm-fresh > *, .hm-exams > *, .hm-plans > *, .hm-bento > *, .hm-hero-grid > * { min-width: 0; }
