*, *::before, *::after { box-sizing: border-box; }

:root {
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --ink: #0B1220;
  --muted: #475569;
  --line: #E2E8F0;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img { border-radius: 9px; }

.nav {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a { color: inherit; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }

.header-portal-mobile { flex-shrink: 0; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-portal-mobile { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue) !important; background: #fff; }

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(14, 165, 233, 0.16), transparent 50%),
    linear-gradient(165deg, #EEF3FA 0%, #F8FAFC 45%, #E8EEF8 100%);
  animation: wash 12s ease-in-out infinite alternate;
}

@keyframes wash {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(12deg); }
}

.hero-inner {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 16ch;
  animation: rise 0.75s ease 0.08s both;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  animation: rise 0.7s ease both;
}

.hero-badges {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: rise 0.75s ease 0.26s both;
}
.hero-badges li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.lede {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38ch;
  animation: rise 0.75s ease 0.14s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  animation: rise 0.75s ease 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 5.5s ease-in-out infinite;
}

/* Minimal iPhone-style shell */
.device {
  position: relative;
  width: min(268px, 62vw);
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a2a2e 0%, #111113 55%, #0a0a0b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(15, 23, 42, 0.28);
}

.device-btn {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, #52525b 0%, #27272a 50%, #18181b 100%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.device-btn-silent {
  left: -1px;
  top: 18%;
  height: 12px;
}

.device-btn-vol-up {
  left: -1px;
  top: 23%;
  height: 20px;
}

.device-btn-vol-down {
  left: -1px;
  top: 30%;
  height: 20px;
}

.device-btn-power {
  right: -1px;
  top: 25%;
  height: 30px;
}

.device-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.device-screen::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 16px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}

.device-screen img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-alt {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 64px 20px;
  background: #fff;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.schools-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.schools-inner .section-lede {
  margin: 0 0 28px;
  max-width: none;
}

.schools-inner .bullets {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: center;
}

.schools-inner .bullets li {
  position: relative;
  margin: 0 0 10px;
  padding: 0;
}

.schools-inner .bullets li::before {
  content: "•";
  margin-right: 0.4em;
  color: var(--muted);
}

.schools-inner .cta-row {
  justify-content: center;
}

.section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 52ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.steps span { color: var(--muted); font-size: 0.98rem; }

.bullets {
  margin: 0 0 24px;
  padding-left: 1.1em;
  color: var(--muted);
}
.bullets li { margin-bottom: 8px; }

.text-link {
  font-weight: 700;
  font-family: var(--display);
  font-size: 0.95rem;
}

.site-footer {
  padding: 36px 22px 48px;
  display: grid;
  gap: 16px;
  justify-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
}
.footer-brand img { border-radius: 7px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

.copy {
  margin: 0;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ── Truancy highlight ─────────────────────────────────────────────────── */

.section-highlight {
  width: 100% !important;
  max-width: none;
  margin: 0;
  padding: 64px 20px;
  background: linear-gradient(180deg, #fff 0%, #F4F7FB 100%);
  border-block: 1px solid var(--line);
}

.highlight-grid {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .highlight-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
}

.highlight-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}
.highlight-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 48ch;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.timeline-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.timeline-list strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.timeline-list span {
  font-size: 0.92rem;
  color: var(--muted);
}
.timeline-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.timeline-dot--warn {
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.timeline-dot--danger {
  background: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.highlight-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}
.highlight-card-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}
.highlight-card-stat {
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.highlight-card-sub {
  margin: 8px 0 20px;
  font-size: 0.92rem;
  color: #CBD5E1;
}
.highlight-pill {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.highlight-pill--warn {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
}
.highlight-pill--danger {
  background: rgba(239, 68, 68, 0.22);
  color: #FCA5A5;
}

/* ── Pricing ───────────────────────────────────────────────────────────── */

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  text-align: center;
}
.pricing-label {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.pricing-amount {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--muted);
}
.pricing-amount span {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pricing-note {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  font-size: 0.95rem;
  color: var(--muted);
}
.pricing-features li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 10px;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.pricing-card .btn {
  width: 100%;
}
.pricing-hardware {
  max-width: 52ch;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.section-faq {
  padding-bottom: 80px;
}
.faq-list {
  margin: 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .faq-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.faq-item {
  padding: 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.faq-item dt {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.faq-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}
.faq-item dd a { font-weight: 600; }

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