/* drishi: the whole visual language, loaded last.
   Misty paper, ink blue, one peacock accent. No shadows, few boxes: space and
   type do the separating, and the 3D eye is the only loud thing. */
:root, :root[data-accent] {
  --bg: #eef2f3; --surface: #f7f9f9; --surface-2: #e5ebed; --line: #d3dcdf; --line-strong: #aebcc1; --unlit: #c6d1d5;
  --text: #10233a; --muted: #50636f;
  --accent: #006a7b; --accent-2: #2a1e9a; --on-accent: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--bg)); --accent-line: color-mix(in srgb, var(--accent) 40%, var(--line));
  --good: #1c7046; --good-soft: #dcefe4; --bad: #a8321f; --bad-soft: #f7e2dd; --warn-soft: #f6ecd3;
  --series-1: #006a7b; --series-2: #b9741a; --series-3: #2f8a5b; --series-4: #3a2ea6; --series-5: #a13d78; --series-6: #4f7d1e; --series-7: #6f5bd0; --series-8: #b0432f;
  --r-xs: 4px; --r-s: 8px; --r-m: 10px; --r-l: 14px; --r-xl: 18px;
  --shadow: none; --shadow-1: none; --shadow-2: none; --shadow-3: 0 18px 50px -20px rgb(16 35 58 / 0.35); --shadow-lift: none; --glow: transparent; --dots: transparent;
  --display: "Anek Latin", "Anek Devanagari", system-ui, sans-serif; --body: var(--display);
  --top-h: 64px;
}
:root[data-theme="dark"], :root[data-theme="dark"][data-accent] {
  color-scheme: dark;
  --bg: #07191f; --surface: #0c2129; --surface-2: #123039; --line: #1d3d47; --line-strong: #34606c; --unlit: #1f3b44;
  --text: #e4f0ef; --muted: #9bb4b8; --accent: #5cd0c6; --accent-2: #a9a2ff; --on-accent: #07191f;
  --good: #6fd3a0; --good-soft: #11342a; --bad: #ff9a86; --bad-soft: #3a201c; --warn-soft: #33301a;
  --series-1: #4ac4d0; --series-2: #e3a652; --series-3: #6fcf97; --series-4: #9b92ff; --series-5: #e58fc0; --series-6: #a6cf66; --series-7: #b6a8ff; --series-8: #f0917c;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); background-image: none; color: var(--text); font: 400 17px/1.55 var(--body); font-variation-settings: "wdth" 100; }
body::before, body::after { display: none !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
.wrap { max-width: 1240px; padding-inline: clamp(16px, 4vw, 40px); }
#app > * { animation: none !important; }
main#app { position: relative; z-index: 1; padding-top: 12px; padding-bottom: 96px; min-height: 70vh; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; box-shadow: none; }
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.lede { color: var(--muted); max-width: 60ch; font-size: 18px; }

/* Wordmark: the dots of the two i's are a pair of eyes. */
.logo { font: 700 27px/1 var(--display); font-variation-settings: "wdth" 118; letter-spacing: -0.02em; color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; }
.logo .i { position: relative; display: inline-block; }
.logo .i::before { content: ""; position: absolute; left: 50%; top: 0.02em; width: 0.235em; height: 0.235em; margin-left: -0.1175em; border-radius: 50%; background: radial-gradient(circle at calc(50% + var(--gx, 0) * 26%) calc(50% + var(--gy, 0) * 26%), #1d1570 0 27%, #00a3b0 29% 52%, #c07f1e 54% 72%, #0d7a68 74%); }
.logo:hover .i::before { animation: blink 0.45s ease; }
@keyframes blink { 50% { transform: scaleY(0.1); } }

/* Header */
.top { position: sticky; top: 0; z-index: 60; height: var(--top-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border: 0; box-shadow: none; }
.top-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; flex: 1; gap: clamp(14px, 2.4vw, 30px); justify-content: flex-end; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; background: none; }
.nav a:hover { color: var(--text); } .nav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.top-tools { display: flex; gap: 4px; align-items: center; }
.top .search-btn, .top .icon-btn { min-width: 0; margin: 0; flex: none; }
.icon-btn, .search-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%; color: var(--text); cursor: pointer; box-shadow: none; }
.icon-btn:hover, .search-btn:hover { background: var(--surface-2); transform: none; }
.icon-btn svg, .search-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; } .icon-btn svg .fill { fill: currentColor; stroke: none; }
.top .menu-btn { display: none; } .top .top-tools { margin-left: 0; gap: 2px; }
@media (max-width: 760px) {
  .top .menu-btn { display: grid; }
  .top-inner { gap: 8px; justify-content: space-between; }
  .nav { position: fixed; inset: var(--top-h) 0 0; height: calc(100dvh - var(--top-h)); flex-direction: column; justify-content: center; gap: 6px; background: var(--bg); visibility: hidden; opacity: 0; transition: opacity 0.18s; }
  .nav a { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav-open.top { background: var(--bg); backdrop-filter: none; }
}

/* Home */
.home { position: relative; }
.eye-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.5s; }
.eye-stage.past { opacity: 0; }
body:has(> .eye-stage) .top, body:has(> .eye-stage) .foot { z-index: 5; }
.eye-stage canvas { width: 100%; height: 100%; display: block; }
.eye-stage.no-webgl { inset: 16vh auto auto 50%; width: min(42vh, 60vw); height: min(42vh, 60vw); margin-left: calc(min(42vh, 60vw) / -2); border-radius: 50%; background: radial-gradient(circle, #1d1570 0 18%, #00a3b0 20% 38%, #c07f1e 40% 56%, #0d7a68 58% 70%, transparent 71%); position: absolute; }
.home > section { position: relative; z-index: 1; }
.home .home-hero { grid-template-columns: 1fr; gap: 0; animation: none; min-height: calc(100svh - var(--top-h) - 12px); display: grid; align-items: end; justify-items: center; padding: 0 0 clamp(28px, 7vh, 80px); background: none; border: 0; }
.see { width: min(680px, 100%); text-align: center; }
.see h1 { font-size: clamp(30px, 4.3vw, 52px); margin: 0 0 14px; font-variation-settings: "wdth" 104; text-wrap: nowrap; }
.see-line { display: flex; align-items: center; border-bottom: 2px solid var(--text); }
.see-line:focus-within { border-color: var(--accent); }
.see .see-line input.see-input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 500 clamp(19px, 2.3vw, 25px)/1.2 var(--body); padding: 14px 4px; outline: none; border-radius: 0; box-shadow: none; height: auto; }
.see-input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.see-go { border: 0; background: none; color: var(--accent); font: 600 18px var(--body); padding: 12px 4px 12px 16px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.see-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.see-matches { list-style: none; margin: 10px 0 0; padding: 0; min-height: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 17px; }
.see-matches a { color: var(--muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.see-matches a.top { color: var(--text); font-weight: 600; } .see-matches a:hover { color: var(--accent); }
#home-continue { max-width: 680px; margin: 0 auto 12vh; }
.explore { padding: 14vh 0; scroll-margin-top: 0; }
.x-list { width: min(560px, 100%); margin-left: auto; }
.x-subject { border: 0; background: none; padding: 0; margin: 0; }
.x-subject summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; font: 600 clamp(25px, 3.1vw, 38px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--text); }
.x-subject summary::-webkit-details-marker { display: none; }
.x-n { font: 400 17px var(--body); color: var(--muted); letter-spacing: 0; }
.x-list:hover summary:not(:hover), .x-list:has(summary:focus-visible) summary:not(:focus-visible) { color: color-mix(in srgb, var(--text) 45%, var(--bg)); }
.x-subject[open] summary { color: var(--accent) !important; }
.x-tools { list-style: none; margin: 2px 0 22px; padding: 0; columns: 2; column-gap: 28px; }
.x-tools li { break-inside: avoid; }
.x-tools a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.3; }
.x-tools a:hover { color: var(--accent); }
.doors { max-width: 860px; margin: 0 auto; padding: 8vh 0 4vh; }
.doors h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 18px; }
.doors ul { list-style: none; margin: 0; padding: 0; }
.doors a { display: grid; grid-template-columns: minmax(200px, 0.8fr) 1fr; gap: 6px 32px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.doors li:last-child a { border-bottom: 0; }
.doors b { font-size: 21px; font-weight: 600; } .doors span { color: var(--muted); } .doors a:hover b { color: var(--accent); }
@media (max-width: 899px) { .x-list { margin: 0 auto; } .explore { padding-top: 46vh; } .x-list { background: color-mix(in srgb, var(--bg) 88%, transparent); } .eye-stage { z-index: 0; } }
@media (max-width: 600px) { .doors a { grid-template-columns: 1fr; } .x-tools { columns: 1; } .see h1 { margin-bottom: 10px; } }

/* Shared pieces: flat, quiet */
.card, .tool-card, details.theory, .notice { box-shadow: none; }
.card { background: none; border: 0; border-radius: 0; padding: 0; margin: 0 0 44px; }
.btn { border-radius: 999px; box-shadow: none !important; font: 600 16px/1.2 var(--body); padding: 11px 20px; min-height: 44px; }
.btn:hover:not(:disabled) { transform: none; }
.btn.small { font-size: 15px; padding: 7px 14px; min-height: 38px; }
.btn.primary { background: var(--accent); background-image: none; color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.tag, .badge { background: var(--surface-2); color: var(--muted); font-weight: 500; }
input, select, textarea { font-family: var(--body); font-size: 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.notice { border: 0; border-left: 3px solid var(--accent); border-radius: 0; background: var(--surface-2); }
details.theory { border: 0; background: none; padding: 0; margin: 0; }
.tabs { gap: 22px; border: 0; margin: 0 0 22px; } .tabs button { font: 500 18px var(--body); padding: 6px 0; } .tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; } .tabs button::after { background: var(--accent); height: 2px; left: 0; right: 0; border-radius: 0; }

/* Tool pages: the picture first; inputs, code and extras fold away (js/calm.js) */
.tool-head { margin: 22px 0 14px; max-width: 900px; }
.tool-head h1 { font-size: clamp(32px, 4.4vw, 54px); margin: 2px 0 8px; font-variation-settings: "wdth" 106; }
.calm-bar { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; }
.calm-bar button { border: 0; background: none; padding: 8px 0; font: 500 16px var(--body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; min-height: 40px; }
.calm-bar button:hover { color: var(--text); } .calm-bar button[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.calm .inputs { padding: 18px 20px; background: var(--surface); border-radius: var(--r-l); margin-bottom: 24px; }
.calm.no-inputs .inputs, .calm.no-code .trace-side { display: none; } .calm.no-code .trace-grid { grid-template-columns: minmax(0, 1fr); }
.calm .theory > summary { display: none; } .calm .theory { max-width: 70ch; } .calm .theory:not([open]) { display: none; } .calm .theory[open] { margin-bottom: 28px; }
.calm .stepper { position: sticky; bottom: 14px; z-index: 20; margin-inline: auto !important; width: min(760px, 100%); flex-wrap: nowrap; margin: 22px auto 0; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-3); }
.stepper .ctl { border: 0; background: none; border-radius: 50%; min-width: 40px; width: 40px; height: 40px; color: var(--text); }
.stepper .ctl:hover { background: var(--surface-2); transform: none; } .stepper .ctl.play { background: var(--accent); color: var(--on-accent); min-width: 44px; width: 44px; height: 44px; box-shadow: none; }
.stepper select { border: 0; background: none; padding: 6px; } .step-count { font: 500 15px var(--body); white-space: nowrap; color: var(--muted); }
@media (max-width: 560px) { .stepper select, .stepper .ctl:first-of-type, .stepper .ctl:nth-of-type(5) { display: none; } .stepper input[type="range"] { min-width: 50px; } }
.step-note { background: none !important; border: 0 !important; padding: 0 !important; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; font-weight: 500; max-width: 62ch; min-height: 2.8em; margin: 6px 0 18px !important; color: var(--text); }
.trace-grid { gap: 48px; } .trace-main > * { background: none; }
.code-panel, .vars-panel { background: none; border: 0; padding: 0; box-shadow: none; margin: 0 0 22px; }
.panel-title { text-transform: none; letter-spacing: 0; font: 500 15px var(--body); color: var(--muted); padding: 0; margin: 0 0 6px; }
.code-lines li { border-radius: 4px; } .code-lines li.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.stats-row { gap: 10px 34px; } .stat { background: none !important; border: 0; padding: 0; } .stat span { color: var(--muted); } .stat b { font: 600 25px var(--display); }
.three-stage, .view-toggle { border-radius: var(--r-l); } .view-toggle { border: 1px solid var(--line); box-shadow: none; }
.after { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 6px; }
.after details { border-bottom: 1px solid var(--line); } .after details:last-child { border: 0; }
.after summary { cursor: pointer; padding: 18px 0; font: 500 19px var(--body); list-style: none; display: flex; justify-content: space-between; } .after summary::after { content: "+"; color: var(--muted); } .after details[open] summary::after { content: "−"; }
.after .card { margin: 0 0 24px; border: 0; background: none; } .after .gate-link { justify-content: flex-start; } .after .card > h2:first-child, .after .eyebrow { display: none; }
.after details:has(> .card-slot:empty) { display: none; }
.tutor-fab { box-shadow: none; background: var(--text); color: var(--bg); font-weight: 600; } .calm .card > h2 { font-size: 24px; font-weight: 600; margin: 0 0 4px; }
.tool-head .lede { font-size: 17px; margin: 0; }

/* Roadmaps, practice, learning */
.rm-list, .rm-cards { gap: 0; display: block; } .rm-card { border-bottom: 1px solid var(--line); padding: 22px 0; margin: 0; border-radius: 0; background: none; display: grid; gap: 4px; } .rm-card h2 { font-size: 27px; } .rm-card .btn { display: none; } .rm-card:hover h2 { color: var(--accent); } .rm-facts { font: 400 16px var(--body); color: var(--muted); }
.rm-path::before { background: var(--line); } .rm-stage .card { border-left: 0; padding: 6px 0 26px; margin: 0; } .rm-dot { background: var(--bg); color: var(--text); border: 2px solid var(--c); box-shadow: 0 0 0 6px var(--bg); font-family: var(--display); }
.rm-stage-head h2 { font-size: 25px; } .rm-chip { background: none; border: 0; padding: 4px 0; margin-right: 16px; color: var(--muted); font-size: 16px; } .rm-chip:hover { color: var(--accent); } .rm-chip.soon { background: none; opacity: 0.6; }
.rm-stage .btn { display: none; } .rm-stage-top h1 { text-decoration: none; } .rm-howto { display: none; } .hero-facts { display: none; }
.rm-module { border-bottom: 1px solid var(--line); padding: 26px 0; margin: 0; } .rm-module h3 { text-transform: none; letter-spacing: 0; font: 500 16px var(--body); color: var(--muted); } .rm-tool { background: none; border: 1px solid var(--line); } .rm-num { font-family: var(--display); color: var(--muted); }
.gate-opt { background: var(--surface); border: 1px solid var(--line); } .gate-q { max-width: 800px; } .gate-stem p { font-size: 19px; } .gate-link { background: none; }
.progress-eye { position: relative; height: min(46vh, 420px); margin: 0 0 8px; } .progress-eye canvas { width: 100%; height: 100%; display: block; } .progress-eye p { position: absolute; inset: auto 0 0; text-align: center; margin: 0; color: var(--muted); }
.ask-page { max-width: 820px; margin: 0 auto; } .ask-box { border-bottom: 2px solid var(--text); } .ask-input { border: 0; background: none; font-size: 22px; resize: vertical; padding: 10px 0; } .ask-chips { display: none; } .ask-result { background: none; border: 0; }

/* Footer: one calm line */
.foot { border: 0; background: none; margin: 0; padding: 40px 0 48px; position: relative; z-index: 1; }
.foot-line { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; color: var(--muted); font-size: 15.5px; } .foot-line a, .foot-line button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 6px 0; font: inherit; cursor: pointer; } .foot-line a:hover, .foot-line button:hover { color: var(--text); } .foot-line .logo { color: var(--text); font-size: 23px; font-weight: 700; margin-right: auto; }

/* First load: two eyes blink */
.boot-eyes { display: flex; gap: 22px; } .boot-eyes i { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #1d1570 0 24%, #00a3b0 26% 46%, #c07f1e 48% 66%, #0d7a68 68%); animation: boot-blink 1.8s ease-in-out infinite; }
@keyframes boot-blink { 0%, 78%, 100% { transform: scaleY(1); } 88% { transform: scaleY(0.06); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .boot-eyes i, .logo:hover .i::before { animation: none; } }
@media print { .eye-stage, .top, .foot { display: none; } }

.rm-stage .card { border-left: 0 !important; padding-left: 0; overflow: visible; } .rm-stage .card::before { display: none; }
#home-continue > * { background: none; } @media (max-width: 899px) { #home-continue { margin: 0 0 4vh; background: var(--bg); } }
@media (max-width: 400px) { .see h1 { font-size: 29px; } }
@media (max-width: 700px) {
  .calm .stepper input[type="range"] { display: none; } .calm .stepper { width: max-content; max-width: 100%; gap: 4px; }
  .tutor-fab { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; bottom: 86px; } .tutor-fab::first-letter { font-size: 20px; }
  .tutor-fab::after { content: "?"; font-size: 21px; }
  .calm-bar { gap: 2px 18px; }
}
.tutor-fab::after { color: inherit; }
/* Ask, answered on the device */
.local { max-width: 760px; } .local h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 4px 0 10px; } .local .answer { font-size: 22px; font-weight: 500; margin: 14px 0; } .local .read { color: var(--muted); margin: 0 0 18px; } .local .also { margin-top: 26px; color: var(--muted); } .local .also a { margin-right: 18px; } .choices { list-style: none; padding: 0; margin: 12px 0; } .choices a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 23px; font-weight: 600; } .choices span { display: block; font-size: 16px; font-weight: 400; color: var(--muted); }
