/* ============================================================
   School Connect — dark terminal theme, blue accent
   Matches main/index.html's design language with School
   Connect's own blue identity (#4A6CF7) in place of the
   studio purple.
   ============================================================ */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink:          #0a0e14;
  --surface:      #121821;
  --surface-raised: #1a2230;
  --surface-high:   #1f2a3a;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.15);
  --text:         #edf1f4;
  --text-dim:     #8b98a5;
  --text-dimmer:  #5c6773;

  --brand:        #4A6CF7;
  --brand-light:  #7A93F9;
  --brand-dim:    rgba(74, 108, 247, 0.14);
  --brand-glow:   rgba(74, 108, 247, 0.28);

  --success:      #2db17a;
  --warning:      #f59e0b;
  --cyan:         #06b6d4;

  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", ui-monospace,
    Menlo, Consolas, monospace;
  --body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-brand: 0 20px 40px -12px rgba(74, 108, 247, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(74, 108, 247, 0.13), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%,  rgba(6, 182, 212, 0.07), transparent 60%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--body);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 20, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #2C4AD1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke-width: 2;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { opacity: 1; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 24px 48px -14px rgba(74, 108, 247, 0.55);
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-light); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-light); }

/* ---------------------------------------------------------
   Prompt / eyebrow chip
   --------------------------------------------------------- */
.prompt, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(74, 108, 247, 0.1);
  border: 1px solid rgba(74, 108, 247, 0.22);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.prompt {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.25);
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-copy, .hero-art { min-width: 0; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero h1 .accent { color: var(--brand-light); }

.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  max-width: 46ch;
  color: var(--text-dim);
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dimmer);
}
.hero-badge svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex-shrink: 0;
}

/* Hero art — mock app card */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-illustration {
  position: relative;
  width: 300px;
}
.app-card {
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card), 0 32px 56px -16px rgba(74, 108, 247, 0.18);
  animation: floaty 6s ease-in-out infinite;
}
.app-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.app-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #2C4AD1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-card-icon svg { width: 18px; height: 18px; color: #fff; }
.app-card-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.app-card-sub { font-size: 11.5px; color: var(--text-dimmer); margin-top: 1px; }

.notice-list { display: flex; flex-direction: column; gap: 8px; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-high);
  border: 1px solid var(--line);
}
.notice-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
}
.notice-dot.blue  { background: var(--brand); box-shadow: 0 0 0 3px rgba(74,108,247,0.18); }
.notice-dot.cyan  { background: var(--cyan);  box-shadow: 0 0 0 3px rgba(6,182,212,0.18); }
.notice-dot.warn  { background: var(--warning); box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.notice-text { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.4; }
.notice-meta { font-size: 10.5px; color: var(--text-dimmer); margin-top: 2px; }

.floating-badge {
  position: absolute;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.floating-badge.top-right  { top: -18px; right: -24px; }
.floating-badge.bottom-left { bottom: -18px; left: -24px; }
.floating-badge-icon {
  width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.floating-badge-icon.green { background: rgba(45,177,122,0.14); }
.floating-badge-icon.green svg { color: var(--success); }
.floating-badge-icon.blue  { background: rgba(74,108,247,0.14); }
.floating-badge-icon.blue svg  { color: var(--brand-light); }
.floating-badge-icon svg { width: 13px; height: 13px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .app-card { animation: none; }
}

/* ---------------------------------------------------------
   Store badges
   --------------------------------------------------------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.55;
  cursor: default;
}
.store-badge .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-dimmer); }
.store-badge .text {
  display: flex; flex-direction: column;
  line-height: 1.3; font-size: 12.5px; font-weight: 600; color: var(--text-dim);
}
.store-badge .text em {
  font-style: normal; font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dimmer);
}

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 16px; }
.section-head p  { margin-top: 14px; font-size: 16.5px; }

/* ---------------------------------------------------------
   Audience tabs
   --------------------------------------------------------- */
.audience-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  transition: all 0.2s ease;
  font-family: var(--body);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px -4px rgba(74,108,247,0.45);
}

/* ---------------------------------------------------------
   Feature grid
   --------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 21px; height: 21px; }
.feature-icon.blue   { background: rgba(74,108,247,0.12); color: var(--brand-light); }
.feature-icon.cyan   { background: rgba(6,182,212,0.12);  color: var(--cyan); }
.feature-icon.green  { background: rgba(45,177,122,0.12); color: var(--success); }
.feature-icon.amber  { background: rgba(245,158,11,0.12); color: var(--warning); }
.feature-icon.purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.feature-icon.rose   { background: rgba(244,63,94,0.12);  color: #fb7185; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--text); }
.feature-card p  { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---------------------------------------------------------
   Why section
   --------------------------------------------------------- */
.why-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 72px 0;
  margin: 0 0 80px;
}
.why-section .section-head { margin-bottom: 48px; }
.why-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-point { display: flex; gap: 18px; align-items: flex-start; }
.why-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-light);
  background: var(--brand-dim);
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-point h4 { font-size: 16.5px; margin-bottom: 8px; color: var(--text); }
.why-point p  { font-size: 14px; color: var(--text-dim); }

/* ---------------------------------------------------------
   Trust strip
   --------------------------------------------------------- */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust .section-head h2 { color: var(--text); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.trust-item {
  background: var(--surface-raised);
  padding: 30px 24px;
}
.trust-item .feature-icon { margin-bottom: 16px; }
.trust-item h4 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.trust-item p  { font-size: 14px; color: var(--text-dim); }

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */
.cta-band {
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 64px 32px;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 32px); }
.cta-band p  { margin-top: 14px; font-size: 16.5px; color: var(--text-dim); }
.cta-band .hero-ctas { justify-content: center; margin-top: 32px; }

/* ---------------------------------------------------------
   Policy pages
   --------------------------------------------------------- */
.policy-hero {
  padding: 72px 0 40px;
}
.policy-hero .prompt { margin-bottom: 20px; }
.policy-hero h1 { font-size: clamp(30px, 4.2vw, 44px); max-width: 24ch; }
.policy-hero .effective-date {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dimmer);
  font-family: var(--mono);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-bottom: 96px;
  align-items: flex-start;
}

.policy-toc {
  position: sticky;
  top: 90px;
  font-size: 13.5px;
}
.policy-toc-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 14px;
}
.policy-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--text-dimmer);
  border-left: 2px solid var(--line-strong);
  font-size: 13.5px;
  transition: color 0.15s, border-color 0.15s;
}
.policy-toc a:hover {
  color: var(--text);
  border-color: var(--brand);
}

.policy-body { max-width: 66ch; }
.policy-body section {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.policy-body h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-top: 6px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.policy-body p, .policy-body li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 10px;
}
.policy-body ul {
  padding-left: 0;
  list-style: none;
  margin: 12px 0;
}
.policy-body li {
  padding-left: 20px;
  position: relative;
  margin-top: 10px;
}
.policy-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
}
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-body a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: var(--text); }

.callout {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.callout strong { color: var(--text); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-tagline {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dimmer);
  max-width: 32ch;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a { color: var(--text-dimmer); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dimmer);
}
.footer-bottom a:hover { color: var(--text-dim); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .app-illustration { width: 260px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .why-points { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    gap: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a, .nav-links .btn { padding: 14px 0; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 52px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { white-space: normal; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .floating-badge { display: none; }
  .footer-top { flex-direction: column; }
  .audience-tabs { flex-wrap: wrap; }
  .why-section { margin: 0; border-radius: 0; border-left: none; border-right: none; }
}
