/* Кейс 7 — static demo of an AI-tutor platform. Airy, borderless, budget-clean. */

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/caveat-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/demos/case-7/assets/fonts/caveat-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafc;
  --surface: #ffffff;
  --line: #e8e8f0;
  --ink: #17171f;
  --text: #2a2a3a;
  --text2: #4a4a5a;
  --muted: #7a7a8c;
  --accent: #6c5ce7;
  --accent-hover: #5a4bd4;
  --accent-deep: #4e3fd3;
  --accent-soft: #efecfd;
  --dark: #14141c;
  --dark2: #26262e;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --orange: #ff8a4c;
  --blue: #3b82f6;
  --sans: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --display: "Unbounded Variable", "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --hand: "Caveat Variable", "Caveat", cursive;
  --r-btn: 10px;
  --r-card: 18px;
  --shadow-float: 0 8px 30px rgba(23, 23, 31, 0.08);
  --shadow-soft: 0 6px 24px rgba(23, 23, 31, 0.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { margin: 0 auto; width: 100%; max-width: 1152px; padding: 0 24px; }
.display { font-family: var(--display); }
.hand { font-family: var(--hand); }
.muted { color: var(--muted); }
.text2 { color: var(--text2); }
.ink { color: var(--ink); }
.accent { color: var(--accent); }
.accent-deep { color: var(--accent-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-btn);
  padding: 15px 32px; font-size: 16px; font-weight: 600;
  transition: background-color .18s, transform .18s, box-shadow .18s, color .18s;
  text-align: center;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--dark2); }
.btn-secondary { background: var(--surface); color: var(--text2); box-shadow: var(--shadow-soft); }
.btn-secondary:hover:not(:disabled) { color: var(--ink); box-shadow: var(--shadow-float); }
.btn-white { background: #fff; color: var(--accent-deep); }
.btn-white:hover:not(:disabled) { background: var(--accent-soft); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-xs { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-full { width: 100%; }
.btn-link { background: none; border: none; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.btn-link:hover { color: var(--ink); }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-btn); padding: 7px 14px;
  font-size: 13px; font-weight: 700;
}
.chip-soft { background: var(--accent-soft); color: var(--accent-deep); }
.chip-warn { background: rgba(245, 158, 11, .12); color: var(--warn); }
.chip-err { background: rgba(239, 68, 68, .1); color: var(--err); }
.chip-ok { background: rgba(34, 197, 94, .14); color: var(--ok); }
.chip-dark { background: var(--ink); color: #fff; font-family: ui-monospace, monospace; }
.chip-muted { background: #f4f4f8; color: var(--text2); font-weight: 600; }

/* ---------- cards (borderless) ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.card-hover { transition: transform .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.fill-violet { background: #efecfd; }
.fill-orange { background: #fff1e8; }
.fill-green { background: #e9f9ef; }
.fill-blue { background: #e8f4ff; }
.fill-pink { background: #fde8f0; }
.fill-cream { background: #fdf6e3; }
.fill-gray { background: #f4f4f8; }

/* ---------- inputs ---------- */
.input {
  width: 100%; border: none; border-radius: var(--r-btn);
  background: #f4f4f8; color: var(--text);
  padding: 13px 16px; font-size: 15px; font-weight: 500;
  transition: box-shadow .15s, background-color .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--accent); }
textarea.input { min-height: 220px; resize: vertical; line-height: 1.7; }
label.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text2); }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; left: 16px; right: 16px; top: 16px; z-index: 50;
  transition: transform .3s;
}
.navbar.hidden-up { transform: translateY(-140%); }
.navbar-inner {
  margin: 0 auto; max-width: 1152px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border-radius: 16px;
  padding: 14px 24px; box-shadow: var(--shadow-float);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.logo span { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a, .nav-links button { background: none; border: none; padding: 0; font-size: 15px; font-weight: 700; color: var(--text2); }
.nav-links a:hover, .nav-links button:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 40px; height: 40px; border: none; border-radius: 10px; background: #f4f4f8; color: var(--text2); place-items: center; }
.nav-mobile { display: none; margin: 8px auto 0; max-width: 1152px; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-float); flex-direction: column; gap: 4px; }
.nav-mobile.open { display: flex; }
.nav-mobile a, .nav-mobile button { text-align: left; background: none; border: none; border-radius: 10px; padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--text2); }
.nav-mobile a:hover, .nav-mobile button:hover { background: var(--bg); }

/* ---------- app header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.app-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.app-header-right { display: flex; align-items: center; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-points { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text2); }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: 52px; line-height: 1.22; color: var(--ink); margin: 22px 0 0;
}
.hero h1 .hop { display: inline-block; color: var(--accent); animation: hop 2.6s ease-in-out infinite; }
.hero h1 .hand-line { display: block; font-family: var(--hand); font-weight: 700; color: var(--accent-deep); font-size: 62px; line-height: 1.15; margin-top: 6px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-mascot { display: flex; justify-content: center; }
.hero-mascot img { width: 100%; max-width: 430px; animation: wave 5s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(23, 23, 31, .18)); }

.chalkboard {
  position: relative; margin-top: 30px; max-width: 560px;
  transform: rotate(-1deg);
  border: 8px solid #8a5a33; border-radius: 22px;
  background: #24443c; padding: 24px 32px;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .5);
}
.chalkboard p { font-family: var(--hand); font-size: 26px; line-height: 1.5; color: #f6f3ea; }
.chalkboard .chalk { position: absolute; bottom: 12px; right: 28px; width: 48px; height: 10px; border-radius: 999px; background: rgba(246, 243, 234, .9); }
.chalkboard .chalk2 { position: absolute; bottom: 16px; right: 96px; width: 24px; height: 8px; border-radius: 999px; background: rgba(255, 215, 215, .7); }

.float-symbols { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-symbols span {
  position: absolute; font-family: var(--display); font-weight: 600;
  color: var(--accent); opacity: .08; animation: float 8s ease-in-out infinite;
}

/* ---------- sections ---------- */
.section { padding: 90px 0; position: relative; }
.how-mascot { position: absolute; left: max(8px, calc(50% - 700px)); top: 130px; width: 170px; animation: float 10s ease-in-out infinite; filter: drop-shadow(0 16px 28px rgba(23, 23, 31, .14)); }
@media (max-width: 1400px) { .how-mascot { display: none; } }
.section-heading { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.section-heading .rule { display: flex; align-items: center; gap: 24px; width: 100%; }
.section-heading .rule::before, .section-heading .rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--r-btn);
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text2);
  box-shadow: var(--shadow-soft); white-space: nowrap;
}
.section-heading h2 { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1.25; color: var(--ink); max-width: 760px; letter-spacing: -.01em; }
.section-heading .sub { max-width: 640px; color: var(--text2); font-size: 17px; }

.subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject-card { display: flex; align-items: center; gap: 16px; padding: 20px; text-align: left; }
.subject-card .ic { color: var(--accent-deep); flex-shrink: 0; }
.subject-card b { display: block; color: var(--ink); font-size: 16px; }
.subject-card small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 36px; text-align: center; }
.step + .step { border-left: 1px solid var(--line); }
.step .ic { color: var(--accent-deep); }
.step h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.step p { font-size: 15px; line-height: 1.7; color: var(--text2); }

.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.demo-tab { border: none; border-radius: var(--r-btn); padding: 10px 20px; font-size: 14px; font-weight: 700; background: var(--surface); color: var(--text2); box-shadow: var(--shadow-soft); transition: background-color .15s, color .15s; }
.demo-tab.active { background: var(--ink); color: #fff; }
.demo-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #f4f4f8; border-radius: var(--r-card); padding: 36px; }
.demo-task { display: flex; flex-direction: column; gap: 16px; background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-soft); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.hint-card { background: var(--surface); border-radius: var(--r-card); border-left: 4px solid var(--accent); padding: 18px 20px; box-shadow: var(--shadow-float); }
.hint-card .eyebrow { color: var(--accent-deep); }
.hint-card p { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.hint-empty { border-radius: var(--r-card); background: rgba(255, 255, 255, .6); padding: 24px; font-size: 14px; color: var(--muted); }
.student-bubble { align-self: flex-end; background: var(--accent-soft); border-radius: var(--r-card); padding: 12px 20px; font-size: 14px; font-weight: 600; }
.verdict { display: flex; gap: 10px; align-items: flex-start; background: rgba(34, 197, 94, .1); border-radius: var(--r-card); padding: 18px 20px; font-size: 14px; line-height: 1.6; }
.verdict .ic { color: var(--ok); margin-top: 2px; flex-shrink: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { display: flex; flex-direction: column; gap: 18px; border-radius: 28px; padding: 34px; transition: transform .2s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-card .emoji { font-size: 36px; line-height: 1; }
.feature-card h3 { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.feature-card p { font-size: 15px; line-height: 1.7; color: var(--text2); }

.reg-band {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--accent); color: #fff; border-radius: var(--r-card);
  padding: 20px 26px; transition: background-color .18s;
}
.reg-band:hover { background: var(--accent-hover); }
.reg-band b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.reg-band .arr { font-size: 24px; }

.calm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; }
.plan.popular { box-shadow: var(--shadow-float); transform: translateY(-20px); padding-top: 44px; padding-bottom: 44px; background: linear-gradient(180deg, #fff 0%, #fbfaff 100%); }
.plan .pop-tag { position: absolute; top: -14px; left: 32px; background: var(--accent); color: #fff; border-radius: var(--r-btn); padding: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.plan h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.plan .price b { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.plan .price small { color: var(--muted); font-size: 14px; }
.plan .tagline { margin-top: 8px; font-size: 14px; color: var(--text2); }
.plan ul { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.plan li .ic { color: var(--accent-deep); margin-top: 3px; flex-shrink: 0; }
.plan .btn { margin-top: 28px; }
.plan .old { color: var(--muted); text-decoration: line-through; font-size: 17px; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; padding: 20px 24px; text-align: left; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-q .plus { color: var(--accent-deep); font-size: 20px; transition: transform .2s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; font-size: 14.5px; line-height: 1.7; color: var(--text2); }

.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; background: #f4f4f8; border-radius: 28px; padding: 32px; }
.contact-ok { max-width: 560px; margin: 0 auto; background: #e9f9ef; border-radius: 28px; padding: 24px 32px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ok); }

.cta-band { position: relative; background: var(--dark); border-radius: 18px 18px 32px 32px; padding: 84px 32px; text-align: center; }
.cta-band h2 { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.35; color: #fff; max-width: 720px; margin: 0 auto; }
.cta-band p { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.cta-band .btn { margin-top: 30px; }
.cta-mascot { position: absolute; left: -30px; top: -70px; width: 190px; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

.footer { background: var(--surface); padding: 48px 0 0; margin-top: 40px; box-shadow: 0 -1px 0 var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col b { color: var(--ink); font-size: 14px; }
.footer-col a, .footer-col button { background: none; border: none; padding: 0; text-align: left; color: var(--text2); font-size: 14px; }
.footer-col a:hover, .footer-col button:hover { color: var(--ink); }
.footer-note { max-width: 300px; color: var(--muted); font-size: 14px; }
.footer-bottom { margin-top: 40px; padding: 22px 0; box-shadow: 0 -1px 0 var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 64px 24px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; box-shadow: var(--shadow-float); }
.auth-card h1 { font-size: 24px; font-weight: 800; color: var(--ink); }
.auth-card .sub { margin-top: 8px; font-size: 14px; color: var(--text2); }
.auth-card form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text2); }
.auth-switch a { color: var(--accent-deep); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.demo-login { margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---------- cabinet ---------- */
.cabinet { display: flex; flex-direction: column; gap: 28px; padding: 40px 0 64px; }
.greet { background: #f4f4f8; border-radius: var(--r-card); padding: 32px; }
.greet h1 { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--ink); }
.greet p { margin-top: 8px; max-width: 640px; color: var(--text2); }
.greet-nav { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.greet-nav a { background: var(--surface); border-radius: var(--r-btn); padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--text2); box-shadow: var(--shadow-soft); transition: color .15s, box-shadow .15s; }
.greet-nav a:hover { color: var(--ink); box-shadow: var(--shadow-float); }

.cabinet-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 18px; padding: 30px; }
.tile .ic-box { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; }
.tile b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tile small { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.tile .open { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-deep); opacity: 0; transition: opacity .2s; }
.tile:hover .open { opacity: 1; }

.side-card { padding: 24px; }
.side-card h3 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.side-card .hint { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.daily { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.daily a { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text2); }
.daily a:hover { color: var(--ink); }
.daily .dot { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; background: #f4f4f8; color: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.daily .done .dot { background: var(--ok); color: #fff; box-shadow: none; }
.daily .done span.lbl { color: var(--muted); text-decoration: line-through; }

.mascot-card { background: linear-gradient(135deg, var(--accent), #8f7bff); border-radius: var(--r-card); padding: 24px; color: #fff; display: flex; gap: 16px; align-items: center; }
.mascot-card img { width: 92px; flex-shrink: 0; animation: hop 3.2s ease-in-out infinite; }
.mascot-card h3 { font-family: var(--display); font-size: 16px; font-weight: 600; }
.mascot-card p { margin-top: 6px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.mascot-card .btn { margin-top: 12px; }

.banner-ok { background: rgba(34, 197, 94, .1); color: var(--ok); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; font-weight: 700; }
.banner-warn { background: rgba(245, 158, 11, .1); color: var(--warn); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; font-weight: 700; }
.banner-err { background: rgba(239, 68, 68, .08); color: var(--err); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.banner-soft { background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; font-weight: 700; }

.back-band { display: flex; align-items: center; justify-content: space-between; background: var(--accent); color: #fff; border-radius: var(--r-card); padding: 16px 24px; font-family: var(--display); font-size: 15px; font-weight: 600; transition: background-color .18s; }
.back-band:hover { background: var(--accent-hover); }

.tool-page { display: flex; flex-direction: column; gap: 28px; padding: 44px 0 72px; }
.tool-head h1 { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 14px; }
.tool-head h1 .ic-box { width: 44px; height: 44px; border-radius: 12px; background: rgba(108, 92, 231, .18); color: var(--accent-deep); display: grid; place-items: center; flex-shrink: 0; }
.tool-head p { margin-top: 12px; max-width: 660px; color: var(--text2); }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; text-align: left; border: none; }
.pick-card .ic-box { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.pick-card b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.pick-card small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.pick-card .go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent-deep); }

.topics { max-width: 680px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.topic-row { display: flex; align-items: center; gap: 20px; padding: 22px 24px; text-align: left; border: none; width: 100%; }
.topic-row .num { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 800; background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0; }
.topic-row.mastered .num { background: rgba(34, 197, 94, .15); color: var(--ok); }
.topic-row .body { flex: 1; }
.topic-row b { display: block; font-family: var(--display); font-size: 15.5px; font-weight: 600; color: var(--ink); }
.topic-row .bar { display: block; margin-top: 9px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.topic-row .bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.topic-row small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.topic-row .arr { color: var(--muted); flex-shrink: 0; }

.run { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.run-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text2); flex-wrap: wrap; }
.run-meta .right { display: flex; align-items: center; gap: 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.task-card { padding: 30px; }
.task-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-card .content { margin-top: 16px; font-size: 18px; line-height: 1.7; }
.task-card .hints { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.hint-inline { border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-btn); padding: 12px 16px; font-size: 14px; line-height: 1.6; }
.hint-inline b { color: var(--accent-deep); font-size: 11.5px; letter-spacing: .06em; margin-right: 8px; }
.choices { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.choice { border: none; border-radius: var(--r-btn); background: #f4f4f8; padding: 13px 16px; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--text2); transition: background-color .15s, box-shadow .15s; }
.choice:hover { background: #eeeef4; }
.choice.selected { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.feedback { margin-top: 22px; border-radius: var(--r-btn); padding: 18px 20px; }
.feedback.ok { background: rgba(34, 197, 94, .1); }
.feedback.bad { background: rgba(239, 68, 68, .08); }
.feedback .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; }
.feedback.ok .head { color: var(--ok); }
.feedback.bad .head { color: var(--err); }
.feedback p { margin-top: 8px; font-size: 14px; line-height: 1.65; }
.feedback .btn { margin-top: 16px; }

.result-hero { padding: 34px; text-align: center; }
.result-hero .score { margin-top: 14px; font-family: var(--display); font-size: 54px; font-weight: 600; line-height: 1; color: var(--ink); }
.result-hero .mark { margin-top: 16px; }
.result-hero p { margin-top: 14px; font-size: 14px; color: var(--text2); }
.review { display: flex; flex-direction: column; gap: 12px; }
.review-card { padding: 22px 24px; }
.review-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-card .content { margin-top: 10px; font-size: 15px; }
.review-card .mine { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.review-card .sol { margin-top: 12px; background: #f4f4f8; border-radius: var(--r-btn); padding: 12px 16px; font-size: 13.5px; line-height: 1.65; color: var(--text2); }

.paywall { padding: 36px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.paywall .emoji { font-size: 34px; }
.paywall p { max-width: 620px; line-height: 1.7; color: var(--text2); }

.essay-report { display: flex; flex-direction: column; gap: 14px; }
.criterion { padding: 22px 24px; }
.criterion .top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.criterion b { color: var(--ink); font-size: 15px; }
.criterion p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--text2); }
.expert { padding: 24px; }
.expert b { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.expert p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--text2); }
.expert ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.expert li { background: #f4f4f8; border-radius: var(--r-btn); padding: 10px 16px; font-size: 14px; }

.gdz-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 190px; border: none; border-radius: var(--r-card); background: #f4f4f8; padding: 32px; text-align: center; transition: background-color .15s; width: 100%; }
.gdz-drop:hover { background: #eeeef4; }
.gdz-drop .ic-box { width: 48px; height: 48px; border-radius: 12px; background: rgba(108, 92, 231, .18); color: var(--accent-deep); display: grid; place-items: center; }
.gdz-drop b { color: var(--ink); font-size: 15.5px; }
.gdz-drop small { color: var(--muted); font-size: 13px; }
.gdz-preview { max-height: 320px; border-radius: var(--r-card); object-fit: contain; background: #fff; box-shadow: var(--shadow-soft); align-self: center; }
.gdz-solution { padding: 26px; }
.gdz-solution .body { margin-top: 12px; white-space: pre-wrap; line-height: 1.75; font-size: 15px; }

.theory-section { display: flex; flex-direction: column; gap: 22px; }
.theory-section h2 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); }
.theory-section h2 .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.theory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theory-card { display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.theory-card h3 { font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.theory-card p { font-size: 14.5px; line-height: 1.75; color: var(--text2); }
.theory-card .pin { margin-top: auto; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-btn); padding: 12px 16px; font-size: 13px; line-height: 1.6; }

.subscribe-head { display: flex; flex-direction: column; gap: 12px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; }
.agree { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: var(--r-btn); padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--text2); box-shadow: var(--shadow-soft); }
.agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.agree a { color: var(--accent-deep); font-weight: 700; }

.onboard { max-width: 680px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 28px; }
.onboard-dots { display: flex; justify-content: center; gap: 8px; }
.onboard-dots span { height: 8px; width: 40px; border-radius: 999px; background: var(--line); }
.onboard-dots span.on { background: var(--accent); }
.onboard-card { padding: 36px; }
.onboard-card.center { text-align: center; }
.onboard-card .wave-emoji { width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; font-size: 30px; }
.onboard-card h1 { margin-top: 22px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink); }
.onboard-card .lead { margin-top: 14px; line-height: 1.7; color: var(--text2); }
.onboard-card .btn { margin-top: 26px; }
.onboard-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.onboard-sections .item { background: #f4f4f8; border-radius: var(--r-card); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.onboard-sections .ic { color: var(--accent-deep); margin-top: 2px; }
.onboard-sections b { display: block; color: var(--ink); font-size: 14.5px; }
.onboard-sections small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.docs-page { max-width: 760px; margin: 0 auto; padding: 60px 0 80px; display: flex; flex-direction: column; gap: 18px; }
.docs-page h1 { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--ink); }
.docs-page p { line-height: 1.75; color: var(--text2); font-size: 15px; }

/* ---------- floating support & demo ribbon ---------- */
.support { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.support-panel { width: 290px; background: var(--surface); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-float); }
.support-panel h3 { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); }
.support-panel p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--text2); }
.support-btn { display: inline-flex; align-items: center; gap: 10px; border: none; border-radius: 999px; background: var(--ink); color: #fff; padding: 14px 20px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-float); transition: transform .15s; }
.support-btn:hover { transform: scale(1.05); }

.demo-ribbon {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(23, 23, 31, .82); backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, .92); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  max-width: calc(100vw - 140px);
}
.demo-ribbon .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--warn); flex-shrink: 0; }

.category-tag {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--surface); border-radius: 999px; padding: 8px 18px;
  font-size: 12.5px; font-weight: 700; color: var(--text2); box-shadow: var(--shadow-soft);
}
.category-tag b { color: var(--accent-deep); }

.wish-row { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; width: 100%; }
.wish-row .input { flex: 1; }
.wish-ok { font-size: 14px; font-weight: 700; color: var(--ok); }

/* ---------- animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes wave { 0%, 100% { transform: rotate(-2deg) translateY(0); } 25% { transform: rotate(2.5deg) translateY(-6px); } 50% { transform: rotate(-1.5deg) translateY(2px); } 75% { transform: rotate(2deg) translateY(-4px); } }
@keyframes hop { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(-10px) rotate(-6deg); } 80% { transform: translateY(0); } 90% { transform: translateY(-4px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .45s ease both; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mascot { order: -1; }
  .hero-mascot img { max-width: 300px; }
  .hero h1 { font-size: 38px; }
  .hero h1 .hand-line { font-size: 46px; }
  .features-grid, .subjects-grid, .pick-grid, .theory-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .step + .step { border-left: none; }
  .demo-board { grid-template-columns: 1fr; padding: 22px; }
  .cabinet-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .plan.popular { transform: none; }
}
@media (max-width: 620px) {
  .features-grid, .subjects-grid, .pick-grid, .theory-grid, .pricing-grid, .tiles, .calm-grid, .onboard-sections { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 31px; }
  .hero h1 .hand-line { font-size: 38px; }
  .section-heading h2 { font-size: 27px; }
  .chalkboard p { font-size: 21px; }
  .cta-band h2 { font-size: 24px; }
  .cta-mascot { width: 120px; left: -14px; top: -46px; }
  .greet h1 { font-size: 24px; }
  .tool-head h1 { font-size: 26px; }
  .demo-ribbon { font-size: 11px; padding: 7px 12px; }
}
