/* =========================================================
   IELTSSS — IELTS prep platform
   Inspired by the GoPrep.gg visual language, original design.
   ========================================================= */

:root {
  --blue: #135ef2;
  --blue-600: #0f4fd8;
  --blue-700: #0b47c4;
  --blue-100: #eaf1fe;
  --blue-200: #d3e2fd;
  --red: #ff4b3c;
  --red-600: #e63b2d;
  --red-bright: #ff4b3c;
  --red-100: #ffece9;
  --yellow: #f3b105;
  --yellow-100: #fff4d6;
  --green: #12a15f;
  --green-100: #e7f8ef;
  --violet: #7c5cfc;
  --violet-100: #f0ecff;
  --ink: #181f2a;
  --ink-2: #232b3a;
  --muted: #667085;
  --muted-2: #8b95a5;
  --line: #e6eaf0;
  --line-strong: #d5dbe5;
  --bg: #fafbfd;
  --bg-2: #f5f8fd;
  --card: #ffffff;
  --surface-2: #f8fafd;
  --surface-3: #f3f6fb;
  --surface-4: #f2f5f9;
  --surface-hover: #fbfcff;
  --track: #eef2f8;
  --muted-strong: #4a5568;
  --muted-3: #c1c8d4;
  --body-text: #354052;
  --yellow-soft: #fffaeb;
  --yellow-soft-2: #fff4d6;
  --yellow-text: #7a5900;
  --red-text: #a32c20;
  --green-text: #0d6b40;
  --violet-text: #5b3fd1;
  --green-200: #b9e7ce;
  --red-200: #ffc7c1;
  --yellow-200: #f1dfae;
  --font-head: "Days One", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 8px 24px -20px rgba(16, 24, 40, 0.35);
  --shadow: 0 18px 46px -34px rgba(16, 24, 40, 0.5);
  --shadow-lg: 0 40px 80px -48px rgba(11, 71, 196, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; }
img { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue-200); color: var(--blue-700); }

:focus-visible {
  outline: 3px solid rgba(19, 94, 242, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id], main[id], div[id] { scroll-margin-top: 84px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Buttons & pills ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  --btn-bg: var(--red);
  box-shadow: 0 10px 22px -12px rgba(232, 56, 43, 0.85);
}
.btn--primary:hover { --btn-bg: var(--red-600); }

.btn--blue {
  --btn-bg: var(--blue);
  box-shadow: 0 10px 22px -14px rgba(19, 94, 242, 0.9);
}
.btn--blue:hover { --btn-bg: var(--blue-600); }

.btn--ghost {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: #b7c1d1; background: var(--card); }

.btn--soft {
  --btn-bg: var(--blue-100);
  --btn-fg: var(--blue-700);
}
.btn--soft:hover { --btn-bg: var(--blue-200); }

.btn--white {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}
.btn--white:hover { --btn-bg: #f2f6ff; }

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
  background: var(--blue-100);
  color: var(--blue-700);
  white-space: nowrap;
}
.badge .icon { width: 15px; height: 15px; }
.badge--green { background: var(--green-100); color: var(--green-text); }
.badge--red { background: var(--red-100); color: var(--red-text); }
.badge--yellow { background: var(--yellow-100); color: var(--yellow-text); }
.badge--violet { background: var(--violet-100); color: var(--violet-text); }
.badge--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }
.badge--gray { background: #f2f4f7; color: var(--muted-strong); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 4px var(--red-100);
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--tint { background: linear-gradient(180deg, #fff 0%, #f4f8ff 40%, #fafbfd 100%); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* =========================================================
   Landing header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 251, 253, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  box-shadow: 0 8px 30px -26px rgba(16, 24, 40, 0.35);
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__img { width: 40px; height: 40px; }
.logo__text {
  font-family: var(--font-head);
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.logo__text b { color: var(--blue); font-weight: 400; }
.logo__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted-strong);
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover { background: var(--card); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.lang-pill:hover { background: var(--card); color: var(--ink); }
.lang-pill .icon { width: 15px; height: 15px; }

.header-login {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.header-login:hover { background: var(--card); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 12px 0 18px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid #f0f3f8;
  font-weight: 800;
}
.mobile-nav .btn { margin-top: 14px; }
.mobile-nav .icon { width: 17px; height: 17px; color: var(--muted-2); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 54px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px; right: -160px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 94, 242, 0.11), rgba(19, 94, 242, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -280px; left: -220px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 177, 5, 0.12), rgba(243, 177, 5, 0) 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 52px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  border: 1px solid #dfe7f3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted-strong);
  box-shadow: var(--shadow-xs);
}
.hero-badge .badge { min-height: 24px; padding: 2px 9px; font-size: 11px; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--blue);
  z-index: 1;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 4px;
  height: 12px;
  border-radius: 6px;
  background: rgba(243, 177, 5, 0.45);
  z-index: -1;
}
.hero-sub {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.hero-note .icon { width: 16px; height: 16px; color: var(--green); }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.avatars { display: flex; }
.avatar-xs {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-left: -10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.avatar-xs:first-child { margin-left: 0; }
.avatar-xs:nth-child(2) { background: var(--yellow-100); color: var(--yellow-text); }
.avatar-xs:nth-child(3) { background: var(--red-100); color: var(--red-text); }
.avatar-xs:nth-child(4) { background: var(--green-100); color: var(--green); }
.avatar-xs--more { background: var(--ink); color: #fff; }
.proof-text { font-size: 13px; line-height: 1.45; color: var(--muted); }
.proof-text strong { display: block; color: var(--ink); font-size: 14px; }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); vertical-align: -2px; }
.stars .icon { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* Hero visual */
.hero-stage {
  position: relative;
  min-height: 514px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot {
  position: absolute;
  top: -18px;
  left: 6px;
  width: 112px;
  transform: rotate(-11deg);
  filter: drop-shadow(0 18px 20px rgba(243, 177, 5, 0.26));
  animation: bob 7s ease-in-out infinite;
  z-index: 3;
}
.hero-app {
  position: relative;
  z-index: 2;
  width: min(424px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-lg), 0 2px 8px rgba(16, 24, 40, 0.04);
  transform: rotate(-1.3deg);
}
.hero-app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-app__label { font-size: 12px; font-weight: 800; color: var(--muted); }
.hero-app__label strong {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 1px;
}
.hero-app__body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f3f7ff, #eef4ff);
}
.hero-app__ring { flex: none; }
.hero-app__ring .ring { --size: 118px; }
.hero-app__ring .ring__value { font-size: 34px; }
.hero-app__ring .ring__label { font-size: 9px; }
.hero-skill { margin-bottom: 11px; }
.hero-skill:last-child { margin-bottom: 0; }
.hero-skill__top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-strong);
  margin-bottom: 4px;
}
.hero-skill__top b { color: var(--ink); }
.hero-skill__track { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.hero-skill__track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.hero-app__chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 52px;
  margin-top: 16px;
  padding: 0 2px;
}
.hero-app__chart i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: var(--blue-100);
}
.hero-app__chart i:nth-child(6),
.hero-app__chart i:nth-child(7) { background: var(--blue); }
.hero-app__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
}

.float-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px -30px rgba(16, 24, 40, 0.55);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  animation: float 6.5s ease-in-out infinite;
}
.float-card small { display: block; font-size: 10px; font-weight: 700; color: var(--muted); }
.float-card .icon { width: 16px; height: 16px; }
.float-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
}
.float-card--streak {
  top: 28px;
  right: -16px;
  animation-delay: -1.4s;
}
.float-card--ai {
  bottom: 58px;
  left: -26px;
  animation-delay: -3.6s;
}
.float-card--goal {
  bottom: -6px;
  right: 6px;
  animation-delay: -2.2s;
}
.float-card--streak .float-icon { background: var(--yellow-100); color: var(--yellow-text); }
.float-card--ai .float-icon { background: var(--violet-100); color: var(--violet); }
.float-card--goal .float-icon { background: var(--green-100); color: var(--green); }

.hero-sticker {
  position: absolute;
  right: 8px;
  top: 118px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 20px;
  background: var(--red-bright);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 0 14px 24px -16px rgba(232, 56, 43, 0.8);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes bob {
  0%, 100% { transform: rotate(-11deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-8px); }
}

/* =========================================================
   Landing sections
   ========================================================= */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 13px 0;
}
.ticker__row {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee 34s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.ticker span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feature-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .feature-grid--three { grid-template-columns: 1fr; }
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.feature::after {
  content: "";
  position: absolute;
  width: 170px; height: 170px;
  right: -80px; top: -80px;
  border-radius: 50%;
  background: var(--tint, var(--blue-100));
  opacity: 0.55;
  pointer-events: none;
}
.feature__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--tint, var(--blue-100));
  color: var(--tone, var(--blue));
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { position: relative; z-index: 1; font-size: 23px; }
.feature__soon { position: relative; z-index: 1; align-self: flex-start; min-height: 22px; padding: 1px 8px; font-size: 9.5px; }
.feature p { position: relative; z-index: 1; color: var(--muted); font-size: 15px; }
.feature__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--tone, var(--blue));
}
.feature__link .icon { width: 15px; height: 15px; transition: transform 0.18s; }
.feature:hover .feature__link .icon { transform: translateX(3px); }

.feature--blue { --tint: var(--blue-100); --tone: var(--blue-700); }
.feature--red { --tint: var(--red-100); --tone: #b3301f; }
.feature--yellow { --tint: var(--yellow-100); --tone: #916700; }
.feature--green { --tint: var(--green-100); --tone: #0d7d4a; }
.feature--violet { --tint: var(--violet-100); --tone: #5b3fd1; }

/* Skills tabs */
.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.skill-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: 0.18s;
}
.skill-tab .icon { width: 17px; height: 17px; }
.skill-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.skill-tab[aria-selected="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px -14px rgba(19, 94, 242, 0.8);
}
.skill-panel {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}
.skill-panel__copy { padding: 34px; }
.skill-panel__copy h3 { font-size: 29px; }
.skill-panel__copy > p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.check-list { display: grid; gap: 10px; margin-top: 20px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted-strong);
}
.check-list .icon { width: 19px; height: 19px; color: var(--green); margin-top: 1px; }
.skill-panel__cta { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.skill-panel__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 34px;
  background: var(--panel-bg, var(--blue-100));
  overflow: hidden;
}
.skill-panel__visual::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.skill-visual-icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  border-radius: 22px;
  background: var(--card);
  color: var(--panel-tone, var(--blue));
  box-shadow: var(--shadow-sm);
}
.skill-visual-icon .icon { width: 32px; height: 32px; }
.skill-visual-stats { position: relative; z-index: 1; display: flex; gap: 30px; }
.skill-visual-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--panel-ink, var(--blue-700));
}
.skill-visual-stat span { font-size: 12px; font-weight: 800; color: var(--panel-muted, #5d6b80); }
.skill-panel--reading { --panel-bg: #eaf1fe; --panel-tone: #135ef2; --panel-ink: #0b47c4; --panel-muted: #4f6b9a; }
.skill-panel--listening { --panel-bg: #fff4d6; --panel-tone: #a87700; --panel-ink: #7a5900; --panel-muted: #8a7440; }
.skill-panel--writing { --panel-bg: #ffece9; --panel-tone: #c33a2a; --panel-ink: #a32c20; --panel-muted: #9a625a; }
.skill-panel--speaking { --panel-bg: #e7f8ef; --panel-tone: #0d7d4a; --panel-ink: #0a6640; --panel-muted: #4e7a63; }

/* Plan split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split__copy h2 { font-size: clamp(30px, 3.6vw, 44px); }
.split__copy > p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }
.split__list { display: grid; gap: 16px; margin-top: 26px; }
.split__item { display: flex; gap: 13px; align-items: flex-start; }
.split__item-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.split__item-icon .icon { width: 20px; height: 20px; }
.split__item b { display: block; font-size: 15.5px; margin-bottom: 1px; }
.split__item span { font-size: 13.5px; color: var(--muted); }
.split__cta { margin-top: 28px; }

.plan-preview {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.plan-preview::before {
  content: "";
  position: absolute;
  inset: -14px 32px auto;
  height: 120px;
  border-radius: 30px;
  background: var(--blue-100);
  z-index: -1;
}
.plan-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.plan-preview__head h3 { font-size: 18px; }
.plan-preview__head span { font-size: 11px; font-weight: 800; color: var(--muted); }
.plan-preview__list { display: grid; gap: 8px; margin-top: 14px; }
.plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface-2);
}
.plan-row__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.plan-row__icon .icon { width: 18px; height: 18px; }
.plan-row b { display: block; font-size: 13px; }
.plan-row span { display: block; font-size: 11px; color: var(--muted); }
.plan-row__check {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #d5dbe5;
  color: transparent;
  flex: none;
}
.plan-row__check .icon { width: 13px; height: 13px; }
.plan-row.is-done .plan-row__check { background: var(--green); border-color: var(--green); color: #fff; }
.plan-row.is-done b { text-decoration: line-through; color: var(--muted); }
.plan-preview__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-700);
}

/* Stats band */
.stats-band {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 42px 44px;
  border-radius: 32px;
  background: linear-gradient(135deg, #1667ff 0%, #0b47c4 100%);
  color: #fff;
  overflow: hidden;
}
.stats-band::before,
.stats-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.stats-band::before { width: 280px; height: 280px; right: -90px; top: -150px; }
.stats-band::after { width: 180px; height: 180px; left: 28%; bottom: -120px; }
.stat { position: relative; z-index: 1; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1;
}
.stat span { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.74); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
}
.step:nth-child(2) .step__num { background: var(--blue); }
.step:nth-child(3) .step__num { background: var(--red); }
.step h3 { margin-top: 18px; font-size: 21px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.testimonial__stars { display: flex; gap: 3px; color: var(--yellow); }
.testimonial__stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.testimonial blockquote { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted-strong); }
.testimonial__person { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px; }
.testimonial__person .avatar-xs { margin: 0; width: 40px; height: 40px; font-size: 13px; }
.testimonial__person b { display: block; font-size: 14px; }
.testimonial__person span { display: block; font-size: 11.5px; color: var(--muted); }
.testimonial__band {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--blue);
  background: var(--blue-100);
  border-radius: 10px;
  padding: 4px 10px;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}
.price--pro {
  border-color: transparent;
  background: linear-gradient(145deg, #1667ff, #0b3fae);
  color: #fff;
  box-shadow: 0 30px 60px -40px rgba(11, 71, 196, 0.8);
}
.price--pro::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -100px; bottom: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.price__tag {
  position: absolute;
  top: 22px; right: 22px;
}
.price h3 { font-size: 23px; }
.price__desc { margin-top: 6px; font-size: 13px; color: var(--muted); }
.price--pro .price__desc { color: rgba(255, 255, 255, 0.72); }
.price__amount { display: flex; align-items: flex-end; gap: 6px; margin: 22px 0 4px; }
.price__amount b {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}
.price__amount span { font-size: 13px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.price--pro .price__amount span { color: rgba(255, 255, 255, 0.7); }
.price__note { font-size: 11.5px; color: var(--muted-2); min-height: 18px; }
.price--pro .price__note { color: rgba(255, 255, 255, 0.6); }
.price .btn { margin: 20px 0; }
.price__features { display: grid; gap: 10px; font-size: 13.5px; font-weight: 700; }
.price__features li { display: flex; gap: 9px; align-items: flex-start; }
.price__features .icon { width: 17px; height: 17px; color: var(--green); margin-top: 2px; flex: none; }
.price__features .icon--muted { color: #c1c8d4 !important; }
.price--pro .price__features .icon { color: #9ff3c6; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.faq-q .icon {
  width: 20px; height: 20px;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
  flex: none;
}
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a p { padding: 0 40px 20px 2px; color: var(--muted); font-size: 14.5px; }

/* CTA */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 24px;
  padding: 50px 54px;
  border-radius: 34px;
  background: linear-gradient(135deg, #1667ff, #0b47c4);
  color: #fff;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.cta-banner__copy { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); max-width: 560px; }
.cta-banner p { margin-top: 12px; max-width: 460px; color: rgba(255, 255, 255, 0.78); font-size: 15.5px; }
.cta-banner .btn { margin-top: 24px; }
.cta-art { position: relative; z-index: 1; min-height: 190px; }
.cta-art svg { position: absolute; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.16)); }
.cta-art .art-circle { width: 116px; right: 6%; top: 6px; }
.cta-art .art-star { width: 120px; right: 38%; top: 64px; }
.cta-art .art-tri { width: 104px; right: 8%; bottom: -4px; }

/* Footer */
.site-footer {
  margin-top: 84px;
  padding: 54px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.footer-brand p {
  max-width: 250px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: 0.18s;
}
.socials a:hover { background: var(--blue-100); border-color: var(--blue-200); color: var(--blue); }
.socials .icon { width: 17px; height: 17px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 13px; font-weight: 700; color: var(--muted-strong); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.footer-bottom p { max-width: 760px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 16px; flex: none; }
.footer-legal a { font-weight: 700; }
.footer-legal a:hover { color: var(--ink); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Free AI tools page
   ========================================================= */
.tools-hero { padding: 48px 0 10px; }
.tools-hero h1 { font-size: clamp(34px, 4.6vw, 56px); max-width: 900px; }
.tools-hero p { max-width: 720px; margin-top: 16px; color: var(--muted); font-size: 17px; }
.tools-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  max-width: 900px;
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid #f1dfae;
  border-radius: 14px;
  background: var(--yellow-soft);
  font-size: 12.5px;
  color: var(--yellow-text);
}
.tools-note .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 22px; }
.filter-row .skill-tab { cursor: pointer; }
.filter-row .skill-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.filter-count { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { padding: 22px; gap: 0; }
.tool-card::after { display: none; }
.tool-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-card .feature__icon { width: 48px; height: 48px; border-radius: 15px; }
.tool-card .feature__icon .icon { width: 23px; height: 23px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 8px; }
.tool-tags .badge { min-height: 22px; padding: 1px 8px; font-size: 9.5px; }
.tool-card h3 { font-size: 21px; margin-bottom: 7px; }
.tool-card p { font-size: 13.5px; line-height: 1.55; }
.tool-meta {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.tool-meta .icon { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 1px; }
.tool-card .feature__link { margin-top: 14px; padding-top: 0; }
.tool-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.tool-bottom .step { padding: 22px; }
.tool-bottom .step h3 { font-size: 17px; margin-top: 14px; }
.tool-bottom .step p { font-size: 12.5px; }
.tool-bottom .step__num { width: 36px; height: 36px; font-size: 13px; }
.tools-cta { margin-top: 42px; }
.tools-cta .cta-banner { grid-template-columns: minmax(0, 1fr) auto; }
.cta-banner__action { position: relative; z-index: 1; }
.cta-banner__action .btn { margin-top: 0; white-space: nowrap; }
.tools-footer { padding: 26px 0; border-top: 1px solid var(--line); background: var(--card); }
.tools-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; color: var(--muted); }
.tools-footer a { font-weight: 800; color: var(--ink); }

/* =========================================================
   Mocks library
   ========================================================= */
.mocks-section { margin-top: 36px; }
.mocks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.mocks-head .badge { margin-bottom: 10px; }
.mocks-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.mocks-head p { max-width: 620px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.mocks-head .btn { flex: none; }
.mock-card--locked {
  background: linear-gradient(145deg, #fbfcff, #f6f8fc);
  border-style: dashed;
}
.mock-card--locked::after { opacity: 0.28; }
.mock-card--locked:hover { transform: none; box-shadow: none; }
.feature__link[aria-disabled="true"] { color: var(--muted-2); cursor: default; }
.feature__link[aria-disabled="true"] .icon { transition: none; }
.feature:hover .feature__link[aria-disabled="true"] .icon { transform: none; }

/* =========================================================
   Shared app layout (dashboard)
   ========================================================= */
.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--card);
  overflow-y: auto;
}
.sidebar .logo { padding: 3px 10px 16px; }
.side-nav { display: grid; gap: 3px; }
.side-label {
  padding: 18px 12px 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-strong);
  transition: background 0.15s, color 0.15s;
}
.side-link .icon { width: 19px; height: 19px; color: var(--muted-2); transition: color 0.15s; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.is-active { background: var(--blue-100); color: var(--blue-700); font-weight: 900; }
.side-link.is-active .icon { color: var(--blue); }
.side-link__badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--red-bright);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.sidebar__spacer { flex: 1; min-height: 18px; }
.exam-mini {
  position: relative;
  margin: 10px 4px 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #1667ff, #0b3fae);
  color: #fff;
  overflow: hidden;
}
.exam-mini::after {
  content: "";
  position: absolute;
  width: 110px; height: 110px;
  right: -46px; top: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.exam-mini span { position: relative; z-index: 1; display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); }
.exam-mini b { position: relative; z-index: 1; display: block; margin-top: 4px; font-family: var(--font-head); font-size: 27px; font-weight: 400; line-height: 1; }
.exam-mini small { position: relative; z-index: 1; display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.72); }
.exam-mini .progress { position: relative; z-index: 1; height: 4px; margin-top: 12px; background: rgba(255, 255, 255, 0.22); }
.exam-mini .progress span { background: var(--card); height: 100%; display: block; border-radius: 99px; }

.sidebar-backdrop { display: none; }

.app-main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted-strong);
  cursor: pointer;
  flex: none;
  transition: 0.16s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn__dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-bright);
  border: 1.5px solid #fff;
}
.topbar__menu { display: none; }
.topbar-search {
  position: relative;
  width: min(360px, 38%);
}
.topbar-search .icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}
.topbar-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.topbar-search input::placeholder { color: var(--muted-2); }
.topbar-search input:focus { border-color: #a8c2f7; box-shadow: 0 0 0 3px rgba(19, 94, 242, 0.1); }
.topbar__right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--yellow-100);
  color: var(--yellow-text);
  font-size: 12.5px;
  font-weight: 900;
}
.streak-pill .icon { width: 16px; height: 16px; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.topbar-user:hover { background: var(--card); border-color: var(--line); }
.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2b7bff, #0b47c4);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  flex: none;
}
.topbar-user b { display: block; font-size: 12.5px; line-height: 1.2; }
.topbar-user span { display: block; font-size: 10px; color: var(--muted); }
.topbar-user .icon { width: 14px; height: 14px; color: var(--muted-2); }

.dash-main { max-width: 1400px; margin-inline: auto; padding: 26px 28px 70px; }
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.page-head h1 { font-size: clamp(27px, 3vw, 36px); }
.page-head p { margin-top: 5px; color: var(--muted); font-size: 13.5px; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; flex: none; max-width: 100%; }
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.date-pill .icon { width: 16px; height: 16px; }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
}
.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-xs);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px 0;
}
.panel__head h2 { font-size: 18px; }
.panel__head h3 { font-size: 16px; }
.panel__head p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.panel__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--blue);
}
.panel__link .icon { width: 14px; height: 14px; }

.ring {
  --p: 60;
  --size: 132px;
  --ring-color: var(--blue);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--p) * 1%), #e9eff9 0);
  flex: none;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--card);
}
.ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1;
}
.ring__value { display: block; font-family: var(--font-head); font-size: 36px; font-weight: 400; letter-spacing: -0.03em; }
.ring__label { display: block; margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* Daily plan */
.plan-card { padding-bottom: 8px; }
.plan-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 20px 16px;
}
.plan-card__head h2 { font-size: 19px; }
.plan-card__head p { margin-top: 3px; font-size: 12px; color: var(--muted); }
.plan-card__ring { margin-left: auto; }
.plan-card__ring .ring { --size: 74px; }
.plan-card__ring .ring__value { font-size: 21px; }
.plan-card__ring .ring__label { font-size: 7px; margin-top: 2px; }
.plan-card__ring .ring::after { inset: 6px; }
.plan-card__meta { display: flex; gap: 7px; margin-left: auto; }
.task-list { display: grid; gap: 2px; padding: 0 10px 12px; }
.task {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 13px;
  transition: background 0.16s;
}
.task:hover { background: var(--surface-2); }
.task + .task { border-top: 1px solid #f2f5f9; border-radius: 0 0 13px 13px; }
.task-check {
  width: 24px; height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #d5dbe5;
  border-radius: 8px;
  background: var(--card);
  color: transparent;
  cursor: pointer;
  transition: 0.18s;
}
.task-check .icon { width: 14px; height: 14px; }
.task-check:hover { border-color: var(--blue); }
.task.is-done .task-check { background: var(--green); border-color: var(--green); color: #fff; }
.task__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--tint, var(--blue-100));
  color: var(--tone, var(--blue-700));
}
.task__icon .icon { width: 19px; height: 19px; }
.task__body { min-width: 0; }
.task__body b { display: block; font-size: 12.8px; line-height: 1.3; }
.task__body span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.task.is-done .task__body b { text-decoration: line-through; color: var(--muted-2); }
.task__time {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted-2);
}
.task__go {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  cursor: pointer;
  border: 0;
  transition: 0.16s;
}
.task__go:hover { background: var(--blue-100); color: var(--blue); }
.task__go .icon { width: 14px; height: 14px; }
.plan-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 18px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.plan-card__foot .icon { width: 15px; height: 15px; color: var(--yellow); }
.plan-card__foot b { color: var(--ink); }

/* Goal card */
.goal-card {
  position: relative;
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #1b6bff, #0b3fae);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 50px -36px rgba(11, 63, 174, 0.9);
}
.goal-card::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  right: -80px; top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.goal-card__head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-card__head span { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.goal-card__body { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.goal-ring { position: relative; width: 138px; height: 138px; flex: none; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.goal-ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
}
.goal-ring__center b { font-family: var(--font-head); font-size: 38px; font-weight: 400; letter-spacing: -0.03em; }
.goal-ring__center span { display: block; margin-top: 4px; font-size: 8.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.goal-copy { min-width: 0; }
.goal-copy b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 400; line-height: 1.1; }
.goal-copy p { margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.66); }
.goal-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9.5px;
  font-weight: 800;
  color: #b7ffd9;
}
.goal-trend .icon { width: 12px; height: 12px; }
.goal-exam { position: relative; z-index: 1; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.goal-exam__row { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.goal-exam__row b { color: #fff; }
.progress { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.goal-exam .progress { margin-top: 7px; height: 4px; background: rgba(255, 255, 255, 0.18); }
.goal-exam .progress span { background: var(--card); }
.goal-card .btn { position: relative; z-index: 1; margin-top: 14px; min-height: 36px; font-size: 11.5px; width: 100%; }

/* Skill cards */
.skills-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.skill-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-card__top { display: flex; align-items: center; gap: 9px; }
.skill-card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--tint, var(--blue-100));
  color: var(--tone, var(--blue));
}
.skill-card__icon .icon { width: 17px; height: 17px; }
.skill-card__top b { font-size: 12px; }
.skill-card__band { display: flex; align-items: baseline; gap: 3px; margin-top: 12px; }
.skill-card__band b { font-family: var(--font-head); font-size: 27px; font-weight: 400; line-height: 1; }
.skill-card__band span { font-size: 10px; font-weight: 800; color: var(--muted-2); }
.trend { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 9.5px; font-weight: 900; }
.trend--up { color: var(--green); }
.trend--down { color: var(--red); }
.trend .icon { width: 11px; height: 11px; }
.skill-card .progress { height: 5px; margin-top: 10px; background: var(--track); }
.skill-card__meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; font-weight: 700; color: var(--muted-2); }

/* Chart / activity */
.activity-card { padding-bottom: 18px; }
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface-3);
}
.seg button {
  padding: 4px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.seg button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-xs); }
.chart-wrap { padding: 12px 20px 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 9px; height: 126px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-bar {
  position: relative;
  width: 100%;
  max-width: 30px;
  height: var(--h, 20%);
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #cfe0fd, #eaf1fe);
  transition: height 0.6s var(--ease), background 0.2s;
}
.chart-col.is-today .chart-bar { background: linear-gradient(180deg, #ff6a5e, var(--red)); }
.chart-col:hover .chart-bar { background: linear-gradient(180deg, #5b8dff, var(--blue)); }
.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  left: 50%; bottom: calc(100% + 5px);
  transform: translateX(-50%) translateY(4px);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
}
.chart-col:hover .chart-bar::after { opacity: 1; transform: translateX(-50%); }
.chart-labels { display: flex; gap: 9px; margin-top: 6px; padding-bottom: 10px; }
.chart-labels span { flex: 1; text-align: center; font-size: 9.5px; font-weight: 800; color: var(--muted-2); }
.chart-labels span.is-today { color: var(--red); }
.chart-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 12px 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.chart-foot b { color: var(--ink); }
.chart-foot .progress { flex: 1; margin: 0 4px; height: 5px; }

/* Heatmap */
.heatmap { display: flex; gap: 4px; padding: 4px 20px 0; }
.heatmap__cols { display: flex; gap: 4px; }
.heatmap__col { display: grid; gap: 4px; }
.heatmap__cell {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--surface-4);
}
.heatmap__cell[data-level="1"] { background: #d7e5ff; }
.heatmap__cell[data-level="2"] { background: #a9c7ff; }
.heatmap__cell[data-level="3"] { background: #5b8dff; }
.heatmap__cell[data-level="4"] { background: var(--blue); }
.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 20px 16px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted-2);
}
.heatmap-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* Continue learning */
.continue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px 18px;
}
.continue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  transition: 0.18s;
}
.continue-card:hover { border-color: var(--blue-200); background: var(--surface-hover); }
.continue-card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--tint, var(--blue-100));
  color: var(--tone, var(--blue));
}
.continue-card__icon .icon { width: 17px; height: 17px; }
.continue-card b { font-size: 12px; line-height: 1.3; }
.continue-card span { font-size: 9.5px; color: var(--muted); }
.continue-card .progress { height: 4px; margin-top: 4px; }
.continue-card .progress span { background: var(--tone, var(--blue)); }
.continue-card__pct { position: absolute; top: 15px; right: 14px; font-size: 9px; font-weight: 900; color: var(--muted-2); }

/* Streak stats, side stack, exam checklist */
.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}
.streak-stats > div {
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--surface-2);
}
.streak-stats span { display: block; font-size: 8.5px; font-weight: 800; color: var(--muted-2); }
.streak-stats b { display: block; margin-top: 2px; font-family: var(--font-head); font-size: 17px; font-weight: 400; color: var(--ink); }
.side-stack { display: grid; gap: 12px; align-content: start; }
.exam-check-panel { padding-bottom: 6px; }
.exam-check { display: grid; gap: 2px; padding: 10px 12px 12px; }
.exam-check li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted-strong);
}
.exam-check li .icon { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.exam-check li.is-done { color: var(--muted-2); text-decoration: line-through; }
.exam-check li.is-done .icon { color: var(--green); }

/* Table */
.table-wrap { overflow-x: auto; padding: 8px 20px 16px; }
table.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted-strong); }
.table tr:last-child td { border-bottom: 0; }
.table td b { color: var(--ink); font-size: 12px; }
.table .cell-test { display: flex; align-items: center; gap: 8px; }
.table .cell-test i {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue);
  flex: none;
}
.table .cell-test .icon { width: 14px; height: 14px; }
.table .score { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.result-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
}
.result-chip--good { background: var(--green-100); color: var(--green-text); }
.result-chip--mid { background: var(--yellow-100); color: var(--yellow-text); }
.result-chip--low { background: var(--red-100); color: var(--red-text); }

/* Promo */
.promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe7fb;
  border-radius: 20px;
  background: linear-gradient(135deg, #f2f7ff, #eaf1fe);
  overflow: hidden;
}
.promo__eyes {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--blue);
}
.promo__eyes::before,
.promo__eyes::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 10px; height: 13px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 3px #fff;
}
.promo__eyes::before { left: 11px; }
.promo__eyes::after { right: 11px; }
.promo__eyes i {
  position: relative;
  z-index: 1;
  width: 3px; height: 6px;
  border-radius: 3px;
  background: var(--ink);
  margin: 2px 3.5px 0;
  display: inline-block;
}
.promo b { display: block; font-size: 12.5px; }
.promo p { margin-top: 2px; font-size: 10px; color: var(--muted); }
.promo .btn { margin-left: auto; min-height: 32px; padding: 0 11px; font-size: 10px; flex: none; }

/* =========================================================
   Practice / test page
   ========================================================= */
.test-page { background: var(--bg-2); min-height: 100vh; }
.test-top {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.test-top__inner {
  width: min(1320px, calc(100% - 40px));
  height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.test-top .logo__img { width: 34px; height: 34px; }
.test-top .logo__text { font-size: 19px; }
.test-crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.test-crumb .icon { width: 14px; height: 14px; }
.test-crumb b { color: var(--ink); }
.test-top__right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--surface-3);
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.timer .icon { width: 16px; height: 16px; color: var(--muted); }
.timer.is-low { background: var(--red-100); color: var(--red); animation: pulse 1.4s infinite; }
.timer.is-low .icon { color: var(--red); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 56, 43, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(232, 56, 43, 0); }
}
.test-main { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.test-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 16px;
}
.test-head h1 { font-size: clamp(23px, 2.6vw, 31px); }
.test-head p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.test-skill-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.test-skill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.test-skill .icon { width: 14px; height: 14px; }
.test-skill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.test-skill.is-locked { opacity: 0.55; cursor: not-allowed; }
.test-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; max-width: 100%; }

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 64px;
}
.passage-card {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  scrollbar-width: thin;
}
.passage-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.passage-card__meta span { color: var(--muted-2); letter-spacing: 0.06em; }
.passage-card h2 { font-size: clamp(24px, 2.4vw, 31px); line-height: 1.12; }
.passage-card__info { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.passage-card__info .badge { min-height: 24px; font-size: 9.5px; padding: 2px 9px; }
.passage-card p { margin-bottom: 13px; font-size: 14px; line-height: 1.72; color: var(--body-text); }
.passage-card p:last-child { margin-bottom: 0; }
.passage-card strong { color: var(--ink); }

.questions-col { display: grid; gap: 12px; }
.questions-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.questions-head b { font-size: 13px; }
.questions-head span { font-size: 10.5px; color: var(--muted); }
.questions-head .progress { flex: 1; height: 5px; margin-left: auto; max-width: 120px; }
.question-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.question-card.is-answered { border-color: var(--blue-200); }
.question-card.is-missing { border-color: #f2b8b2; box-shadow: 0 0 0 3px rgba(232, 56, 43, 0.08); }
.question-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-num {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  flex: none;
}
.q-type {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.question-card h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 800; line-height: 1.45; letter-spacing: 0; }
.q-options { display: grid; gap: 7px; margin-top: 12px; }
.q-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-strong);
  cursor: pointer;
  transition: 0.15s;
}
.q-option:hover { border-color: var(--blue-200); background: var(--surface-hover); }
.q-option input { position: absolute; opacity: 0; pointer-events: none; }
.q-option__key {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--surface-4);
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
  transition: 0.15s;
}
.q-option:has(input:checked) { border-color: var(--blue); background: var(--blue-100); color: var(--blue-700); }
.q-option:has(input:checked) .q-option__key { background: var(--blue); color: #fff; }
.tfng { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.tfng label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-strong);
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.tfng label:hover { border-color: var(--blue-200); background: var(--surface-hover); }
.tfng input { position: absolute; opacity: 0; pointer-events: none; }
.tfng label:has(input:checked) { border-color: var(--blue); background: var(--blue-100); color: var(--blue-700); }
.q-input {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  transition: 0.15s;
}
.q-input:focus { border-color: #a8c2f7; box-shadow: 0 0 0 3px rgba(19, 94, 242, 0.1); }
.submit-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.submit-card .btn { width: 100%; }
.submit-card p { margin-top: 8px; text-align: center; font-size: 10px; color: var(--muted-2); }
.test-back { display: none; }

/* Results */
.results { max-width: 940px; margin: 0 auto; padding: 26px 0 80px; }
.results[hidden] { display: none; }
.result-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.result-ring { --size: 154px; --ring-color: var(--blue); }
.result-ring .ring__value { font-size: 44px; }
.result-ring .ring__label { font-size: 8px; }
.result-hero h1 { font-size: clamp(28px, 3.4vw, 38px); }
.result-hero p { margin-top: 7px; color: var(--muted); font-size: 13.5px; }
.result-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.result-stat b { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 400; }
.result-stat span { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.breakdown { margin-top: 18px; display: grid; gap: 10px; }
.breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px; }
.breakdown-head h2 { font-size: 20px; }
.breakdown-head span { font-size: 11px; font-weight: 800; color: var(--muted); }
.review-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.review-card__top { display: flex; align-items: flex-start; gap: 10px; }
.review-status {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  flex: none;
}
.review-status--ok { background: var(--green-100); color: var(--green-text); }
.review-status--bad { background: var(--red-100); color: var(--red); }
.review-status .icon { width: 15px; height: 15px; }
.review-card h3 { font-family: var(--font-body); font-size: 13.5px; font-weight: 800; line-height: 1.45; letter-spacing: 0; }
.review-card__answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-left: 38px; font-size: 11.5px; }
.review-answer { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-weight: 800; }
.review-answer--ok { background: var(--green-100); color: var(--green-text); }
.review-answer--bad { background: var(--red-100); color: var(--red-text); }
.review-answer--neutral { background: var(--surface-3); color: var(--muted); }
.review-explain { margin-top: 9px; padding-left: 38px; font-size: 11.5px; color: var(--muted); }
.review-explain b { color: var(--ink); }

/* =========================================================
   Vocabulary
   ========================================================= */
.vocab-page { min-height: 100vh; background: linear-gradient(180deg, #f4f8ff, #fafbfd 46%); }
.vocab-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1000px, calc(100% - 40px));
  margin-inline: auto;
  padding: 20px 0;
}
.vocab-top .logo__img { width: 36px; height: 36px; }
.vocab-top .logo__text { font-size: 20px; }
.vocab-top__right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.vocab-wrap { width: min(880px, calc(100% - 40px)); margin-inline: auto; padding: 14px 0 70px; }
.vocab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.vocab-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.vocab-head p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.vocab-progress-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.vocab-progress-card b { font-size: 11px; }
.vocab-progress-card span { font-size: 10px; color: var(--muted); }
.vocab-progress-card .progress { width: 150px; height: 7px; }

.vocab-ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  background: linear-gradient(120deg, #f3f8ff 0%, #ffffff 64%);
  box-shadow: var(--shadow-xs);
}
.vocab-ai__copy { display: flex; align-items: flex-start; gap: 10px; }
.vocab-ai__copy > .badge { flex: none; margin-top: 1px; }
.vocab-ai h2 { font-size: 16px; letter-spacing: -0.01em; }
.vocab-ai p { margin-top: 3px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.vocab-ai p b { color: var(--ink); }
.vocab-ai__links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.vocab-ai__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.vocab-ai__link:hover { border-color: var(--blue-200); color: var(--blue); background: var(--blue-100); }
.vocab-ai__link .icon { width: 14px; height: 14px; color: var(--blue); flex: none; }

.flash-stage { perspective: 1400px; margin: 26px 0 18px; }
.flashcard {
  position: relative;
  width: 100%;
  min-height: 340px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  outline: none;
  border-radius: 30px;
}
.flashcard:focus-visible {
  outline: 3px solid rgba(19, 94, 242, 0.55);
  outline-offset: 5px;
}
.flashcard.is-flipped { transform: rotateY(180deg); }
.flash-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flash-face--front::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  right: -90px; top: -110px;
  border-radius: 50%;
  background: var(--blue-100);
}
.flash-face--back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #1667ff, #0b3fae);
  color: #fff;
  border-color: transparent;
}
.flash-word {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.flash-pos {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flash-pron {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.flash-hint {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
}
.flash-hint .icon { width: 14px; height: 14px; vertical-align: -2px; }
.flash-translation {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  text-align: center;
}
.flash-example {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}
.flash-example span { display: block; margin-top: 5px; font-size: 11.5px; font-style: normal; color: rgba(255, 255, 255, 0.62); }
.flash-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.flash-actions .btn { min-width: 150px; }
.flash-count { text-align: center; margin-top: 12px; font-size: 11px; font-weight: 800; color: var(--muted-2); }

.vocab-summary {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow);
}
.vocab-summary[hidden] { display: none; }
.vocab-summary__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: var(--green-100);
  color: var(--green);
}
.vocab-summary__icon .icon { width: 34px; height: 34px; }
.vocab-summary h2 { font-size: 30px; }
.vocab-summary p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.vocab-summary__stats { display: flex; justify-content: center; gap: 36px; margin: 22px 0; }
.vocab-summary__stats b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 400; }
.vocab-summary__stats span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.vocab-summary .btn { margin: 0 4px; }

.word-list { margin-top: 36px; }
.word-list__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.word-list__head h2 { font-size: 22px; }
.word-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.word-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 11.5px;
}
.word-item b { display: block; font-size: 12.5px; }
.word-item span { display: block; font-size: 10px; color: var(--muted); }
.word-item__status {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: transparent;
  flex: none;
}
.word-item__status .icon { width: 12px; height: 12px; }
.word-item.is-known .word-item__status { background: var(--green); border-color: var(--green); color: #fff; }

/* =========================================================
   Dialogs & toast
   ========================================================= */
dialog.modal {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(16, 24, 40, 0.55);
}
dialog.modal::backdrop { background: rgba(16, 24, 40, 0.45); backdrop-filter: blur(4px); }
.modal__inner { padding: 24px; }
.modal__head { display: flex; align-items: flex-start; gap: 12px; }
.modal__head h2 { font-size: 21px; }
.modal__head p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.modal__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.modal__close .icon { width: 16px; height: 16px; }
.modal__body { margin-top: 18px; }
.modal__foot { display: flex; gap: 8px; margin-top: 20px; }
.modal__foot .btn { flex: 1; }

.cue-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.cue-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 900; }
.cue-card ul { margin-top: 10px; display: grid; gap: 6px; }
.cue-card li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--muted-strong); }
.cue-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.speak-timer {
  display: grid;
  place-items: center;
  height: 88px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--blue-100);
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--blue-700);
}
.speak-timer.is-rec { background: var(--red-100); color: var(--red); }
.speak-note { margin-top: 8px; font-size: 10.5px; color: var(--muted); text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 16px; height: 16px; color: #9ff3c6; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .hero-grid { gap: 30px; }
  .hero-stage { min-height: 480px; }
  .float-card--ai { left: -8px; }
  .float-card--streak { right: 0; }
  .hero-sticker { display: none; }
  .dash-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .table-wrap { padding-inline: 14px; }
  .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 14px; }
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    transform: translateX(-104%);
    transition: transform 0.28s var(--ease);
    box-shadow: 0 30px 70px -20px rgba(16, 24, 40, 0.3);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop.is-open { display: block; }
  .topbar__menu { display: grid; }
  .topbar { padding-inline: 20px; }
  .dash-main { padding-inline: 20px; }
  .skills-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skill-panel { grid-template-columns: 1fr; }
  .skill-panel__visual { min-height: 220px; }
  .cta-banner { padding: 42px; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .lang-pill, .header-login { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 680px; }
  .hero-stage { min-height: 460px; width: min(520px, 100%); margin-inline: auto; }
  .hero-app { width: min(410px, 100%); }
  .hero-proof { max-width: 540px; }
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split__copy { order: 2; }
  .plan-preview { order: 1; width: min(560px, 100%); margin-inline: auto; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px; }
  .steps { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px; }
  .cta-art { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 420px; }
  .footer-bottom { flex-direction: column; gap: 14px; }

  .dash-grid { grid-template-columns: 1fr; }
  .goal-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
  .goal-card__body { margin-top: 0; }
  .goal-exam { grid-column: 1 / -1; margin-top: 0; }
  .goal-card .btn { grid-column: 1 / -1; margin-top: 0; width: fit-content; }
  .goal-card__head { grid-column: 1 / -1; }
  .skills-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-grid { grid-template-columns: 1fr; }
  .passage-card { position: static; max-height: none; }
  .test-back { display: grid; }
  .test-top .logo__text, .test-crumb span { display: none; }
  .word-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 62px 0; }
  .header-inner { height: 66px; }
  .hero { padding-top: 38px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-stage { min-height: 430px; }
  .hero-app { transform: none; }
  .hero-mascot { width: 86px; left: -4px; top: -14px; }
  .float-card { transform: scale(0.92); }
  .float-card--ai { bottom: 34px; left: -6px; }
  .float-card--goal { bottom: -10px; }
  .float-card--streak { top: 12px; }
  .stats-band { padding: 26px; gap: 22px; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 11px; }
  .skill-panel__copy { padding: 24px; }
  .skill-panel__visual { padding: 24px; min-height: 190px; }
  .skill-visual-stats { gap: 22px; }
  .skill-visual-stat b { font-size: 28px; }
  .skill-panel__cta { flex-direction: column; align-items: stretch; }
  .skill-panel__cta .btn { width: 100%; }
  .plan-preview { padding: 18px; }
  .price { padding: 24px; }
  .cta-banner { padding: 30px 24px; border-radius: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 30px; }

  .topbar { height: 64px; gap: 8px; }
  .topbar-search { display: none; }
  .topbar-user span, .topbar-user .icon { display: none; }
  .topbar-user b { display: none; }
  .topbar { padding-inline: 14px; }
  .dash-main { padding: 18px 14px 60px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-head__actions { width: 100%; }
  .date-pill { display: none; }
  .page-head__actions .btn { width: 100%; }
  .panel__head { padding: 16px 16px 0; }
  .plan-card__head { padding: 16px 16px 14px; }
  .task__time { display: none; }
  .skills-row { gap: 9px; }
  .skill-card { padding: 13px; }
  .continue-grid { grid-template-columns: 1fr; padding: 12px 16px 16px; }
  .chart-wrap { padding-inline: 16px; }
  .heatmap { padding-inline: 16px; }
  .heatmap__cell { width: 9px; height: 9px; }
  .goal-card { grid-template-columns: 1fr; text-align: left; }
  .goal-card__body { gap: 16px; }
  .goal-ring { width: 126px; height: 126px; }
  .goal-card__head, .goal-exam, .goal-card .btn { grid-column: auto; }
  .goal-card .btn { width: 100%; }
  .goal-exam { margin-top: 4px; }

  .test-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .test-top__inner { width: calc(100% - 24px); height: 60px; }
  .test-main { width: calc(100% - 24px); }
  .test-top .logo { gap: 7px; }
  .test-top .logo__img { width: 30px; height: 30px; }
  .test-top .logo__text { display: none; }
  .test-crumb { border: 0; padding-left: 0; }
  .test-top .btn--ghost { display: none; }
  .timer { height: 34px; font-size: 13px; }
  .passage-card { padding: 20px; }
  .passage-card p { font-size: 13.5px; }
  .question-card { padding: 16px; }
  .result-hero { grid-template-columns: 1fr; text-align: center; padding: 24px; }
  .result-ring { margin-inline: auto; }
  .result-stats { justify-content: center; }
  .result-actions { justify-content: center; }
  .review-card__answers, .review-explain { padding-left: 0; }
  .word-grid { grid-template-columns: 1fr; }
  .vocab-head { flex-direction: column; align-items: flex-start; }
  .vocab-progress-card { width: 100%; }
  .vocab-progress-card .progress { margin-left: auto; width: 100px; }
  .flash-actions { flex-direction: column; width: 100%; }
  .flash-actions .btn { width: 100%; }
  .flashcard { min-height: 320px; }
  .vocab-summary { padding: 26px 20px; }
  .vocab-summary__stats { gap: 24px; }
  .mocks-head { flex-direction: column; align-items: stretch; }
  .mocks-head .btn { align-self: flex-start; }
  .filter-count { margin-left: 0; width: 100%; }
  .vocab-ai { grid-template-columns: 1fr; }
  .vocab-ai__links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 11px; }
  .hero-badge .badge { display: none; }
  .hero-proof { gap: 10px; }
  .proof-text { font-size: 11.5px; }
  .avatar-xs { width: 32px; height: 32px; }
  .float-card { font-size: 10.5px; padding: 7px 10px; }
  .float-card small { font-size: 8.5px; }
  .float-icon { width: 28px; height: 28px; border-radius: 8px; }
  .float-card--ai { left: 0; bottom: 26px; }
  .float-card--streak { right: -2px; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 22px; border-radius: 24px; }
  .skill-tab { padding: 0 12px; font-size: 12.5px; min-height: 40px; }
  .skill-tabs { gap: 6px; }
  .plan-card__meta { display: none; }
  .plan-card__head { gap: 10px; }
  .plan-card__head h2 { font-size: 17px; }
  .task { padding-inline: 6px; }
  .task__icon { width: 34px; height: 34px; }
  .task__body b { font-size: 12px; }
  .topbar__right { gap: 6px; }
  .streak-pill { padding: 0 9px; }
  .cf-actions { flex-direction: column; }
  .vocab-ai__links { display: grid; grid-template-columns: 1fr 1fr; }
  .vocab-ai__link { justify-content: center; }
  .vocab-ai__copy { display: block; }
  .vocab-ai__copy > .badge { margin-bottom: 8px; }
}

/* AI plan on dashboard */
.ai-today {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #dbe7ff;
  border-radius: 20px;
  background: linear-gradient(120deg, #f3f8ff 0%, #ffffff 62%);
  box-shadow: var(--shadow-xs);
}
.ai-today__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ai-today__head h2 { margin-top: 7px; font-size: 20px; }
.ai-today__head p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.ai-today__tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ai-today__task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}
.ai-today__task:hover { border-color: var(--blue-200); }
.ai-today__task.is-done { opacity: 0.62; }
.ai-today__task.is-done b { text-decoration: line-through; }
.ai-today__task input { width: 15px; height: 15px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.ai-today__task b { display: block; font-size: 10.5px; line-height: 1.35; }
.ai-today__task span span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }

@media (max-width: 1100px) {
  .ai-today__tasks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ai-today__head { flex-direction: column; }
  .ai-today__tasks { grid-template-columns: 1fr; }
}

/* =========================================================
   Authentication
   ========================================================= */
.auth-page {
  background:
    radial-gradient(900px 500px at 12% -10%, #e6efff 0%, rgba(230, 239, 255, 0) 70%),
    radial-gradient(700px 400px at 95% 20%, #fff4d6 0%, rgba(255, 244, 214, 0) 65%),
    var(--bg);
}
.auth-top { padding: 16px 0 0; }
.auth-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 44px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 22px;
  align-items: stretch;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 660px;
  padding: 48px;
  border-radius: 32px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1667ff 0%, #0b3fae 100%);
  box-shadow: var(--shadow-lg);
}
.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.auth-aside::before { width: 340px; height: 340px; right: -120px; top: -140px; }
.auth-aside::after { width: 260px; height: 260px; left: -120px; bottom: -120px; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h1 {
  max-width: 480px;
  margin-top: 22px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.auth-aside > p {
  max-width: 460px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.65;
}
.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 700;
}
.auth-benefits li { display: flex; align-items: flex-start; gap: 10px; }
.auth-benefits .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #9ff3c6; }
.auth-demo-card {
  width: min(100%, 470px);
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.auth-demo-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.auth-demo-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}
.auth-demo-card__icon .icon { width: 17px; height: 17px; }
.auth-demo-card__head b { display: block; font-size: 12.5px; }
.auth-demo-card__head small { display: block; font-size: 10.5px; color: rgba(255, 255, 255, 0.62); }
.auth-demo-text { margin: 0; font-size: 11px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
.auth-demo-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.auth-demo-row > span { color: #9ff3c6; font-weight: 900; }
.auth-demo-row code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
}
.auth-mascot {
  position: absolute;
  right: 22px;
  bottom: 158px;
  width: 112px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.2));
  transform: rotate(8deg);
}
.auth-panel { display: grid; place-items: center; }
.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 30px 70px -60px rgba(16, 24, 40, 0.55);
}
.auth-card h2 { margin-top: 8px; font-size: 32px; letter-spacing: -0.03em; }
.auth-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.auth-tabs button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}
.auth-tabs button.is-active { background: var(--ink); color: var(--bg); }
.auth-setup {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f0d28b;
  border-radius: 12px;
  background: var(--yellow-100);
  color: var(--yellow-text);
  font-size: 11.5px;
  line-height: 1.55;
}
.auth-setup code { font-size: 10.5px; word-break: break-all; }
.auth-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #b9e7ce;
  border-radius: 12px;
  background: var(--green-100);
  font-size: 11.5px;
  color: var(--green-text);
}
.auth-session .icon { width: 15px; height: 15px; }
.auth-session__link { margin-left: auto; font-weight: 900; color: var(--green-text); text-decoration: underline; }
.field { display: block; margin-top: 16px; }
.field > span:first-child {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--card);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(19, 94, 242, 0.1);
}
.field__password { position: relative; display: block; }
.field__password input { padding-right: 48px; }
.field__eye {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.field__eye:hover { background: var(--bg-2); color: var(--ink); }
.field__eye .icon { width: 18px; height: 18px; }
.field__eye.is-active { color: var(--blue); }
.auth-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 290px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.checkline input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--blue);
}
.checkline a { color: var(--blue); font-weight: 800; text-decoration: underline; }
.auth-help { flex: none; font-size: 10.5px; font-weight: 800; color: var(--blue); }
.form-error {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #ffc7c1;
  border-radius: 10px;
  background: var(--red-100);
  color: var(--red-text);
  font-size: 11.5px;
  font-weight: 700;
}
.form-error.is-success {
  border-color: var(--green-200);
  background: var(--green-100);
  color: var(--green-text);
}
.auth-card form .btn { margin-top: 18px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-demo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-demo-buttons .btn { padding-inline: 10px; font-size: 11.5px; }
.auth-note { margin-top: 14px; font-size: 10px; line-height: 1.5; color: var(--muted-2); }
.auth-legal { margin-top: 10px; font-size: 10px; line-height: 1.5; color: var(--muted-2); }
.auth-legal a { color: var(--blue); text-decoration: underline; }

/* =========================================================
   Legal documents
   ========================================================= */
.legal-page { background: var(--card); }
.legal-top { border-bottom: 1px solid var(--line); background: var(--card); }
.legal-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
}
.legal-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 38px auto 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-nav {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.legal-nav b { display: block; margin-bottom: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.legal-nav a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}
.legal-nav a:hover { background: var(--card); color: var(--blue); }
.legal-content { min-width: 0; max-width: 820px; }
.legal-meta { font-size: 11px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.legal-content h1 { margin-top: 10px; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.08; }
.legal-content > p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.legal-doc { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.legal-doc:first-of-type { border-top: 0; }
.legal-doc h2 { font-size: 24px; margin-bottom: 12px; }
.legal-doc h3 { font-size: 15px; margin: 20px 0 6px; }
.legal-doc p,
.legal-doc li { font-size: 13px; line-height: 1.75; color: var(--muted-strong); }
.legal-doc p + p { margin-top: 10px; }
.legal-doc ul,
.legal-doc ol { margin: 8px 0 0 18px; padding: 0; }
.legal-doc li { margin-top: 4px; }
.legal-doc a { color: var(--blue); text-decoration: underline; }
.legal-warning {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #f1dfae;
  border-radius: 12px;
  background: var(--yellow-soft);
  font-size: 12px;
  line-height: 1.65;
  color: var(--yellow-text);
}
.legal-placeholder {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--yellow-soft-2);
  color: var(--yellow-text);
  font-weight: 800;
}
.legal-table { width: 100%; margin-top: 12px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.legal-table th,
.legal-table td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.legal-table code { overflow-wrap: anywhere; }
.legal-table th { background: var(--bg-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.legal-back { margin-top: 26px; }

/* =========================================================
   Cookie consent
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 36px, 1080px);
  margin-inline: auto;
  padding: 15px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 60px -30px rgba(16, 24, 40, 0.7);
}
.cookie-banner p { flex: 1; margin: 0; font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.76); }
.cookie-banner a { color: #a9c8ff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-height: 36px; padding: 0 12px; font-size: 11px; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.cookie-banner .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* =========================================================
   Mock paywall
   ========================================================= */
.mock-paywall {
  max-width: 720px;
  margin: 28px auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow);
}
.mock-paywall__icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: var(--yellow-100);
  color: var(--yellow-text);
}
.mock-paywall__icon .icon { width: 30px; height: 30px; }
.mock-paywall h1 { font-size: clamp(27px, 3.4vw, 38px); }
.mock-paywall p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.mock-paywall__list {
  display: grid;
  gap: 8px;
  max-width: 400px;
  margin: 22px auto;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
}
.mock-paywall__list li { display: flex; gap: 8px; align-items: flex-start; }
.mock-paywall__list .icon { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 2px; }
.mock-paywall__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.mock-paywall__note { margin-top: 14px; font-size: 10.5px; color: var(--muted-2); }

.test-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-2);
}
.test-legal a { font-weight: 800; color: var(--muted); text-decoration: underline; }

/* =========================================================
   AI plan builder
   ========================================================= */
.plan-page { background: var(--bg); }
.plan-top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); }
.plan-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 74px; }
.plan-hero { padding: 40px 0 8px; }
.plan-hero h1 { font-size: clamp(32px, 4.2vw, 52px); max-width: 820px; }
.plan-hero p { max-width: 700px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.plan-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 60px;
}
.plan-form-card {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.plan-form-card h2 { font-size: 20px; }
.plan-form-card > p { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.plan-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.plan-form-grid .field { margin-top: 0; }
.plan-form-grid .field--full { grid-column: 1 / -1; }
.plan-form-grid select,
.plan-form-grid input[type="date"] {
  width: 100%;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--card);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
}
.plan-form-grid select:focus,
.plan-form-grid input[type="date"]:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(19, 94, 242, 0.1);
}
.plan-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.plan-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.plan-check input { width: 12px; height: 12px; margin: 0; accent-color: var(--blue); }
.plan-check:has(input:checked) { border-color: var(--blue-200); background: var(--blue-100); color: var(--blue-700); }
.plan-api {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.plan-api summary { cursor: pointer; font-size: 11px; font-weight: 900; color: var(--ink-2); }
.plan-api p { margin-top: 7px; font-size: 10px; line-height: 1.55; color: var(--muted); }
.plan-api p a { color: var(--blue); text-decoration: underline; }
.plan-api .field { margin-top: 9px; }
.plan-api .field input { height: 40px; font-size: 11px; }
.plan-form-card .btn--block { margin-top: 16px; }
.plan-status {
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--blue-100);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--blue-700);
}
.plan-status--warn { background: var(--yellow-100); color: var(--yellow-text); }
.plan-status--error { background: var(--red-100); color: var(--red-text); }
.plan-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 9.5px;
  font-weight: 900;
  color: var(--blue);
}
.plan-ai-badge .icon { width: 13px; height: 13px; }
.plan-result { min-height: 420px; }
.plan-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: var(--card);
  text-align: center;
}
.plan-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 19px;
  background: var(--violet-100);
  color: var(--violet);
}
.plan-empty__icon .icon { width: 28px; height: 28px; }
.plan-empty h2 { font-size: 22px; }
.plan-empty p { max-width: 360px; margin: 7px auto 0; font-size: 12.5px; color: var(--muted); }
.plan-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.plan-result__head h2 { font-size: 21px; }
.plan-result__head p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.plan-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.plan-progress .progress { flex: 1; height: 7px; }
.plan-progress b { font-size: 12px; }
.plan-days { display: grid; gap: 10px; margin-top: 12px; }
.plan-day {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.plan-day__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-day__head b { font-family: var(--font-head); font-size: 15px; font-weight: 400; }
.plan-day__head span { font-size: 9.5px; font-weight: 900; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.plan-task:hover { border-color: var(--blue-200); background: var(--blue-100); }
.plan-task.is-done { opacity: 0.65; }
.plan-task.is-done .plan-task__title { text-decoration: line-through; }
.plan-task input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.plan-task__body { min-width: 0; }
.plan-task__title { display: block; font-size: 11.5px; font-weight: 900; line-height: 1.4; }
.plan-task__desc { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.plan-task__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.plan-task__meta span {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 8.5px;
  font-weight: 800;
  color: var(--muted-2);
}
.plan-result__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* =========================================================
   Pricing page
   ========================================================= */
.pricing-hero { padding: 48px 0 8px; text-align: center; }
.pricing-hero h1 { font-size: clamp(33px, 4.4vw, 52px); }
.pricing-hero p { max-width: 650px; margin: 12px auto 0; color: var(--muted); font-size: 15px; }
.pricing-wrap { padding-bottom: 64px; }
.pricing-note {
  max-width: 900px;
  margin: 18px auto 0;
  padding: 12px 15px;
  border: 1px solid #f1dfae;
  border-radius: 12px;
  background: var(--yellow-soft);
  text-align: center;
  font-size: 11px;
  color: var(--yellow-text);
}
.pricing-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.price__features .icon--muted { color: var(--muted-3); }
.pricing-faq { max-width: 820px; margin: 34px auto 0; }
.pricing-faq h2 { text-align: center; font-size: 25px; margin-bottom: 14px; }
.pricing-faq .faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 7px; padding: 0 14px; }
.pricing-faq .faq-q { padding: 13px 0; font-size: 12.5px; }
.pricing-faq .faq-a p { padding-bottom: 13px; font-size: 11.5px; }

@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .plan-layout { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 32px)); }
  .auth-aside { min-height: auto; padding: 34px; }
  .auth-aside h1 { max-width: 560px; }
  .auth-benefits { grid-template-columns: 1fr 1fr; }
  .auth-demo-card { margin-top: 24px; }
  .auth-mascot { width: 84px; bottom: 18px; opacity: 0.9; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; width: min(820px, calc(100% - 32px)); }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .legal-nav b { width: 100%; margin-bottom: 4px; }
  .legal-nav a { padding: 5px 8px; }
  .plan-layout { grid-template-columns: 1fr; }
  .plan-form-card { position: static; }
}

@media (max-width: 620px) {
  .auth-top__inner { height: 64px; }
  .auth-aside { padding: 26px 22px; border-radius: 24px; }
  .auth-aside h1 { font-size: 33px; }
  .auth-benefits { grid-template-columns: 1fr; }
  .auth-mascot { display: none; }
  .auth-card { padding: 24px; border-radius: 22px; }
  .auth-card h2 { font-size: 27px; }
  .auth-row { flex-direction: column; }
  .auth-demo-buttons { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .cookie-actions { justify-content: flex-end; }
  .mock-paywall { padding: 28px 20px; }
  .plan-form-grid { grid-template-columns: 1fr; }
  .plan-form-grid .field--full { grid-column: auto; }
  .plan-result__head { flex-direction: column; }
  .legal-top__inner { height: 64px; }
  .legal-layout { margin-top: 24px; }
  .legal-doc h2 { font-size: 21px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tools-cta .cta-banner { grid-template-columns: 1fr; }
  .cta-banner__copy { min-width: 0; }
  .cta-banner .badge { white-space: normal; }
  .cta-banner__action .btn { width: 100%; }
  .legal-top [data-plan-badge],
  .plan-top [data-plan-badge] { display: none; }
  .legal-top__inner,
  .plan-top__inner { gap: 9px; }
  .vocab-top { gap: 9px; }
  .vocab-top__right { gap: 7px; }
  .vocab-top__right .badge { display: none; }
  .test-top .test-crumb { display: none; }
  .test-top__right { gap: 6px; }
  .test-top__right .test-back { display: none; }
  .test-top__right .timer { height: 34px; padding-inline: 9px; }
  .test-top__right .btn { padding-inline: 10px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .logo__text { font-size: 20px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions > .btn { padding-inline: 12px; }
}

@media (max-width: 360px) {
  .site-header .container { width: calc(100% - 32px); }
  .site-header .header-actions > .btn { display: none; }
  .auth-top__inner { gap: 8px; }
  .auth-top .logo__text { font-size: 20px; }
  .auth-top .btn { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Theme system ? dark signature, light option
   ========================================================= */
[data-theme="dark"] {
  color-scheme: dark;
  --blue: #5b8dff;
  --blue-600: #7da5ff;
  --blue-700: #b9d4ff;
  --blue-100: rgba(91, 141, 255, 0.14);
  --blue-200: rgba(91, 141, 255, 0.28);
  --red: #ff6b5e;
  --red-600: #ff857a;
  --red-bright: #ff6b5e;
  --red-100: rgba(255, 107, 94, 0.13);
  --yellow: #f7c948;
  --yellow-100: rgba(247, 201, 72, 0.14);
  --green: #46d39a;
  --green-100: rgba(70, 211, 154, 0.13);
  --violet: #a78bfa;
  --violet-100: rgba(167, 139, 250, 0.14);
  --ink: #f4f7ff;
  --ink-2: #dbe4f5;
  --muted: #9aa9c2;
  --muted-2: #7283a1;
  --line: #1c2940;
  --line-strong: #2a3a57;
  --bg: #070b14;
  --bg-2: #0a111d;
  --card: #0f1726;
  --surface-2: #0c1422;
  --surface-3: #111c30;
  --surface-4: #0e1829;
  --surface-hover: #132039;
  --track: #1a2740;
  --muted-strong: #c2cee2;
  --muted-3: #52617c;
  --body-text: #c8d4e8;
  --yellow-soft: rgba(247, 201, 72, 0.09);
  --yellow-soft-2: rgba(247, 201, 72, 0.15);
  --yellow-text: #ffd66b;
  --red-text: #ffb0a8;
  --green-text: #8ff0bd;
  --violet-text: #c4b5ff;
  --green-200: rgba(70, 211, 154, 0.3);
  --red-200: rgba(255, 107, 94, 0.3);
  --yellow-200: rgba(247, 201, 72, 0.3);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px -20px rgba(0, 0, 0, 0.8);
  --shadow: 0 18px 46px -34px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 8% -8%, rgba(19, 94, 242, 0.2), transparent 64%),
    radial-gradient(760px 560px at 100% 2%, rgba(124, 92, 252, 0.13), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  animation: darkAurora 24s ease-in-out infinite alternate;
}

@keyframes darkAurora {
  0% { background-position: 0 0, 100% 0; }
  100% { background-position: 46px 34px, calc(100% - 34px) 22px; }
}

html.theme-changing body,
html.theme-changing body *,
html.theme-changing body *::before,
html.theme-changing body *::after {
  transition: background-color 0.42s ease, border-color 0.42s ease, color 0.42s ease,
    fill 0.42s ease, stroke 0.42s ease, box-shadow 0.42s ease !important;
}

/* Theme switch */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s var(--ease), border-color 0.18s, color 0.18s, background 0.18s;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--blue-200);
  color: var(--blue);
}
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(247, 201, 72, 0.34), transparent 66%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
[data-theme="dark"] .theme-toggle {
  border-color: rgba(247, 201, 72, 0.26);
  color: var(--yellow);
}
[data-theme="dark"] .theme-toggle::before {
  opacity: 1;
  animation: toggleGlow 4.8s ease-in-out infinite;
}
@keyframes toggleGlow {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.08); }
}
.theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), opacity 0.28s ease;
}
.theme-toggle__icon .icon { width: 18px; height: 18px; }
.theme-toggle__icon--sun { opacity: 0; transform: rotate(-80deg) scale(0.4); }
.theme-toggle__icon--moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(80deg) scale(0.4); }

/* Signature dark surfaces */
[data-theme="dark"] .site-header {
  background: rgba(7, 11, 20, 0.78);
  border-bottom-color: rgba(28, 41, 64, 0.7);
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(9, 15, 27, 0.94);
  border-color: var(--line);
  box-shadow: 0 10px 34px -24px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .topbar {
  background: rgba(8, 14, 25, 0.86);
}
[data-theme="dark"] .test-top {
  background: rgba(8, 14, 25, 0.93);
}
[data-theme="dark"] .plan-top,
[data-theme="dark"] .legal-top,
[data-theme="dark"] .ai-page .legal-top {
  background: rgba(9, 15, 27, 0.9);
}
[data-theme="dark"] .sidebar {
  background: #0a111d;
}
[data-theme="dark"] .site-footer,
[data-theme="dark"] .tools-footer {
  background: #0a111d;
}
[data-theme="dark"] .legal-page { background: var(--bg); }
[data-theme="dark"] .section--tint {
  background: linear-gradient(180deg, #0b1220 0%, #0d172a 42%, #070b14 100%);
}
[data-theme="dark"] .hero-badge {
  border-color: var(--line);
  background: rgba(15, 23, 38, 0.82);
  color: var(--muted-strong);
}
[data-theme="dark"] .hero-app {
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .hero-app__body {
  background: linear-gradient(135deg, #101d33, #0b1628);
}
[data-theme="dark"] .hero-skill__track { background: var(--track); }
[data-theme="dark"] .float-card {
  border-color: var(--line);
  background: rgba(15, 23, 38, 0.96);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .avatar-xs { border-color: var(--card); }
[data-theme="dark"] .hero::before {
  animation: orbPulse 13s ease-in-out infinite;
}
[data-theme="dark"] .hero::after {
  animation: orbPulse 17s ease-in-out infinite reverse;
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}
[data-theme="dark"] .feature::after { opacity: 0.32; }
[data-theme="dark"] .feature:hover { border-color: var(--line-strong); }
[data-theme="dark"] .skill-panel--reading {
  --panel-bg: rgba(91, 141, 255, 0.12);
  --panel-tone: #7da5ff;
  --panel-ink: #cfe0ff;
  --panel-muted: #9bb1d2;
}
[data-theme="dark"] .skill-panel--listening {
  --panel-bg: rgba(247, 201, 72, 0.1);
  --panel-tone: #f7c948;
  --panel-ink: #ffe39a;
  --panel-muted: #c1ae7a;
}
[data-theme="dark"] .skill-panel--writing {
  --panel-bg: rgba(255, 107, 94, 0.11);
  --panel-tone: #ff857a;
  --panel-ink: #ffc1bb;
  --panel-muted: #c99b96;
}
[data-theme="dark"] .skill-panel--speaking {
  --panel-bg: rgba(70, 211, 154, 0.1);
  --panel-tone: #46d39a;
  --panel-ink: #a8f5d0;
  --panel-muted: #8bb9a5;
}
[data-theme="dark"] .skill-panel__visual::after { background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .skill-visual-icon { background: #16233a; }
[data-theme="dark"] .plan-preview::before { background: rgba(91, 141, 255, 0.1); }
[data-theme="dark"] .plan-row { background: var(--surface-2); }
[data-theme="dark"] .plan-row__check { border-color: var(--line-strong); }
[data-theme="dark"] .mock-card--locked {
  background: linear-gradient(145deg, #0d1728, #09111e);
  border-color: var(--line);
}
[data-theme="dark"] .mock-card--locked::after { opacity: 0.18; }
[data-theme="dark"] .tools-note,
[data-theme="dark"] .legal-warning,
[data-theme="dark"] .pricing-note {
  border-color: var(--yellow-200);
  background: var(--yellow-soft);
  color: var(--yellow-text);
}
[data-theme="dark"] .legal-placeholder {
  background: var(--yellow-soft-2);
  color: var(--yellow-text);
}
[data-theme="dark"] .cta-banner {
  border: 1px solid rgba(91, 141, 255, 0.22);
  background:
    radial-gradient(540px 280px at 12% 0%, rgba(19, 94, 242, 0.42), transparent 66%),
    linear-gradient(135deg, #0a1730 0%, #0b1324 56%, #101d38 100%);
  box-shadow: 0 30px 70px -52px rgba(19, 94, 242, 0.75);
}
[data-theme="dark"] .cta-banner::before { opacity: 0.28; }
[data-theme="dark"] .footer-col a { color: var(--muted-strong); }
[data-theme="dark"] .socials a:hover { background: var(--blue-100); border-color: var(--blue-200); }
[data-theme="dark"] .badge--gray { background: #1a2438; color: #cbd5e1; }
[data-theme="dark"] .badge--red { color: var(--red-text); }
[data-theme="dark"] .badge--yellow { color: var(--yellow-text); }
[data-theme="dark"] .badge--violet { color: var(--violet-text); }
[data-theme="dark"] .badge--green { color: var(--green-text); }
[data-theme="dark"] .result-chip--mid { color: var(--yellow-text); }
[data-theme="dark"] .result-chip--low { color: var(--red-text); }
[data-theme="dark"] .price__features .icon--muted { color: var(--muted-3) !important; }
[data-theme="dark"] .topbar-search input::placeholder,
[data-theme="dark"] .field input::placeholder { color: var(--muted-2); }
[data-theme="dark"] .topbar-search input:focus,
[data-theme="dark"] .q-input:focus,
[data-theme="dark"] .field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 141, 255, 0.14);
}
[data-theme="dark"] .seg { background: var(--surface-3); }
[data-theme="dark"] .seg button.is-active { background: #1a2942; }
[data-theme="dark"] .chart-bar {
  background: linear-gradient(180deg, #2b4b86, #1a2c4f);
}
[data-theme="dark"] .chart-col:hover .chart-bar {
  background: linear-gradient(180deg, #77a4ff, var(--blue));
}
[data-theme="dark"] .chart-bar::after {
  background: #e9f0ff;
  color: #08111f;
}
[data-theme="dark"] .heatmap__cell { background: #16233a; }
[data-theme="dark"] .heatmap__cell[data-level="1"] { background: #1b3157; }
[data-theme="dark"] .heatmap__cell[data-level="2"] { background: #244a86; }
[data-theme="dark"] .heatmap__cell[data-level="3"] { background: #2f6bd6; }
[data-theme="dark"] .heatmap__cell[data-level="4"] { background: var(--blue); }
[data-theme="dark"] .streak-pill { color: var(--yellow-text); }
[data-theme="dark"] .exam-check li { color: var(--muted-strong); }
[data-theme="dark"] .table td { color: var(--muted-strong); }
[data-theme="dark"] .promo,
[data-theme="dark"] .ai-today,
[data-theme="dark"] .vocab-ai {
  border-color: var(--line);
  background: linear-gradient(120deg, rgba(19, 94, 242, 0.12), var(--card) 64%);
}
[data-theme="dark"] .test-page { background: var(--bg-2); }
[data-theme="dark"] .timer { background: var(--surface-3); }
[data-theme="dark"] .question-card.is-answered { border-color: var(--blue-200); }
[data-theme="dark"] .question-card.is-missing { border-color: var(--red-200); }
[data-theme="dark"] .q-option,
[data-theme="dark"] .tfng label { color: var(--muted-strong); }
[data-theme="dark"] .q-option__key { background: var(--surface-3); }
[data-theme="dark"] .passage-card p { color: var(--body-text); }
[data-theme="dark"] .review-answer--neutral { background: var(--surface-3); color: var(--muted); }
[data-theme="dark"] .vocab-page {
  background: linear-gradient(180deg, #0a1324, #070b14 52%);
}
[data-theme="dark"] .vocab-ai__link:hover { background: var(--blue-100); }
[data-theme="dark"] .flash-face--back { background: linear-gradient(145deg, #1b4dbb, #0a2d78); }
[data-theme="dark"] .cue-card li { color: var(--muted-strong); }
[data-theme="dark"] .auth-page {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(19, 94, 242, 0.18) 0%, transparent 70%),
    radial-gradient(700px 400px at 95% 20%, rgba(124, 92, 252, 0.13) 0%, transparent 65%),
    var(--bg);
}
[data-theme="dark"] .auth-card {
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, 0.85);
}
[data-theme="dark"] .auth-session {
  border-color: var(--green-200);
  background: var(--green-100);
  color: var(--green-text);
}
[data-theme="dark"] .auth-session__link { color: var(--green-text); }
[data-theme="dark"] .form-error { color: var(--red-text); }
[data-theme="dark"] .legal-doc p,
[data-theme="dark"] .legal-doc li { color: var(--muted-strong); }
[data-theme="dark"] .legal-nav { background: var(--bg-2); }
[data-theme="dark"] .legal-nav a:hover { background: var(--surface-3); }
[data-theme="dark"] .legal-table th { background: var(--surface-2); }
[data-theme="dark"] .cookie-banner {
  background: #0f1a2d;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
[data-theme="dark"] .cookie-banner p { color: var(--muted-strong); }
[data-theme="dark"] .cookie-banner a { color: var(--blue-700); }
[data-theme="dark"] .cookie-banner .btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
[data-theme="dark"] .plan-status--warn { color: var(--yellow-text); }
[data-theme="dark"] .plan-status--error { color: var(--red-text); }
[data-theme="dark"] .plan-check { background: var(--bg); }
[data-theme="dark"] .plan-task__meta span { background: var(--card); }
[data-theme="dark"] .plan-result__head { background: var(--card); }
[data-theme="dark"] .pricing-faq .faq-item { background: var(--card); }
[data-theme="dark"] .exam-mini .progress span,
[data-theme="dark"] .goal-exam .progress span { background: #fff; }
[data-theme="dark"] .step__num,
[data-theme="dark"] .q-num,
[data-theme="dark"] .avatar-xs--more {
  background: #e9f0ff;
  color: #08111f;
}
[data-theme="dark"] .btn:not(.btn--primary):not(.btn--blue):not(.btn--ghost):not(.btn--soft):not(.btn--white) {
  --btn-bg: #e9f0ff;
  --btn-fg: #08111f;
}
[data-theme="dark"] .btn--ghost {
  --btn-bg: #121d30;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
[data-theme="dark"] .btn--ghost:hover {
  --btn-bg: #17243a;
  border-color: #3a4f73;
}
[data-theme="dark"] .btn--soft {
  --btn-bg: var(--blue-100);
  --btn-fg: var(--blue-700);
}
[data-theme="dark"] .btn--white {
  --btn-bg: #e9f0ff;
  --btn-fg: #08111f;
}
[data-theme="dark"] .toast {
  background: #e9f0ff;
  color: #08111f;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .toast .icon { color: #0d7d4a; }
[data-theme="dark"] .skip-link { background: #e9f0ff; color: #08111f; }

/* CTA stays a premium deep-navy block in both themes */
.cta-banner {
  border: 1px solid rgba(91, 141, 255, 0.16);
  background:
    radial-gradient(540px 280px at 12% 0%, rgba(19, 94, 242, 0.5), transparent 66%),
    linear-gradient(135deg, #0a1730 0%, #0b1324 56%, #101d38 100%);
  box-shadow: 0 34px 80px -60px rgba(19, 94, 242, 0.8);
}

/* =========================================================
   AI Studio (Pro)
   ========================================================= */
.ai-page { min-height: 100vh; background: var(--bg); }
.ai-page .legal-top { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ai-studio { padding: 40px 0 64px; }
.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.68fr);
  gap: 30px;
  align-items: center;
  padding: 18px 0 34px;
}
.ai-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.ai-hero p {
  max-width: 650px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.ai-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ai-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}
.ai-mode a { color: var(--blue); text-decoration: underline; }
.ai-mode__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 4px rgba(114, 131, 161, 0.12);
}
.ai-mode--on { color: var(--green-text); }
.ai-mode--on .ai-mode__dot {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-100);
  animation: modePulse 2.4s ease-in-out infinite;
}
@keyframes modePulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-100); }
  50% { box-shadow: 0 0 0 7px rgba(70, 211, 154, 0.04); }
}
.ai-hero__card {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 235px;
  padding: 28px;
  border: 1px solid rgba(91, 141, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(300px 220px at 70% 10%, rgba(91, 141, 255, 0.36), transparent 70%),
    linear-gradient(150deg, #0d1b36, #08101f);
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 70px -48px rgba(19, 94, 242, 0.9);
}
.ai-hero__card > .icon { width: 38px; height: 38px; color: #8db4ff; }
.ai-hero__card b {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 400;
}
.ai-hero__card > span:last-child {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}
.ai-orbit {
  position: absolute;
  border: 1px solid rgba(141, 180, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
}
.ai-orbit--one {
  width: 210px;
  height: 210px;
  top: -68px;
  right: -58px;
  animation: orbitSpin 22s linear infinite;
}
.ai-orbit--two {
  width: 150px;
  height: 150px;
  bottom: -58px;
  left: -38px;
  animation: orbitSpin 16s linear infinite reverse;
}
.ai-orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8db4ff;
  box-shadow: 0 0 16px rgba(141, 180, 255, 0.9);
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.ai-card {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-xs);
  scroll-margin-top: 92px;
}
.ai-card--wide { grid-column: 1 / -1; }
.ai-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.ai-card__head > div { min-width: 0; }
.ai-card__head .badge { margin-left: auto; flex: none; }
.ai-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
}
.ai-card__icon .icon { width: 20px; height: 20px; }
.ai-card__icon--blue { background: var(--blue-100); color: var(--blue); }
.ai-card__icon--violet { background: var(--violet-100); color: var(--violet); }
.ai-card__icon--green { background: var(--green-100); color: var(--green); }
.ai-card__label {
  display: block;
  margin-bottom: 1px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ai-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.ai-card__lead {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.ai-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.ai-card__actions--between { margin-top: 10px; }
.ai-meta {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted-2);
  white-space: nowrap;
}
.ai-card .field { margin-top: 14px; }
.ai-card input,
.ai-card select,
.ai-card textarea { width: 100%; }
.ai-card textarea { resize: vertical; min-height: 190px; }
.ai-card .btn--block { margin-top: 12px; }
.ai-speaking__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.ai-speaking__top .field { flex: 1; min-width: 0; margin-top: 0; }
.field--compact select { height: 42px; }
.ai-question {
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid var(--blue-200);
  border-left: 3px solid var(--blue);
  border-radius: 0 13px 13px 0;
  background: var(--blue-100);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
}
.ai-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  animation: resultIn 0.35s var(--ease);
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ai-result--ai { border-color: var(--blue-200); }
.ai-result--error { border-color: var(--red-200); }
.ai-result__error { color: var(--red-text); font-size: 12px; }
.ai-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.ai-score span {
  margin-right: auto;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ai-score b {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  color: var(--blue);
}
.ai-score small { font-size: 11px; font-weight: 800; color: var(--muted-2); }
.ai-result__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ai-check {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.ai-check--good { border-color: var(--green-200); }
.ai-check--warn { border-color: var(--yellow-200); }
.ai-check span {
  display: block;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ai-check b { display: block; margin-top: 2px; font-size: 13px; }
.ai-check small { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.4; color: var(--muted); }
.ai-result__block { margin-top: 13px; }
.ai-result__block b { display: block; margin-bottom: 5px; font-size: 11px; }
.ai-result__block ul { display: grid; gap: 5px; }
.ai-result__block li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted-strong);
}
.ai-result__block li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.ai-result__source {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted-2);
}
.ai-result__ai b { display: block; margin-bottom: 7px; font-size: 12px; color: var(--blue); }
.ai-ai-text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-strong);
}
.ai-result__local { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.ai-result__local > b { display: block; margin-bottom: 9px; font-size: 11px; }
.ai-dict__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}
.ai-dict__search .field { margin-top: 0; }
.ai-dict__word {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ai-dict__term {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.ai-dict__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.ai-dict__row span { font-size: 9px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.ai-dict__row b { font-size: 12.5px; line-height: 1.5; }
.ai-dict__example {
  margin-top: 9px;
  padding: 9px 11px;
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--blue-100);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--muted-strong);
}
.ai-saved { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-saved__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ai-saved__head b { font-size: 11px; }
.ai-saved__clear {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted-2);
  text-decoration: underline;
  cursor: pointer;
}
.ai-saved__list { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-saved__empty { font-size: 10.5px; color: var(--muted-2); }
.ai-word-chip {
  display: grid;
  gap: 1px;
  max-width: 190px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.ai-word-chip:hover { border-color: var(--blue-200); background: var(--surface-hover); }
.ai-word-chip b { font-size: 11px; }
.ai-word-chip span {
  overflow: hidden;
  font-size: 9px;
  color: var(--muted-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--yellow-200);
  border-radius: 14px;
  background: var(--yellow-soft);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--yellow-text);
}
.ai-note .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ai-note b { color: var(--ink); }
.btn.is-busy { opacity: 0.7; cursor: progress; }

@media (max-width: 980px) {
  .ai-hero { grid-template-columns: 1fr; }
  .ai-hero__card { min-height: 180px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card--wide { grid-column: auto; }
}
@media (max-width: 620px) {
  .ai-studio { padding-top: 22px; }
  .ai-hero h1 { font-size: 38px; }
  .ai-hero p { font-size: 14px; }
  .ai-card { padding: 18px; border-radius: 20px; }
  .ai-card h2 { font-size: 20px; }
  .ai-dict__search { grid-template-columns: 1fr; }
  .ai-dict__search .btn { width: 100%; }
  .ai-result__grid { grid-template-columns: 1fr; }
  .ai-dict__row { grid-template-columns: 1fr; gap: 2px; }
  .ai-speaking__top { flex-direction: column; align-items: stretch; }
  .ai-card__actions { flex-wrap: wrap; }
  .ai-card__head .badge { display: none; }
}


/* =========================================================
   GoPrep-inspired landing hero
   ========================================================= */
.hero--goprep {
  padding: 44px 0 70px;
  text-align: center;
}
.hero--goprep::before {
  top: -330px; left: 50%; right: auto;
  width: 880px; height: 880px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 75, 60, 0.08), rgba(19, 94, 242, 0.07) 46%, transparent 70%);
}
.hero--goprep::after {
  bottom: -360px; left: 50%; right: auto;
  width: 820px; height: 820px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(243, 177, 5, 0.1), transparent 68%);
}
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 1.4vw, 14px);
  margin: 0 auto -6px;
  line-height: 0.8;
}
.hero-score__value {
  font-family: var(--font-head);
  font-size: clamp(104px, 18vw, 218px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.075em;
  color: var(--ink);
}
.hero-laurel {
  width: clamp(42px, 8vw, 94px);
  height: auto;
  flex: none;
  opacity: 0.96;
  filter: drop-shadow(0 10px 16px rgba(243, 177, 5, 0.16));
}
.hero-laurel--right { transform: scaleX(-1); }
.hero--goprep .hero-badge {
  margin-top: 10px;
  padding: 8px 16px 8px 9px;
  border-color: var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.hero--goprep h1 {
  max-width: 980px;
  margin: 20px auto 0;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.99;
  letter-spacing: -0.035em;
}
.hero--goprep h1 .mark::after {
  height: 16px;
  bottom: 5px;
  background: rgba(243, 177, 5, 0.52);
}
.hero--goprep .hero-sub {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.55;
  font-weight: 600;
  color: var(--muted);
}
.hero-actions--center {
  justify-content: center;
  margin-top: 27px;
}
.hero--goprep .hero-note {
  justify-content: center;
  margin-top: 15px;
  font-size: 12.5px;
}
.hero--goprep .btn--primary {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13.5px;
}
.hero-stage--wide {
  width: 100%;
  max-width: 820px;
  min-height: 470px;
  margin: 38px auto 0;
}
.hero-stage--wide .hero-app { width: min(460px, 100%); }
.hero-stage--wide .hero-mascot { left: 4%; }
.site-header .btn--primary,
.cta-banner .btn--primary {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
}
[data-theme="dark"] .hero--goprep .hero-badge {
  background: rgba(15, 23, 38, 0.9);
  border-color: var(--line);
}
[data-theme="dark"] .hero-score__value { text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }

@media (max-width: 900px) {
  .hero--goprep { padding-top: 30px; }
  .hero-stage--wide { min-height: 450px; }
}
@media (max-width: 620px) {
  .hero--goprep { padding: 22px 0 48px; }
  .hero--goprep h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero--goprep .hero-sub { font-size: 14.5px; }
  .hero-score__value { font-size: clamp(92px, 27vw, 132px); }
  .hero-laurel { width: clamp(34px, 10vw, 52px); }
  .hero-actions--center { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions--center .btn { width: 100%; }
  .hero--goprep .hero-note { max-width: 320px; text-align: center; line-height: 1.45; }
  .hero-stage--wide { min-height: 390px; margin-top: 28px; }
  .hero-stage--wide .hero-mascot { left: -2px; width: 82px; }
}


/* =========================================================
   IELTS Predictions library
   ========================================================= */
.prediction-hero {
  position: relative;
  padding: 34px 0 0;
  text-align: center;
}
.prediction-hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: min(860px, 100%); height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 60, 0.09), rgba(243, 177, 5, 0.08) 48%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.prediction-hero .eyebrow {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 4px;
}
.prediction-hero h1 {
  max-width: 1000px;
  margin: 8px auto 0;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.prediction-hero h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--red);
  z-index: 0;
}
.prediction-hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: 4px;
  height: 14px;
  border-radius: 999px;
  background: rgba(243, 177, 5, 0.5);
  z-index: -1;
}
.prediction-hero > p {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
  font-weight: 600;
  color: var(--muted);
}
.prediction-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.prediction-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.prediction-stat {
  min-width: 128px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.prediction-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}
.prediction-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.prediction-hero .tools-note {
  max-width: 860px;
  margin: 22px auto 0;
  text-align: left;
}
.prediction-hero .tools-note p { text-align: left; }
[data-theme="dark"] .prediction-hero h1 .mark::after {
  background: rgba(243, 177, 5, 0.34);
}
@media (max-width: 620px) {
  .prediction-hero { padding-top: 22px; }
  .prediction-hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .prediction-hero__actions { flex-direction: column; align-items: stretch; }
  .prediction-hero__actions .btn { width: 100%; }
  .prediction-stat { min-width: calc(50% - 5px); flex: 1; padding: 11px 14px; }
  .prediction-stat b { font-size: 26px; }
}


/* Pro-required notice on pricing */
.pro-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 auto 24px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 75, 60, 0.3);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 75, 60, 0.09), rgba(243, 177, 5, 0.06));
}
.pro-notice[hidden] { display: none; }
.pro-notice__icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  flex: none;
}
.pro-notice b { display: block; font-size: 14px; }
.pro-notice p { margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.pro-notice .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .pro-notice { grid-template-columns: auto minmax(0, 1fr); }
  .pro-notice .btn { grid-column: 1 / -1; justify-self: start; }
}


/* =========================================================
   Free test directory
   ========================================================= */
.free-hero {
  padding: 42px 0 4px;
  text-align: center;
}
.free-hero h1 {
  margin-top: 10px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.free-hero > p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  font-weight: 600;
}
.free-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.free-stats > div {
  min-width: 128px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.free-stats b {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}
.free-stats span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.free-hero .tools-note {
  max-width: 880px;
  margin: 22px auto 0;
  text-align: left;
}
.free-library { margin-top: 34px; }
.free-library__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.free-library__head .badge { margin-bottom: 10px; }
.free-library__head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; }
.free-library__head p { margin-top: 6px; max-width: 620px; color: var(--muted); font-size: 14px; }
.free-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.free-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.free-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.free-tab .icon { width: 16px; height: 16px; }
.free-tab:hover { background: var(--surface-hover); color: var(--ink); }
.free-tab.is-active { background: var(--ink); color: var(--bg); }
.free-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(127, 145, 170, 0.18);
  font-size: 10.5px;
}
.free-tab.is-active .free-tab__count { background: rgba(255, 255, 255, 0.18); }
.free-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
}
.free-search .icon { width: 17px; height: 17px; flex: none; }
.free-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.free-resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.free-resultbar span:first-child { color: var(--ink); }
.free-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.free-test-card {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.free-test-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}
.free-test-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.free-test-card__skill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.free-test-card__skill .icon { width: 14px; height: 14px; }
.free-test-card__free {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.free-test-card b {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.32;
}
.free-test-card__meta {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}
.free-test-card__go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--blue-700);
  font-size: 11.5px;
  font-weight: 900;
}
.free-test-card__go .icon { width: 14px; height: 14px; }
.free-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}
.free-empty .icon { width: 28px; height: 28px; margin-bottom: 4px; }
.free-empty b { color: var(--ink); }
.free-empty p { font-size: 13px; }
.free-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 22px;
}
.free-page {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.free-page:hover:not(:disabled) { border-color: var(--blue-200); color: var(--ink); }
.free-page.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.free-page:disabled { opacity: 0.35; cursor: default; }
.free-page__dots { padding: 0 3px; color: var(--muted-2); }
.free-writing { margin-top: 38px; }
.free-writing[hidden] { display: none; }
.free-grid[hidden], .free-pager[hidden] { display: none; }
@media (max-width: 980px) {
  .free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-toolbar { flex-direction: column; align-items: stretch; }
  .free-search { min-width: 0; }
}
@media (max-width: 620px) {
  .free-hero { padding-top: 24px; }
  .free-hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .free-stats > div { min-width: calc(50% - 5px); flex: 1; padding: 11px 14px; }
  .free-stats b { font-size: 26px; }
  .free-library__head { flex-direction: column; align-items: stretch; }
  .free-library__head .btn { align-self: flex-start; }
  .free-tabs { border-radius: 20px; }
  .free-tab { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .free-grid { grid-template-columns: 1fr; }
  .free-resultbar { flex-direction: column; align-items: flex-start; gap: 3px; }
  .free-test-card { min-height: 150px; }
}


/* =========================================================
   CDI computer-delivered Reading mock
   ========================================================= */
.cdi-page { background: var(--bg); }
.cdi-top {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}
.cdi-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 9px 18px;
}
.cdi-top__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cdi-top__brand .logo { flex: none; }
.cdi-top__badge { white-space: nowrap; }
.cdi-top__actions { display: flex; align-items: center; gap: 8px; }
.cdi-timer { min-width: 86px; justify-content: center; }
.cdi-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: start;
  max-width: 1540px;
  margin: 0 auto;
  padding: 14px 18px 18px;
}
.cdi-passage,
.cdi-questions {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.cdi-passage {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 92px);
  overflow: hidden;
}
.cdi-passage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cdi-passage__tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.cdi-passage__tab {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.cdi-passage__tab:hover { color: var(--ink); background: var(--surface-hover); }
.cdi-passage__tab.is-active { background: var(--ink); color: var(--bg); }
.cdi-passage__meta { color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.cdi-passage__scroll { flex: 1; overflow: auto; padding: 24px 26px 36px; scroll-behavior: smooth; }
.cdi-passage__heading { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cdi-passage__body h2 { margin: 0; font-size: clamp(23px, 2.6vw, 33px); line-height: 1.1; letter-spacing: -0.03em; }
.cdi-passage__info { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cdi-para {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  margin-top: 17px;
}
.cdi-para__letter {
  padding-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-head);
  font-size: 12px;
  text-align: center;
}
.cdi-para p { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.78; }
.cdi-questions { min-height: calc(100vh - 92px); padding: 17px 17px 18px; }
.cdi-qhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.cdi-qhead h1 { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.03em; }
.cdi-qhead__right { min-width: 118px; text-align: right; }
.cdi-qhead__right > span { color: var(--muted); font-size: 11.5px; font-weight: 900; }
.cdi-progress { width: 120px; margin-top: 8px; }
.cdi-palette { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0 2px; }
.cdi-palette__btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}
.cdi-palette__btn:hover { border-color: var(--blue-200); color: var(--ink); }
.cdi-palette__btn.is-answered { border-color: transparent; background: var(--green-100); color: var(--green-text); }
.cdi-palette__btn.is-current { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.cdi-palette__btn.is-other-passage { opacity: 0.45; }
.cdi-palette__btn.is-other-passage.is-answered { opacity: 0.65; }
.cdi-question { margin-top: 12px; scroll-margin-top: 88px; }
.cdi-question.is-current { box-shadow: 0 0 0 2px var(--blue-200); }
.cdi-qnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.cdi-qnav > span { color: var(--muted); font-size: 11px; font-weight: 900; }
.cdi-submit-card {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.cdi-submit-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.cdi-results { padding: 30px 0 54px; }
.cdi-main[hidden], .cdi-results[hidden] { display: none; }
.cdi-results .result-hero { border-radius: 24px; }
@media (max-width: 1080px) {
  .cdi-main { grid-template-columns: 1fr 1fr; }
  .cdi-top__badge { display: none; }
}
@media (max-width: 900px) {
  .cdi-top__inner { flex-wrap: wrap; }
  .cdi-top__actions { width: 100%; justify-content: space-between; }
  .cdi-exit { display: none; }
  .cdi-main { gap: 10px; padding: 10px 12px 14px; }
  .cdi-passage { height: calc(100vh - 140px); }
  .cdi-passage__scroll { padding: 18px 18px 28px; }
  .cdi-questions { padding: 14px 12px 16px; }
}
@media (max-width: 760px) {
  .cdi-main { grid-template-columns: 1fr; }
  .cdi-passage { position: static; height: auto; max-height: 56vh; }
  .cdi-questions { min-height: 0; }
}
@media (max-width: 620px) {
  .cdi-top__inner { padding: 8px 12px; }
  .cdi-main { padding: 10px 12px 16px; }
  .cdi-passage__scroll { padding: 18px 17px 26px; }
  .cdi-passage__meta { display: none; }
  .cdi-passage__tab { padding: 0 8px; font-size: 10.5px; }
  .cdi-questions { padding: 13px 12px 15px; }
  .cdi-qhead { flex-direction: column; }
  .cdi-qhead__right { width: 100%; text-align: left; }
  .cdi-progress { width: 100%; }
  .cdi-palette__btn { width: 26px; height: 26px; }
  .cdi-qnav { flex-wrap: wrap; justify-content: center; }
  .cdi-submit-card { margin-top: 10px; }
}
