/* EZSteno — a precision instrument for the exam hall.
   Indigo ink, saffron signal, electric-blue action. Bricolage Grotesque + Mukta (Latin & Devanagari). */
:root {
  --ink: #0e1838; --ink-2: #2b3658; --ink-3: #4a5578; --muted: #66708c; --line: #e3e7f0; --line-2: #cfd5e3;
  --page: #f4f6fb; --surface: #ffffff; --tint: #eef1fa;
  --blue: #3d5bff; --blue-dark: #2a43d6; --blue-soft: #e8ecff;
  --saffron: #ffb547; --saffron-dark: #f29b13; --saffron-soft: #fff4e2;
  --night: #0e1838; --night-2: #16224a; --night-line: rgba(255,255,255,.12);
  --rule: #e5484d; --rule-soft: #fdecec; --half: #c2620a; --half-soft: #fff1e3; --pass: #12a150; --pass-soft: #e5f7ec;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14,24,56,.06);
  --shadow: 0 1px 2px rgba(14,24,56,.05), 0 10px 30px -14px rgba(14,24,56,.22);
  --shadow-lg: 0 2px 6px rgba(14,24,56,.06), 0 30px 60px -24px rgba(14,24,56,.35);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Mukta", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabbar-h: 0px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: var(--tabbar-h); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5rem; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-soft); }
img, svg { max-width: 100%; }
.tabular { font-variant-numeric: tabular-nums; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.02em; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 48rem; }
.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.spacer { flex: 1; }
.lead { font-size: 1.15rem; color: var(--ink-3); max-width: 40rem; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header.on-dark { background: rgba(14,24,56,.86); border-bottom-color: var(--night-line); }
.site-header nav { display: flex; align-items: center; gap: .5rem 1.4rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.32rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; margin-right: 1rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.85rem; height: 1.85rem; flex: none; }
.on-dark .brand, .on-dark .nav-link { color: #fff; }
.on-dark .nav-link { opacity: .78; }
.on-dark .nav-link:hover, .on-dark .nav-link.on { opacity: 1; color: #fff; }
.nav-links { display: flex; align-items: center; gap: .25rem 1.5rem; flex-wrap: wrap; flex: 1; }
.nav-link { color: var(--ink-3); text-decoration: none; font-weight: 500; padding: .35rem 0; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link.on { color: var(--ink); }
.nav-link.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--saffron); }
.badge-dot { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 99px; background: var(--rule); color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center; }
.site-header .nav-toggle { display: none; }
@media (max-width: 960px) {
  .site-header nav { min-height: 3.75rem; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 1rem; }
  .nav-open .nav-links { display: flex; }
  .nav-links .nav-link { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .on-dark .nav-links .nav-link { border-bottom-color: var(--night-line); }
  .nav-links .nav-link.on::after { display: none; }
  .nav-links .btn { margin-top: .75rem; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header span.nav-toggle { display: block; }
  .desktop-only { display: none !important; }
}
.notice { background: var(--saffron); color: var(--ink); padding: .55rem 0; font-size: .95rem; font-weight: 500; }
.notice p { margin: 0; } .notice a { color: var(--ink); }

/* Bottom tab bar (phones) */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tabbar-h: 4.1rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
  .tabbar a svg { width: 1.35rem; height: 1.35rem; }
  .tabbar a.on { color: var(--blue); }
}

/* ── Footer ── */
.site-footer { margin-top: 5rem; background: var(--night); color: #b6bed6; padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer a { color: #e7eaf5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(3, 1fr); }
.footer-grid h3 { font-size: .98rem; color: #fff; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-legal { border-top: 1px solid var(--night-line); margin-top: 2.5rem; padding-top: 1.25rem; color: #8790ad; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.25rem; border-radius: var(--r-sm); min-height: 2.75rem;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(61,91,255,.8); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-signal { background: var(--saffron); border-color: var(--saffron); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(255,181,71,.9); }
.btn-signal:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: var(--ink); }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--night-2); color: #fff; }
.btn-danger { border-color: var(--rule); color: var(--rule); }
.btn-sm { padding: .4rem .8rem; min-height: 2.15rem; font-size: .875rem; font-weight: 500; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.08rem; min-height: 3.3rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.on-dark .linklike { color: #fff; }
label { display: block; font-weight: 500; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=search], input[type=datetime-local], input[type=file], select, textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; min-height: 2.75rem; }
textarea { line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(61,91,255,.15); }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--blue); flex: none; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }

/* ── Surfaces ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow-sm); }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.stat dt { font-size: .86rem; color: var(--muted); }
.stat dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--saffron); padding: 1.4rem 1.5rem; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .75rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8f9fd; font-weight: 600; font-size: .84rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfe; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .62rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--pass-soft); color: var(--pass); }
.pill.warn { background: var(--half-soft); color: var(--half); }
.pill.bad { background: var(--rule-soft); color: var(--rule); }
.pill.pro { background: var(--saffron-soft); color: #9a5b00; }
.pill.blue { background: var(--blue-soft); color: var(--blue-dark); }
.text-pass { color: var(--pass); } .text-full { color: var(--rule); } .text-half { color: var(--half); }
.flash { padding: .85rem 1.1rem; border-radius: var(--r-sm); margin: 1rem 0; }
.flash.ok { background: var(--pass-soft); border: 1px solid rgba(18,161,80,.25); }
.flash.error { background: var(--rule-soft); border: 1px solid rgba(229,72,77,.3); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
details summary { cursor: pointer; font-weight: 600; }
.bar { height: .5rem; background: var(--tint); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6f86ff); border-radius: 99px; }
.page-head { padding: 2.75rem 0 1.5rem; }
.page-head p { color: var(--muted); max-width: 44rem; font-size: 1.1rem; }

/* ── Dark hero ── */
.night { background: radial-gradient(1200px 500px at 85% -10%, rgba(61,91,255,.35), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(255,181,71,.16), transparent 60%), var(--night); color: #d6dcef; }
.night h1, .night h2, .night h3 { color: #fff; }
.hero { display: grid; gap: 3.5rem; grid-template-columns: 1.08fr 1fr; align-items: center; padding-top: 4.75rem; padding-bottom: 5rem; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.hero .lede { font-size: 1.2rem; color: #c4cbe2; max-width: 33rem; margin-top: 1.4rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.hero-chips span { border: 1px solid var(--night-line); border-radius: 99px; padding: .3rem .8rem; font-size: .88rem; color: #dfe4f4; background: rgba(255,255,255,.04); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 3.5rem; gap: 2.75rem; } }

/* Live dictation demo */
.demo { position: relative; }
.demo-card { background: linear-gradient(180deg, #1b2856, #131e45); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-xl); padding: 1.6rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); color: #fff; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; color: #aeb7d6; }
.live { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 600; }
.live::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--rule); box-shadow: 0 0 0 4px rgba(229,72,77,.25); animation: blink 1.4s infinite; }
.demo-clock { font-family: var(--display); font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 1.1rem 0 .3rem; font-variant-numeric: tabular-nums; }
.demo-meta { display: flex; gap: 1.5rem; color: #aeb7d6; font-size: .92rem; }
.demo-meta strong { color: #fff; font-weight: 600; }
.wave { display: flex; align-items: center; gap: 4px; height: 4.25rem; margin: 1.4rem 0 1rem; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--saffron), #ff8a3d); height: 30%; animation: wave 1.2s ease-in-out infinite; transform-origin: center; }
.wave i:nth-child(3n) { animation-duration: 1.5s; } .wave i:nth-child(4n) { animation-duration: .9s; } .wave i:nth-child(5n+1) { animation-delay: -.4s; } .wave i:nth-child(7n) { animation-delay: -.8s; }
.demo-progress { height: .4rem; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.demo-progress span { display: block; height: 100%; width: 62%; background: #fff; border-radius: 99px; }
.demo-foot { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .85rem; color: #aeb7d6; }
.demo-result { position: absolute; right: -1rem; bottom: -2.6rem; background: #fff; color: var(--ink); border-radius: var(--r); padding: .9rem 1.1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .9rem; animation: rise .7s .9s both cubic-bezier(.2,.8,.2,1); }
.demo-result .num { font-size: 1.8rem; color: var(--pass); }
.demo-result small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .demo-result { position: relative; right: auto; bottom: auto; margin: -1.4rem .9rem 0; } .demo { margin-bottom: 0; } }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Trust strip */
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; padding: 1.4rem 0; color: var(--muted); font-size: .95rem; border-bottom: 1px solid var(--line); }
.strip strong { color: var(--ink-2); font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.75rem; }
.sec-head > div { max-width: 42rem; }
.sec-head p { color: var(--muted); margin: .35rem 0 0; }

/* Exam cards */
.exam-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.exam-card { position: relative; display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.exam-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.exam-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.exam-card h3 { font-size: 1.22rem; margin: .25rem 0 0; }
.exam-card .org { font-size: .86rem; color: var(--muted); font-weight: 500; }
.wpm-badge { flex: none; text-align: center; background: var(--night); color: #fff; border-radius: var(--r); padding: .5rem .7rem; min-width: 4.5rem; }
.wpm-badge b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; }
.wpm-badge span { font-size: .7rem; color: var(--saffron); font-weight: 700; letter-spacing: .04em; }
.exam-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-facts div { font-size: .8rem; color: var(--muted); }
.exam-facts strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.exam-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .92rem; }
.exam-card-foot .go { color: var(--blue); font-weight: 600; white-space: nowrap; }

/* Steps (a real sequence) */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Bento */
.bento { display: grid; gap: 1.1rem; grid-template-columns: repeat(6, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.tile p { color: var(--muted); margin: 0; }
.tile.wide { grid-column: span 4; } .tile.mid { grid-column: span 3; } .tile.narrow { grid-column: span 2; }
.tile.dark { background: var(--night); color: #c4cbe2; border-color: var(--night); }
.tile.dark h3 { color: #fff; } .tile.dark p { color: #b3bbd6; }
.tile .big { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: .8rem 0 .4rem; }
.tile-specimen { margin-top: 1.1rem; background: var(--page); border-radius: var(--r); padding: 1rem 1.1rem; }
.tile-specimen .marked { font-size: 1rem; line-height: 2.1; margin: 0; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile.wide, .tile.mid, .tile.narrow { grid-column: span 2; } }

/* CTA band */
.cta-band { border-radius: var(--r-xl); padding: 3rem; display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }

/* Pricing */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.85rem; box-shadow: var(--shadow-sm); }
.plan h2 { font-size: 1.3rem; }
.plan-price { font-family: var(--display); font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: .8rem 0 .3rem; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.plan li { padding-left: 1.7rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: .1rem; top: .38rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--pass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2312a150' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.plan.featured { background: var(--night); color: #c9d0e6; border-color: var(--night); box-shadow: var(--shadow-lg); }
.plan.featured h2, .plan.featured .plan-price { color: #fff; }
.plan.featured .plan-per, .plan.featured .muted { color: #a9b2cf; }
.plan.featured li::before { background-color: rgba(255,181,71,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ffb547' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-flag { position: absolute; top: -.85rem; left: 1.5rem; background: var(--saffron); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .2rem .75rem; border-radius: 99px; }
.plan .btn { width: 100%; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.tick { color: var(--pass); font-weight: 700; }
.cross { color: #a3abc2; }
.trust { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 1.75rem; }
.trust div { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-3); font-size: .93rem; }
.trust svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--blue); margin-top: .15rem; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: .6rem; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .75rem 0 0; color: var(--ink-3); }

/* Exam page */
.exam-hero { padding-top: 2.75rem; padding-bottom: 2.5rem; }
.exam-hero .crumb { color: #aeb7d6; font-size: .9rem; text-decoration: none; }
.exam-hero .crumb:hover { color: #fff; }
.exam-hero p { color: #c4cbe2; max-width: 44rem; }
.kpis { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin-top: 1.75rem; }
.kpi { border: 1px solid var(--night-line); border-radius: var(--r); padding: .9rem 1rem; background: rgba(255,255,255,.04); }
.kpi span { display: block; font-size: .8rem; color: #aeb7d6; }
.kpi strong { display: block; font-family: var(--display); font-size: 1.35rem; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.series-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 2.5rem 0 1.25rem; }
.filters { display: inline-flex; background: var(--tint); border-radius: 12px; padding: .25rem; gap: .2rem; flex-wrap: wrap; }
.filters button { border: 0; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-3); padding: .4rem .85rem; border-radius: 9px; cursor: pointer; min-height: 2.2rem; }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.test-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.test-tile { display: flex; flex-direction: column; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.15rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .2s; min-height: 9.5rem; }
.test-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.test-no { display: flex; justify-content: space-between; align-items: center; }
.test-no b { font-family: var(--display); font-size: 1.05rem; letter-spacing: -.01em; }
.test-tile .t { font-size: .95rem; color: var(--ink-2); line-height: 1.35; flex: 1; }
.test-tile .m { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.test-tile.locked { background: #fbfbfd; }
.test-tile.locked .t { color: var(--muted); }
.lock { width: .95rem; height: .95rem; vertical-align: -2px; }

/* Examiner marks */
.marked { font-size: 1.1rem; line-height: 2.4; }
.mark-full { color: var(--rule); text-decoration: line-through; text-decoration-thickness: 2px; }
.mark-half { text-decoration: underline wavy var(--half); text-underline-offset: 4px; }
.mark-add { color: var(--rule); border: 1.5px solid var(--rule); border-radius: 99px; padding: 0 .3em; }
.mark-omit { color: var(--rule); font-weight: 600; }
.mark-correction { color: var(--pass); font-size: .78em; vertical-align: super; margin-left: .15em; font-weight: 600; }
.mark-ignored { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.pad { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm); }
.pad .marked { margin-top: 0; }

/* Result */
.verdict { border-radius: var(--r-lg); padding: 1.75rem; color: #fff; background: var(--night); box-shadow: var(--shadow); }
.verdict.pass { background: radial-gradient(500px 200px at 100% 0, rgba(255,255,255,.18), transparent), linear-gradient(160deg, #13a453, #0b7a3c); }
.verdict.fail { background: radial-gradient(500px 200px at 100% 0, rgba(255,255,255,.16), transparent), linear-gradient(160deg, #e5484d, #b3262b); }
.verdict .big { font-family: var(--display); font-size: 4.2rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.verdict p { margin: 0; }
.verdict .muted { color: rgba(255,255,255,.82); }
.verdict a { color: #fff; }
@media (max-width: 900px) { .grid > dl[style*='span 2'] { grid-column: auto !important; } }

/* Exam runner */
.runner { min-height: 100vh; display: flex; flex-direction: column; background: var(--page); }
.runner-center { max-width: 52rem; margin: 0 auto; padding: 3rem 1.5rem; width: 100%; }
.countdown { font-family: var(--display); font-size: clamp(5rem, 15vw, 9.5rem); font-weight: 800; text-align: center; letter-spacing: -.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clock.low { color: var(--rule); }
.tr-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tr-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-top: .6rem; padding-bottom: .6rem; }
#transcript { width: 100%; height: calc(100vh - 10rem); resize: none; padding: 1.75rem 2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); line-height: 1.75; box-shadow: var(--shadow); }
/* Exam mode copies the skill-test screen: plain white page, time at the top right, double-spaced typing. */
.exam-mode { background: #fff; }
.exam-mode .tr-bar { background: #f3f3f3; border-bottom: 1px solid #c8c8c8; box-shadow: none; }
.exam-mode .tr-bar .wrap { max-width: none; }
.exam-mode #transcript { height: calc(100vh - 7.5rem); border: 0; border-radius: 0; box-shadow: none; background: #fff; line-height: 2; }
.exam-mode .clock { font-family: "Segoe UI", Tahoma, sans-serif; font-weight: 600; letter-spacing: 0; }
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(14,24,56,.66); backdrop-filter: blur(4px); }
.overlay .card { max-width: 30rem; box-shadow: var(--shadow-lg); }
.no-select { user-select: none; -webkit-user-select: none; }
.desktop-only-note { display: none; }
@media (max-width: 760px) { .desktop-only-note { display: block; } }

/* Admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding: .25rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; font-size: .94rem; }
.admin-nav a { color: var(--muted); text-decoration: none; }
.admin-nav a.on, .admin-nav a:hover { color: var(--ink); font-weight: 600; }
.chart { width: 100%; height: 9rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
pre { background: var(--tint); padding: .75rem; border-radius: var(--r-sm); overflow-x: auto; }

@media (max-width: 560px) {
  .wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .card, .tile, .plan, .exam-card { padding: 1.2rem; }
  th, td { padding: .6rem .7rem; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .tabbar, .no-print { display: none !important; } body { background: #fff; padding: 0; } .card { border: 0; box-shadow: none; } }
.demo { margin-bottom: 1.75rem; }

/* ── Sign-in / create account ── */
body.bare { padding-bottom: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem 3.25rem; }
.auth-pitch h1 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.auth-pitch ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.15rem; }
.auth-pitch li { position: relative; padding-left: 1.5rem; color: #c4cbe2; }
.auth-pitch li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .7rem; height: 2px; background: var(--saffron); }
.auth-pitch li strong { display: block; color: #fff; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--page); }
.auth-card { width: 100%; max-width: 28rem; }
.seg { display: flex; gap: .2rem; background: var(--tint); border-radius: 12px; padding: .25rem; margin-bottom: 1.6rem; }
.seg button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 600; padding: .6rem .5rem; border-radius: 9px; cursor: pointer; color: var(--ink-3); min-height: 2.6rem; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pane h2 { font-size: 1.65rem; margin-bottom: .25rem; }
.pane[hidden], .auth form[hidden], .auth .seg[hidden] { display: none; }
.err { color: var(--rule); font-size: .9rem; min-height: 1.3rem; margin: .65rem 0; }
.alt { text-align: center; margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; }
.otp { font-family: var(--display); font-size: 1.8rem; letter-spacing: .5em; text-align: center; padding-left: 1.2rem; }
.strength { display: flex; align-items: center; gap: .3rem; margin-top: .55rem; }
.strength i { flex: 0 0 16%; height: .3rem; border-radius: 99px; background: var(--tint); }
.strength i.s1 { background: var(--rule); } .strength i.s2 { background: var(--half); } .strength i.s3 { background: var(--saffron); } .strength i.s4 { background: var(--pass); }
.strength span { margin-left: .35rem; font-size: .8rem; color: var(--muted); }
.auth-foot { margin: 1.75rem 0 0; text-align: center; }
.pw { position: relative; display: block; }
.pw { margin-top: .35rem; }
.pw input { padding-right: 4.5rem; margin-top: 0; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .4rem .6rem; border-radius: 8px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 1.25rem 1.25rem 1.5rem; gap: 1rem; }
  .auth-pitch ul, .auth-side > p { display: none; }
  .auth-pitch h1 { font-size: 1.55rem; margin: 0; }
  .auth-main { padding: 1.5rem 1.1rem 3rem; place-items: start center; }
}

/* ── Account (tabs) ── */
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; padding: 2.4rem 0 1.4rem; }
.acc-avatar { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7b8dff); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 700; flex: none; }
.acc-head h1 { margin: 0; font-size: 1.7rem; }
.acc-head p { margin: .1rem 0 0; color: var(--muted); }
.ustats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-bottom: 1.5rem; }
.ustat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.ustat .k { font-size: .84rem; color: var(--muted); font-weight: 500; }
.ustat .v { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.ustat .s { font-size: .8rem; color: var(--muted); }
.ustat.hl { background: var(--night); border-color: var(--night); color: #c9d0e8; }
.ustat.hl .k, .ustat.hl .s { color: #9fa9cb; } .ustat.hl .v { color: #fff; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink-3); padding: .8rem 1rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 2.9rem; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--saffron); }
.js .acc-panel:not(.on) { display: none; }
.acc-panel > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.acc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting small { display: block; color: var(--muted); }
.plan-card { border-radius: 16px; padding: 1.4rem; background: radial-gradient(500px 220px at 100% 0, rgba(61,91,255,.35), transparent), var(--night); color: #c9d0e8; }
.plan-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .2rem; }
.plan-card .until { color: var(--saffron); font-weight: 600; }
.result-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.result-row:first-child { border-top: 0; }
.result-row:hover { color: var(--blue); }
.result-row .grow { flex: 1; min-width: 0; }
.result-row .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row .grow small { color: var(--muted); }
.result-pct { font-family: var(--display); font-weight: 700; font-size: 1.15rem; min-width: 4rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ── Dashboard ── */
.dash-hero { border-radius: 24px; padding: 2rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-top: 1.5rem; }
.dash-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .35rem; }
.dash-hero p { color: #c4cbe2; margin: 0; }
.rec { background: rgba(255,255,255,.07); border: 1px solid var(--night-line); border-radius: 18px; padding: 1.3rem; }
.rec .k { font-size: .82rem; color: #9fa9cb; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rec .big { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1.1; margin: .2rem 0 .35rem; }
.rec p { font-size: .92rem; margin-bottom: 1rem; }
.streak { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; padding: .35rem .85rem; border-radius: 99px; background: rgba(255,181,71,.16); color: var(--saffron); font-weight: 600; font-size: .92rem; }
.dash-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-top: 1.25rem; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.35rem; box-shadow: var(--shadow-sm); }
.dcard h2 { font-size: 1.1rem; margin-bottom: .25rem; }
.dcard .sub { color: var(--muted); font-size: .88rem; margin: 0 0 .9rem; }
.mini { display: flex; align-items: center; gap: .6rem; margin: .5rem 0; }
.mini .lab { flex: 0 0 9rem; font-size: .9rem; }
.mini .bar { flex: 1; }
.mini .num { flex: 0 0 5rem; white-space: nowrap; text-align: right; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .dash-hero, .dash-grid { grid-template-columns: 1fr; } .dash-hero { padding: 1.4rem; } .mini .lab { flex-basis: 6.5rem; } }
