/* Learn Pilot — premium Australian education marketing site */

:root {
  --navy-deep: #0f1b2e;
  --navy-mid: #152a45;
  --navy-soft: #1e3a5f;
  --gold: #c9a227;
  --gold-soft: #e3c76a;
  --gold-deep: #8f7319;
  --white: #faf9f7;
  --grey-warm: #e8e6e3;
  --grey-mid: #9a9590;
  --grey-text: #3f3d3a;
  --shadow-sm: 0 2px 8px rgba(15, 27, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 27, 46, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 27, 46, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-serif: "EB Garamond", "Times New Roman", Times, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: min(1120px, 92vw);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--grey-text);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  --container: min(820px, 92vw);
}

/* Typography */
.display {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height:1.12;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 1rem;
}

.display__accent {
  color: var(--navy-soft);
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.75rem;
}

.eyebrow--dark {
  color: var(--gold);
}

.lede {
  font-size: 1.125rem;
  max-width: 38ch;
  margin: 0 0 1.75rem;
  color: #524f4b;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--soft {
  background: linear-gradient(180deg, var(--grey-warm) 0%, #f3f1ee 100%);
}

.section--navy {
  background: radial-gradient(120% 80% at 10% 0%, var(--navy-mid) 0%, var(--navy-deep) 55%, #0a1424 100%);
  color: #e9eef5;
}

.section--navy a {
  color: var(--gold-soft);
}

.section--navy a:hover {
  color: #fff;
}

.section--institutional {
  background: var(--white);
  border-block: 1px solid var(--grey-warm);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__head--light .section__title {
  color: #fff;
}

.section__head--light .section__intro {
  color: rgba(233, 238, 245, 0.88);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__intro {
  margin: 0;
  font-size: 1.1rem;
  color: #5c5854;
}

.section__intro--tight {
  margin-bottom: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 230, 227, 0.9);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover {
  opacity: 0.92;
}

.logo--vertical {
  display: none;
}

.logo--horizontal {
  display: block;
  max-height: 44px;
  width: auto;
}

.logo--footer {
  max-height: 40px;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .logo--horizontal {
    display: none;
  }
  .logo--vertical {
    display: block;
    max-height: 52px;
    width: auto;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--grey-warm);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--navy-deep);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-deep);
  position: relative;
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 5px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--grey-warm);
    box-shadow: var(--shadow-md);
    padding: 1rem 4vw 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.6rem 0.25rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--navy-deep);
  }
}

/* Desktop nav row — must stay inside this query or it overrides mobile display:none */
@media (min-width: 901px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-soft);
}

.site-nav__list a:hover {
  color: var(--gold-deep);
}

.site-nav__cta .btn {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  box-shadow: var(--shadow-md);
  color: var(--navy-deep);
}

.btn--secondary {
  background: var(--navy-deep);
  color: var(--white);
}

.btn--secondary:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: rgba(21, 42, 69, 0.25);
  color: var(--navy-deep);
}

.btn--outline:hover {
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}

.btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--navy-deep);
  padding-inline: 0.75rem;
}

.btn--ghost:hover {
  background: rgba(15, 27, 46, 0.06);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--white) 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__trust-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--grey-mid);
  font-weight: 500;
}

.hero__trust-line li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust-line li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

/* Hero scene */
.hero-scene {
  position: relative;
  min-height: 380px;
}

.device {
  position: absolute;
  filter: drop-shadow(var(--shadow-lg));
}

.device--laptop {
  left: 0;
  top: 12%;
  width: 78%;
  z-index: 2;
}

.device--tablet {
  right: 0;
  bottom: 4%;
  width: 44%;
  z-index: 3;
}

.device__bezel {
  background: linear-gradient(145deg, #2a3544 0%, #1a2230 100%);
  border-radius: 12px;
  padding: 10px;
}

.device__bezel--pad {
  border-radius: 18px;
  padding: 12px;
}

.device__screen {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  min-height: 140px;
}

.device__bezel--pad .device__screen {
  border-radius: 12px;
  min-height: 200px;
}

.device__base {
  margin: 0 auto;
  width: 72%;
  height: 10px;
  background: linear-gradient(90deg, #cfd3d9, #9aa3ad);
  border-radius: 0 0 8px 8px;
}

.dashboard-preview {
  padding: 12px 14px;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 40%);
}

.dashboard-preview__top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--grey-warm);
  color: var(--navy-deep);
}

.pill--gold {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-deep);
}

.pill--light {
  background: rgba(255, 255, 255, 0.12);
  color: #e9eef5;
}

.pill--muted {
  background: #eef0f3;
  color: #5c6168;
}

.spark {
  color: var(--navy-soft);
  margin-bottom: 6px;
}

.spark__svg {
  width: 100%;
  height: 48px;
}

.dashboard-preview__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
}

.dashboard-preview__bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--navy-soft), var(--navy-mid));
  height: var(--h);
  opacity: 0.85;
}

.quiz-card {
  padding: 14px;
}

.quiz-card__q {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--navy-deep);
}

.quiz-card__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--grey-warm);
  color: var(--navy-deep);
}

.chip--sel {
  background: rgba(201, 162, 39, 0.25);
  outline: 1px solid rgba(201, 162, 39, 0.5);
}

.progress-dots {
  display: flex;
  gap: 6px;
}

.progress-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d2cd;
}

.progress-dots .is-on {
  background: var(--gold);
}

.motif {
  position: absolute;
  color: var(--navy-soft);
  opacity: 0.35;
}

.motif--graph {
  right: 8%;
  top: 6%;
  width: 52px;
}

.motif--badge {
  left: 6%;
  bottom: 18%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  opacity: 1;
}

.motif--puzzle {
  right: 38%;
  bottom: 2%;
  width: 40px;
  opacity: 0.45;
}

.motif--pattern {
  left: 42%;
  top: 0;
  width: 120px;
  height: 120px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(21, 42, 69, 0.06),
    rgba(21, 42, 69, 0.06) 2px,
    transparent 2px,
    transparent 9px
  );
  border-radius: 20px;
  opacity: 0.5;
}

/* Flow / How it works */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow__step {
  display: flex;
}

.flow__connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .flow__connector {
    display: none;
  }
}

.flow__line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), transparent);
}

.flow__line--down {
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.5), transparent);
}

.flow__connector--wrap {
  grid-column: 1 / -1;
}

.flow__step--full {
  grid-column: 1 / -1;
}

.flow__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .flow__split {
    grid-template-columns: 1fr;
  }
}

.flow__card {
  padding: 1.5rem 1.5rem 1.6rem;
  height: 100%;
}

.flow__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}

.flow__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--navy-deep);
}

.flow__card p {
  margin: 0;
  color: #5c5854;
  font-size: 0.98rem;
}

.card-elevated {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(232, 230, 227, 0.9);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--grey-warm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: var(--shadow-md);
}

.feature-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .feature-card--wide {
    grid-column: span 2;
  }
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #5c5854;
}

.feature-card__icon {
  font-size: 1.1rem;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  backdrop-filter: blur(6px);
}

.trust-panel__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.trust-panel__text {
  margin: 0 0 1rem;
  color: rgba(233, 238, 245, 0.88);
  font-size: 0.98rem;
}

.mini-report {
  background: rgba(15, 27, 46, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
}

.mini-report__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: #e9eef5;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag--up {
  background: rgba(72, 160, 120, 0.35);
  color: #b8e9d4;
}

.tag--steady {
  background: rgba(201, 162, 39, 0.25);
  color: var(--gold-soft);
}

.tag--watch {
  background: rgba(230, 180, 90, 0.2);
  color: #ffe6b0;
}

.mini-report__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  margin: 0.6rem 0;
  overflow: hidden;
}

.mini-report__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
}

.mini-report__foot {
  margin: 0;
  color: rgba(233, 238, 245, 0.75);
  font-size: 0.8rem;
}

.mini-dash {
  background: rgba(15, 27, 46, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: #e9eef5;
  font-size: 0.85rem;
}

.mini-dash__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mini-dash__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mini-dash__metrics div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.mini-dash__metrics strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  font-weight: 700;
}

.mini-dash__metrics em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.mini-dash__chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}

.mini-dash__chart span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
  height: var(--v);
  opacity: 0.9;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: rgba(233, 238, 245, 0.9);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  opacity: 0.85;
}

.pullquote {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pullquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #fff;
  line-height: 1.45;
}

/* Student showcase */
.student-showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1rem;
}

@media (max-width: 960px) {
  .student-showcase {
    grid-template-columns: 1fr;
  }
}

.student-card {
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(232, 230, 227, 0.95);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.student-showcase__col--highlight {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.student-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
}

.student-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #5c5854;
}

.student-card__mock {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--grey-warm);
  border-radius: var(--radius-sm);
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 160px;
}

.logic-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d8d4cf;
}

.logic-grid .on {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.logic-caption {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--grey-mid);
}

.student-hero-card {
  padding: 1.5rem 1.5rem 1.6rem;
}

.student-hero-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--navy-deep);
}

.student-hero-card p {
  margin: 0 0 1rem;
  color: #5c5854;
}

.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
}

.milestones li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: #524f4b;
}

.milestone__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* Dashboard board */
.dash-board {
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

@media (max-width: 800px) {
  .dash-board {
    grid-template-columns: 1fr;
  }
}

.dash-board__sidebar {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #0c1628 100%);
  color: #e9eef5;
  padding: 1.25rem 1rem;
}

.dash-board__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: #fff;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-nav__item {
  font-size: 0.88rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  color: rgba(233, 238, 245, 0.75);
}

.dash-nav__item.is-active {
  background: rgba(201, 162, 39, 0.2);
  color: #fff;
  font-weight: 600;
}

.dash-board__main {
  padding: 1.25rem 1.35rem 1.5rem;
  background: linear-gradient(180deg, #fbfbfa 0%, #fff 30%);
}

.dash-board__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-board__h {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--navy-deep);
}

.dash-board__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--grey-mid);
}

.dash-board__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .dash-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .dash-kpis {
    grid-template-columns: 1fr;
  }
}

.kpi {
  background: #fff;
  border: 1px solid var(--grey-warm);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

.kpi__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
  margin-bottom: 0.25rem;
}

.kpi__value {
  display: block;
  font-size: 0.95rem;
  color: var(--navy-deep);
  line-height: 1.3;
}

.kpi__hint {
  display: block;
  font-size: 0.78rem;
  color: #7a756f;
  margin-top: 0.35rem;
}

.dash-panels {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.95fr;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .dash-panels {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: #fff;
  border: 1px solid var(--grey-warm);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem 1rem;
  box-shadow: var(--shadow-sm);
}

.panel h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
}

.subject-row {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.subject-row .bar {
  height: 8px;
  background: var(--grey-warm);
  border-radius: 999px;
  overflow: hidden;
}

.subject-row .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-soft), var(--gold-deep));
}

.trend-svg {
  height: 100px;
  margin-bottom: 0.35rem;
}

.trend-svg svg {
  width: 100%;
  height: 100%;
}

.panel__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--grey-mid);
}

.rec-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: #524f4b;
}

.rec-list li {
  margin-bottom: 0.35rem;
}

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .safety-grid {
    grid-template-columns: 1fr;
  }
}

.safety-card {
  padding: 1.35rem 1.35rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-warm);
  background: #fdfdfc;
}

.safety-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
}

.safety-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #5c5854;
}

/* CTA */
.cta-section {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #fff 0%, #f6f4f1 45%, rgba(201, 162, 39, 0.12) 100%);
}

@media (max-width: 720px) {
  .cta-section__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-section__logo {
    justify-self: center;
  }
  .cta-section .hero__actions {
    justify-content: center;
  }
}

.cta-section .section__title {
  margin-bottom: 0.5rem;
}

.logo--cta {
  opacity: 0.95;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(233, 238, 245, 0.85);
  padding: 2.5rem 0 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
}

.site-footer__h {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.65rem;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 0.4rem;
}

.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(233, 238, 245, 0.65);
}

.site-footer__base p {
  margin: 0;
}

/* Legal pages (Terms, Privacy) */
.legal-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-header__nav a {
  text-decoration: none;
  color: var(--navy-deep);
}

.legal-header__nav a:hover {
  color: var(--gold-deep);
  text-decoration: underline;
}

.legal-page {
  padding: 1.25rem 0 3.5rem;
}

.legal-page__meta {
  font-size: 0.9rem;
  color: var(--grey-mid);
  margin: 0 0 1.5rem;
}

.legal-page .section__title {
  margin-bottom: 0.75rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  color: var(--navy-deep);
}

.legal-page h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-page p,
.legal-page li {
  max-width: 68ch;
}

.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.4rem;
}

.legal-page__note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-warm);
  font-size: 0.95rem;
  color: #5c5854;
}

.legal-inline {
  display: block;
  margin-top: 0.75rem;
}
