/* ============================================================================
   PACE marketing homepage.
   Tokens: paper #fbfcfd · ink #0c2233 · sea #2f7cb0 · sky #4f9fd4 ·
   mist #dcebf5 · sun #fab833. Display: Bricolage Grotesque; body: Figtree;
   mono (timestamps/badges): Spline Sans Mono. The one loud element is the
   animated live board in the hero; everything else stays disciplined.
   ============================================================================ */

:root {
  --paper: #fbfcfd;
  --ink: #0c2233;
  --ink-soft: #43596b;
  --sea: #2f7cb0;
  --sea-deep: #1f6191;
  --sky: #4f9fd4;
  --mist: #dcebf5;
  --mist-soft: #eef5fa;
  --sun: #fab833;
  --green: #69b34c;
  --red: #d13838;
  --line: #e3ecf2;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;

  --radius: 16px;
  --shadow: 0 2px 6px rgba(12, 34, 51, 0.06), 0 18px 44px rgba(12, 34, 51, 0.08);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.06; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--sea); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 14px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 6px 18px rgba(47, 124, 176, 0.32); }
.btn-primary:hover { background: var(--sea-deep); }
.btn-outline { background: transparent; color: var(--sea); border-color: var(--sea); }
.btn-outline:hover { background: var(--mist-soft); }
.btn-invert { background: #fff; color: var(--sea-deep); }
.link-quiet { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--ink); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(251, 252, 253, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sea);
  color: #fff;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
}
.brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.brand.small .brand-mark { width: 30px; height: 30px; font-size: 17px; }
.brand.small .brand-name { font-size: 19px; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  padding: 8px 14px;
  border-radius: 9px;
}
.nav-links a:hover { background: var(--mist-soft); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) {
  .nav-links, .nav-cta .link-quiet { display: none; }
}

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 4vw, 48px) clamp(48px, 7vh, 80px);
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--sea);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.16em;
  background: var(--sun);
  opacity: 0.55;
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 14.5px; color: var(--ink-soft); }

.hero-proof {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 44px 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.hero-proof li { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 150px; }
.hero-proof strong { font-family: var(--display); font-size: 24px; font-weight: 800; }
.hero-proof span { font-size: 13.5px; color: var(--ink-soft); }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-board { max-width: 560px; }
}

/* ---------------- the animated board (signature) ---------------- */
.hero-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.board-chrome .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mist); }
.board-title { margin-left: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.board-clock { margin-left: auto; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

.board-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mist);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 16px;
}
.board-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sea-deep);
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(105, 179, 76, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(105, 179, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(105, 179, 76, 0); }
}

.board-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 18px 8px;
  min-height: 250px;
  align-items: start;
}
.board-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; }
.bp-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.bp-count {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--mist-soft);
  color: var(--sea-deep);
  border-radius: 999px;
  padding: 1px 9px;
}
.bp-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-chips li {
  font-size: 13.5px;
  font-weight: 600;
  color: #0b1f2a;
  padding: 8px 11px;
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  display: flex;
  gap: 7px;
  align-items: baseline;
  transition: background-color 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
}
.bp-chips li .m { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.bp-chips li.enter { animation: chipIn 0.45s ease; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.bp-chips li.leave { opacity: 0; transform: scale(0.9); }

.board-legend {
  display: flex;
  gap: 20px;
  padding: 10px 18px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.board-legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.green { background: var(--green); }
.lg.yellow { background: var(--sun); }
.lg.red { background: var(--red); }

/* ---------------- origin strip ---------------- */
.origin {
  background: var(--ink);
  color: #dfeaf2;
  padding: clamp(28px, 4vh, 40px) clamp(20px, 4vw, 48px);
}
.origin p {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}
.origin strong { color: #fff; }

/* ---------------- compliance ---------------- */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 48px);
}
.compliance-copy p { margin: 18px 0 26px; color: var(--ink-soft); max-width: 30em; }
@media (max-width: 920px) { .compliance { grid-template-columns: 1fr; } }

.attestation {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
}
.att-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap-reverse; }
.att-head h3 { font-size: 21px; }
.att-stamp {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sea-deep);
  border: 1.5px solid var(--sky);
  border-radius: 6px;
  padding: 4px 10px;
  transform: rotate(2deg);
}
.att-list { list-style: none; margin: 0; padding: 0; counter-reset: att; }
.att-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--line);
}
.att-list li:last-child { border-bottom: none; }
.att-list strong { display: block; font-size: 15.5px; }
.att-list small { color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }

.att-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--sky);
  border-radius: 6px;
  position: relative;
  background: #fff;
  transition: background-color 0.25s ease;
}
.att-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.att-list li.checked .att-box { background: var(--sea); border-color: var(--sea); }
.att-list li.checked .att-box::after { opacity: 1; transform: scale(1); }

/* ---------------- features ---------------- */
.features {
  background: var(--mist-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 10vh, 110px) clamp(20px, 4vw, 48px);
}
.features-head { max-width: var(--wrap); margin: 0 auto clamp(40px, 6vh, 64px); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 5vh, 48px) 0;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-shot { order: 1; }
@media (max-width: 920px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-shot { order: 2; }
}

.feature-copy p { margin-top: 14px; color: var(--ink-soft); max-width: 30em; }
.feature-points { margin: 18px 0 0; padding: 0; list-style: none; }
.feature-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 15.5px;
  font-weight: 500;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: var(--sea) center / 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

.feature-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.feature-shot img { display: block; width: 100%; height: auto; }

/* ---------------- video ---------------- */
.video { padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 48px); }
.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame img { display: block; width: 100%; height: auto; filter: saturate(0.9); }
.video-scrim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(rgba(12, 34, 51, 0.55), rgba(12, 34, 51, 0.7));
  color: #fff;
  text-align: center;
  padding: 24px;
}
.video-scrim p { font-size: clamp(15px, 2vw, 17px); max-width: 30em; font-weight: 500; }
.play {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94) center / 26px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232f7cb0'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E");
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------------- pricing ---------------- */
.pricing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.price-card {
  max-width: 460px;
  margin: 36px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px);
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price { font-family: var(--display); font-size: 72px; font-weight: 800; letter-spacing: -0.03em; }
.per { text-align: left; font-size: 14px; color: var(--ink-soft); line-height: 1.35; }
.price-points { list-style: none; margin: 26px 0 30px; padding: 0; text-align: left; }
.price-points li {
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--mist-soft);
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
}
.price-points li:last-child { border-bottom: none; }
.price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: var(--sea) center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.price-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); }
.referral {
  margin: 34px auto 0;
  max-width: 34em;
  background: var(--mist-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 15px;
  color: var(--ink-soft);
}
.referral strong { color: var(--ink); }

/* ---------------- FAQ ---------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) clamp(20px, 4vw, 48px) clamp(64px, 10vh, 100px);
}
.faq-list { margin-top: 30px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 36px 16px 4px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--sea);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 4px 18px; color: var(--ink-soft); max-width: 40em; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--sea-deep), var(--sea) 55%, var(--sky));
  color: #fff;
  text-align: center;
  padding: clamp(64px, 10vh, 100px) clamp(20px, 4vw, 48px);
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 14px 0 30px; font-size: 18px; opacity: 0.92; }

/* ---------------- footer ---------------- */
.footer { padding: 40px clamp(20px, 4vw, 48px) 48px; }
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.footer nav a:hover { color: var(--ink); }
.legal {
  max-width: var(--wrap);
  margin: 0 auto;
  font-size: 12.5px;
  color: #7b8b98;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------------- attendance intelligence ---------------- */
.intel { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 48px) 0; }
.intel-sub { margin-top: 14px; color: var(--ink-soft); max-width: 44em; }
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: 36px; }
@media (max-width: 920px) { .intel-grid { grid-template-columns: 1fr; } }
.intel-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 28px);
}
.intel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.intel-card-head h3 { font-size: 21px; }
.intel-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sea-deep); background: var(--mist-soft);
  border: 1px solid var(--mist); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.intel-tag.amber { color: #8a6116; background: #fdf4dd; border-color: #f5e3b0; }
.intel-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.heat-scroll { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 5px; width: 100%; }
.heat th { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 2px 4px; text-align: center; }
.heat tbody th { text-align: right; padding-right: 8px; }
.heat td {
  min-width: 44px; height: 40px; border-radius: 8px; text-align: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: #0c2233;
}
.heat td.z { background: #f3f5f6; }
.heat td.dk { color: #fff; }
.risk { width: 100%; border-collapse: collapse; }
.risk th {
  text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
  padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.risk td { padding: 10px; border-bottom: 1px solid var(--mist-soft); font-size: 14.5px; }
.risk tr:last-child td { border-bottom: none; }
.risk .rn { font-weight: 600; color: var(--sea-deep); }
.absent {
  background: #fdeee3; color: #b45a24; border-radius: 999px;
  padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.risk-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.risk-pill {
  font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 6px 16px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.risk-pill.active { background: var(--sea); border-color: var(--sea); color: #fff; }

/* ---------------- full-width student showcase ---------------- */
.feature.showcase { display: block; }
.feature.showcase .feature-copy { max-width: 640px; }
.feature.showcase .feature-copy p { max-width: 36em; }
.showcase-shot { max-width: 1040px; margin: 32px auto 0; }

/* screen-reader-only (the hero h1 is semantic, not visual) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
