:root {
  color-scheme: light;
  --ink: #17222f;
  --muted: #607080;
  --line: #d8e1e8;
}

.v2-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #ff5b5b, #c81e1e);
  border-radius: 4px;
  vertical-align: middle;
}

:root {
  --paper: #ffffff;
  --surface: #f5f8fb;
  --navy: #12324a;
  --accent: #0f766e;
  --accent-dark: #0a5651;
  --gold: #bb7d23;
  --rose: #b13f55;
  --soft: #edf5f4;
  --focus: #f4cb61;
  --shadow: 0 18px 46px rgba(18, 50, 74, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 50, 74, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbfb 0%, #eef5fb 52%, #fff8ea 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: "Sora", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button, input, select { font: inherit; }

.button, button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 13px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.button:hover, button:hover { border-color: var(--accent); transform: translateY(-1px); }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-dark); }
.ghost { background: transparent; }
.light { background: rgba(255, 255, 255, 0.86); color: var(--navy); }

button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(18, 50, 74, 0.07);
}

.brand-block { min-width: 0; }
.brand { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.brand-title { min-width: 0; overflow-wrap: break-word; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  min-width: 54px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
}
.teacher { margin-top: 3px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }

.shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
}

.quick-stats, .filters, .teacher-card, .study-card, .progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(18, 50, 74, 0.08);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  overflow: hidden;
}

.quick-stats div {
  padding: 12px 8px;
  border-right: 1px solid var(--line);
}

.quick-stats div:last-child { border-right: 0; }
.quick-stats strong { display: block; font-size: 22px; color: var(--accent-dark); }
.quick-stats span { display: block; color: var(--muted); font-size: 12px; }

.study-card, .progress-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.timer-face {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 0 auto;
}

.timer-face svg {
  width: 118px;
  height: 118px;
  transform: rotate(-90deg);
}

.timer-track, .timer-ring {
  fill: none;
  stroke-width: 9;
}

.timer-track { stroke: #edf2f5; }
.timer-ring {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 300ms ease;
}

.timer-face strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 22px;
}

.timer-controls,
.timer-presets {
  display: grid;
  gap: 8px;
}

.timer-controls { grid-template-columns: 1fr 1fr; }
.timer-presets { grid-template-columns: repeat(3, 1fr); }

.timer-presets button {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.topic-progress {
  display: grid;
  gap: 10px;
}

.topic-progress-row {
  display: grid;
  gap: 5px;
}

.topic-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.topic-progress-head strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.topic-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f5;
}

.topic-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.filters {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.panel-title {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 15px;
}

.filters label, .sort-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filters input, .filters select, .sort-label select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
}

.filter-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-buttons button:last-child { grid-column: 1 / -1; }

.teacher-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 4px solid var(--gold);
}

.card-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.teacher-card strong { color: var(--ink); font-size: 16px; }
.teacher-card a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.teacher-card .enroll-link {
  margin-top: 4px;
  min-height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 30px rgba(18, 50, 74, 0.07);
}

.head-tools {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.layout-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9fb;
}

.layout-toggle button {
  min-height: 34px;
  min-width: 62px;
  border-color: transparent;
  background: transparent;
}

.layout-toggle button.active {
  color: #fff;
  background: var(--navy);
}

h1 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.04; letter-spacing: 0; }
h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
p { margin: 4px 0 0; color: var(--muted); }

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(18, 50, 74, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 50, 74, 0.96), rgba(15, 118, 110, 0.93)),
    #12324a;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-actions > * { min-width: 0; }

.hero-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
}

.hero-card-head {
  display: grid;
  gap: 2px;
}

.hero-card-head span { color: rgba(255,255,255,0.74); font-size: 12px; font-weight: 700; }
.hero-card-head strong { font-size: 20px; }

.hero-preview {
  display: grid;
  gap: 8px;
}

.preview-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
}

.preview-item img {
  width: 74px;
  height: 60px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.preview-item strong { display: block; font-size: 12px; }
.preview-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.25; }

.hero-contact {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.hero-contact strong { color: #fff; font-size: 15px; }
.hero-contact a { color: #fff; font-weight: 800; text-decoration: none; }

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

.feature-card {
  display: grid;
  gap: 7px;
  min-height: 154px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 30px rgba(18, 50, 74, 0.07);
}

.feature-kicker {
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.feature-card strong { color: var(--navy); font-size: 17px; }
.feature-card p { line-height: 1.45; }

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3d1a6;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 30px rgba(187, 125, 35, 0.12);
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.download-actions a,
.download-actions button {
  min-height: 42px;
  min-width: 0;
  border: 1px solid #e2c582;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.download-actions a:hover,
.download-actions button:hover {
  border-color: var(--gold);
}

.progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cfe3df;
  border-radius: 8px;
  background: #f2fbf8;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.09);
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #cfe3df;
  border-radius: 8px;
  background: #fff;
}

.progress-summary div {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid #cfe3df;
}

.progress-summary div:last-child { border-right: 0; }
.progress-summary strong { display: block; color: var(--accent-dark); font-size: 21px; }
.progress-summary span { color: var(--muted); font-size: 12px; }

.overall-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.overall-progress div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfecea;
}

.overall-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 240ms ease;
}

.bank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 30px rgba(18, 50, 74, 0.07);
}

.bank-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bank-buttons button {
  display: grid;
  justify-items: start;
  min-height: 76px;
  padding: 12px;
  text-align: left;
}

.bank-buttons button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.bank-buttons strong {
  font-size: 15px;
}

.bank-buttons span {
  color: var(--muted);
  font-size: 12px;
}

.bank-buttons button.active span {
  color: rgba(255,255,255,0.78);
}

.practice-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 245, 244, 0.95);
  box-shadow: 0 10px 30px rgba(18, 50, 74, 0.07);
}

.practice-panel a {
  min-height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.topic-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
}

.topic-chip {
  flex: 0 0 auto;
  border-color: var(--line);
  background: var(--soft);
}

.topic-chip.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.question-grid.list-view {
  grid-template-columns: 1fr;
}

.question-card {
  display: grid;
  grid-template-rows: auto 245px auto;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(18, 50, 74, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.question-grid.list-view .question-card {
  grid-template-columns: minmax(190px, 0.75fr) minmax(260px, 1.2fr) minmax(170px, 0.45fr);
  grid-template-rows: auto;
  align-items: stretch;
}

.question-grid.list-view .thumb {
  min-height: 155px;
}

.question-grid.list-view .card-actions {
  align-content: center;
}

.question-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 16px 32px rgba(18, 50, 74, 0.12);
}

.question-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.question-card.solved {
  background: #fbfdfb;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

.topic-name {
  margin-top: 3px;
  color: var(--accent-dark);
  font-size: 13px;
  line-height: 1.25;
}

.meta-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status-line {
  margin-top: 5px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #eef2f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pill.done {
  color: #fff;
  background: #25734f;
}

.thumb {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfbfa;
}

.thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.viewer-dialog {
  width: min(1100px, 96vw);
  max-height: 94vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.viewer-dialog::backdrop { background: rgba(20, 27, 35, 0.58); }

.viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

#viewerMeta { color: var(--muted); font-size: 13px; margin-top: 3px; }
#viewerImage { display: block; width: 100%; max-height: 82vh; object-fit: contain; background: white; }
.solution-dialog {
  width: min(880px, 96vw);
}
.solution-body {
  padding: 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  background: #fff;
}
.solution-body p {
  margin: 0 0 14px;
  color: var(--ink);
}
.solution-body .solution-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 3px 9px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.solution-body .solution-empty {
  color: var(--muted);
}
.print-area { display: none; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; padding: 10px; }
  .sidebar { position: static; }
  .content { order: -1; }
  .hero-panel, .download-panel, .bank-panel, .progress-panel { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-head { align-items: stretch; flex-direction: column; }
  .head-tools { align-items: stretch; flex-direction: column; }
  .question-grid.list-view .question-card { grid-template-columns: 1fr; }
  .practice-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .brand { align-items: flex-start; font-size: 19px; }
  .top-actions, .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-panel { padding: 16px; }
  .hero-copy p, .feature-card p, .download-panel p, .hero-contact span { overflow-wrap: anywhere; }
  .download-actions, .bank-buttons { grid-template-columns: 1fr; }
  .progress-summary { grid-template-columns: repeat(2, 1fr); }
  .filter-buttons { grid-template-columns: 1fr; }
  .question-grid { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .practice-panel { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .topbar { padding: 12px; }
  .shell { padding: 8px; }
  .brand { font-size: 18px; }
  h1 { font-size: 28px; }
  .hero-panel { padding: 12px; }
  .preview-item { grid-template-columns: 64px minmax(0, 1fr); }
  .preview-item img { width: 64px; }
}

@media print {
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; }
  .print-question { page-break-after: always; padding: 12mm; font-family: Arial, Helvetica, sans-serif; }
  .print-question h2 { font-size: 16pt; margin: 0 0 5mm; }
  .print-question img { width: 100%; max-height: 245mm; object-fit: contain; }
}

/* ===== v2: Trust panel ===== */
.trust-panel {
  background: linear-gradient(135deg, #0f766e 0%, #12324a 100%);
  color: #fff;
  border-radius: 22px;
  padding: 40px 44px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.trust-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.trust-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.trust-portrait img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f4cb61;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  background: #fff;
}
.trust-portrait figcaption {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  letter-spacing: 0.5px;
}
@media (max-width: 720px) {
  .trust-intro { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .trust-portrait img { width: 150px; height: 150px; }
}
.trust-head { max-width: 760px; }
.trust-head .eyebrow { color: #f4cb61; font-weight: 700; letter-spacing: 1.2px; font-size: 12px; text-transform: uppercase; }
.trust-head h2 { font-size: clamp(22px, 2.4vw, 32px); margin: 8px 0 10px; line-height: 1.25; }
.trust-head p { color: rgba(255,255,255,0.85); margin: 0 0 24px; max-width: 720px; }
.credentials-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.credentials-list li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.credentials-list strong { font-size: 13px; color: #f4cb61; letter-spacing: 0.6px; text-transform: uppercase; }
.credentials-list span { font-size: 14px; color: rgba(255,255,255,0.92); }
.testimonials {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.testimonial {
  background: rgba(255,255,255,0.07);
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.testimonial.placeholder { opacity: 0.85; }
.t-grade {
  position: absolute; top: -14px; right: 16px;
  background: #f4cb61; color: #12324a;
  font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 13px;
}
.testimonial blockquote { margin: 0; font-style: italic; color: rgba(255,255,255,0.92); font-size: 14px; line-height: 1.5; }
.testimonial cite { font-style: normal; font-size: 12px; color: rgba(255,255,255,0.7); }
.placeholder-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* ===== v2: Pricing panel ===== */
.pricing-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 44px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.pricing-head { max-width: 760px; margin-bottom: 24px; }
.pricing-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1.2px; font-size: 12px; text-transform: uppercase; }
.pricing-head h2 { font-size: clamp(22px, 2.2vw, 30px); margin: 8px 0 10px; line-height: 1.25; color: var(--ink); }
.pricing-head p { color: var(--muted); margin: 0; }
.pricing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(18,50,74,0.12); }
.pricing-card.highlight {
  background: linear-gradient(160deg, #0f766e, #0a5651);
  color: #fff;
  border-color: transparent;
}
.pricing-card.highlight ul li { color: rgba(255,255,255,0.92); }
.pricing-card.highlight .p-tag { background: #f4cb61; color: #12324a; }
.pricing-card header { display: flex; flex-direction: column; gap: 6px; }
.p-tag {
  align-self: flex-start;
  background: var(--soft); color: var(--accent-dark);
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.pricing-card strong { font-size: 20px; }
.p-fee { font-size: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-old { text-decoration: line-through; opacity: 0.55; font-size: 14px; }
.p-now { font-size: 26px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.pricing-card.highlight .p-now { color: #f4cb61; }
.p-unit { font-size: 12px; opacity: 0.75; }
.p-egp { display: block; font-size: 12px; margin-top: 4px; opacity: 0.75; }
.pricing-card.highlight .p-egp { color: rgba(255,255,255,0.85); opacity: 1; }
.p-meta {
  background: rgba(15,118,110,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.pricing-card.highlight .p-meta { background: rgba(255,255,255,0.12); }
.p-meta li { padding-left: 0 !important; font-size: 12px !important; }
.p-meta li::before { content: none !important; }
.pricing-card ul { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.pricing-card ul li { font-size: 14px; color: var(--ink); position: relative; padding-left: 18px; line-height: 1.45; }
.pricing-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-card.highlight ul li::before { color: #f4cb61; }
.enroll-trigger {
  margin-top: auto;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.enroll-trigger:hover { background: var(--accent); }
.pricing-card.highlight .enroll-trigger { background: #f4cb61; color: #12324a; }
.pricing-card.highlight .enroll-trigger:hover { background: #fff; }
.pricing-panel .placeholder-note { color: var(--muted); margin-top: 18px; }

/* ===== v2: Lead capture dialog ===== */
.lead-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(440px, 92vw);
  box-shadow: 0 30px 80px rgba(18,50,74,0.35);
}
.lead-dialog::backdrop { background: rgba(18,50,74,0.55); }
.lead-dialog form { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.lead-head { display: flex; align-items: center; justify-content: space-between; }
.lead-head strong { font-size: 18px; color: var(--ink); }
#leadCloseBtn {
  background: transparent; border: none; font-size: 24px; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 4px 8px;
}
.lead-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lead-dialog label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; color: var(--ink); font-weight: 600;
}
.lead-dialog input,
.lead-dialog select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: var(--paper); color: var(--ink);
}
.lead-dialog input:focus,
.lead-dialog select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.lead-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.lead-actions .button { flex: 1 1 140px; }
.lead-privacy { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.45; }

@media (max-width: 720px) {
  .trust-panel, .pricing-panel { padding: 28px 22px; border-radius: 18px; }
}

/* ============================================================
   v2 multi-page chrome: shared site header, nav, footer
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.site-brand .brand-mark {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.site-brand .brand-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: 24px;
  flex: 1;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-cta { display: flex; gap: 10px; flex-shrink: 0; }
.site-cta .button { font-size: 13px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 12px 18px; }
  .site-nav {
    order: 5;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    display: none;
  }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--accent); padding-left: 10px; }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-toggle { display: flex; }
  .site-cta { margin-left: 8px; }
  .site-cta .button:not(.primary) { display: none; }
}

@media (max-width: 520px) {
  .site-brand .brand-title { display: none; }
  .v2-badge { font-size: 10px; padding: 2px 6px; }
}

/* page wrapper for non-bank pages */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (max-width: 720px) {
  .page { padding: 22px 16px 40px; gap: 22px; }
}

.section-title {
  font-size: clamp(20px, 2vw, 26px);
  margin: 0 0 18px;
  color: var(--ink);
}
.section-head {
  margin-bottom: 18px;
  max-width: 760px;
}
.link-arrow {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ============================================================
   Home page
   ============================================================ */

.home-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: linear-gradient(135deg, #12324a 0%, #0f766e 100%);
  color: #fff;
  border-radius: 22px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.home-hero-copy .eyebrow {
  display: inline-block;
  background: rgba(244, 203, 97, 0.16);
  color: #f4cb61;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.home-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.home-hero-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 0 24px;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.hero-bullets li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-bullets li strong { color: #f4cb61; margin-right: 6px; }

.home-hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.home-hero-portrait img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #f4cb61;
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.home-hero-card strong { font-size: 18px; color: #fff; }
.home-hero-card span { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.home-hero-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.home-hero-card ul li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.button.gold {
  background: #f4cb61;
  color: #12324a;
  border: none;
  font-weight: 700;
}
.button.gold:hover { background: #fff; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.stats-band > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 6px 12px;
}
.stats-band strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.stats-band span {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Trust panel — compact variant for home */
.trust-compact { padding: 30px 36px; }
.trust-compact .trust-intro { margin-bottom: 0; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, #12324a, #0a5651);
  color: #fff;
  border-radius: 22px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.final-cta h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 8px;
}
.final-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 540px; }
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   About page
   ============================================================ */

.about-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.about-portrait img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f4cb61;
  box-shadow: 0 18px 40px rgba(18, 50, 74, 0.25);
}
.about-hero .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
}
.about-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 4px;
  color: var(--ink);
}
.about-hero .lede {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}
.about-hero p { color: var(--ink); line-height: 1.6; max-width: 640px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

@media (max-width: 720px) {
  .about-hero { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .about-portrait img { margin: 0 auto; width: 160px; height: 160px; }
  .about-actions { justify-content: center; }
}

/* Testimonials panel — light variant for about page */
.testimonials-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.testimonials-panel .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
}
.testimonials-panel h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  margin: 8px 0 8px;
}
.testimonials-panel > .section-head p { color: var(--muted); margin: 0; }
.testimonial.light {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-top: 16px;
}
.testimonial.light blockquote { color: var(--ink); }
.testimonial.light cite { color: var(--muted); }
.testimonial.light .t-grade { background: #0f766e; color: #fff; }

/* ============================================================
   Practice page
   ============================================================ */

.practice-hero {
  background: linear-gradient(135deg, #12324a, #0f766e);
  color: #fff;
  border-radius: 22px;
  padding: 32px 36px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.practice-hero .eyebrow {
  color: #f4cb61;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
}
.practice-hero h1 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 6px 0 8px;
}
.practice-hero p { color: rgba(255, 255, 255, 0.85); margin: 0 0 20px; max-width: 700px; }

.practice-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.practice-progress > div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.practice-progress strong { font-size: 22px; color: #f4cb61; }
.practice-progress span { font-size: 12px; color: rgba(255, 255, 255, 0.78); text-transform: uppercase; letter-spacing: 0.6px; }

.overall-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.overall-progress span { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.overall-progress > div {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.overall-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f4cb61, #fff);
  border-radius: 4px;
  width: 0;
  transition: width 0.3s ease;
}

.practice-cta {
  margin-top: 28px;
  background: linear-gradient(135deg, #12324a, #0a5651);
  color: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.practice-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   Downloads page
   ============================================================ */

.downloads-hero {
  background: linear-gradient(135deg, #12324a, #0f766e);
  color: #fff;
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: var(--shadow);
  text-align: center;
}
.downloads-hero .eyebrow {
  color: #f4cb61;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: 12px;
  text-transform: uppercase;
}
.downloads-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 8px 0 12px;
}
.downloads-hero p { color: rgba(255, 255, 255, 0.85); margin: 0 auto; max-width: 720px; }

.downloads-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.download-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(18, 50, 74, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(18, 50, 74, 0.12);
}
.download-card.highlight {
  background: linear-gradient(160deg, #0f766e, #0a5651);
  color: #fff;
  border-color: transparent;
}
.download-card.highlight p,
.download-card.highlight ul li { color: rgba(255, 255, 255, 0.9); }
.d-tag {
  align-self: flex-start;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.d-tag.gold { background: #f4cb61; color: #12324a; }
.download-card strong { font-size: 18px; color: inherit; }
.download-card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.d-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.d-meta li {
  font-size: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-dark);
  padding: 4px 10px;
  border-radius: 999px;
}
.download-card.highlight .d-meta li {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}
.download-card .button { margin-top: auto; align-self: stretch; text-align: center; }

.download-card.download-note {
  background: rgba(15, 118, 110, 0.06);
  border: 1px dashed var(--accent);
}
.download-card.download-note .d-tag {
  background: var(--accent);
  color: #fff;
}

.downloads-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.downloads-cta h2 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.downloads-cta p { margin: 0; color: var(--muted); max-width: 580px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #0c1c2c;
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 28px 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto 24px;
}
.footer-grid strong {
  display: block;
  font-size: 14px;
  color: #f4cb61;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-grid p { margin: 4px 0; font-size: 14px; }
.footer-grid a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-grid a:hover { color: #f4cb61; }
.footer-grid .muted { color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.footer-fineprint {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
