:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #4d5d73;
  --soft: #f5f8fb;
  --line: #d9e2ec;
  --blue: #174c8f;
  --blue-dark: #0c2c56;
  --green: #1d6f5c;
  --amber: #b46b21;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 35, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 236, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  max-width: 1180px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(16, 24, 39, 0.08);
}

.sprite-logo {
  width: 44px;
  height: 48px;
  background-image: url("assets/wolfwhale-spritesheet.webp");
  background-size: 800% 900%;
  background-position: 14.2857% 100%;
  background-repeat: no-repeat;
  animation: whale-breathe 1.8s ease-in-out infinite;
}

@keyframes whale-breathe {
  50% {
    transform: rotate(-2deg) scale(1.04);
  }
}

.brand-text strong,
.brand-text span {
  display: block;
  white-space: nowrap;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1;
}

.brand-text span {
  margin-top: 3px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 4px;
  color: #2f3b4d;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  border-radius: 8px;
  padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--white);
  color: var(--blue);
}

.nav-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
}

.nav-action,
.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(23, 76, 143, 0.24);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101827;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/canadian-school-data-hero.png");
  background-position: center;
  background-size: cover;
  content: "";
  opacity: 0.54;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 20, 36, 0.96), rgba(8, 20, 36, 0.8) 44%, rgba(8, 20, 36, 0.35));
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 38px;
}

.hero-copy {
  max-width: 720px;
}

.category {
  margin: 0;
  color: #d9e9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(50px, 7.5vw, 76px);
  line-height: 0.94;
}

.hero-copy > p:not(.category) {
  max-width: 700px;
  color: #e5f0ff;
  font-size: 17px;
  line-height: 1.58;
}

.hero-system-block {
  max-width: 760px;
  margin-bottom: 18px;
}

.hero-system-kicker {
  margin-bottom: 12px;
  color: #d9e9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-system-card {
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.hero-system-card h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.06;
}

.hero-system-card p {
  margin-bottom: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.review-panel {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: #496176;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--blue);
  padding: 6px 9px;
}

.panel-focus {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #f9fbfd, #eef6ff);
  padding: 14px;
}

.panel-focus span,
.panel-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-focus strong {
  display: block;
  margin-top: 6px;
  font-size: 23px;
  line-height: 1.05;
}

.panel-focus p,
.panel-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.panel-list div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 10px;
}

.panel-list strong,
.panel-list em {
  display: block;
  grid-column: 2;
}

.panel-list strong {
  font-size: 13px;
  line-height: 1.2;
}

.panel-list span {
  grid-row: 1 / span 2;
}

.panel-list em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.panel-note {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 12px;
}

.section {
  border-bottom: 1px solid var(--line);
  padding: 56px 20px;
}

.section.white {
  background: var(--white);
}

.section.dark {
  background: #15345a;
  color: var(--white);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: #cfe3ff;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
}

.section h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.section p {
  color: var(--muted);
  font-size: 16px;
}

.dark p {
  color: #e5f0ff;
}

.scope-grid,
.role-grid,
.trust-grid,
.pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 12px 26px rgba(15, 35, 60, 0.06);
}

.card.soft {
  background: #f9fbfd;
}

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

.split > * {
  min-width: 0;
}

.buyer-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  box-shadow: 0 10px 22px rgba(15, 35, 60, 0.06);
}

.buyer-strip article {
  background: var(--white);
  padding: 24px;
}

.buyer-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-strip strong {
  display: block;
  max-width: 320px;
  font-size: 22px;
  line-height: 1.14;
}

.platform-grid,
.feature-index {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

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

.platform-card {
  border-top: 5px solid var(--blue);
}

.platform-card:nth-child(2) {
  border-top-color: var(--green);
}

.platform-card:nth-child(3) {
  border-top-color: var(--amber);
}

.platform-card:nth-child(4) {
  border-top-color: #6b5ca5;
}

.feature-index-shell {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbfd;
  margin-top: 28px;
  padding: 0;
}

.feature-index-shell summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
}

.feature-index-shell summary::-webkit-details-marker {
  display: none;
}

.feature-index-shell summary span:first-child {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.16;
}

.feature-index-shell summary span:last-child {
  color: var(--muted);
  font-size: 16px;
}

.feature-index-shell[open] summary {
  border-bottom: 1px solid var(--line);
}

.feature-index-shell .feature-index {
  margin-top: 0;
  padding: 18px;
}

.benchmark-map {
  display: grid;
  grid-template-columns: 1.12fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.benchmark-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 12px 26px rgba(15, 35, 60, 0.06);
}

.benchmark-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.benchmark-card h3 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.06;
}

.benchmark-card p {
  color: var(--muted);
  font-size: 15px;
}

.benchmark-card strong {
  display: block;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #243247;
  font-size: 14px;
  line-height: 1.45;
}

.wolfwhale-card {
  background: linear-gradient(145deg, #0d2340, #174c8f);
  color: var(--white);
}

.wolfwhale-card span,
.wolfwhale-card p {
  color: #dbeafe;
}

.comparison-boundary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbfd;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

.comparison-boundary strong {
  color: var(--ink);
}

.feature-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  box-shadow: 0 10px 20px rgba(15, 35, 60, 0.04);
}

.feature-row summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
}

.feature-row summary::-webkit-details-marker {
  display: none;
}

.feature-row summary span:first-child {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
}

.feature-row summary span:last-child {
  color: var(--muted);
  font-size: 16px;
}

.feature-row > p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 16px 20px 18px;
}

.feature-row:first-child {
  margin-top: 0;
}

.feature-row[open] summary {
  background: #f9fbfd;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 8px 10px;
  color: #243247;
  font-size: 13px;
  font-weight: 800;
}

.role-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.file-list {
  display: grid;
  gap: 12px;
}

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: var(--white);
  padding: 16px;
  color: var(--ink);
}

.file-icon {
  display: grid;
  width: 36px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #1c5da7;
  border-radius: 7px;
  color: #1c5da7;
  font-size: 12px;
  font-weight: 900;
}

.file strong {
  display: block;
  font-size: 14px;
}

.file span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
  align-items: start;
}

.number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.contact {
  border-radius: 18px;
  background: linear-gradient(135deg, #15345a, #0d2340);
  color: var(--white);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.contact a {
  background: var(--white);
  color: var(--blue-dark);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 28px 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  max-width: 1180px;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    display: block;
    padding: 44px 20px 40px;
  }

  .review-panel {
    display: none;
  }

  .scope-grid,
  .buyer-strip,
  .platform-grid,
  .role-summary-grid,
  .role-grid,
  .trust-grid,
  .pilot-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .benchmark-map {
    grid-template-columns: 1fr;
  }

  .benchmark-card {
    min-height: 0;
  }

  .comparison-boundary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 12px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-system-card {
    padding: 14px;
  }

  .hero-system-card h2 {
    font-size: 22px;
    line-height: 1.1;
  }

  .hero-copy > p:not(.category) {
    font-size: 16px;
  }

  .hero-system-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .panel-focus strong {
    font-size: 22px;
  }

  .section {
    padding: 44px 20px;
  }

  .feature-row {
    gap: 8px;
  }

  .feature-index-shell summary,
  .feature-row summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
