:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --navy: #061e4a;
  --navy-2: #0a2d63;
  --blue: #1d4ed8;
  --blue-soft: #eaf3ff;
  --teal: #0f766e;
  --teal-2: #12a394;
  --teal-soft: #e7fffb;
  --gold: #b7791f;
  --gold-soft: #fff7e6;
  --red: #c2413f;
  --red-soft: #fff1f1;
  --purple: #5b4bff;
  --purple-soft: #f2f0ff;
  --text: #101b31;
  --muted: #65758b;
  --border: #dce7f3;
  --line: #edf2f8;
  --shadow: 0 22px 70px rgba(6, 30, 74, 0.10);
  --shadow-soft: 0 14px 40px rgba(6, 30, 74, 0.07);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(29, 78, 216, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 4%, rgba(15, 118, 110, 0.12), transparent 34rem),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 48%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

button, textarea, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-shell {
  min-height: 100vh;
  padding: 0 20px 28px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 1500px;
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(220, 231, 243, 0.78);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 40px rgba(6, 30, 74, 0.07);
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
  text-decoration: none;
}

.brand img {
  width: 176px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.9;
  transition: color .18s ease, opacity .18s ease;
}

.desktop-nav a:hover { color: var(--teal); opacity: 1; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  box-shadow: 0 10px 28px rgba(6, 30, 74, 0.04);
}

.lang-select button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  padding: 8px 6px;
  cursor: pointer;
}

.lang-select span {
  width: 1px;
  height: 18px;
  background: var(--border);
}

.lang-select button.active { color: var(--teal); }

.primary-nav, .hero-cta, .composer button, .show-more, .result-actions button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

.primary-nav, .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #092c64);
  box-shadow: 0 16px 36px rgba(6, 30, 74, 0.20);
}

.primary-nav { padding: 0 24px; }
.hero-cta { padding: 0 28px; }

.primary-nav:hover, .hero-cta:hover, .composer button:hover, .show-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(6, 30, 74, 0.24);
}

main {
  max-width: 1500px;
  margin: 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 32px;
  padding: 58px 28px 30px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 22px 0 auto auto;
  width: 45%;
  height: 78%;
  background:
    radial-gradient(circle at 65% 15%, rgba(29, 78, 216, 0.10), transparent 18rem),
    radial-gradient(circle at 30% 72%, rgba(15, 118, 110, 0.09), transparent 16rem);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  margin-bottom: 22px;
}

.eyebrow span:first-child { color: #d9a441; }

.hero-content h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -0.065em;
  max-width: 790px;
}

.hero-content p {
  margin: 22px 0 0;
  max-width: 690px;
  color: #42526a;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 540;
}

.hero-actions { margin-top: 30px; }

.hero-art {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(100%, 720px);
  height: auto;
  filter: drop-shadow(0 28px 45px rgba(6, 30, 74, .12));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 6px 28px 20px;
}

.feature-card {
  min-height: 148px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.feature-icon, .section-icon, .shield {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon {
  width: 64px;
  height: 64px;
}
.feature-icon.blue { background: var(--blue-soft); color: var(--blue); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple); }

.feature-icon svg, .section-icon svg, .shield svg, .composer svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.advisor-card, .results-card, .info-card, .notice-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-xl);
}

.advisor-card {
  margin: 20px 28px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(6, 30, 74, .98), rgba(9, 44, 100, .98)),
    radial-gradient(circle at right, rgba(18, 163, 148, .16), transparent 28rem);
  color: white;
  position: relative;
  overflow: hidden;
}

.advisor-card::before {
  content: "";
  position: absolute;
  inset: -90px -120px auto auto;
  width: 520px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  transform: rotate(-15deg);
}

.advisor-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.section-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, .12);
  color: var(--teal-2);
  border: 1px solid rgba(255,255,255,.14);
}

.section-icon.small {
  width: 48px;
  height: 48px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 0;
}

.section-icon.small svg { width: 24px; height: 24px; }

.advisor-head h2, .results-title-row h2, .info-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.advisor-head h2 { font-size: 27px; color: white; }
.advisor-head p { margin: 7px 0 0; color: rgba(255,255,255,.74); line-height: 1.55; }

.messages {
  position: relative;
  z-index: 2;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
}

.message-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
}

.message-row.user { justify-content: flex-end; }

.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.avatar.ai { background: var(--teal-soft); color: var(--teal); }
.avatar.user { background: white; color: var(--navy); }

.bubble {
  max-width: min(86%, 760px);
  padding: 13px 15px;
  border-radius: 19px;
  font-size: 14px;
  line-height: 1.58;
  white-space: pre-wrap;
  color: var(--navy);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.message-row.user .bubble {
  background: #e7fffb;
  color: #063b43;
  border-bottom-right-radius: 7px;
}

.message-row.ai .bubble { border-bottom-left-radius: 7px; }

.bubble time {
  display: block;
  margin-top: 8px;
  text-align: right;
  color: #7e91aa;
  font-size: 11px;
  font-weight: 800;
}

.composer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.composer textarea {
  width: 100%;
  min-height: 66px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  background: white;
  color: var(--text);
  outline: none;
  padding: 20px 20px;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(6,30,74,.02);
}

.composer textarea:focus {
  border-color: rgba(18, 163, 148, .72);
  box-shadow: 0 0 0 5px rgba(18, 163, 148, .14);
}

.composer button {
  min-width: 104px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: white;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.composer button svg { width: 21px; height: 21px; }

.suggestions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.suggestions span {
  flex: 0 0 100%;
  color: rgba(255,255,255,.84);
  font-weight: 900;
  font-size: 13px;
}

.suggestions button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  cursor: pointer;
  font-weight: 750;
  transition: background .18s ease, transform .18s ease;
}

.suggestions button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }

.results-card {
  margin: 20px 28px;
  padding: 24px;
}

.results-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.section-title {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.results-title-row h2 { color: var(--navy); font-size: 28px; }
.results-title-row p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-actions button, .show-more {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: white;
  color: var(--navy);
  border: 1px solid var(--border);
}

.result-actions button:first-child {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.warning {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  line-height: 1.55;
}

.hidden { display: none !important; }

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow-x: auto;
  background: white;
}

.table-wrap table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th {
  padding: 15px 16px;
  text-align: left;
  color: #53657c;
  background: #f8fbff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .045em;
}

td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: #15233b;
  font-size: 14px;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }

.empty-row td {
  padding: 38px 16px;
  text-align: center;
  color: var(--muted);
}

.program-cell strong, .university-cell strong {
  display: block;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  font-size: 11px;
}

.score-value { font-weight: 900; color: var(--navy); }
.diff-positive { color: var(--teal); font-weight: 950; }
.diff-negative { color: var(--red); font-weight: 950; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok { background: var(--teal-soft); color: var(--teal); }
.status-risk { background: var(--gold-soft); color: var(--gold); }
.status-bad { background: var(--red-soft); color: var(--red); }
.status-unknown { background: #f1f5f9; color: var(--muted); }

.mobile-results { display: none; }

.show-more {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.info-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  margin: 20px 28px;
}

.info-card {
  padding: 28px;
}

.info-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.info-card h2 { font-size: 30px; color: var(--navy); }
.info-card p { color: #526176; line-height: 1.7; margin: 13px 0 0; }

.about-card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-card li {
  position: relative;
  padding-left: 30px;
  color: #263550;
  font-weight: 750;
}

.about-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.step span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 950;
}

.step strong { color: var(--navy); font-size: 18px; }
.step p { margin-top: 5px; font-size: 14px; }

.notice-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
  margin: 20px 28px 30px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f5fffd, #f8fbff);
}

.shield {
  width: 54px;
  height: 54px;
}
.shield svg { width: 30px; height: 30px; }

.notice-card p { margin: 0; color: #263550; line-height: 1.65; font-weight: 650; }

.footer {
  max-width: 1500px;
  margin: 0 auto;
  min-height: 142px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 26px 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), #08285d);
  color: white;
  box-shadow: var(--shadow);
}

.footer img { width: 150px; display: block; filter: brightness(0) invert(1); }
.footer p { margin: 10px 0 0; color: rgba(255,255,255,.75); line-height: 1.5; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-links button {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: white;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}
.copyright { margin: 0 !important; text-align: right; font-size: 14px; }

.mobile-nav { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 30, 74, .58);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  background: white;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  padding: 30px;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--navy);
  cursor: pointer;
  font-size: 24px;
}

.modal-card h2 { margin: 0 44px 14px 0; color: var(--navy); }
.modal-card p { color: #465873; line-height: 1.72; }
.modal-card ul { color: #465873; line-height: 1.7; padding-left: 22px; }

@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-art { min-height: auto; }
  .hero-art img { max-width: 680px; }
  .feature-grid, .info-layout { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
}

@media (max-width: 760px) {
  .site-shell { padding: 0 0 92px; }
  .topbar {
    height: 74px;
    margin: 0;
    border-radius: 0;
    padding: 0 14px;
  }
  .brand { min-width: 0; }
  .brand img { width: 154px; }
  .primary-nav { display: none; }
  .lang-select { min-height: 40px; border-radius: 12px; padding: 2px 8px; gap: 6px; }
  .lang-select button { padding: 7px 5px; font-size: 13px; }

  .hero-section {
    display: block;
    padding: 34px 22px 152px;
    text-align: center;
    background:
      linear-gradient(135deg, rgba(6,30,74,.98), rgba(8,45,99,.98)),
      radial-gradient(circle at 80% 20%, rgba(18,163,148,.18), transparent 16rem);
    color: white;
    border-radius: 0 0 28px 28px;
  }
  .hero-section::before { display: none; }
  .eyebrow { margin-inline: auto; }
  .hero-content h1 {
    color: white;
    font-size: clamp(36px, 12vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.055em;
  }
  .hero-content p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; }
  .hero-actions { display: none; }
  .hero-art { display: none; }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -122px 14px 14px;
    position: relative;
    z-index: 3;
  }
  .feature-card {
    min-height: 114px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 9px;
    padding: 14px 8px;
    border-radius: 18px;
  }
  .feature-icon { width: 46px; height: 46px; margin: 0 auto; }
  .feature-icon svg { width: 23px; height: 23px; }
  .feature-card h2 { font-size: 12px; line-height: 1.25; }
  .feature-card p { display: none; }

  .advisor-card {
    margin: 14px;
    padding: 18px;
    border-radius: 24px;
    background: white;
    color: var(--text);
  }
  .advisor-card::before { display: none; }
  .advisor-head {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .advisor-head h2 { color: var(--navy); font-size: 22px; }
  .advisor-head p { color: var(--muted); font-size: 14px; }
  .section-icon { width: 42px; height: 42px; background: var(--teal-soft); border: 0; }
  .section-icon svg { width: 22px; height: 22px; }
  .messages { max-height: 240px; }
  .bubble { max-width: 90%; box-shadow: 0 10px 24px rgba(6,30,74,.08); border: 1px solid var(--border); }
  .avatar.user { background: var(--navy); color: white; }
  .composer { grid-template-columns: 1fr 56px; gap: 8px; }
  .composer textarea { min-height: 56px; padding: 15px; border-color: var(--border); }
  .composer button { min-width: 56px; padding: 0; border-radius: 17px; }
  .composer button span { display: none; }
  .suggestions { color: var(--text); }
  .suggestions span { color: var(--navy); }
  .suggestions button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    color: var(--navy);
    background: #f8fbff;
    border: 1px solid var(--border);
    min-height: 44px;
    border-radius: 14px;
  }

  .results-card, .info-layout, .notice-card { margin: 14px; }
  .results-card { padding: 18px; border-radius: 24px; }
  .results-title-row { display: block; }
  .section-title { grid-template-columns: 44px 1fr; }
  .results-title-row h2 { font-size: 25px; }
  .result-actions { justify-content: stretch; margin-top: 14px; }
  .result-actions button { flex: 1; }
  .table-wrap { display: none; }
  .mobile-results { display: grid; gap: 12px; }
  .mobile-result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(6,30,74,.06);
  }
  .mobile-result-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
  }
  .mobile-result-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.35;
  }
  .mobile-result-card p {
    margin: 5px 0 0;
    color: #44546b;
    line-height: 1.45;
  }
  .mobile-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }
  .metric {
    padding: 10px;
    border-radius: 14px;
    background: #f8fbff;
  }
  .metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
  }
  .metric strong { color: var(--navy); }

  .info-card { padding: 22px; border-radius: 24px; }
  .info-card h2 { font-size: 25px; }
  .notice-card { grid-template-columns: 1fr; text-align: center; padding: 22px; border-radius: 24px; }
  .shield { margin: 0 auto; }
  .footer {
    margin: 14px;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    border-radius: 24px;
  }
  .footer img { margin: 0 auto; }
  .copyright { text-align: center; }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 66px;
    border-radius: 24px;
    background: rgba(6, 30, 74, .96);
    box-shadow: 0 18px 50px rgba(6, 30, 74, .28);
    padding: 8px;
  }
  .mobile-nav a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 2px;
    font-size: 18px;
  }
  .mobile-nav em {
    font-style: normal;
    font-size: 11px;
    font-weight: 850;
  }
}

@media (max-width: 430px) {
  .brand img { width: 142px; }
  .topbar { gap: 10px; }
  .hero-section { padding-inline: 18px; }
  .feature-card h2 { font-size: 11px; }
  .mobile-metrics { grid-template-columns: 1fr; }
}



/* Result selection, annual fee and PDF shortlist */
.results-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.table-wrap table {
  min-width: 1180px;
}

.select-col, .select-cell {
  width: 64px;
  text-align: center;
}

.select-check {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.select-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.select-check span {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid #c7d6e7;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
  transition: all .18s ease;
}

.select-check input:checked + span {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 5px #fff;
}

.code-cell { min-width: 110px; }
.code-main {
  background: linear-gradient(135deg, var(--blue-soft), #eefcff);
  border: 1px solid rgba(29, 78, 216, .16);
  color: var(--navy);
  font-size: 12px;
  min-height: 28px;
  padding: 0 11px;
}

.fee-cell {
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}

.pdf-panel {
  position: sticky;
  top: 104px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.pdf-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.pdf-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.pdf-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

#pdfCountBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
  font-size: 13px;
}

.selected-pdf-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.empty-selection {
  border: 1px dashed #c7d6e7;
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  line-height: 1.45;
}

.selected-pdf-item {
  display: grid;
  grid-template-columns: 32px 1fr 62px;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: grab;
  box-shadow: 0 8px 22px rgba(6, 30, 74, .05);
}

.selected-pdf-item.dragging {
  opacity: .52;
  transform: scale(.99);
}

.selected-order {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 950;
}

.selected-info strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.32;
}

.selected-info span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.selected-move {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.selected-move button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f8fbff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 950;
}

.mobile-code-line { margin-bottom: 7px; }
.mobile-actions-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.pdf-template { display: none; }

@media (max-width: 1200px) {
  .results-workspace { grid-template-columns: 1fr; }
  .pdf-panel { position: static; }
}

@media (max-width: 760px) {
  .results-workspace { display: block; }
  .results-workspace .table-wrap { display: none; }
  .pdf-panel {
    margin-top: 14px;
    border-radius: 20px;
    padding: 15px;
  }
  .selected-pdf-list { max-height: 320px; }
  .mobile-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .mobile-metrics { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: white !important; }
  body.pdf-print-mode .site-shell,
  body.pdf-print-mode .modal-backdrop {
    display: none !important;
  }
  body.pdf-print-mode .pdf-template {
    display: block !important;
  }
  body:not(.pdf-print-mode) .topbar,
  body:not(.pdf-print-mode) .hero-section,
  body:not(.pdf-print-mode) .feature-grid,
  body:not(.pdf-print-mode) .advisor-card,
  body:not(.pdf-print-mode) .info-layout,
  body:not(.pdf-print-mode) .notice-card,
  body:not(.pdf-print-mode) .footer,
  body:not(.pdf-print-mode) .mobile-nav,
  body:not(.pdf-print-mode) .result-actions,
  body:not(.pdf-print-mode) .warning,
  body:not(.pdf-print-mode) .show-more,
  body:not(.pdf-print-mode) .pdf-panel {
    display: none !important;
  }
  .pdf-page {
    color: #10203a;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
  }
  .pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f766e;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }
  .pdf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .pdf-brand img { width: 132px; }
  .pdf-brand strong { display: block; color: #061e4a; font-size: 20px; }
  .pdf-brand span { display: block; color: #526176; font-size: 11px; margin-top: 2px; }
  .pdf-date {
    color: #061e4a;
    font-weight: 800;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    padding: 8px 12px;
  }
  .pdf-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 12px;
  }
  .pdf-intro h1 { margin: 0; font-size: 24px; color: #061e4a; }
  .pdf-intro p { margin: 5px 0 0; color: #526176; font-size: 12px; }
  .pdf-score {
    border-radius: 999px;
    background: #e7fffb;
    color: #0f766e;
    padding: 8px 14px;
    font-weight: 800;
    white-space: nowrap;
  }
  .pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
  }
  .pdf-table th {
    background: #061e4a !important;
    color: white !important;
    padding: 7px 6px;
    border: 1px solid #061e4a;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
  }
  .pdf-table td {
    padding: 7px 6px;
    border: 1px solid #d8e2ee;
    vertical-align: top;
    color: #10203a;
  }
  .pdf-table tbody tr:nth-child(even) td { background: #f8fbff; }
  .pdf-footer {
    margin-top: 12px;
    border-top: 1px solid #dce7f3;
    padding-top: 8px;
    color: #64748b;
    font-size: 10px;
    text-align: center;
  }
}
