/* Gradely — exam-paper off-white, blue-black ink, red pen. */
:root {
  --bg: #F7F4EC;
  --bg-2: #EEE9DD;
  --surface: #FFFEF9;
  --ink: #1A2030;
  --ink-2: #343B4D;
  --muted: #5C6272;
  --line: rgba(26, 32, 48, 0.1);
  --line-2: rgba(26, 32, 48, 0.17);
  --rule: #CFDCE9;
  --rule-strong: #9FB6CF;
  --margin: #E4A7A0;
  --accent: #C8322B;
  --accent-deep: #A3241E;
  --accent-soft: #F7DFDA;
  --accent-light: #F28B7F;
  --accent-ink: #fff;
  --blue-ink: #1F3A8A;
  --ok: #2B6A3E;
  --ok-soft: #DDEBDD;
  --warn: #8A5300;
  --warn-soft: #F8E6C2;
  --font-display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --font-hand: 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive;
  --font-pen: 'Caveat', 'Segoe Print', cursive;
  --font-hand-te: 'Mallanna', 'Nirmala UI', 'Noto Sans Telugu', sans-serif;
  --shadow-paper: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(26,32,48,.06), 0 24px 60px -30px rgba(26,32,48,.35);
  --pen-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C30 5.5 62 9 96 6.6S160 4.8 198 6.2' fill='none' stroke='%23C8322B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --pen-line-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C30 5.5 62 9 96 6.6S160 4.8 198 6.2' fill='none' stroke='%23F28B7F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

body { background: var(--bg); }
.hand { font-family: var(--font-hand); color: var(--blue-ink); }
.hand-te { font-family: var(--font-hand-te); color: var(--blue-ink); }
.te-ui { font-family: 'Nirmala UI', 'Noto Sans Telugu', var(--font-ui); }
.muted { color: var(--muted); }
.pen-note { font-family: var(--font-pen); font-weight: 600; color: var(--accent); font-size: 1.25em; line-height: 1; }

/* Red-pen underline, per line fragment. Decoration only, never hides text. */
.pen {
  background: var(--pen-line) 0 100% / 100% .3em no-repeat;
  padding-bottom: .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pen-light { background-image: var(--pen-line-light); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; transition: transform var(--t-fast) var(--ease-out); }
.skip:focus { transform: translateY(60px); }

/* Buttons — squarer than pills: this is a school register, not a startup */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.btn-lg { height: 50px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 22px -12px rgba(200,50,43,.8); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
.btn-ghost { color: var(--ink); }
.btn-paper { background: var(--surface); color: var(--ink); }
.btn svg { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--ink-2); }
  .btn-accent:hover { background: var(--accent-deep); }
  .btn-line:hover { border-color: var(--ink); }
  .btn-ghost:hover { background: rgba(26,32,48,.06); }
  .btn-paper:hover { background: #fff; }
  .btn:hover svg { transform: translateX(3px); }
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color var(--t-ui) ease, box-shadow var(--t-ui) ease; }
.nav[data-scrolled] { background: rgba(247,244,236,.84); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1; letter-spacing: -0.02em; }
.brand-by { margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--muted); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background-color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { background: rgba(26,32,48,.06); } }
.nav-cta { display: flex; gap: 6px; }
@media (max-width: 1100px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 640px) { .hide-sm { display: none; } .brand-by { margin-left: 0; padding-left: 8px; } .brand-name { font-size: 24px; } .nav-in { gap: 12px; } }
@media (max-width: 380px) { .brand-by { display: none; } }

/* Type */
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.center .kicker { justify-content: center; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.06; max-width: 22ch; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.section { padding: clamp(76px, 10vw, 128px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { text-align: center; }
.sec-head.center h2 { margin-inline: auto; }
.sub { margin-top: 18px; color: var(--muted); max-width: 56ch; }
.center .sub { margin-inline: auto; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.eyebrow { font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.03; }
.lede { font-size: clamp(16px, 1.3vw, 17.5px); color: var(--ink-2); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-title > *, .hero-side > * { animation: rise 760ms var(--ease-out) both; }
.hero-title > :nth-child(2) { animation-delay: 60ms; }
.hero-side > :nth-child(1) { animation-delay: 120ms; }
.hero-side > :nth-child(2) { animation-delay: 180ms; }
.stage { animation: rise 900ms 200ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 720px) 372px; justify-content: space-between; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.sheet-stack { position: relative; }
.sheet-stack::before, .sheet-stack::after {
  content: ''; position: absolute; inset: 0; border-radius: 6px; background: #FBF9F2; border: 1px solid var(--line);
}
.sheet-stack::before { transform: rotate(-2.2deg) translate(-10px, 8px); }
.sheet-stack::after { transform: rotate(1.3deg) translate(8px, 4px); background: #FDFBF5; }
.sheet { position: relative; z-index: 1; margin: 0; border-radius: 6px; box-shadow: var(--shadow-paper); background: #FFFEF9; }
.sheet-svg { width: 100%; height: auto; border-radius: 6px; }
.sheet-note { position: absolute; right: 10px; bottom: -26px; font-size: 11.5px; color: var(--muted); }

.sheet-svg .paper { fill: #FFFEF9; }
.sheet-svg .rules path { stroke: var(--rule); stroke-width: 1; }
.sheet-svg .head-rule { stroke: var(--margin); stroke-width: 1; }
.sheet-svg .margin { stroke: var(--margin); stroke-width: 1; }
.sheet-svg .margin-r { stroke: var(--margin); stroke-width: 1; stroke-dasharray: 3 4; }
.sheet-svg .printed text { font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .12em; fill: #7A8090; font-weight: 500; }
.sheet-svg .p-marks, .sheet-svg .p-total { font-size: 8.5px !important; text-anchor: middle; }
.sheet-svg .p-marks { text-anchor: start; }
.sheet-svg .hand text { font-family: var(--font-hand); font-size: 19px; fill: var(--blue-ink); }
.sheet-svg .total-box rect { fill: none; stroke: #9AA0AE; stroke-width: 1; }
.sheet-svg .scanband { fill: url(#scanGrad); opacity: 0; }
.sheet-svg .redpen path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sheet-svg .redpen .thin { stroke-width: 1.7; }
.sheet-svg .redpen text { font-family: var(--font-pen); font-weight: 600; fill: var(--accent); }
.sheet-svg .redpen .flagbox { stroke: var(--warn); stroke-width: 1.2; stroke-dasharray: 4 3; fill: rgba(248,230,194,.35); }
.sheet-svg .redpen .flagtxt { font-family: var(--font-ui); font-weight: 600; font-size: 10.5px; fill: var(--warn); letter-spacing: .02em; }

/* Drawn strokes: pathLength=1, dash from 1 → 0 */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.on { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d, 420ms) var(--ease-in-out); }
.ink-in { opacity: 0; transform: translateY(3px); transform-box: fill-box; }
.ink-in.on { opacity: 1; transform: none; transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.wipe { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.wipe.on { transform: scaleX(1); transition: transform var(--d, 520ms) cubic-bezier(.45,.05,.35,1); }

/* Suggested-marks card */
.suggest {
  position: relative; z-index: 2; margin: 96px 0 0 0;
  padding: 18px; border-radius: 16px; background: var(--ink); color: #E8E6E0;
  box-shadow: 0 30px 60px -28px rgba(26,32,48,.55);
}
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sg-title { font-family: var(--font-display); font-size: 21px; color: #fff; white-space: nowrap; }
.sg-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #C9CCD6; white-space: nowrap; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.sg-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sg-status[data-state='read'] i { animation: blink 1s steps(2) infinite; }
.sg-status[data-state='done'] { background: rgba(242,139,127,.16); color: #F7B2A9; }
.sg-status[data-state='approved'] { background: #CFE6D2; color: #1F4F2D; }
@keyframes blink { 50% { opacity: .2; } }
.sg-list { display: grid; }
.sg-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.sg-list li[data-pre] { opacity: .18; transform: translateX(-4px); }
.sg-q { font-size: 12px; color: #9EA3B0; padding-top: 2px; }
.sg-list p { font-size: 13.5px; line-height: 1.4; color: #D9DAE0; }
.sg-m { font-size: 16px; color: #fff; font-weight: 500; white-space: nowrap; }
.sg-m small { font-size: 12px; color: #9EA3B0; }
.sg-flag .sg-q, .sg-flag .sg-m { color: #F4C574; }
.sg-flag p { color: #F1DDB5; }
.sg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.sg-foot b { font-size: 28px; font-weight: 500; color: #fff; }
.sg-foot p > .mono { color: #9EA3B0; font-size: 13px; }
.sg-sub { font-size: 12px; color: #9EA3B0; }
.sg-approve { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13.5px; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease; }
.sg-approve[data-pressed] { transform: scale(.97); }
.sg-approve[data-done] { background: #CFE6D2; color: #1F4F2D; }

/* ---------------- Built for ---------------- */
.for { border-block: 1px solid var(--line); background: var(--surface); }
.for-in { display: flex; align-items: center; gap: 28px; padding: 20px 0; flex-wrap: wrap; }
.for-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.for ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.for li { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.for-note { margin-left: auto; font-size: 14px; color: var(--muted); }
.for-note em { font-style: normal; color: var(--accent-deep); font-weight: 600; }

/* ---------------- Problem ---------------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.problem .sec-head { margin-bottom: 0; }
.problem-copy { display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); padding-top: 34px; }
.problem-copy b { color: var(--ink); font-weight: 600; }
.problem-fix { margin-top: 8px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink) !important; }

/* ---------------- How ---------------- */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.step-n { position: relative; width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 20px; }
.step-n svg { position: absolute; inset: 0; width: 44px; height: 44px; overflow: visible; }
.step-n path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.step-n b { font-family: var(--font-pen); font-size: 26px; font-weight: 600; color: var(--accent); line-height: 1; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step-vis { margin-top: auto; padding-top: 18px; }
.step-vis > * { flex: none; }
.vis-scan { position: relative; height: 74px; display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.vis-scan i { width: 46px; height: 58px; border-radius: 4px; background: repeating-linear-gradient(to bottom, #fff 0 9px, var(--rule) 9px 10px); border: 1px solid var(--line-2); margin: 0 -8px; }
.vis-scan i:nth-child(1) { transform: rotate(-6deg); }
.vis-scan i:nth-child(3) { transform: rotate(5deg); }
.vis-scan i:nth-child(2) { position: relative; z-index: 1; height: 64px; }
.vis-scan span { position: absolute; z-index: 2; left: calc(50% - 40px); width: 80px; top: 20px; height: 2px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 12px 2px rgba(200,50,43,.35); animation: scan 2.6s var(--ease-in-out) infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(46px); } }
.vis-read, .vis-suggest, .vis-approve { display: flex; align-items: center; gap: 10px; min-height: 74px; flex-wrap: wrap; }
.vis-read .hand { font-size: 22px; }
.vis-read .arrow { color: var(--muted); }
.vis-read .mono { font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.vis-suggest { gap: 8px; padding: 10px 12px; margin-top: 18px; min-height: 0; border-radius: 10px; background: var(--ink); color: #D9DAE0; font-size: 12.5px; flex-wrap: nowrap; }
.vis-suggest span:nth-child(2) { flex: 1; min-width: 0; }
.vis-suggest b { color: #fff; font-weight: 500; }
.step-vis.vis-suggest { padding-top: 10px; }
.stepper { display: inline-flex; align-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); height: 34px; flex: none; }
.stepper i { width: 30px; text-align: center; font-style: normal; color: var(--muted); font-size: 16px; }
.stepper b { min-width: 34px; text-align: center; font-weight: 500; color: var(--ink); border-inline: 1px solid var(--line); line-height: 32px; }
.ok { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.ok::before { content: ''; width: 12px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); }

/* ---------------- Teacher view ---------------- */
.tv { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.tv-frame { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-paper); overflow: hidden; }
.tv-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.tv-body { display: grid; grid-template-columns: 1fr 1fr; }
.tv-sheet { position: relative; padding: 18px 16px 18px 0; background: #FFFEF9 repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px); background-position: 0 14px; border-right: 1px solid var(--line); }
.tv-sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 40px; width: 3px; border-inline: 1px solid var(--margin); }
.tv-q { display: grid; grid-template-columns: 40px auto auto; justify-content: start; align-items: baseline; gap: 10px; height: 34px; line-height: 34px; white-space: nowrap; }
.tv-q > span:first-child { font-size: 11px; color: var(--muted); text-align: center; }
.tv-q .hand { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.tv-q .pen-note { font-size: 20px; transform: rotate(-4deg); }
.tv-gap { margin-top: 34px; }
.tv-panel { position: relative; padding: 14px; display: grid; gap: 10px; align-content: start; }
.tv-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.tv-row-flag { background: var(--warn-soft); border-color: rgba(138,83,0,.25); }
.tv-rq { font-size: 13.5px; font-weight: 600; }
.tv-rq .mono { font-weight: 500; color: var(--accent-deep); margin-right: 4px; }
.tv-rq .muted { font-weight: 400; font-size: 11px; }
.tv-row-flag .tv-rq .mono:first-child { color: var(--warn); }
.tv-why { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.stepper-empty b { color: var(--warn); }
.tv-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.tv-approve { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.co { position: absolute; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); font-family: var(--font-pen); font-style: normal; font-weight: 600; font-size: 18px; line-height: 1; z-index: 2; }
.co-1 { right: 12px; top: 10px; }
.co-2 { right: -10px; top: -10px; }
.co-3 { right: -10px; top: -10px; }
.co-4 { right: -12px; top: -12px; }
.tv-notes { display: grid; gap: 22px; }
.tv-notes li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.tv-notes .co { position: static; }
.tv-notes h3 { margin-bottom: 4px; }
.tv-notes p { font-size: 15px; color: var(--muted); }

/* ---------------- Languages ---------------- */
.langs { background: var(--bg-2); }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lang-card { margin: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #FFFEF9; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(26,32,48,.04); }
.lang-q { padding: 14px 18px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--margin); }
.lang-hand { flex: 1; padding: 6px 18px 12px 18px; font-size: 21px; line-height: 38px; background: repeating-linear-gradient(to bottom, transparent 0 37px, var(--rule) 37px 38px); background-position: 0 6px; }
.lang-card[lang='hi'] .lang-hand { font-size: 21px; }
.hand-te.lang-hand { font-size: 23px; }
.lang-card figcaption { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--line); background: var(--surface); }
.lang-card figcaption .mono { font-weight: 500; font-size: 11px; color: var(--accent-deep); letter-spacing: .1em; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.type { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.type h3 { margin-bottom: 8px; }
.type p { font-size: 14.5px; color: var(--muted); }
.type .mono { font-size: 13px; color: var(--ink); }
.type-maths { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 36px; align-items: center; }
.type-maths h3 { grid-column: 1 / -1; }
.steps-demo { display: grid; min-width: 290px; padding: 4px 14px; border-radius: 10px; background: #FFFEF9 repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px); border: 1px solid var(--line); }
.steps-demo p { display: grid; grid-template-columns: 1fr 22px 18px; align-items: center; gap: 10px; height: 36px; }
.steps-demo .hand { font-size: 19px; color: var(--blue-ink); }
.steps-demo .mono { font-family: var(--font-pen); font-size: 22px; font-weight: 600; color: var(--accent); }
.tick-sm, .cross-sm { width: 20px; height: 16px; background: center/contain no-repeat; }
.tick-sm { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 8.5l5 5.5L18 2' fill='none' stroke='%23C8322B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cross-sm { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M4 2.5l12 11M15.5 2 4.5 14' fill='none' stroke='%23C8322B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.langs-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 76ch; }

/* ---------------- Results ---------------- */
.res-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.res-copy p:not(.kicker) { color: var(--ink-2); margin: 22px 0 30px; max-width: 44ch; }
.res-card { display: block; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-paper); transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .res-card:hover { transform: translateY(-3px); box-shadow: 0 30px 70px -32px rgba(26,32,48,.45); } }
.res-card:active { transform: scale(.99); }
.res-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.res-top .muted { font-size: 13px; }
.res-avg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.res-avg b { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1.05; letter-spacing: -.02em; }
.res-avg span { font-size: 14px; color: var(--muted); }
.res-tag { font-size: 11.5px; padding: 4px 9px; border-radius: 6px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.res-h { margin: 16px 0 10px; font-size: 13px; font-weight: 600; }
.qbars { display: grid; gap: 7px; }
.qb { display: grid; grid-template-columns: 30px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; }
.qb span { color: var(--muted); }
.qb i { height: 14px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden; }
.qb i::after { content: ''; position: absolute; inset: 0; background: var(--ink-2); border-radius: 4px; transform-origin: left; transform: scaleX(var(--v)); transition: transform 900ms var(--ease-out); }
.qbars[data-pre] .qb i::after { transform: scaleX(0); }
.qb b { text-align: right; font-weight: 500; }
.qb-low i::after { background: var(--accent); }
.qb-low b, .qb-low span { color: var(--accent-deep); font-weight: 600; }
.qbars .qb:nth-child(2) i::after { transition-delay: 40ms; } .qbars .qb:nth-child(3) i::after { transition-delay: 80ms; }
.qbars .qb:nth-child(4) i::after { transition-delay: 120ms; } .qbars .qb:nth-child(5) i::after { transition-delay: 160ms; }
.qbars .qb:nth-child(6) i::after { transition-delay: 200ms; } .qbars .qb:nth-child(7) i::after { transition-delay: 240ms; }
.qbars .qb:nth-child(8) i::after { transition-delay: 280ms; }
.res-insight { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; color: var(--ink); }
.res-insight .pen-note { margin-right: 6px; font-size: 21px; }
.res-foot { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: right; }

/* ---------------- Fairness (ink) ---------------- */
.fair { background: var(--ink); color: #ECEAE4; }
.fair .kicker { color: var(--accent-light); }
.fair .kicker::before { background: var(--accent-light); }
.fair-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fcard { padding: 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.fcard svg { color: var(--accent-light); margin-bottom: 18px; }
.fcard h3 { margin-bottom: 8px; color: #fff; }
.fcard p { font-size: 14.5px; color: rgba(236,234,228,.72); }

/* ---------------- Pricing ---------------- */
.launch-tag { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 6px; border: 1.5px solid var(--accent); color: var(--accent-deep); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1.5deg); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; }
.plan-for { color: var(--muted); font-size: 14px; margin: 4px 0 22px; }
.price { font-size: 15px; color: var(--muted); padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line-2); }
.price span { font-family: var(--font-display); font-size: 46px; color: var(--ink); letter-spacing: -.02em; margin-right: 4px; line-height: 1.1; }
.price .price-talk { font-size: 40px; }
.plan-feature .price { padding-bottom: 6px; margin-bottom: 0; border-bottom: 0; }
.price-mo { font-size: 14px; color: var(--muted); margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px dashed var(--line-2); }
.price-mo b { color: var(--ink); font-weight: 600; }
.ticks { display: grid; gap: 11px; margin-bottom: 28px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 8.5l5 5.5L18 2' fill='none' stroke='%23C8322B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { margin-top: auto; }
.plan-feature { background: var(--ink); border-color: var(--ink); color: #ECEAE4; }
.plan-feature h3, .plan-feature .price span, .plan-feature .price-mo b { color: #fff; }
.plan-feature .plan-for, .plan-feature .price, .plan-feature .price-mo { color: rgba(236,234,228,.66); }
.plan-feature .price-mo { border-color: rgba(255,255,255,.16); }
.plan-feature .ticks li { color: rgba(236,234,228,.88); }
.plan-feature .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 8.5l5 5.5L18 2' fill='none' stroke='%23F28B7F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-tag { position: absolute; top: 24px; right: 22px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--accent); color: #fff; }

/* ---------------- FAQ ---------------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 21px 0; text-align: left; font-size: 17px; font-weight: 500; }
.qa button i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease; }
.qa button i::before, .qa button i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.qa button i::after { transform: rotate(90deg); }
.qa button[aria-expanded='true'] i { background: var(--accent); color: #fff; border-color: var(--accent); }
.qa button[aria-expanded='true'] i::after { transform: rotate(0); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 48px 22px 0; color: var(--muted); opacity: 0; transform: translateY(-4px); transition: opacity 240ms ease, transform 280ms var(--ease-out); }
.qa button[aria-expanded='true'] + .qa-a { grid-template-rows: 1fr; }
.qa button[aria-expanded='true'] + .qa-a p { opacity: 1; transform: none; }

/* ---------------- CTA ---------------- */
.cta { padding: 0 0 clamp(64px, 8vw, 110px); }
.cta-in { position: relative; overflow: hidden; border-radius: 24px; background: var(--accent); color: #fff; text-align: center; padding: clamp(56px, 8vw, 104px) 24px; }
.cta-rules { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-rules path { stroke: rgba(255,255,255,.16); stroke-width: 1; }
.cta-in > :not(svg) { position: relative; }
.cta h2 { font-size: clamp(38px, 5.6vw, 72px); max-width: 18ch; margin-inline: auto; line-height: 1.04; }
.cta .pen-light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C30 5.5 62 9 96 6.6S160 4.8 198 6.2' fill='none' stroke='%23FFFEF9' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cta p { margin: 20px auto 32px; max-width: 46ch; font-size: 17px; color: rgba(255,255,255,.92); }
.footer { border-top: 1px solid var(--line); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .suggest { margin: -48px 16px 0 auto; width: min(380px, calc(100% - 16px)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fair-grid { grid-template-columns: repeat(2, 1fr); }
  .tv { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-head, .problem-grid, .res-grid, .faq-grid { grid-template-columns: 1fr; }
  .problem-copy { padding-top: 0; }
  .price-grid, .lang-grid, .types { grid-template-columns: 1fr; }
  .for-note { margin-left: 0; }
  .type-maths { grid-template-columns: 1fr; }
  .steps-demo { min-width: 0; }
}
@media (max-width: 640px) {
  .tv-body { grid-template-columns: 1fr; }
  .tv-sheet { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps, .fair-grid { grid-template-columns: 1fr; }
  .suggest { margin: -28px 8px 0 8px; width: auto; }
  .sheet-stack::before { transform: rotate(-1.4deg) translate(-4px, 6px); }
  .sheet-stack::after { transform: rotate(1deg) translate(4px, 3px); }
  .plan { padding: 24px; }
  .for li { font-size: 19px; }
  .sheet-note { position: static; margin: 6px 4px 0; text-align: right; }
}
.stepper b.mono { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.tv-foot .mono { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
