/* ==========================================================================
   AkashNiti — public pages.

   The landing page (welcome.html, served at /) and the subject guides in
   study/. Both share the navy header and footer and the base type; the
   landing-only sections sit under main.landing. No build step and no script:
   this is the first page a new visitor or a crawler sees, so it stays light.
   ========================================================================== */

:root {
    color-scheme: light;

    --navy-950: #020d2a;
    --navy-900: #03143a;
    --navy-800: #05235b;
    --blue: #00a3fc;
    --teal: #04dbd6;

    --bg: #f4f7fc;
    --surface: #ffffff;
    --surface-2: #edf3fc;
    --text: #0c1830;
    --text-soft: #4a5a73;
    --muted: #6b7a92;
    --line: #dde6f2;
    --link: #0a5fd8;
    --eyebrow: #0874c4;
    --ink-grad: linear-gradient(135deg, #0a63e8, #04a9c4);
    --bad: #e2483d;

    --shadow-sm: 0 1px 2px rgba(8, 24, 56, 0.06), 0 6px 18px rgba(8, 24, 56, 0.06);
    --shadow: 0 2px 6px rgba(8, 24, 56, 0.05), 0 24px 54px rgba(8, 24, 56, 0.11);
    --radius: 22px;

    /* Side padding that keeps content in a centred column while the band's
       background runs edge to edge — no wrapper element needed. */
    --gutter: max(18px, calc((100% - 1160px) / 2));

    --font-head: Poppins, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", "Nirmala UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #060c1d;
        --surface: #0d1730;
        --surface-2: #14224a;
        --text: #e9f0fb;
        --text-soft: #aebbd3;
        --muted: #8796b0;
        --line: #1d2c50;
        --link: #5cc2ff;
        --eyebrow: #5cc2ff;
        --ink-grad: linear-gradient(135deg, #46b8ff, #04dbd6);
        --bad: #ff6b5f;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
        --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 54px rgba(0, 0, 0, 0.4);
    }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); }
[id] { scroll-margin-top: 88px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.1; font-weight: 700; margin: 20px 0 22px; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.2; font-weight: 700; margin: 10px 0 14px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.ico {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    display: inline-block;
    color: var(--eyebrow);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-soft); max-width: 640px; margin: 0 0 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(135deg, #1aa0ff 0%, #0a5fe0 100%);
    color: #fff;
    font: 600 16px/1.2 var(--font-body);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(10, 95, 224, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 95, 224, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.button .ico { width: 18px; height: 18px; transition: transform 0.18s ease; }
.button:hover .ico { transform: translateX(3px); }

.button-lg { padding: 15px 26px; font-size: 17px; border-radius: 16px; }

.button-glow {
    background: linear-gradient(135deg, #17c4ee 0%, #0a7cff 55%, #0a5fe0 100%);
    box-shadow: 0 10px 30px rgba(0, 163, 252, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.button-glow:hover { box-shadow: 0 16px 40px rgba(0, 163, 252, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.button-ghost {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* Light-background secondary, used on the subject guides. */
.secondary { background: var(--surface-2); color: var(--link); box-shadow: inset 0 0 0 1px var(--line); }
.secondary:hover { box-shadow: inset 0 0 0 1px var(--link); }

/* ---------- Header ---------- */

body > header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px var(--gutter);
    background: rgba(3, 20, 58, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: #fff;
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.brand img { width: 40px; height: 40px; }

.nav-links { display: flex; gap: 2px; margin-right: 8px; }
.nav-links a, .nav-signin {
    padding: 8px 13px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover, .nav-signin:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-signin { margin-right: 6px; }

body > header .button { padding: 10px 18px; font-size: 15px; border-radius: 12px; white-space: nowrap; }

/* ---------- Page body (subject guides) ---------- */

main { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; }

.article { max-width: 800px; margin: 0 auto; }
.article > p:first-child { margin: 0; font-size: 14px; color: var(--muted); }
.article > p:first-child a { text-decoration: none; }
.article h1 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 12px; }
.article h2 { font-size: clamp(22px, 2.4vw, 27px); margin: 40px 0 10px; }
.article p { font-size: 17px; color: var(--text-soft); }
.article .lead { font-size: 19px; }
.article .actions { margin: 24px 0 8px; }

/* ---------- Landing ---------- */

main.landing { max-width: none; padding: 0; }

.band { padding-inline: var(--gutter); }
.section { padding-top: clamp(72px, 9vw, 112px); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0; color: var(--text-soft); font-size: 17.5px; }

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    overflow: clip;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 56px;
    padding-top: clamp(48px, 7vw, 92px);
    padding-bottom: clamp(128px, 13vw, 168px);
    color: #fff;
    background:
        radial-gradient(55% 65% at 82% 32%, rgba(0, 163, 252, 0.3), transparent 70%),
        radial-gradient(45% 55% at 4% 100%, rgba(4, 219, 214, 0.16), transparent 70%),
        linear-gradient(180deg, var(--navy-900) 0%, #041b4d 55%, var(--navy-800) 100%);
}
.hero::before,
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 25%, transparent 75%);
}
.hero > * { position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: #bfd2ee; }

.grad {
    background: linear-gradient(92deg, #46c2ff 0%, #04dbd6 60%, #86f5dc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cfe6ff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(4, 219, 214, 0.2);
    animation: pulse 2.4s ease-in-out infinite;
}

.lead-hi { margin: 0; max-width: 600px; color: #9fb7da; font-size: 17px; }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: #c4d6f0;
    font-size: 14.5px;
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { width: 18px; height: 18px; color: var(--teal); stroke-width: 2.5; }

.hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.16s; }
.hero-copy > :nth-child(5) { animation-delay: 0.22s; }
.hero-copy > :nth-child(6) { animation-delay: 0.28s; }

/* Hero illustration: a practice question the way the portal shows one. */

.hero-visual {
    justify-self: center;
    width: 100%;
    max-width: 470px;
    padding: 34px 0;
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 12% 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 163, 252, 0.45), transparent 65%);
    filter: blur(30px);
}
.ring {
    position: absolute;
    left: 50%;
    top: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(124, 200, 255, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ring-1 { width: 112%; }
.ring-2 { width: 146%; border-style: dashed; border-color: rgba(4, 219, 214, 0.16); animation: spin 80s linear infinite; }

.q-card {
    position: relative;
    z-index: 1;
    max-width: 392px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    color: #0c1830;
    box-shadow: 0 34px 80px rgba(0, 8, 30, 0.55);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.q-top { display: flex; align-items: center; gap: 10px; }
.q-top img { width: 30px; height: 30px; }
.q-top div { display: flex; flex-direction: column; line-height: 1.25; }
.q-top b { font-size: 14px; }
.q-top span { font-size: 12px; color: #6b7a92; }
.q-top em {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #0a5fd8;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}
.q-bar { height: 6px; margin: 14px 0 16px; border-radius: 99px; background: #edf2f9; overflow: hidden; }
.q-bar i { display: block; width: 28%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.q-text { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.q-hi { margin: 0 0 14px; color: #5a6a83; font-size: 14px; line-height: 1.5; }
.q-opts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.q-opts li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1.5px solid #e3eaf4;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
}
.q-opts li > b {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #eef3fa;
    color: #4a5a73;
    font-size: 12px;
}
.q-opts .right { border-color: #16b37a; background: #eafaf3; color: #0b6b47; }
.q-opts .right > b { background: #16b37a; color: #fff; }
.q-opts .right .ico { margin-left: auto; width: 18px; height: 18px; color: #16b37a; stroke-width: 2.6; }
.q-exp { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #f3f7fd; color: #4a5a73; font-size: 13px; line-height: 1.5; }
.q-exp b { margin-right: 6px; color: #0a5fd8; }

.chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    color: #6b7a92;
    box-shadow: 0 16px 40px rgba(0, 8, 30, 0.38);
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.chip span { display: flex; flex-direction: column; }
.chip b { color: #0c1830; font-size: 15px; }
.chip .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; }
.chip-timer { top: 0; left: -18px; }
.chip-timer .ico { background: #fff1de; color: #e07b00; }
.chip-score { top: 44%; right: -40px; animation-delay: -2s; }
.chip-score .ico { background: #e3f8ef; color: #11a36a; stroke-width: 2.6; }
.chip-rev { bottom: 2px; left: -30px; animation-delay: -4s; }
.chip-rev .ico { background: #efe9ff; color: #7b4fe0; }

/* At a glance */

.stats { position: relative; z-index: 3; margin-top: -76px; }
.stats-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 22px 26px; }
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: var(--line);
}
.stat strong {
    font-family: var(--font-head);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    background: var(--ink-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span { color: var(--text-soft); font-size: 14.5px; }

/* Subjects */

.subjects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }

.subject {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.subject:nth-child(n+4) { grid-column: span 3; }
.subject::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--c);
}
.subject::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -100px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--c);
    opacity: 0.08;
    transition: transform 0.4s ease;
}
.subject:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.subject:hover::after { transform: scale(1.3); }
.subject p { margin: 0 0 16px; color: var(--text-soft); }

.s-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--c);
    color: #fff;
    box-shadow: 0 12px 24px -10px var(--cs);
    font-family: var(--font-head);
    font-size: 23px;
    font-weight: 700;
}
.s-icon .ico { width: 26px; height: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); font-size: 12.5px; font-weight: 600; }

.s-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--link); font-weight: 600; }
.s-link .ico { width: 16px; height: 16px; transition: transform 0.2s ease; }
.subject:hover .s-link .ico { transform: translateX(4px); }

.s-maths   { --c: linear-gradient(135deg, #2f7bff, #5b4dff); --cs: rgba(64, 90, 255, 0.7); }
.s-gk      { --c: linear-gradient(135deg, #ffa21a, #ff6a3d); --cs: rgba(255, 120, 40, 0.7); }
.s-hindi   { --c: linear-gradient(135deg, #ff5f8f, #e1356a); --cs: rgba(232, 60, 110, 0.7); }
.s-english { --c: linear-gradient(135deg, #12c9a6, #0a9bb8); --cs: rgba(12, 170, 175, 0.7); }
.s-reason  { --c: linear-gradient(135deg, #a35cff, #6a3df0); --cs: rgba(120, 70, 240, 0.7); }

/* Exam hall */

.exam {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 52px;
    padding: clamp(28px, 5vw, 60px);
    border-radius: 32px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(0, 163, 252, 0.28), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(4, 219, 214, 0.14), transparent 60%),
        linear-gradient(150deg, #041a4c, var(--navy-950));
    box-shadow: 0 40px 80px -30px rgba(3, 20, 58, 0.6);
}
.exam h2 { color: #fff; }
.exam-copy > p { margin: 0; color: #b7cae6; font-size: 17px; }
.eyebrow-light { color: #5fd3ff; }

.exam-feats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}
.exam-feats li { display: flex; align-items: flex-start; gap: 12px; }
.exam-feats li > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.exam-feats b { font-size: 15.5px; font-weight: 600; }
.exam-feats small { margin-top: 2px; color: #9fb4d4; font-size: 13.5px; }

.fi {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(0, 163, 252, 0.14);
    border: 1px solid rgba(95, 211, 255, 0.22);
    color: #5fd3ff;
}
.fi .ico { width: 20px; height: 20px; }

/* The exam hall's question palette, drawn in CSS. */

.exam-ui {
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    color: #0c1830;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
    transition: transform 0.6s ease;
}
.exam:hover .exam-ui { transform: none; }

.eu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--navy-800), #0a4fb8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.eu-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 500;
    white-space: nowrap;
}
.eu-time b { font-variant-numeric: tabular-nums; }
.eu-time .ico { width: 14px; height: 14px; }

.eu-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.eu-tabs span { padding: 6px 11px; border-radius: 9px; background: #f0f4fa; color: #4a5a73; font-size: 12.5px; font-weight: 600; }
.eu-tabs .on { background: #0a5fe0; color: #fff; }

.eu-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.eu-q { padding: 14px; border: 1px solid #e6ecf5; border-radius: 14px; }
.eu-qn { margin-bottom: 10px; color: #0a5fe0; font-size: 12.5px; font-weight: 700; }
.sk { display: block; height: 8px; margin-bottom: 7px; border-radius: 6px; background: #e8eef6; }
.sk.w80 { width: 80%; } .sk.w70 { width: 70%; } .sk.w60 { width: 60%; } .sk.w50 { width: 50%; } .sk.w40 { width: 40%; }
.eu-opt { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.eu-opt > i:first-child { flex: none; width: 14px; height: 14px; border: 2px solid #b5c2d6; border-radius: 50%; }
.eu-opt .sk { margin: 0; }
.eu-opt.sel > i:first-child { border-color: #0a5fe0; background: radial-gradient(circle, #0a5fe0 40%, transparent 46%); }
.eu-opt.sel .sk { background: #cfe0fb; }
.eu-btns { display: flex; gap: 6px; margin-top: 16px; }
.eu-btns span { padding: 6px 9px; border-radius: 8px; background: #efe9ff; color: #6a3fd6; font-size: 11px; font-weight: 600; white-space: nowrap; }
.eu-btns .save { margin-left: auto; background: #11a36a; color: #fff; }

.eu-pal { display: grid; grid-template-columns: repeat(5, 30px); align-content: start; gap: 7px; }
.eu-pal span {
    display: grid;
    place-items: center;
    height: 30px;
    border-radius: 8px;
    background: #eef2f8;
    color: #6b7a92;
    font-size: 11.5px;
    font-weight: 700;
}
.eu-pal .a { background: #11a36a; color: #fff; }
.eu-pal .n { background: #e2483d; color: #fff; }
.eu-pal .m { background: #7b4fe0; color: #fff; border-radius: 50%; }
.eu-pal .c { background: #e8f1ff; color: #0a5fe0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0a5fe0; }

.eu-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; color: #4a5a73; font-size: 12px; }
.eu-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eu-legend span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--d); }
.eu-legend .a { --d: #11a36a; }
.eu-legend .n { --d: #e2483d; }
.eu-legend .m { --d: #7b4fe0; }
.eu-legend .m::before { border-radius: 50%; }
.eu-legend .v { --d: #dfe5ee; }

/* How it works */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.steps::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 17%;
    right: 17%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.steps li { position: relative; padding: 0 12px; text-align: center; }
.steps p { max-width: 320px; margin: 0 auto; color: var(--text-soft); }
.step-n {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1aa0ff, #0a5fe0);
    box-shadow: 0 14px 30px -10px rgba(10, 95, 224, 0.65), 0 0 0 8px var(--bg);
    color: #fff;
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
}
.steps li:nth-child(2) .step-n { background: linear-gradient(135deg, #12c9c4, #0a9bb8); box-shadow: 0 14px 30px -10px rgba(10, 160, 180, 0.65), 0 0 0 8px var(--bg); }
.steps li:nth-child(3) .step-n { background: linear-gradient(135deg, #9a63ff, #5b3de0); box-shadow: 0 14px 30px -10px rgba(110, 70, 230, 0.65), 0 0 0 8px var(--bg); }

/* Progress */

.progress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }

.feats { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.feats li {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feats li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.feats h3 { margin-bottom: 2px; font-size: 17px; }
.feats p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.feats .fi { background: var(--surface-2); border-color: var(--line); color: var(--link); }

.analysis {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.an-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.an-head b { font-family: var(--font-head); font-size: 18px; }
.an-head span { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.an-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin: 16px 0; font-size: 14.5px; }
.an-row > span { color: var(--text-soft); }
.an-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.an-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.an-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.an-row.weak .an-bar i { background: linear-gradient(90deg, #ff9a3d, var(--bad)); }
.an-row.weak > b { color: var(--bad); }
.an-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(226, 72, 61, 0.09);
    font-size: 14.5px;
}
.an-tip .ico { width: 20px; height: 20px; color: var(--bad); }

/* FAQ */

.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 48px; }
.faq-head p { margin: 0; color: var(--text-soft); font-size: 17px; }

details {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
}
details[open] { border-color: color-mix(in srgb, var(--link) 40%, var(--line)); }
summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 16.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--link);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    transition: transform 0.25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-soft); }

/* Closing call to action */

.cta-sec { padding-bottom: clamp(72px, 9vw, 112px); }
.cta {
    position: relative;
    padding: clamp(44px, 6vw, 76px) 24px;
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(50% 90% at 50% 0%, rgba(4, 219, 214, 0.26), transparent 70%),
        linear-gradient(135deg, #0a5fe0 0%, var(--navy-800) 58%, var(--navy-900) 100%);
}
.cta > * { position: relative; }
.cta img { width: 72px; height: 72px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.cta h2 { margin-top: 12px; color: #fff; }
.cta p { margin: 0; color: #c5d8f3; font-size: 18px; }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */

body > footer {
    padding: 44px var(--gutter) 28px;
    background: var(--navy-950);
    color: #9fb2d0;
    font-size: 14.5px;
}
body > footer a { margin-right: 18px; color: #c9d8ef; text-decoration: none; }
body > footer a:hover { color: #fff; }
body > footer > p { margin: 18px 0 0; color: #7f93b3; font-size: 13.5px; }

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-grid nav a { margin: 0; }
.foot-title { margin: 0 0 4px; color: #fff; font-weight: 600; }
.foot-brand p { max-width: 300px; margin: 14px 0 0; }
.site-footer .foot-note { margin-top: 24px; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(4, 219, 214, 0.05); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero-visual { max-width: 460px; }
    .exam, .progress, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .exam-ui { transform: none; }
    .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subject, .subject:nth-child(n+4) { grid-column: auto; }
    .subject:last-child { grid-column: 1 / -1; }
    .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 640px) {
    body > header { gap: 6px; padding-block: 10px; }
    .brand { font-size: 19px; }
    .brand img { width: 34px; height: 34px; }
    .nav-signin { display: none; }
    body > header .button { padding: 9px 14px; font-size: 14px; }

    main { padding: 28px 18px 56px; }

    .hero { padding-top: 36px; padding-bottom: 116px; }
    .actions .button { flex: 1 1 auto; }
    .button-lg { padding: 14px 20px; font-size: 16px; }
    .trust { gap: 8px 16px; font-size: 14px; }

    .hero-visual { padding: 46px 0 40px; }
    .q-card { padding: 16px; }
    .q-text { font-size: 15px; }
    .chip-timer { top: 0; left: 0; }
    .chip-score { display: none; }
    .chip-rev { bottom: 0; left: auto; right: 0; }

    .stats { margin-top: -84px; }
    .stat { padding: 16px 18px; }
    .stat:nth-child(odd)::before { display: none; }

    .section-head { margin-bottom: 36px; text-align: left; }
    .subjects { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .subject:last-child { grid-column: auto; }
    .subject { padding: 24px 22px 22px; }

    .exam { padding: 26px 20px; border-radius: 26px; }
    .exam-feats { grid-template-columns: minmax(0, 1fr); }
    .exam-copy .button { width: 100%; }
    .exam-ui { padding: 12px; }
    .eu-top { flex-wrap: wrap; }
    .eu-body { grid-template-columns: minmax(0, 1fr); }
    .eu-pal { grid-template-columns: repeat(5, minmax(0, 1fr)); }

    .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .steps::before { display: none; }
    .steps li {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 16px;
        padding: 0;
        text-align: left;
    }
    .step-n { grid-row: span 2; width: 56px; height: 56px; margin: 0; border-radius: 18px; font-size: 22px; }
    .steps h3 { align-self: end; margin: 0; }
    .steps p { margin: 4px 0 0; }

    .analysis { padding: 22px 18px; }
    .an-row { grid-template-columns: 96px minmax(0, 1fr) 40px; font-size: 14px; }

    .cta { border-radius: 26px; }

    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
}
