:root {
  --ink-950: #06213a;
  --ink-900: #0b2d4d;
  --ink-700: #32506d;
  --mist: #edf6fb;
  --mist-strong: #dbeef7;
  --foam: #ffffff;
  --sea: #0f8e9d;
  --sea-deep: #0d6f84;
  --sand: #f7efe1;
  --line: rgba(6, 33, 58, 0.12);
  --shadow: 0 18px 50px rgba(6, 33, 58, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink-950);
  background:
    radial-gradient(circle at top left, rgba(49, 168, 195, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 207, 128, 0.22), transparent 26%),
    linear-gradient(180deg, #f9fdff 0%, #eef7fb 54%, #fef8ef 100%);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(32px);
  z-index: -1;
  opacity: 0.55;
}

.ambient-left {
  top: -3rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(73, 202, 224, 0.38);
}

.ambient-right {
  right: -7rem;
  bottom: 6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(255, 193, 110, 0.28);
}

.container {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(6, 33, 58, 0.08);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-wrap {
  min-height: 78px;
}

.header-cluster {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  mix-blend-mode: darken;
  filter: contrast(1) brightness(1.08) saturate(1.1) hue-rotate(6deg);
}

.brand.has-logo .brand-mark {
  display: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--foam);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ink-900), var(--sea));
  box-shadow: var(--shadow);
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.brand small {
  display: block;
  color: var(--ink-700);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--sea-deep);
}

.header-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 142, 157, 0.16), rgba(11, 45, 77, 0.08));
  border: 1px solid rgba(15, 142, 157, 0.2);
  box-shadow: 0 10px 28px rgba(6, 33, 58, 0.08);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.header-timer-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-deep);
}

.header-timer strong {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  color: var(--ink-900);
}

.header-timer.is-warning {
  background: linear-gradient(135deg, rgba(255, 220, 220, 0.96), rgba(255, 189, 189, 0.9));
  border-color: rgba(211, 74, 74, 0.35);
}

.header-timer.is-warning .header-timer-label,
.header-timer.is-warning strong {
  color: #8b2020;
}

.header-timer.is-critical {
  background: linear-gradient(135deg, rgba(145, 12, 12, 0.98), rgba(205, 39, 39, 0.95));
  border-color: rgba(113, 0, 0, 0.52);
  box-shadow: 0 14px 34px rgba(145, 12, 12, 0.22);
}

.header-timer.is-critical .header-timer-label,
.header-timer.is-critical strong {
  color: #fff4f4;
}

.hero,
.section,
.site-footer {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5.5rem;
}

.hero-grid,
.drill-grid,
.mock-layout,
.paper-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
}

.hero-copy,
.hero-panel,
.card,
.mock-card,
.question-card,
.board-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-panel {
  padding: 1.75rem;
  background:
    linear-gradient(180deg, rgba(10, 45, 77, 0.95), rgba(10, 45, 77, 0.86)),
    linear-gradient(135deg, rgba(14, 142, 157, 0.4), transparent);
  color: var(--foam);
}

.eyebrow,
.card-tag,
.panel-label {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow,
.card-tag {
  color: var(--sea-deep);
}

.panel-label {
  color: rgba(255, 255, 255, 0.7);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0;
}

.lead {
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sea), var(--ink-900));
  color: var(--foam);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-900);
  border-color: rgba(6, 33, 58, 0.12);
}

.study-day-btn {
  margin-top: 0.9rem;
  background: linear-gradient(145deg, #f5d38a, #c99a42);
  color: #2f220c;
  border: 1px solid rgba(255, 221, 160, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-note {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--sand);
  border: 1px solid rgba(187, 143, 67, 0.18);
  color: var(--ink-900);
}

code {
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(6, 33, 58, 0.08);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 0.92em;
}

.flow-list,
.check-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

.flow-list li {
  margin-bottom: 0.35rem;
}

.flow-click {
  margin-left: 0.55rem;
}

.panel-stats,
.zone-grid,
.board-grid {
  display: grid;
  gap: 1rem;
}

.panel-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.panel-stats article {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-stats strong {
  display: block;
  font-size: 1.8rem;
}

.stat-link-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.stat-link {
  text-decoration: none;
  font-weight: 700;
}

.stat-link-mock {
  color: #b7ff00;
}

.stat-link-interview {
  color: #b7ff00;
}

.stat-link-study {
  color: #b7ff00;
}

.stat-link:hover {
  text-decoration: underline;
}

.stat-click {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: #03210f;
  background: #b7ff00;
  border: 1px solid #d8ff7a;
}

.stat-click:hover {
  background: #d1ff57;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.interview-content {
  display: grid;
  gap: 1.5rem;
}

.zone-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.mock-card,
.question-card,
.board-card {
  padding: 1.5rem;
}

.text-link {
  color: var(--ink-900);
  font-weight: 700;
}

.shaded {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(217, 238, 245, 0.4));
}

.mock-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.mock-list,
.paper-list {
  display: grid;
  gap: 0.8rem;
}

.mode-tab,
.paper-button {
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.paper-link {
  display: block;
  text-decoration: none;
}

.paper-link-blue {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--sea) 58%, #5eb8c4 100%);
  color: var(--foam);
  border-color: rgba(15, 111, 132, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 28px rgba(6, 33, 58, 0.18);
}

.paper-link-blue:hover {
  background: linear-gradient(135deg, #082742 0%, var(--sea-deep) 54%, #4baab6 100%);
}

.practice-bottom-back {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), var(--mist) 52%, var(--sand) 100%);
  color: var(--ink-900);
  border-color: rgba(6, 33, 58, 0.12);
  box-shadow: 0 10px 22px rgba(38, 55, 78, 0.07);
}

.set-back-btn {
  background: linear-gradient(135deg, #2a6bff, #59a7ff);
  color: var(--foam);
  border-color: rgba(42, 107, 255, 0.28);
}

.mode-tab.active,
.paper-button.active {
  background: linear-gradient(135deg, var(--ink-900), var(--sea));
  color: var(--foam);
}

.paper-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.paper-viewer {
  padding: clamp(1.2rem, 1.2vw + 1rem, 2rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.exam-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.35rem;
  flex-wrap: wrap;
}

.exam-dashboard,
.result-grid {
  display: grid;
  gap: 0.85rem;
}

.exam-dashboard {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  flex: 1;
}

.exam-stat,
.result-grid article {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(237, 246, 251, 0.85);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.result-correct-card {
  background: rgba(223, 255, 217, 0.95);
  border-color: rgba(39, 176, 75, 0.28);
}

.result-correct-card strong,
.result-correct-card span {
  color: #1d6a2f;
}

.result-wrong-card {
  background: rgba(255, 224, 224, 0.96);
  border-color: rgba(215, 55, 55, 0.28);
}

.result-wrong-card strong,
.result-wrong-card span {
  color: #8a1f1f;
}

.result-performance-card {
  background: linear-gradient(135deg, rgba(16, 49, 88, 0.96), rgba(44, 99, 163, 0.94));
  border-color: rgba(71, 134, 210, 0.28);
}

.result-performance-card strong,
.result-performance-card span {
  color: #f8fbff;
}

.result-performance-card span {
  letter-spacing: 0.03em;
  text-transform: none;
}

.exam-stat span,
.result-grid span {
  display: block;
  color: var(--ink-700);
  font-size: 0.86rem;
}

.exam-stat strong,
.result-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
}

.result-performance-card strong {
  font-size: 1.34rem;
}

.result-panel {
  margin: 1.35rem 0;
  padding: clamp(1rem, 0.8vw + 0.9rem, 1.45rem);
  border-radius: 24px;
  background: rgba(240, 249, 238, 0.96);
  border: 1px solid rgba(39, 176, 75, 0.18);
}

.result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 0.75rem;
}

.paper-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 74px;
  margin-bottom: 0.9rem;
  border-radius: 22px;
  background: #b7ff00;
  color: #03210f;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.paper-viewer p {
  color: var(--ink-700);
}

.paper-viewer > h3,
.paper-viewer > #paper-title {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.45rem, 1.1vw + 1.1rem, 2rem);
}

.paper-viewer > #paper-note {
  max-width: 60ch;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.paper-submit-bottom {
  display: flex;
  justify-content: center;
  margin-top: 1.55rem;
}

.paper-submit-bottom .btn {
  min-width: 220px;
  min-height: 52px;
}

.session-stack {
  display: grid;
  gap: 1rem;
}

.session-intro {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.4rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 95, 162, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 244, 250, 0.94));
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.session-intro::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(42, 107, 255, 0.14), transparent 70%);
}

.session-intro h3,
.session-intro p {
  position: relative;
  z-index: 1;
}

.session-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(237, 246, 251, 0.78);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.session-card h3 {
  margin: 0 0 0.55rem;
}

.session-card p {
  margin: 0;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5fa2, #ff8ac0);
  color: var(--foam);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.session-video {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(42, 107, 255, 0.2), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 95, 162, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(8, 36, 67, 0.96), rgba(16, 109, 164, 0.9));
  color: var(--foam);
}

.session-video::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.session-video-inner {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
}

.session-video-label {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-video h3 {
  margin: 0.9rem 0 0.5rem;
  color: var(--foam);
}

.session-video p {
  color: rgba(255, 255, 255, 0.82);
}

.session-video-cta {
  margin-top: 1rem;
  background: linear-gradient(135deg, #ff5fa2, #ff8ac0);
  color: var(--foam);
}

.live-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.live-link-stack {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.live-link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.live-link-item strong {
  color: var(--ink-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.live-link-editor {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.live-link-editor label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink-900);
}

.live-link-editor input {
  width: 100%;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 33, 58, 0.16);
  background: #ffffff;
  color: var(--ink-900);
  font: inherit;
}

.live-link-editor input:focus {
  outline: none;
  border-color: rgba(42, 107, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(42, 107, 255, 0.12);
}

.live-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.live-editor-save {
  background: linear-gradient(135deg, #2a6bff, #59a7ff);
  color: var(--foam);
}

.live-editor-status {
  color: var(--ink-700);
  font-size: 0.92rem;
}

.owner-access-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.owner-access-copy {
  color: var(--ink-700);
}

.owner-unlock-btn {
  background: linear-gradient(135deg, #2a6bff, #59a7ff);
  color: var(--foam);
}

.owner-editor[hidden] {
  display: none;
}

.owner-login {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.owner-login-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.owner-login input {
  flex: 1;
  min-width: 220px;
  min-height: 46px;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(6, 33, 58, 0.16);
  background: #ffffff;
  color: var(--ink-900);
  font: inherit;
}

.owner-login input:focus {
  outline: none;
  border-color: rgba(42, 107, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(42, 107, 255, 0.12);
}

.master-grid {
  display: grid;
  gap: 1rem;
}

.master-card {
  padding: 1.15rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.master-card h3 {
  margin: 0 0 0.45rem;
}

.master-card p {
  margin: 0 0 0.9rem;
}

.master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.owner-master-link[hidden] {
  display: none;
}

.master-link-btn {
  background: linear-gradient(135deg, #2a6bff, #59a7ff);
  color: var(--foam);
}

.live-link-hint {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-700);
  font-size: 0.92rem;
}

.live-link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.live-session-shell {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.live-session-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(42, 107, 255, 0.12), rgba(255, 95, 162, 0.14));
  border: 1px solid rgba(6, 33, 58, 0.08);
  color: var(--ink-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 800;
}

.live-session-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(42, 107, 255, 0.12), rgba(255, 95, 162, 0.16)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.live-session-entry p {
  max-width: 52ch;
}

.live-session-open {
  background: linear-gradient(135deg, #2a6bff, #ff6fad);
  color: var(--foam);
}

.live-link-text {
  flex: 1;
  min-width: 220px;
}

.live-link-button {
  background: linear-gradient(135deg, #ff5fa2, #ff8ac0);
  color: var(--foam);
}

.session-back {
  margin-top: 0.25rem;
  align-self: start;
}

.paper-headline {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
}

.paper-intro,
.paper-section,
.paper-placeholder {
  padding: clamp(1rem, 0.7vw + 0.9rem, 1.4rem);
  border-radius: 22px;
  background: rgba(237, 246, 251, 0.75);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.paper-section + .paper-section,
.paper-intro + .paper-section {
  margin-top: 1rem;
}

.paper-subtitle,
.question-note {
  color: var(--ink-700);
}

.paper-question-stack {
  display: grid;
  gap: 1rem;
}

.question-media {
  margin-top: 1rem;
}

.question-diagram-wrap {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(232, 242, 247, 0.88);
  border: 1px solid rgba(15, 31, 49, 0.12);
  overflow-x: auto;
}

.question-diagram-svg {
  display: block;
  width: 100%;
  min-width: 320px;
  height: auto;
  color: #16324a;
}

.question-block {
  padding: clamp(0.95rem, 0.4vw + 0.9rem, 1.2rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 33, 58, 0.08);
}

.question-block h4 {
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.question-block.is-compact-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.95fr);
  gap: 0.7rem 0.95rem;
  align-items: start;
}

.question-block.is-compact-figure > h4 {
  margin: 0;
}

.question-prompt {
  white-space: normal;
  line-height: 1.65;
  font-size: 0.98rem;
}

.question-block.is-compact-figure > .question-prompt {
  margin: 0;
  align-self: center;
  justify-self: end;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.35;
}

.question-table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(6, 33, 58, 0.1);
  background: rgba(246, 250, 253, 0.95);
}

.question-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.question-table th,
.question-table td {
  padding: 0.8rem 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(6, 33, 58, 0.08);
}

.question-table th {
  background: rgba(224, 236, 245, 0.9);
  color: var(--ink-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
}

.question-table td {
  color: var(--ink-800);
  line-height: 1.6;
  font-size: 0.95rem;
}

.question-table tr:last-child td {
  border-bottom: 0;
}

.options-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.question-block.is-compact-figure > .question-media {
  margin-top: 0;
}

.question-block.is-compact-figure > .options-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-content: start;
}

.option-button {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  min-height: 60px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(6, 33, 58, 0.1);
  background: #ffffff;
  color: var(--ink-900);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.option-button:hover {
  border-color: rgba(15, 142, 157, 0.45);
  background: rgba(237, 246, 251, 0.8);
}

.option-button:disabled {
  cursor: default;
}

.option-key {
  font-weight: 800;
  color: var(--sea-deep);
  min-width: 2rem;
}

.question-block.is-compact-figure .option-button {
  min-height: 52px;
  padding: 0.75rem 0.8rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.question-block.is-compact-figure .option-key {
  min-width: 0;
}

.option-button.is-correct {
  background: linear-gradient(180deg, rgba(234, 252, 230, 0.98), rgba(219, 246, 214, 0.98));
  border-color: rgba(69, 164, 92, 0.56);
  color: #174f27;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 18px rgba(74, 156, 90, 0.12);
}

.option-button.is-wrong {
  background: linear-gradient(180deg, rgba(255, 238, 238, 0.98), rgba(250, 220, 220, 0.98));
  border-color: rgba(203, 92, 92, 0.54);
  color: #7b1f1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 8px 18px rgba(176, 78, 78, 0.11);
}

.option-button.is-selected {
  background: linear-gradient(180deg, rgba(240, 248, 252, 0.98), rgba(228, 241, 247, 0.98));
  border-color: rgba(15, 142, 157, 0.38);
  color: var(--ink-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.drill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted-card {
  background: linear-gradient(180deg, rgba(245, 250, 253, 0.96), rgba(233, 243, 248, 0.96));
}

.board-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accent-card {
  background: linear-gradient(135deg, rgba(15, 142, 157, 0.94), rgba(11, 45, 77, 0.94));
  color: var(--foam);
}

.revision-showcase {
  display: grid;
  gap: 1.35rem;
}

.connect-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.8rem;
}

.connect-card-copy {
  display: grid;
  gap: 1rem;
}

.connect-card-copy h3 {
  margin: 0;
}

.connect-card-copy p:last-child {
  margin-bottom: 0;
}

.mentor-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.linkedin-icon-link {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #0a66c2;
  color: #ffffff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: linkedinTwinkle 1.8s ease-in-out infinite;
}

.linkedin-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(10, 102, 194, 0.24);
}

.linkedin-icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes linkedinTwinkle {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(10, 102, 194, 0);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 14px rgba(10, 102, 194, 0.45);
    filter: brightness(1.15);
  }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(6, 33, 58, 0.12);
  text-decoration: none;
  color: var(--ink-900);
  background: #e9fff5;
  font-weight: 700;
  width: fit-content;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(6, 33, 58, 0.14);
}

.whatsapp-btn {
  background: #e9fff5;
}

.social-btn img,
.social-btn svg {
  width: 28px;
  height: 28px;
}

.social-btn img {
  object-fit: cover;
  border-radius: 6px;
}

.social-btn svg {
  fill: currentColor;
}

.instagram-btn {
  background: #fff1f6;
  color: #c13584;
}

.facebook-btn {
  background: #eef4ff;
  color: #1877f2;
}

.youtube-btn {
  background: #ffe9e9;
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.24);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 1.1rem;
  align-items: start;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-details > .contact-phone,
.contact-details > p:last-child {
  grid-column: 1 / -1;
}

.contact-mentor {
  border: 1px solid rgba(6, 33, 58, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: #f8fcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-mentor h4 {
  margin: 0 0 4px;
  color: var(--ink-900);
}

.contact-mentor p {
  margin: 0;
  color: var(--ink-700);
}

.contact-phone {
  margin: 2px 0 0;
}

.contact-actions {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(6, 33, 58, 0.08);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(235, 245, 250, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.contact-actions h4 {
  margin: 0 0 10px;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.contact-actions .social-links {
  gap: 8px;
}

.contact-actions .social-btn {
  min-height: 44px;
  width: 100%;
  justify-content: flex-start;
}

.floating-help-avatar {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  animation: floatingHelpLift 4.4s ease-in-out infinite;
}

.floating-help-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.floating-help-image-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  padding: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 249, 0.94));
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.2),
    0 0 0 1px rgba(15, 23, 42, 0.08);
}

.floating-help-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 999px;
}

.floating-help-avatar:hover,
.floating-help-avatar:focus-visible {
  outline: none;
  transform: translateY(-2px) scale(1.02);
}

body.exam-active .floating-help-avatar {
  opacity: 0.22;
  filter: saturate(0.45) blur(3px);
  pointer-events: none;
}

body.exam-active .floating-help-badge,
body.exam-active .floating-help-image-wrap {
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(26px) saturate(0.65);
  -webkit-backdrop-filter: blur(26px) saturate(0.65);
}

body.exam-active .floating-help-badge {
  color: rgba(15, 23, 42, 0.16);
}

@keyframes floatingHelpLift {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.revision-intro-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(135deg, rgba(7, 31, 57, 0.96), rgba(22, 119, 167, 0.9) 54%, rgba(255, 125, 185, 0.8) 100%);
  color: var(--foam);
  box-shadow: 0 22px 50px rgba(6, 33, 58, 0.18);
}

.revision-intro-card .card-tag,
.revision-intro-card p {
  color: rgba(255, 255, 255, 0.82);
}

.revision-intro-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.revision-flow-shell {
  position: relative;
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  padding: 1.6rem 0 1.6rem;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.revision-flow-shell.is-dragging {
  cursor: grabbing;
}

.revision-showcase:hover .revision-flow-shell::before,
.revision-showcase:hover .revision-flow-shell::after,
.revision-showcase:focus-within .revision-flow-shell::before,
.revision-showcase:focus-within .revision-flow-shell::after {
  opacity: 0.82;
}

.revision-flow-shell::before,
.revision-flow-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(10vw, 120px);
  z-index: 2;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.revision-flow-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(238, 247, 251, 0.98), rgba(238, 247, 251, 0));
}

.revision-flow-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(246, 250, 245, 0.98), rgba(246, 250, 245, 0));
}

.revision-flow-track {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  padding: 0.2rem max(2.5rem, calc(50vw - 760px));
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.revision-flow-card {
  width: min(572px, calc(100vw - 130px));
  min-height: 680px;
  padding: 2rem 2rem 1.6rem;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 250, 0.96));
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 20px 40px rgba(6, 33, 58, 0.1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease, opacity 260ms ease;
  flex: 0 0 auto;
  user-select: none;
  transform: scale(0.92);
  filter: blur(2.6px) saturate(0.88);
  opacity: 0.44;
  position: relative;
  overflow: hidden;
}

.revision-flow-card.is-front {
  transform: scale(1.02);
  box-shadow: 0 30px 68px rgba(6, 33, 58, 0.14);
  filter: none;
  opacity: 1;
  z-index: 3;
}

.revision-flow-track:hover .revision-flow-card,
.revision-flow-track:focus-within .revision-flow-card {
  transform: scale(0.92);
  filter: blur(2.6px) saturate(0.88);
  opacity: 0.44;
  box-shadow: 0 24px 54px rgba(4, 10, 18, 0.16);
  z-index: 1;
}

.revision-flow-track:hover .revision-flow-card:hover,
.revision-flow-track:focus-within .revision-flow-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 30px 68px rgba(6, 33, 58, 0.14);
  filter: none !important;
  opacity: 1 !important;
  z-index: 4;
}

.revision-flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(117, 163, 172, 0.1), transparent 14%),
    linear-gradient(90deg, rgba(90, 138, 148, 0.1), transparent 12%, transparent 88%, rgba(90, 138, 148, 0.1)),
    linear-gradient(180deg, transparent 86%, rgba(90, 138, 148, 0.12));
  pointer-events: none;
}

.revision-flow-card:hover,
.revision-flow-card:focus-visible {
  outline: none;
}

.flow-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  color: #d5631a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-copy {
  position: relative;
  z-index: 1;
}

.flow-day {
  margin: 0 0 0.5rem;
  color: rgba(11, 45, 77, 0.52);
  font-size: 1rem;
  font-weight: 600;
}

.revision-flow-card h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
  color: #20232a;
  position: relative;
  z-index: 1;
}

.flow-lead {
  margin: 0;
  color: #252830;
  line-height: 1.28;
  font-size: clamp(1.18rem, 1.7vw, 1.6rem);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.flow-meta {
  margin: 0.7rem 0 0;
  color: rgba(11, 45, 77, 0.78);
  line-height: 1.45;
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
}

.flow-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 360px;
  display: grid;
  place-items: center;
  margin: 1.6rem 0 1.25rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(235, 242, 247, 0.5), rgba(220, 232, 239, 0.92));
  height: 360px;
  min-height: 360px;
  overflow: hidden;
}

.flow-visual::before {
  content: "";
  position: absolute;
  inset: 8% 8% 12%;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(212, 230, 239, 0.28) 54%, rgba(212, 230, 239, 0) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(215, 231, 239, 0.12));
}

.flow-visual::after {
  content: "";
  position: absolute;
  inset: auto 14% 8% 14%;
  height: 20%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 34, 57, 0.12), rgba(15, 34, 57, 0) 72%);
  filter: blur(18px);
}

.flow-visual span {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: 1.2rem;
  color: rgba(11, 45, 77, 0.18);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  text-align: center;
}

.flow-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  filter: saturate(1.02) contrast(1.04);
}

.flow-visual:has(.flow-visual-image) {
  background: linear-gradient(180deg, rgba(245, 248, 250, 0.92), rgba(233, 240, 245, 0.96));
}

.flow-visual:has(.flow-visual-image)::before,
.flow-visual:has(.flow-visual-image)::after {
  display: none;
}

.flow-visual:has(.flow-visual-image) span {
  display: none;
}

.revision-flow-card.day-01 .flow-visual {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 245, 150, 0.84), rgba(255, 245, 150, 0) 24%),
    linear-gradient(180deg, rgba(234, 248, 255, 0.18), rgba(219, 237, 248, 0.76));
}

.revision-flow-card.day-01 .flow-visual::before {
  inset: 10% 12% 16%;
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(224, 240, 255, 0.96) 0 14%, rgba(157, 233, 199, 0.96) 14% 28%, rgba(248, 241, 98, 0.96) 28% 42%, rgba(178, 232, 248, 0.96) 42% 56%, rgba(131, 214, 120, 0.96) 56% 70%, rgba(255, 243, 52, 0.96) 70% 84%, rgba(130, 228, 229, 0.96) 84% 100%);
  box-shadow: inset 0 0 0 4px rgba(14, 38, 60, 0.16), 0 18px 40px rgba(137, 153, 32, 0.22);
}

.revision-flow-card.day-02 .flow-visual {
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 231, 241, 0.9), rgba(255, 231, 241, 0) 22%),
    linear-gradient(180deg, rgba(248, 241, 247, 0.16), rgba(233, 238, 248, 0.7));
}

.revision-flow-card.day-02 .flow-visual::before {
  inset: 8% 21% 12% 21%;
  border-radius: 28px;
  transform: rotate(-12deg);
  background:
    linear-gradient(180deg, rgba(255, 232, 239, 1), rgba(236, 220, 233, 0.98));
  box-shadow:
    -82px 120px 0 -12px rgba(31, 39, 68, 0.96),
    -84px 122px 0 -8px rgba(240, 186, 201, 0.66),
    0 20px 42px rgba(70, 48, 86, 0.16);
}

.revision-flow-card.day-03 .flow-visual {
  background:
    radial-gradient(circle at 28% 24%, rgba(215, 255, 223, 0.82), rgba(215, 255, 223, 0) 24%),
    linear-gradient(180deg, rgba(239, 251, 244, 0.28), rgba(227, 241, 234, 0.58));
}

.revision-flow-card.day-03 .flow-visual::before {
  inset: 8% 10% 16%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 30%, rgba(77, 232, 126, 0.98), rgba(167, 255, 193, 0) 22%),
    radial-gradient(circle at 70% 35%, rgba(98, 198, 255, 0.98), rgba(147, 223, 255, 0) 18%),
    radial-gradient(circle at 50% 68%, rgba(252, 223, 87, 0.98), rgba(252, 243, 160, 0) 20%),
    linear-gradient(180deg, rgba(241, 255, 248, 0.98), rgba(208, 238, 220, 0.86));
  box-shadow: 0 18px 36px rgba(56, 132, 78, 0.18);
}

.revision-flow-card.day-04 .flow-visual {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.92), rgba(232, 237, 241, 0.96));
}

.revision-flow-card.day-04 .flow-visual::before {
  display: none;
}

.revision-flow-card.day-04 .flow-visual::after {
  display: none;
}

.revision-flow-card.day-04 .flow-visual span::before {
  content: none;
}

.revision-flow-card.day-05 .flow-visual {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.92), rgba(232, 237, 241, 0.96));
}

.revision-flow-card.day-05 .flow-visual::before {
  display: none;
}

.revision-flow-card.day-06 .flow-visual {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.92), rgba(232, 237, 241, 0.96));
}

.revision-flow-card.day-06 .flow-visual::before {
  display: none;
}

.revision-flow-card.day-07 .flow-visual {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.92), rgba(232, 237, 241, 0.96));
}

.revision-flow-card.day-07 .flow-visual::before {
  display: none;
}

.revision-flow-card .study-day-btn {
  margin-top: auto;
  width: fit-content;
  min-height: 52px;
  padding-inline: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  justify-content: center;
  text-align: center;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(6, 33, 58, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 20px rgba(6, 33, 58, 0.08);
}

.revision-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 185, 193, 0.58);
  color: rgba(37, 40, 48, 0.78);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.revision-arrow:hover {
  background: rgba(164, 169, 178, 0.72);
}

.revision-arrow span {
  font-size: 3.4rem;
  line-height: 1;
  transform: translateY(-3px);
}

.revision-arrow-left {
  left: max(18px, calc(50vw - 930px));
}

.revision-arrow-right {
  right: max(18px, calc(50vw - 930px));
}

.revision-flow-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding-top: 0.5rem;
}

.indicator-dot,
.indicator-pill {
  border-radius: 999px;
  background: rgba(6, 33, 58, 0.42);
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease, width 180ms ease;
}

.indicator-dot {
  width: 10px;
  height: 10px;
}

.indicator-dot.small {
  width: 8px;
  height: 8px;
  opacity: 0.72;
}

.indicator-dot.tiny {
  width: 6px;
  height: 6px;
  opacity: 0.58;
}

.indicator-pill {
  width: 44px;
  height: 10px;
}

.indicator-pill.is-active,
.indicator-dot.is-active {
  background: linear-gradient(90deg, #101010 0%, #181818 26%, #7f7f7f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.indicator-dot.is-active {
  width: 18px;
  height: 10px;
}

.revision-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.revision-overlay[hidden] {
  display: none;
}

.revision-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 34, 0.6);
  backdrop-filter: blur(18px);
}

.revision-overlay-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 97vw);
}

.revision-overlay-close {
  margin-left: auto;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: var(--foam);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.revision-overlay-card {
  min-height: min(88vh, 920px);
}

.revision-overlay-card .revision-flow-card {
  width: 100%;
  min-height: min(88vh, 920px);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border-radius: 42px;
  box-shadow: 0 42px 90px rgba(6, 33, 58, 0.26);
  cursor: default;
  transform: none !important;
}

.revision-overlay-card .revision-flow-card h3 {
  margin-top: 0.35rem;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.revision-overlay-card .flow-lead,
.revision-overlay-card .flow-meta {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.revision-overlay-card .study-day-btn {
  min-height: 58px;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

.revision-flow-card.day-01 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(241,247,251,0.98)); }
.revision-flow-card.day-02 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(243,248,250,0.98)); }
.revision-flow-card.day-03 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(242,246,251,0.98)); }
.revision-flow-card.day-04 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,247,250,0.98)); }
.revision-flow-card.day-05 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,248,249,0.98)); }
.revision-flow-card.day-06 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(241,246,250,0.98)); }
.revision-flow-card.day-07 { background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(243,248,247,0.98)); }

.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.site-footer p {
  color: var(--ink-700);
}

@media (max-width: 920px) {
  .hero-grid,
  .mock-layout,
  .paper-layout,
  .exam-dashboard,
  .result-grid,
  .drill-grid,
  .zone-grid,
  .board-grid,
  .panel-stats {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .header-cluster {
    align-items: flex-start;
  }

  .paper-viewer {
    padding: 1.3rem;
    border-radius: 24px;
  }

  .exam-shell {
    gap: 0.9rem;
  }

  .paper-submit-bottom .btn,
  #submit-paper {
    width: 100%;
  }

  .connect-card {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .floating-help-avatar {
    right: 16px;
    bottom: 16px;
    gap: 0.55rem;
  }

  .floating-help-badge {
    min-height: 40px;
    padding: 0.66rem 0.9rem;
    font-size: 0.88rem;
  }

  .floating-help-image-wrap {
    width: 60px;
    height: 60px;
  }

  .hero,
  .section,
  .site-footer {
    padding: 3.5rem 0;
  }

  .revision-flow-track {
    padding: 0.2rem 1rem;
  }

  .revision-flow-shell {
    margin-inline: 0;
    padding: 1.1rem 0 1.25rem;
  }

  .revision-flow-card {
    width: min(470px, calc(100vw - 72px));
    min-height: 590px;
    padding: 1.5rem 1.5rem 1.3rem;
    border-radius: 28px;
  }

  .flow-chip {
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
  }

  .flow-day {
    font-size: 0.92rem;
  }

  .revision-flow-card h3 {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
  }

  .flow-lead {
    font-size: 1.08rem;
  }

  .flow-meta {
    font-size: 0.95rem;
  }

  .flow-visual {
    flex-basis: 300px;
    height: 300px;
    min-height: 300px;
    margin: 1.2rem 0 1rem;
    border-radius: 22px;
  }

  .revision-arrow {
    width: 58px;
    height: 58px;
  }

  .revision-arrow span {
    font-size: 2.7rem;
  }

  .revision-arrow-left {
    left: 10px;
  }

  .revision-arrow-right {
    right: 10px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100vw - 24px));
  }

  .hero-copy,
  .hero-panel,
  .card,
  .mock-card,
  .question-card,
  .board-card {
    padding: 1.2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-timer {
    width: 100%;
    justify-content: space-between;
  }

  .paper-viewer {
    padding: 1rem;
    border-radius: 22px;
  }

  .paper-badge {
    min-width: 62px;
    min-height: 62px;
    font-size: 1.35rem;
    border-radius: 18px;
  }

  .paper-viewer > h3,
  .paper-viewer > #paper-title {
    font-size: 1.3rem;
  }

  .paper-viewer > #paper-note {
    font-size: 0.94rem;
  }

  .paper-intro,
  .paper-section,
  .paper-placeholder,
  .result-panel,
  .question-block {
    padding: 0.95rem;
    border-radius: 18px;
  }

  .paper-section + .paper-section,
  .paper-intro + .paper-section {
    margin-top: 0.8rem;
  }

  .exam-shell {
    margin: 0.85rem 0 1rem;
  }

  .exam-stat,
  .result-grid article {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
  }

  .exam-stat strong,
  .result-grid strong {
    font-size: 1.02rem;
  }

  .question-block h4 {
    font-size: 0.98rem;
  }

  .question-block.is-compact-figure {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .question-block.is-compact-figure > .question-prompt {
    justify-self: start;
    text-align: left;
    font-size: 0.84rem;
  }

  .question-prompt,
  .question-note,
  .paper-subtitle {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .question-block.is-compact-figure > .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .option-button {
    min-height: 54px;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
  }

  .option-key {
    min-width: 1.75rem;
  }

  .symbol-question-image {
    border-radius: 14px;
  }

  .floating-help-avatar {
    right: 12px;
    bottom: 12px;
  }

  .floating-help-badge {
    padding: 0.58rem 0.8rem;
    font-size: 0.84rem;
  }

  .floating-help-image-wrap {
    width: 54px;
    height: 54px;
    padding: 3px;
  }

  .revision-flow-shell::before,
  .revision-flow-shell::after {
    display: none;
  }

  .revision-flow-shell {
    padding: 0.6rem 0 0.85rem;
  }

  .revision-flow-track {
    gap: 0.7rem;
    padding: 0.1rem 0.75rem;
  }

  .revision-flow-card {
    width: calc(100vw - 38px);
    min-height: 500px;
    padding: 1.15rem 1.05rem 1rem;
    border-radius: 24px;
    transform: scale(0.96);
  }

  .revision-flow-card.is-front,
  .revision-flow-track:hover .revision-flow-card:hover,
  .revision-flow-track:focus-within .revision-flow-card:focus-visible {
    transform: scale(1);
  }

  .flow-chip {
    font-size: 0.8rem;
    margin-bottom: 0.65rem;
  }

  .flow-day {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
  }

  .revision-flow-card h3 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.05;
  }

  .flow-lead {
    font-size: 0.98rem;
    line-height: 1.32;
  }

  .flow-meta {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .flow-visual {
    flex-basis: 220px;
    height: 220px;
    min-height: 220px;
    margin: 0.95rem 0 0.85rem;
    border-radius: 18px;
  }

  .revision-flow-card .study-day-btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.94rem;
  }

  .revision-arrow {
    display: none;
  }

  .revision-flow-indicator {
    gap: 0.55rem;
    padding-top: 0.2rem;
  }

  .indicator-pill {
    width: 34px;
    height: 8px;
  }

  .indicator-dot {
    width: 8px;
    height: 8px;
  }

  .revision-overlay {
    padding: 1rem;
  }

  .revision-overlay-card .revision-flow-card {
    min-height: calc(100vh - 2rem);
    border-radius: 28px;
    padding: 1.5rem;
  }

.revision-overlay-card .flow-visual {
  flex-basis: 280px;
  height: 280px;
  min-height: 280px;
}
}

.symbol-figure {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.symbol-question-image {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

.question-block.is-compact-figure .symbol-question-image {
  max-width: 520px;
}

.option-button span:empty {
  display: none;
}

.symbol-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.symbol-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.45rem;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.1);
  color: #111827;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.symbol-token.symbol-large {
  font-size: 1.8rem;
}

.symbol-token.symbol-hook {
  font-size: 1.6rem;
}

.symbol-token.symbol-divider {
  min-width: auto;
  background: transparent;
  color: #64748b;
  padding-inline: 0;
}

.symbol-token.symbol-missing {
  background: rgba(15, 23, 42, 0.08);
  border: 1px dashed rgba(15, 23, 42, 0.28);
}

.symbol-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.symbol-choice {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.symbol-choice-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.symbol-choice-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.domino {
  display: inline-grid;
  grid-template-rows: 1fr 1fr;
  width: 2.1rem;
  height: 4rem;
  border: 2px solid #374151;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.domino-half {
  position: relative;
  border-bottom: 1px solid #374151;
}

.domino-half:last-child {
  border-bottom: 0;
}

.domino-dot {
  position: absolute;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #1f2937;
}

.domino-dot.tl { top: 0.22rem; left: 0.28rem; }
.domino-dot.tr { top: 0.22rem; right: 0.28rem; }
.domino-dot.mid { top: calc(50% - 0.17rem); left: calc(50% - 0.17rem); }
.domino-dot.ml { top: calc(50% - 0.17rem); left: 0.28rem; }
.domino-dot.mr { top: calc(50% - 0.17rem); right: 0.28rem; }
.domino-dot.bl { bottom: 0.22rem; left: 0.28rem; }
.domino-dot.br { bottom: 0.22rem; right: 0.28rem; }

.pattern-square {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #374151;
  background: #fff;
}

.pattern-square.solid-left {
  background: linear-gradient(90deg, #111827 0 50%, #fff 50% 100%);
}

.pattern-square.solid-right {
  background: linear-gradient(90deg, #fff 0 50%, #111827 50% 100%);
}

.pattern-square.x-box::before,
.pattern-square.x-box::after,
.pattern-square.x-filled-left::before,
.pattern-square.x-filled-left::after,
.pattern-square.x-filled-right::before,
.pattern-square.x-filled-right::after {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-top: 2px solid #374151;
  transform-origin: center;
}

.pattern-square.x-box::before,
.pattern-square.x-filled-left::before,
.pattern-square.x-filled-right::before {
  transform: rotate(45deg);
}

.pattern-square.x-box::after,
.pattern-square.x-filled-left::after,
.pattern-square.x-filled-right::after {
  transform: rotate(-45deg);
}

.pattern-square.x-filled-left {
  background: linear-gradient(90deg, #111827 0 50%, #fff 50% 100%);
}

.pattern-square.x-filled-right {
  background: linear-gradient(90deg, #fff 0 50%, #111827 50% 100%);
}

.pattern-square.bars-a {
  background:
    linear-gradient(90deg, #fff 0 22%, #111827 22% 44%, #fff 44% 66%, #111827 66% 100%);
}

.pattern-square.bars-b {
  background:
    linear-gradient(90deg, #111827 0 20%, #fff 20% 48%, #111827 48% 66%, #fff 66% 100%);
}

.pattern-square.bars-c {
  background:
    linear-gradient(90deg, #fff 0 24%, #111827 24% 56%, #fff 56% 76%, #111827 76% 100%);
}

.pattern-square.wide-top-dark {
  width: 2rem;
  height: 1.5rem;
  background:
    linear-gradient(180deg, #111827 0 48%, #fff 48% 100%);
}

.pattern-square.grid-top-left-dark,
.pattern-square.grid-top-right-dark,
.pattern-square.grid-left-dark,
.pattern-square.grid-right-dark {
  width: 1.8rem;
  height: 1.8rem;
  background-color: #fff;
  background-image:
    linear-gradient(#374151, #374151),
    linear-gradient(#374151, #374151);
  background-size: 2px 100%, 100% 2px;
  background-position: 50% 0, 0 50%;
  background-repeat: no-repeat;
}

.pattern-square.grid-top-left-dark {
  background:
    linear-gradient(90deg, #111827 0 50%, transparent 50%),
    linear-gradient(180deg, #111827 0 50%, transparent 50%),
    linear-gradient(#374151, #374151),
    linear-gradient(#374151, #374151),
    #fff;
  background-size: 100% 50%, 50% 100%, 2px 100%, 100% 2px, auto;
  background-position: 0 0, 0 0, 50% 0, 0 50%, 0 0;
  background-repeat: no-repeat;
}

.pattern-square.grid-top-right-dark {
  background:
    linear-gradient(90deg, transparent 0 50%, #111827 50%),
    linear-gradient(180deg, #111827 0 50%, transparent 50%),
    linear-gradient(#374151, #374151),
    linear-gradient(#374151, #374151),
    #fff;
  background-size: 100% 50%, 50% 100%, 2px 100%, 100% 2px, auto;
  background-position: 0 0, 100% 0, 50% 0, 0 50%, 0 0;
  background-repeat: no-repeat;
}

.pattern-square.grid-left-dark {
  background:
    linear-gradient(90deg, #111827 0 50%, transparent 50%),
    linear-gradient(#374151, #374151),
    linear-gradient(#374151, #374151),
    #fff;
  background-size: 100% 100%, 2px 100%, 100% 2px, auto;
  background-position: 0 0, 50% 0, 0 50%, 0 0;
  background-repeat: no-repeat;
}

.pattern-square.grid-right-dark {
  background:
    linear-gradient(90deg, transparent 0 50%, #111827 50%),
    linear-gradient(#374151, #374151),
    linear-gradient(#374151, #374151),
    #fff;
  background-size: 100% 100%, 2px 100%, 100% 2px, auto;
  background-position: 0 0, 50% 0, 0 50%, 0 0;
  background-repeat: no-repeat;
}

.accent-circle {
  position: relative;
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid #374151;
  border-radius: 999px;
}

.accent-circle.cap::before,
.accent-circle.under::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  height: 2px;
  background: #374151;
}

.accent-circle.cap::before {
  top: -0.28rem;
}

.accent-circle.under::before {
  bottom: -0.28rem;
}

.accent-circle.dots::before,
.accent-circle.dots::after,
.accent-circle.dots-under::before,
.accent-circle.dots-under::after {
  content: "";
  position: absolute;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 999px;
  background: #374151;
  top: -0.42rem;
}

.accent-circle.dots::before,
.accent-circle.dots-under::before {
  left: 0.48rem;
}

.accent-circle.dots::after,
.accent-circle.dots-under::after {
  right: 0.48rem;
}

.accent-circle.dots-under::before,
.accent-circle.dots-under::after {
  top: auto;
  bottom: -0.42rem;
}

.accent-circle.slash::before,
.accent-circle.slash-tail::before {
  content: "";
  position: absolute;
  top: -0.1rem;
  left: 0.85rem;
  width: 2px;
  height: 2.15rem;
  background: #374151;
  transform: rotate(35deg);
}

.accent-circle.slash-tail::after {
  content: "";
  position: absolute;
  right: -0.22rem;
  top: 0.2rem;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid #374151;
  border-top: 2px solid #374151;
  transform: rotate(35deg);
}

@media (max-width: 720px) {
  .symbol-choice-grid {
    grid-template-columns: 1fr;
  }

  .symbol-token {
    min-width: 1.9rem;
    min-height: 1.9rem;
    font-size: 1.15rem;
  }

  .domino {
    width: 1.7rem;
    height: 3.3rem;
  }
}
