:root {
  --bg: #eef6ff;
  --bg-2: #f8fbff;
  --card: rgba(255, 255, 255, 0.86);
  --text: #12314a;
  --muted: #5c748a;
  --primary: #0098d8;
  --primary-2: #0bb7f6;
  --green: #7fbb40;
  --line: rgba(18, 49, 74, 0.08);
  --shadow: 0 18px 54px rgba(16, 59, 93, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(11,183,246,.12), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(0,152,216,.09), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 54%, #ffffff 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 251, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,49,74,.05);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

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

.brand img {
  width: 182px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy strong {
  display: block;
  font-size: 1.12rem;
  letter-spacing: .01em;
}

.brand-copy span {
  color: var(--muted);
  display: block;
  font-size: .95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .98rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 14px 28px rgba(0,152,216,.25);
}

.btn-secondary,
.btn-ghost {
  background: rgba(255,255,255,.78);
  border-color: rgba(18,49,74,.1);
  color: var(--text);
}

.btn-light {
  background: #fff;
  color: #0e5b80;
  box-shadow: none;
}

.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(18,49,74,.08);
  font-size: .92rem;
  font-weight: 800;
  color: #27506d;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.03em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
}

.hero .lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.14rem;
  max-width: 62ch;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 34px;
}

.bullet,
.feature-card,
.split-card,
.footer-card,
.cookie-card,
.cookie-modal__dialog,
.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(16,59,93,.05);
}

.bullet {
  padding: 16px;
  border-radius: 18px;
}

.bullet strong {
  display: block;
  margin-bottom: 6px;
  font-size: .98rem;
}

.bullet span,
.feature-card p,
.section-head p,
.split-card p,
.footer-card p,
.page-card p,
.page-card li,
.page-card address,
.cookie-card p,
.cookie-modal__dialog p,
.preference-row span {
  color: var(--muted);
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .93rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.8)),
    linear-gradient(135deg, rgba(0,152,216,.08), rgba(11,183,246,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
}

.hero-visual::before {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(11,183,246,.18), transparent 68%);
  top: -80px;
  right: -20px;
}

.hero-visual::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,152,216,.12), transparent 68%);
  bottom: -40px;
  left: -20px;
}

.device-cluster {
  position: absolute;
  inset: 0;
}

.device {
  position: absolute;
  filter: drop-shadow(0 22px 38px rgba(16, 59, 93, .14));
}

.device.macbook {
  width: 78%;
  top: 10%;
  left: 4%;
}

.device.ipad {
  width: 49%;
  bottom: 9%;
  left: 1%;
}

.device.iphone {
  width: 21%;
  right: 6%;
  top: 44%;
}

.section {
  padding: 32px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head h2,
.split-card h2,
.cta-card h2,
.page-card h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.feature-card h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #2d5674;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}

.is-admin .feature-icon { background: rgba(0,152,216,.12); color: #0e78aa; }
.is-educ .feature-icon { background: rgba(11,183,246,.12); color: #2a8eb6; }
.is-parents .feature-icon { background: rgba(127,187,64,.12); color: #699b33; }

.section-alt {
  padding-top: 10px;
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
}

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

.mini-item {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0,152,216,.06), rgba(11,183,246,.02));
  border: 1px solid var(--line);
}

.mini-item strong {
  display: block;
  margin-bottom: 6px;
}

.mini-item span {
  color: var(--muted);
  font-size: .94rem;
}

.cta-section {
  padding-bottom: 66px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #08395a 0%, #0b5f87 55%, #1187ba 100%);
  color: #fff;
  box-shadow: 0 24px 54px rgba(8,57,90,.25);
}

.cta-card p { color: rgba(255,255,255,.84); margin-top: 10px; }

.site-footer {
  padding: 0 0 32px;
}

.footer-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr .8fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: 26px;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 12px;
}

.footer-links,
.footer-actions {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-actions a,
.link-button {
  color: var(--muted);
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.cookie-banner,
.cookie-modal {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  padding: 18px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] { display: none; }

.cookie-card {
  width: min(calc(100% - 24px), 1120px);
  margin: 0 auto;
  padding: 20px;
  border-radius: 24px;
}

.cookie-card h2,
.cookie-modal__dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cookie-card,
.cookie-actions,
.preference-row,
.modal-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-actions { flex-wrap: wrap; }

.cookie-modal {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18,49,74,.4);
  backdrop-filter: blur(4px);
}

.cookie-modal__dialog {
  width: min(calc(100% - 28px), 760px);
  padding: 28px;
  border-radius: 26px;
}

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

.preference-row strong {
  display: block;
  margin-bottom: 4px;
}

.pill-static {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18,49,74,.06);
  font-weight: 700;
  color: #305772;
  white-space: nowrap;
}

.toggle {
  position: relative;
  width: 60px;
  height: 34px;
  flex: 0 0 auto;
}

.toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d9e5ef;
  position: relative;
  transition: background .18s ease;
}

.track::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  top: 4px;
  left: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transition: transform .18s ease;
}

.toggle input:checked + .track {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.toggle input:checked + .track::after {
  transform: translateX(26px);
}

.page-shell {
  padding: 42px 0 60px;
}

.page-card {
  padding: 34px;
  border-radius: 30px;
}

.page-card h1 { margin-bottom: 10px; }
.page-card h2 {
  font-size: 1.4rem;
  margin: 28px 0 10px;
}
.page-card p,
.page-card ul,
.page-card address { margin: 0 0 12px; }
.page-card ul { padding-left: 20px; }
.page-card .meta { color: var(--muted); font-size: .96rem; }

@media (max-width: 1080px) {
  .hero-grid,
  .feature-grid,
  .split-card,
  .section-head,
  .footer-card,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-visual { min-height: 540px; }
  .cta-card .btn { width: 100%; }
}

@media (max-width: 900px) {
  .header-actions { display: none; }
  .hero-bullets,
  .mini-grid { grid-template-columns: 1fr; }

  .device.macbook { width: 88%; left: 2%; top: 8%; }
  .device.ipad { width: 52%; left: 2%; bottom: 4%; }
  .device.iphone { width: 26%; right: 4%; top: 48%; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding-top: 28px; }
  h1 { font-size: 2.65rem; }
  .brand img { width: 154px; }
  .brand-copy { display: none; }
  .hero-visual { min-height: 360px; border-radius: 26px; }
  .device.macbook { width: 94%; top: 12%; left: 0; }
  .device.ipad { width: 54%; left: -2%; bottom: 2%; }
  .device.iphone { width: 29%; right: 3%; top: 50%; }
  .feature-card,
  .split-card,
  .footer-card,
  .page-card,
  .cookie-modal__dialog { padding: 22px; }
  .cookie-card,
  .cookie-actions,
  .preference-row,
  .modal-actions { flex-direction: column; align-items: stretch; }
}
