/* =========================================================
   Fast IELTS Studies — original landing theme
   Palette: warm paper + midnight indigo + amber accent
   ========================================================= */

:root {
  --paper: #f7f3ea;
  --paper-2: #fbf8f2;
  --surface: #ffffff;
  --ink: #171329;
  --ink-2: #3e3952;
  --muted: #6f697f;
  --muted-2: #9892a6;
  --line: #e8e1d4;
  --line-soft: #f0ece3;
  --indigo: #4a3de0;
  --indigo-dark: #3527b8;
  --indigo-mid: #6c5ff7;
  --indigo-ink: #1b1545;
  --indigo-soft: #efecff;
  --amber: #f3ac3c;
  --amber-deep: #d98b12;
  --amber-soft: #fcebc7;
  --coral: #e97456;
  --coral-soft: #fbe4dc;
  --ok: #2f9e6f;

  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;

  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-card: 0 24px 50px -44px rgba(23, 19, 41, 0.35);
  --shadow-float: 0 30px 70px -40px rgba(23, 19, 41, 0.45);
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -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(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 96px;
}

/* ---------- Shared components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn .icon {
  font-size: 17px;
  transition: transform 0.25s ease;
}

.btn:hover .icon:last-child {
  transform: translateX(3px);
}

.btn-sm {
  height: 42px;
  padding: 0 17px;
  font-size: 13px;
}

.btn-lg {
  height: 56px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 16px 28px -16px rgba(74, 61, 224, 0.65);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: #ded6c8;
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #cfc5b4;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper-2);
}

.btn-dark:hover {
  background: var(--indigo);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: var(--amber);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 18px 34px -20px rgba(243, 172, 60, 0.7);
}

.btn-amber:hover {
  background: #ffbc50;
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.eyebrow--light {
  color: #d8d0ff;
}

.eyebrow--light::before {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(243, 172, 60, 0.16);
}

.section-head {
  margin-bottom: 46px;
}

.section-head h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-head--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-sub {
  margin-top: 16px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 500;
}

.section-head--center .section-sub {
  margin-inline: auto;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: none;
}

.section-head--row > div:first-child {
  max-width: 640px;
}

.section-head--row .section-sub {
  max-width: 360px;
  margin: 0 0 6px;
  font-size: 14px;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: -0.015em;
}

.serif-accent--light {
  color: var(--amber);
}

.section {
  position: relative;
  padding: clamp(72px, 8.5vw, 116px) 0;
}

.section--white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.tag--indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.tag--coral {
  background: var(--coral-soft);
  color: #b44c34;
}

.tag--light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d9d2f7;
}

.tag--dark {
  background: rgba(23, 19, 41, 0.08);
  color: var(--ink);
}

.link-arrow,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--indigo);
}

.link-arrow .icon,
.text-link .icon {
  font-size: 14px;
  transition: transform 0.25s ease;
}

.link-arrow:hover .icon,
.text-link:hover .icon {
  transform: translateX(4px);
}

.icon-tile {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  font-size: 21px;
}

.icon-tile--indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
}

.icon-tile--amber {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.icon-tile--coral {
  background: var(--coral-soft);
  color: #bd5238;
}

.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  border: 2px solid #fff;
}

.av-1 { background: linear-gradient(135deg, #5b4bdb, #8b7bff); }
.av-2 { background: linear-gradient(135deg, #d98b12, #f3b95a); }
.av-3 { background: linear-gradient(135deg, #b14f72, #e98aa6); }
.av-4 { background: linear-gradient(135deg, #236f66, #4aa89b); }
.av-5 { background: linear-gradient(135deg, #45516e, #758ab0); }
.av-6 { background: linear-gradient(135deg, #7a4c2c, #b98157); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.dot--ok {
  background: var(--indigo-mid);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 242, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -34px rgba(23, 19, 41, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
}

.brand-name span {
  color: var(--indigo);
}

.main-nav {
  margin-left: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(74, 61, 224, 0.06);
  color: var(--indigo);
}

.nav-link .icon {
  font-size: 13px;
  color: var(--muted-2);
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link .icon,
.nav-item.is-open .nav-link .icon {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 306px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 34px 60px -36px rgba(23, 19, 41, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dropdown-link:hover {
  background: var(--paper-2);
}

.dropdown-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 18px;
}

.dropdown-icon--amber {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.dropdown-icon--coral {
  background: var(--coral-soft);
  color: #bd5238;
}

.dropdown-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dropdown-link small {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-login {
  background: transparent;
  border-color: transparent;
}

.header-login:hover {
  background: rgba(74, 61, 224, 0.06);
  border-color: transparent;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle .icon {
  font-size: 20px;
}

/* ---------- Mobile drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(23, 19, 41, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.is-visible {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(390px, 91vw);
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper-2);
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.drawer-close .icon {
  font-size: 16px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.drawer-label {
  margin: 18px 0 2px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.drawer-nav a {
  padding: 11px 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-nav a:hover {
  color: var(--indigo);
}

.drawer-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 48px;
  background: var(--paper);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero-glow--one {
  width: 880px;
  height: 880px;
  top: -520px;
  left: -300px;
  background: radial-gradient(circle, rgba(74, 61, 224, 0.16) 0%, rgba(74, 61, 224, 0) 66%);
}

.hero-glow--two {
  width: 760px;
  height: 760px;
  top: -320px;
  right: -280px;
  background: radial-gradient(circle, rgba(243, 172, 60, 0.22) 0%, rgba(243, 172, 60, 0) 68%);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(74, 61, 224, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 42% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 42% at 50% 0%, #000 10%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid rgba(23, 19, 41, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px -18px rgba(23, 19, 41, 0.4);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
}

.hero-badge-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 13px;
}

.hero-badge-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.hero-badge-muted {
  color: var(--muted);
  font-weight: 500;
}

.hero-title {
  margin: 24px auto 0;
  max-width: 1040px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7.6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
  color: var(--ink);
}

.hero-title .hl {
  position: relative;
  display: inline-block;
  padding-right: 0.04em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--indigo);
  background: linear-gradient(180deg, transparent 63%, rgba(243, 172, 60, 0.62) 63%, rgba(243, 172, 60, 0.62) 91%, transparent 91%);
  border-radius: 4px;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hero-note .icon {
  font-size: 13px;
  color: var(--indigo);
}

.hero-note span[aria-hidden] {
  margin: 0 4px;
  color: #beb7c7;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-top: 44px;
}

.stat {
  padding: 0 40px;
  border-left: 1px solid var(--line);
  text-align: left;
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat:last-child {
  padding-right: 0;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Demo window ---------- */

.demo-shell {
  position: relative;
  max-width: 1060px;
  margin: 50px auto 0;
  text-align: left;
  scroll-margin-top: 110px;
}

.demo-window {
  position: relative;
  border: 1px solid rgba(23, 19, 41, 0.09);
  border-radius: 26px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 50px 90px -55px rgba(27, 21, 69, 0.55), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 18px;
  background: var(--indigo-ink);
  color: #bcb4d7;
  font-size: 11.5px;
}

.window-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e97456;
}

.window-dots i:nth-child(2) {
  background: #f3ac3c;
}

.window-dots i:nth-child(3) {
  background: #7767e8;
}

.window-url {
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: #bcb4d7;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-url strong {
  color: #fff;
  font-weight: 600;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d6cfff;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.8s ease-in-out infinite;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.demo-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: #f3f0e9;
}

.demo-tab {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.demo-tab:hover {
  color: var(--ink);
}

.demo-tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(23, 19, 41, 0.08);
}

.demo-toolbar-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}

.demo-toolbar-note .icon {
  font-size: 13px;
  color: var(--indigo);
}

.demo-panel {
  display: none;
  animation: panelIn 0.45s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.demo-panel.is-active {
  display: block;
}

.panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
}

.panel-main {
  min-width: 0;
  padding: 22px 24px 20px;
}

.panel-side {
  padding: 20px 22px;
  border-left: 1px solid #ece7f8;
  background: #f8f6ff;
}

.prompt-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}

.prompt-box--chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 14px;
  align-items: center;
  padding-right: 10px;
}

.prompt-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prompt-time {
  font-size: 10.5px;
  color: var(--muted-2);
  font-weight: 500;
}

.prompt-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 500;
}

.prompt-small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.mini-chart {
  width: 100%;
  height: auto;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot--a { background: var(--indigo); }
.legend-dot--b { background: var(--amber); }
.legend-dot--c { background: var(--coral); }

.essay-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 7px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.essay-count {
  letter-spacing: 0;
  text-transform: none;
  color: #a9a2b5;
  font-weight: 600;
}

.essay {
  padding-left: 15px;
  border-left: 2px solid #e5dff8;
  font-size: 13px;
  line-height: 1.78;
  color: #464055;
}

.essay p + p {
  margin-top: 8px;
}

.essay .err {
  position: relative;
  padding: 0 2px;
  border-radius: 3px;
  background: #fdece7;
  border-bottom: 1.5px solid #e47a5d;
  color: inherit;
  cursor: help;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.essay .err:hover,
.essay .err:focus-visible {
  background: #fbdcd2;
}

.essay .err::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 20;
  width: 215px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--indigo-ink);
  color: #f8f6ff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  box-shadow: 0 16px 30px -18px rgba(23, 19, 41, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.essay .err::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: calc(100% + 4px);
  z-index: 21;
  border: 5px solid transparent;
  border-top-color: var(--indigo-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.essay .err:hover::after,
.essay .err:hover::before,
.essay .err:focus-visible::after,
.essay .err:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.essay .err.is-fixed {
  background: var(--indigo-soft);
  border-bottom-color: var(--indigo-mid);
  color: var(--indigo);
}

.annotations {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.annotation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.annot-num {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  border: 1px solid #ddd6eb;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted);
}

.annotation p {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.annotation strong {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.demo-panel.is-revised .annotation {
  opacity: 0.45;
}

/* score panel */

.score-block {
  display: flex;
  flex-direction: column;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.score-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #e3ddf6;
  border-radius: 999px;
  background: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--indigo);
}

.score-ai .icon {
  font-size: 10px;
  color: var(--amber-deep);
}

.score-ring {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 10px auto 2px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 8;
}

.ring-track {
  stroke: #e9e3f9;
}

.ring-fill {
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-dasharray: 100;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.score-center span {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.score-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--muted-2);
  font-weight: 500;
}

.criteria {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.criterion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

.criterion-head strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.crit-track {
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: #e9e4f7;
  overflow: hidden;
}

.crit-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo-mid), var(--indigo));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.criterion.is-low .crit-val {
  color: var(--coral);
}

.criterion.is-low .crit-track i {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.rescore-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--indigo);
}

.rescore-note .icon {
  color: var(--amber-deep);
  font-size: 11px;
}

/* speaking player */

.mock-player {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0 4px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
}

.player-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player-btn:hover {
  background: var(--indigo-dark);
  transform: scale(1.04);
}

.player-btn .icon {
  font-size: 14px;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  flex: 1;
  height: 32px;
  min-width: 0;
}

.waveform span {
  display: block;
  flex: 1;
  min-width: 2px;
  max-width: 4px;
  border-radius: 3px;
  background: #d8d1ec;
  transition: background 0.2s ease;
}

.mock-player.is-playing .waveform span {
  background: var(--indigo-mid);
  animation: wave 0.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.035s);
}

.player-time {
  flex: none;
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 10px;
  color: var(--muted-2);
}

.transcript-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 6px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.transcript-hint {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--indigo-soft);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--indigo);
}

.transcript {
  font-size: 12.5px;
}

/* demo footer + trust */

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fcfaf5;
  font-size: 11.5px;
  color: var(--muted);
}

.demo-footer p {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-footer p .icon {
  font-size: 13px;
  color: var(--indigo);
}

.demo-footer p a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid #cfc6b8;
}

.demo-footer p a:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

.demo-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--indigo);
}

.demo-footer-cta .icon {
  font-size: 13px;
  transition: transform 0.2s ease;
}

.demo-footer-cta:hover .icon {
  transform: translateX(3px);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--muted);
}

.hero-trust p {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust strong {
  color: var(--ink-2);
  font-weight: 700;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  width: 29px;
  height: 29px;
  margin-left: -8px;
  border-width: 2px;
  font-size: 8px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.avatar-stack .av-more {
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 13px;
}

.trust-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--amber);
}

.trust-stars .icon {
  font-size: 12px;
}

/* ---------- Courses ---------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: #dcd3f5;
  box-shadow: var(--shadow-card);
}

.course-visual {
  position: relative;
  height: 176px;
  padding: 16px;
  overflow: hidden;
}

.course-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 21, 69, 0.14) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(130deg, #000, transparent 60%);
  mask-image: linear-gradient(130deg, #000, transparent 60%);
  opacity: 0.35;
}

.course-visual--indigo { background: #ece9ff; }
.course-visual--amber { background: #fbedd1; }
.course-visual--coral { background: #fbe6de; }

.course-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(27, 21, 69, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.course-ghost {
  position: absolute;
  top: -32px;
  right: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 132px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(27, 21, 69, 0.08);
  user-select: none;
}

.mini-plan {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 1;
  width: calc(100% - 76px);
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 30px -22px rgba(23, 19, 41, 0.5);
  transform: rotate(-1.5deg);
}

.course-card:nth-child(2) .mini-plan {
  transform: rotate(1.5deg);
}

.mini-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.mini-badge {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  color: var(--muted);
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.mini-check {
  width: 11px;
  height: 11px;
  flex: none;
  border: 1.3px solid #c8c0da;
  border-radius: 50%;
  background: transparent;
}

.mini-check--active {
  border-color: var(--indigo);
  background: var(--indigo);
  box-shadow: 0 0 0 3px rgba(74, 61, 224, 0.1);
}

.mini-line {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #ece7f4;
}

.mini-bar {
  height: 4px;
  margin-top: 9px;
  border-radius: 999px;
  background: #ede8f3;
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--indigo);
}

.course-visual--amber .mini-bar i,
.course-visual--amber .mini-check--active {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
}

.course-visual--coral .mini-bar i,
.course-visual--coral .mini-check--active {
  background: var(--coral);
  border-color: var(--coral);
}

.course-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.course-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.course-content p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.course-meta li {
  display: inline-flex;
  align-items: center;
}

.course-meta li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 9px;
  border-radius: 50%;
  background: #c8c1d1;
}

.course-content .link-arrow {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Practice ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.practice-card:hover {
  transform: translateY(-5px);
  border-color: #d9d1f4;
  box-shadow: var(--shadow-card);
}

.practice-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.practice-arrow {
  font-size: 18px;
  color: #bdb6c8;
  transition: color 0.25s ease, transform 0.25s ease;
}

.practice-card:hover .practice-arrow {
  color: var(--indigo);
  transform: translate(2px, -2px);
}

.practice-card h3 {
  margin: 19px 0 8px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.practice-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.practice-card .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.practice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: auto;
  padding-top: 20px;
}

.practice-links .text-link {
  margin-top: 0;
  padding-top: 0;
}

/* ---------- Channels ---------- */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 30px;
  border-radius: 30px;
  overflow: hidden;
}

.channel--dark {
  background: var(--indigo-ink);
  color: #f7f4ee;
}

.channel-glow {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 95, 247, 0.4), transparent 68%);
  pointer-events: none;
}

.channel--amber {
  background: #f5e4c1;
  color: var(--ink);
}

.channel--amber::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 116, 86, 0.22), transparent 68%);
  pointer-events: none;
}

.channel-head,
.channel-mock,
.channel-features,
.channel .btn {
  position: relative;
  z-index: 1;
}

.channel-head h3 {
  margin: 15px 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.channel-head p {
  max-width: 430px;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.channel--amber .channel-head p {
  color: #655a43;
}

.channel-mock {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.channel-mock--amber {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(27, 21, 69, 0.08);
}

.channel-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.channel-score strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}

.channel-score span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.channel-score--dark {
  border-right-color: rgba(27, 21, 69, 0.15);
}

.channel-score--dark strong {
  color: var(--ink);
}

.channel-score--dark span {
  color: #82765d;
}

.channel-bars {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.channel-bars span {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.channel-bars i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.channel-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.channel-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  height: 44px;
  min-width: 0;
}

.channel-wave i {
  display: block;
  flex: 1;
  min-width: 2px;
  border-radius: 3px;
  background: rgba(27, 21, 69, 0.26);
}

.channel-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 4px;
}

.channel-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
}

.channel-features .icon {
  font-size: 12px;
  color: var(--amber);
}

.channel-features--dark li {
  color: #655a43;
}

.channel-features--dark .icon {
  color: var(--indigo);
}

.channel .btn {
  align-self: flex-start;
  margin-top: 18px;
}

/* ---------- Workflow ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 50px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 9%;
  right: 9%;
  border-top: 1.5px dashed #d9d1e8;
}

.step {
  position: relative;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 31px;
  line-height: 1;
  color: var(--indigo);
  opacity: 0.5;
}

.step-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: 0 8px 20px -16px rgba(23, 19, 41, 0.35);
  color: var(--indigo);
  font-size: 21px;
}

.step h3 {
  margin: 17px 0 7px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 250px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.bento-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bento-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.bento-kicker .icon {
  font-size: 12px;
  color: var(--indigo);
}

.bento-card h3 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 88%;
}

.bento-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 5px 9px;
  border: 1px solid #e8e2f7;
  border-radius: 999px;
  background: var(--indigo-soft);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  color: var(--indigo);
  white-space: nowrap;
}

.bento-chip .icon {
  font-size: 10px;
}

.bento-chip--warn {
  background: var(--coral-soft);
  border-color: #f4d3c8;
  color: #b44c34;
}

.bento-chip--success {
  background: var(--amber-soft);
  border-color: #f2ddb1;
  color: var(--amber-deep);
}

.weak-list {
  display: grid;
}

.weak-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0ecf5;
  font-size: 10.5px;
  color: var(--muted);
}

.weak-row:last-child {
  border-bottom: 0;
}

.weak-row i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #eeebf8;
  overflow: hidden;
}

.weak-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--indigo);
}

.weak-row strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: right;
}

.weak-row--low strong {
  color: var(--coral);
}

.weak-row--low b {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.bento-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper-2);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.bento-note .icon {
  font-size: 12px;
  color: var(--amber-deep);
}

.bento-note--muted {
  padding: 0;
  background: transparent;
  font-size: 9.5px;
  color: var(--muted-2);
}

.bento-sample {
  background: linear-gradient(160deg, #f0edff 0%, #faf8ff 100%);
  border-color: #e3ddfa;
  display: flex;
  flex-direction: column;
}

.sample-paper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 34px -28px rgba(27, 21, 69, 0.4);
}

.sample-tag {
  align-self: flex-start;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--indigo-soft);
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--indigo);
}

.sample-paper p {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.sample-hl {
  padding: 0 2px;
  border-bottom: 1.5px solid #e8b24e;
  background: #fdf0cf;
}

.sample-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 9.5px;
  color: var(--muted-2);
}

.sample-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sample-meta .icon {
  color: var(--amber-deep);
  font-size: 11px;
}

.sample-link {
  font-weight: 700;
  color: var(--indigo);
}

.bento-progress {
  grid-column: 1 / -1;
}

.bento-progress .bento-head h3 {
  margin-bottom: 0;
}

.progress-chart {
  margin-top: 8px;
}

.progress-chart,
.compare-wrap {
  scrollbar-width: thin;
  scrollbar-color: #d7d0ef transparent;
}

.progress-chart::-webkit-scrollbar,
.compare-wrap::-webkit-scrollbar {
  height: 6px;
}

.progress-chart::-webkit-scrollbar-track,
.compare-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.progress-chart::-webkit-scrollbar-thumb,
.compare-wrap::-webkit-scrollbar-thumb {
  background: #d7d0ef;
  border-radius: 999px;
}

.progress-chart::-webkit-scrollbar-button,
.compare-wrap::-webkit-scrollbar-button {
  display: none;
}

.compare-hint {
  display: none;
}

.progress-chart svg {
  width: 100%;
  height: auto;
}

/* ---------- Comparison ---------- */

.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px -55px rgba(23, 19, 41, 0.4);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.compare-table thead th {
  padding: 16px 22px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.compare-table thead th:first-child {
  text-align: left;
  width: 34%;
}

.compare-table th.is-us,
.compare-table td.is-us {
  background: #f5f2ff;
}

.compare-table thead th.is-us {
  background: #efebff;
}

.compare-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

.compare-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--indigo);
  color: #fff;
  font-size: 11px;
}

.compare-table tbody th {
  padding: 15px 22px;
  border-top: 1px solid #f2eef7;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: left;
}

.compare-table tbody td {
  padding: 15px 22px;
  border-top: 1px solid #f2eef7;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.cmp-yes {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: 12px;
}

.cmp-no {
  color: #c5bfce;
  font-weight: 700;
}

.cmp-partial {
  color: var(--muted);
  font-size: 11.5px;
}

.cmp-strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.compare-note {
  padding: 11px 22px;
  border-top: 1px solid #f2eef7;
  background: var(--paper-2);
  font-size: 10px;
  color: var(--muted-2);
}

/* ---------- Mock test ---------- */

.mock-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 42px;
  padding: clamp(30px, 4.8vw, 54px);
  border-radius: var(--radius-xl);
  background: var(--indigo-ink);
  color: #fff;
  overflow: hidden;
}

.mock-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mock-glow--one {
  width: 480px;
  height: 480px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(108, 95, 247, 0.45), transparent 66%);
}

.mock-glow--two {
  width: 420px;
  height: 420px;
  bottom: -280px;
  right: 6%;
  background: radial-gradient(circle, rgba(243, 172, 60, 0.22), transparent 66%);
}

.mock-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 48%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 78% 48%, #000, transparent 72%);
  pointer-events: none;
}

.mock-copy {
  position: relative;
  z-index: 1;
}

.mock-copy h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.9vw, 45px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #fff;
}

.mock-copy > p {
  margin-top: 15px;
  max-width: 480px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.mock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.mock-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 600;
  color: #d6cff2;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.mock-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.46);
}

.mock-note .icon {
  color: var(--amber);
  font-size: 12px;
}

.mock-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.answer-sheet {
  width: min(100%, 370px);
  padding: 18px;
  border-radius: 19px;
  background: #fdfaf4;
  color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.55);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sheet-head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sheet-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--indigo-soft);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--indigo);
}

.sheet-timer .icon {
  font-size: 11px;
}

.sheet-rows {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.sheet-row {
  display: grid;
  grid-template-columns: 25px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

.q-num {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  color: #a098ad;
}

.bubble {
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #e5dfe9;
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  color: #9c94a9;
}

.bubble.is-filled {
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}

.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e3dcd0;
}

.sheet-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.sheet-score span {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--muted-2);
}

.sheet-band {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--amber);
}

.sheet-band span {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(23, 19, 41, 0.65);
}

.sheet-band strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sheet-float {
  position: absolute;
  top: -12px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.5);
  transform: rotate(1.5deg);
}

/* ---------- Testimonials ---------- */

.rating-card {
  flex: none;
  min-width: 236px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
}

.rating-stars .icon {
  font-size: 14px;
}

.rating-card p {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.rating-card p strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.rating-card > span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted-2);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.review--dark {
  background: var(--indigo-ink);
  border-color: transparent;
  color: #f7f4ee;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.quote-mark {
  font-size: 24px;
  line-height: 1;
  color: #ded7f0;
}

.review--dark .quote-mark {
  color: rgba(255, 255, 255, 0.24);
}

.review-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}

.review--dark .review-tag {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.52);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--amber);
}

.review-stars .icon {
  font-size: 12px;
}

.review blockquote {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.review--dark blockquote {
  color: rgba(255, 255, 255, 0.8);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1edf4;
}

.review--dark .review-author {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.review-author .avatar {
  width: 32px;
  height: 32px;
  font-size: 9px;
  border-color: transparent;
}

.review-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
}

.review-author span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--muted-2);
}

.review--dark .review-author span {
  color: rgba(255, 255, 255, 0.43);
}

/* ---------- Pricing ---------- */

.pricing {
  background: var(--paper);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.plan--pro {
  background: var(--indigo-ink);
  border-color: transparent;
  color: #f5f2ff;
  transform: translateY(-10px);
  box-shadow: 0 42px 70px -44px rgba(27, 21, 69, 0.65);
}

.plan--pro:hover {
  transform: translateY(-14px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--amber);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  box-shadow: 0 10px 20px -10px rgba(243, 172, 60, 0.8);
}

.plan-badge .icon {
  font-size: 11px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-desc {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.plan--pro .plan-desc {
  color: rgba(255, 255, 255, 0.48);
}

.plan-price {
  margin-top: 20px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s ease;
}

.price-num.is-switching {
  opacity: 0;
}

.plan--pro .price-num {
  color: #fff;
}

.price-unit {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted-2);
}

.plan--pro .price-unit {
  color: rgba(255, 255, 255, 0.42);
}

.billing-note {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted-2);
}

.plan--pro .billing-note {
  color: rgba(255, 255, 255, 0.4);
}

.plan-features {
  display: grid;
  gap: 10px;
  flex: 1;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0ecf5;
}

.plan--pro .plan-features {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.plan--pro .plan-features li {
  color: rgba(255, 255, 255, 0.74);
}

.plan-features .icon {
  margin-top: 2px;
  font-size: 13px;
  color: var(--indigo);
}

.plan--pro .plan-features .icon {
  color: var(--amber);
}

.plan .btn {
  margin-top: 24px;
}

.plan--pro .btn {
  color: var(--ink);
}

.pricing-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 26px;
  font-size: 10.5px;
  color: var(--muted);
}

.pricing-notes span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pricing-notes .icon {
  font-size: 11px;
  color: var(--indigo);
}

.bundle-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  margin-top: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(243, 172, 60, 0.42);
  border-radius: 24px;
  background: linear-gradient(120deg, #fff, #fdf8ed 60%, #fbf3e1);
  box-shadow: 0 24px 40px -36px rgba(74, 61, 224, 0.35);
}

.bundle-copy h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bundle-copy p {
  max-width: 560px;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.bundle-tag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bundle-price {
  text-align: right;
  white-space: nowrap;
}

.bundle-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bundle-price span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted-2);
}

.bundle-price small {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .bundle-offer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bundle-copy {
    grid-column: 1 / -1;
  }

  .bundle-price {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .bundle-offer {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .bundle-offer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 110px;
}

.faq-intro h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.faq-intro .section-sub {
  font-size: 14px;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.support-card .icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

.support-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
}

.support-card a {
  display: inline-block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--indigo);
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
  border-color: #d9d2e8;
}

.faq-item.is-open {
  border-color: #d8d0f5;
  background: #fdfcff;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 18px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item.is-open .faq-q {
  color: var(--indigo);
}

.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid #dcd5e8;
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #fff;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 18px 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Closing ---------- */

.closing-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(80px, 9vw, 110px);
}

.closing {
  position: relative;
  padding: clamp(56px, 8vw, 86px) 24px;
  border-radius: var(--radius-xl);
  background: var(--indigo-ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.closing-glow--one {
  width: 520px;
  height: 520px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(108, 95, 247, 0.45), transparent 66%);
}

.closing-glow--two {
  width: 360px;
  height: 360px;
  bottom: -240px;
  right: 8%;
  background: radial-gradient(circle, rgba(243, 172, 60, 0.22), transparent 68%);
}

.closing-ghost {
  position: absolute;
  right: 1%;
  bottom: -22%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(240px, 32vw, 430px);
  line-height: 1;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

.closing-spark {
  position: absolute;
  color: var(--amber);
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.closing-spark--one {
  top: 18%;
  left: 12%;
  font-size: 22px;
}

.closing-spark--two {
  top: 28%;
  right: 14%;
  font-size: 15px;
  animation-delay: -3s;
}

.closing > :not([aria-hidden="true"]) {
  position: relative;
  z-index: 1;
}

.closing h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.closing > p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.closing-notes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}

.closing-notes li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.43);
}

.closing-notes .icon {
  font-size: 11px;
  color: var(--amber);
}

.closing :focus-visible {
  outline-color: var(--amber);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 26px;
  background: #141022;
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand--light .brand-name {
  color: #fff;
}

.brand--light .brand-name span {
  color: #a99cff;
}

.footer-brand > p {
  max-width: 320px;
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.48);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #ded7ff;
}

.footer-mail .icon {
  font-size: 13px;
  color: var(--amber);
}

.footer-mail:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 17px;
}

.footer-socials a {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: var(--amber);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.footer-col > a {
  display: block;
  width: fit-content;
  margin-top: 11px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col > a:hover {
  color: #fff;
  transform: translateX(2px);
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.lang-chips a,
.lang-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-chips a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lang-chips .is-current {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lang-chips .icon {
  font-size: 10px;
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 0 0 auto;
}

.footer-credit strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.footer-credit a {
  color: #ded7ff;
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  max-width: 660px;
  text-align: right;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.38);
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.footer-legal a {
  color: #ded7ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--amber);
}

.site-footer :focus-visible {
  outline-color: var(--amber);
}

/* ---------- Reveal / motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1.25); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stat {
    padding: 0 30px;
  }

  .header-inner {
    gap: 14px;
  }

  .main-nav .nav-link {
    padding-inline: 9px;
  }

  .header-actions {
    gap: 6px;
  }

  .channel {
    padding: 26px;
    min-height: 440px;
  }

  .channel-head h3 {
    font-size: 27px;
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .plan--pro {
    transform: none;
  }

  .plan--pro:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header-inner {
    height: 70px;
  }

  .header-login {
    display: none;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .panel-side {
    border-left: 0;
    border-top: 1px solid #ece7f8;
  }

  .panel-side .score-block {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 22px;
    align-items: center;
  }

  .panel-side .score-head,
  .panel-side .rescore-note {
    grid-column: 1 / -1;
  }

  .panel-side .score-ring {
    grid-row: span 2;
    margin: 10px auto;
  }

  .panel-side .score-meta {
    margin-bottom: 12px;
  }

  .panel-side .criteria {
    margin-top: 0;
  }

  .course-grid,
  .practice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .course-card {
    flex-direction: row;
  }

  .course-visual {
    width: 38%;
    min-width: 280px;
    height: auto;
    min-height: 190px;
    flex: none;
  }

  .mini-plan {
    width: calc(100% - 36px);
    right: 18px;
  }

  .course-content {
    padding: 22px 24px;
  }

  .practice-card {
    padding: 22px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .channel {
    min-height: 0;
  }

  .channel-mock {
    max-width: 480px;
  }

  .channel-features {
    margin-top: 6px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 26px;
  }

  .steps::before {
    display: none;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento-progress {
    grid-column: auto;
  }

  .mock-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mock-visual {
    justify-content: center;
  }

  .answer-sheet {
    margin-top: 12px;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .plan-grid .plan {
    padding: 22px 20px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro .section-sub {
    max-width: 540px;
  }

  .support-card {
    max-width: 340px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
  }

  .footer-lang {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .section-head--row .section-sub {
    max-width: 520px;
    margin: 0;
  }

  .section-head h2 {
    font-size: clamp(30px, 7vw, 40px);
  }

  .section-sub {
    font-size: 14px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-badge {
    height: 34px;
    font-size: 11px;
  }

  .hero-badge-muted,
  .hero-badge-sep {
    display: none;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(42px, 11vw, 60px);
  }

  .hero-title .hl {
    display: inline;
  }

  .hero-sub {
    font-size: 15px;
    line-height: 1.65;
    margin-top: 18px;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .stat {
    padding: 0 20px;
  }

  .stat-num {
    font-size: 26px;
  }

  .stat span {
    font-size: 10px;
  }

  .demo-shell {
    margin-top: 34px;
  }

  .demo-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .demo-tabs {
    justify-content: stretch;
  }

  .demo-tab {
    flex: 1;
    padding: 0 8px;
    font-size: 11px;
  }

  .demo-toolbar-note {
    display: none;
  }

  .panel-main {
    padding: 16px 15px;
  }

  .panel-side {
    padding: 17px 15px;
  }

  .prompt-box {
    padding: 12px 13px;
  }

  .prompt-text {
    font-size: 12.5px;
  }

  .prompt-box--chart {
    grid-template-columns: minmax(0, 1fr) 136px;
    gap: 8px;
  }

  .panel-side .score-block {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
  }

  .score-ring {
    width: 104px;
    height: 104px;
  }

  .score-num {
    font-size: 33px;
  }

  .score-head {
    font-size: 9px;
  }

  .score-ai {
    font-size: 8px;
  }

  .demo-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 15px;
  }

  .hero-trust {
    padding: 0 4px;
    text-align: center;
  }

  .course-card {
    flex-direction: column;
  }

  .course-visual {
    width: 100%;
    min-width: 0;
    height: 170px;
    min-height: 0;
  }

  .mini-plan {
    width: calc(100% - 76px);
    right: auto;
  }

  .course-content {
    padding: 18px 20px 20px;
  }

  .channel {
    padding: 22px;
    border-radius: 24px;
  }

  .channel-head h3 {
    font-size: 26px;
  }

  .channel-mock {
    gap: 16px;
    flex-wrap: wrap;
  }

  .channel .btn {
    width: 100%;
  }

  .steps {
    margin-top: 36px;
    gap: 26px;
  }

  .step p {
    max-width: none;
  }

  .bento {
    margin-top: 32px;
    gap: 16px;
  }

  .bento-card {
    padding: 20px;
  }

  .bento-card h3 {
    font-size: 18px;
    max-width: 100%;
  }

  .bento-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .weak-row {
    grid-template-columns: 112px minmax(0, 1fr) 30px;
    gap: 8px;
    font-size: 10px;
  }

  .compare-hint {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted-2);
  }

  .compare-hint span {
    color: var(--indigo);
  }

  .compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .compare-table {
    min-width: 690px;
  }

  .mock-card {
    padding: 26px 20px 30px;
    border-radius: 26px;
  }

  .mock-copy h2 {
    font-size: clamp(28px, 7.4vw, 38px);
  }

  .mock-actions .btn {
    flex: 1;
    min-width: 160px;
  }

  .answer-sheet {
    transform: none;
    width: 100%;
    max-width: 390px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .rating-card {
    width: 100%;
  }

  .plan {
    padding: 22px;
  }

  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
    gap: 18px;
  }

  .plan-grid .plan {
    padding: 22px;
  }

  .plan-badge {
    left: 20px;
  }

  .faq-layout {
    gap: 28px;
  }

  .faq-q {
    padding: 15px 16px;
    font-size: 13px;
  }

  .faq-a p {
    padding: 0 16px 16px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .closing {
    border-radius: 26px;
    padding: 48px 18px;
  }

  .closing-ghost {
    opacity: 0.5;
  }

  .closing-notes {
    gap: 8px 12px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-lang {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-note {
    font-size: 10.5px;
    gap: 4px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }

  .stat {
    padding: 0 6px;
    border-left: 1px solid var(--line);
    text-align: center;
  }

  .stat:first-child {
    border-left: 0;
    padding-left: 6px;
  }

  .stat-num {
    font-size: 23px;
  }

  .stat span {
    font-size: 8.5px;
    line-height: 1.4;
    min-height: 24px;
  }

  .window-bar {
    padding: 0 12px;
    gap: 10px;
  }

  .window-url {
    max-width: 190px;
    font-size: 9px;
    padding: 4px 9px;
  }

  .live-badge {
    font-size: 0;
    gap: 0;
  }

  .panel-side .score-block {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
  }

  .score-ring {
    width: 92px;
    height: 92px;
  }

  .score-num {
    font-size: 29px;
  }

  .score-meta {
    font-size: 8.5px;
  }

  .criterion-head {
    font-size: 9.5px;
  }

  .criterion-head strong {
    font-size: 10px;
  }

  .criteria {
    gap: 6px;
  }

  .prompt-box--chart {
    grid-template-columns: 1fr;
  }

  .mini-chart {
    width: 180px;
    margin: 4px auto 0;
  }

  .essay {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .essay .err::after {
    width: 180px;
    font-size: 10px;
  }

  .essay-label {
    font-size: 8.5px;
  }

  .demo-tab {
    font-size: 10px;
    height: 32px;
  }

  .annotations {
    gap: 5px;
  }

  .annotation p {
    font-size: 10px;
  }

  .annotation strong {
    font-size: 9.5px;
  }

  .waveform {
    gap: 2px;
  }

  .transcript {
    font-size: 12px;
  }

  .section-head--row {
    gap: 16px;
  }

  .strong {
    font-size: 14px;
  }

  .course-visual {
    height: 160px;
  }

  .course-ghost {
    font-size: 110px;
  }

  .mini-plan {
    width: calc(100% - 46px);
    left: 14px;
  }

  .channel-mock {
    padding: 13px;
  }

  .channel-score strong {
    font-size: 30px;
  }

  .channel-wave {
    gap: 2px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }

  .step-top {
    justify-content: flex-start;
    gap: 14px;
  }

  .step-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 18px;
  }

  .step h3 {
    margin-top: 12px;
  }

  .weak-row {
    grid-template-columns: 104px minmax(0, 1fr) 28px;
    gap: 6px;
    font-size: 9.5px;
  }

  .bento-chip {
    font-size: 8.5px;
  }

  .sample-paper p {
    font-size: 12px;
  }

  .progress-chart svg {
    min-width: 480px;
  }

  .progress-chart {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mock-actions {
    flex-direction: column;
  }

  .mock-actions .btn {
    width: 100%;
  }

  .mock-pills span {
    font-size: 9px;
  }

  .answer-sheet {
    padding: 14px;
  }

  .sheet-float {
    display: none;
  }

  .sheet-row {
    grid-template-columns: 21px repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .bubble {
    height: 21px;
    font-size: 8px;
  }

  .review {
    padding: 18px;
  }

  .plan-badge {
    left: 16px;
    font-size: 8.5px;
    padding: 6px 10px;
  }

  .plan-footnote {
    font-size: 8.5px;
  }

  .pricing-notes {
    gap: 8px 14px;
    font-size: 9.5px;
  }

  .closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .closing-actions .btn {
    width: 100%;
  }

  .closing-notes {
    flex-direction: column;
    gap: 7px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-lang {
    grid-column: auto;
  }

  .footer-bottom {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Language switcher ---------- */

.lang-switcher {
  position: relative;
  flex: none;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lang-trigger:hover,
.lang-trigger[aria-expanded="true"] {
  border-color: rgba(74, 61, 224, 0.35);
  background: #fff;
  color: var(--ink);
}

.lang-globe {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--indigo);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--muted);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 140;
  width: 246px;
  max-height: min(432px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(23, 19, 41, 0.45);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lang-menu-head small {
  color: rgba(103, 95, 118, 0.75);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.lang-menu-list {
  display: grid;
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  text-align: start;
  cursor: pointer;
}

.lang-option small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.lang-option:hover,
.lang-option:focus-visible {
  outline: none;
  background: rgba(74, 61, 224, 0.07);
}

.lang-option.is-current {
  background: rgba(74, 61, 224, 0.09);
  color: var(--indigo);
  font-weight: 800;
}

.lang-option.is-current small {
  color: var(--indigo);
}

html[dir="rtl"] .lang-option,
html[dir="rtl"] .lang-menu-head {
  text-align: right;
}

/* Hide Google's own toolbar; the custom selector drives translation. */

.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: transparent !important;
  box-shadow: none !important;
}

.fis-gt-holder {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Keep machine-translated pages fully visible so Google can translate every section at once. */
html.is-translating .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (max-width: 980px) {
  .header-lang .lang-trigger {
    height: 38px;
    padding: 0 10px;
  }
}

@media (max-width: 500px) {
  .header-lang .lang-current,
  .header-lang .lang-chevron {
    display: none;
  }

  .header-lang .lang-trigger {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .lang-menu {
    width: min(246px, calc(100vw - 32px));
  }
}

@media (max-width: 340px) {
  .site-header .header-inner {
    gap: 8px;
  }

  .site-header .brand-name {
    display: none;
  }
}

/* ---------- Site-wide promo banner ---------- */

.promo-banner {
  position: relative;
  z-index: 70;
  background: var(--indigo-ink);
  color: #fff;
}

.promo-banner-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 42px;
  margin-inline: auto;
  padding: 8px 44px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.promo-banner-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-banner-copy {
  color: rgba(255, 255, 255, 0.86);
}

.promo-banner-cta {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-banner-cta:hover {
  color: #ffd07f;
}

.promo-banner-close {
  position: absolute;
  top: 50%;
  right: max(12px, calc((100vw - 1240px) / 2));
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.promo-banner-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.promo-banner-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .promo-banner-inner {
    justify-content: flex-start;
    padding: 9px 44px 9px 16px;
    font-size: 11.5px;
    text-align: left;
  }
}

/* ---------- Visitor counter ---------- */

.visitor-counter {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(128, 128, 128, 0.28);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.72;
}

.visitor-counter strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media print {
  .promo-banner {
    display: none;
  }
}
