/* Edubate — editorial B2B design system
   Brand kit v1.0: Sora (headlines) + Inter (body), Midnight Navy #0B1A3A, Edubate Blue #1D4ED8, Spark Amber (AI only)
   Website accents: Light Blue #0EA5E9 / #38BDF8 / #E0F2FE · Yellow #FACC15 / #EAB308 */

@font-face { font-family: "Sora"; src: url("assets/fonts/sora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("assets/fonts/sora-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  --ink: #0B1A3A;      /* Midnight Navy */
  --ink-2: #4B5563;    /* Slate (body) */
  --brand: #1D4ED8;    /* Edubate Blue: links, key highlights */
  --amber: #F59E0B;    /* Spark Amber: AI features only */
  --ink-3: #64748B;
  --line: #E2E8F0;
  --paper: #F8FAFC;
  --sky-50: #F0F9FF;
  --sky-100: #E0F2FE;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;
  --sky-700: #1D4ED8;  /* text-safe blue = Edubate Blue */
  --sun-100: #FEF9C3;
  --sun-400: #FACC15;
  --sun-500: #EAB308;
  --radius: 14px;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(70rem 32rem at 85% -12rem, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(40rem 22rem at -8% 8rem, rgba(250, 204, 21, 0.10), transparent 70%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.brand-logo { display: block; height: 30px; width: auto; }
.site-footer .brand-logo { height: 34px; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.display em { font-style: normal; color: var(--brand); }
/* The AI spark (brand guideline): marks genuine AI features only */
.spark { display: inline-flex; align-items: center; gap: .4rem; }
.spark::before { content: ""; width: .8em; height: .8em; flex-shrink: 0; background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 8.1 15.9 11.1 24 12C15.9 12.9 12.9 15.9 12 24C11.1 15.9 8.1 12.9 0 12C8.1 11.1 11.1 8.1 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 8.1 15.9 11.1 24 12C15.9 12.9 12.9 15.9 12 24C11.1 15.9 8.1 12.9 0 12C8.1 11.1 11.1 8.1 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.lede { color: var(--ink-2); font-size: 1.125rem; line-height: 1.7; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--sun-400); }
.num { font-family: var(--font-display); font-variant-numeric: lining-nums; }
.hl { background: linear-gradient(transparent 62%, rgba(250, 204, 21, .55) 62%); padding: 0 .1em; }

/* ---------- Surfaces ---------- */
.glass {
  background: rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -24px rgba(15, 23, 42, .28);
}
.glass-strong {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, .45);
}
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tint { background: linear-gradient(180deg, var(--sky-50), rgba(240, 249, 255, 0)); }

/* Browser frame around real screenshots / videos */
.frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(3, 105, 161, .35), 0 2px 6px rgba(15,23,42,.05); }
.frame-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: #FBFDFF; }
.frame-bar i { width: 9px; height: 9px; border-radius: 99px; background: #E2E8F0; display: inline-block; }
.frame-url { margin-left: .6rem; font-size: .72rem; color: var(--ink-3); background: #F1F5F9; border-radius: 6px; padding: .15rem .6rem; }
.frame img, .frame video { display: block; width: 100%; height: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 10px; font-weight: 700; font-size: .9rem; padding: .8rem 1.25rem; transition: background-color .18s ease, border-color .18s ease, color .18s ease; cursor: pointer; }
.btn-sun { background: var(--sun-400); color: var(--ink); }
.btn-sun:hover { background: var(--sun-500); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1E293B; }
.btn-line { border: 1px solid #CBD5E1; color: var(--ink); background: rgba(255,255,255,.7); }
.btn-line:hover { border-color: var(--sky-500); color: var(--sky-700); }
.link-arrow { font-weight: 700; color: var(--sky-700); text-underline-offset: 4px; }
.link-arrow:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, video:focus-visible {
  outline: 2px solid var(--sky-500); outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.site-nav { background: rgba(248, 250, 252, .78); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid rgba(226,232,240,.8); }
.nav-link { color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: .4rem 0; position: relative; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 3px; border-radius: 2px; background: var(--sun-400); }

.org-dropdown-menu { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.org-dropdown:hover .org-dropdown-menu,
.org-dropdown:focus-within .org-dropdown-menu,
.org-dropdown.open .org-dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.org-dropdown.open .org-chevron, .org-dropdown:hover .org-chevron { transform: rotate(180deg); }
.org-chevron { transition: transform .16s ease; }
.org-item { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; align-items: start; padding: .65rem .75rem; border-radius: 10px; }
.org-item:hover, .org-item[aria-current="page"] { background: var(--sky-50); }
.org-item .ic { width: 2.25rem; height: 2.25rem; border-radius: 9px; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-700); font-weight: 800; font-size: .8rem; }

/* ---------- Editorial lists & tables ---------- */
.rule-list > li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.rule-list > li:last-child { border-bottom: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.data-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.data-table tbody tr:hover td { background: rgba(240, 249, 255, .6); }
.data-table td:first-child { color: var(--ink); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; background: var(--sky-100); color: var(--sky-700); }
.chip-sun { background: var(--sun-100); color: #854D0E; }
.chip-ink { background: #F1F5F9; color: var(--ink-2); }

/* ---------- Segmented org selector ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.seg button { padding: .55rem 1rem; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.seg button:hover { color: var(--ink); background: var(--sky-50); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.org-panel[hidden] { display: none; }
.org-panel { animation: fade .25s ease-out; }

/* ---------- Media gallery ---------- */
.shot-caption { font-size: .8rem; color: var(--ink-3); margin-top: .7rem; }
.shot-caption strong { color: var(--ink); }
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.step-list li::before { content: counter(step); font-family: var(--font-display); font-size: 1.25rem; color: var(--sky-700); }
.step-list li.active::before { color: var(--ink); }
.step-list li.active { color: var(--ink); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fade .22s ease-out; }
.modal.open > .modal-panel { animation: rise .25s ease-out; }
.modal-close { position: absolute; top: .9rem; right: .9rem; width: 2.1rem; height: 2.1rem; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); font-size: 1.3rem; line-height: 1; }
.modal-close:hover { background: var(--sky-50); color: var(--ink); }
body.modal-locked { overflow: hidden; }

.field { display: block; }
.field span { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; }
.input { width: 100%; border: 1px solid #CBD5E1; background: #fff; border-radius: 10px; padding: .7rem .85rem; font-size: .9rem; color: var(--ink); }
.input:focus { border-color: var(--sky-500); outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CBD5E1; }
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: var(--sun-400); }
.site-footer h3 { color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 1rem; }
.footer-map { border: 0; width: 100%; height: 150px; border-radius: 12px; filter: grayscale(.25) contrast(1.05); }
.placeholder { color: var(--sun-400); }

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

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

/* ---------- Ecosystem partners marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; flex-shrink: 0; }
.partner { display: inline-flex; align-items: center; justify-content: center; height: 3.25rem; padding: 0 2.25rem; }
.partner img, .partner-grid img { display: block; height: 34px; width: auto; max-width: none; }
.partner img.is-square, .partner-grid img.is-square { height: 46px; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner-grid li { display: flex; align-items: center; justify-content: center; min-height: 6.5rem; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); }
.partner-grid img { max-width: 100%; height: auto; max-height: 40px; }
.partner-grid img.is-square { max-height: 56px; height: auto; }
@media (min-width: 768px) { .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; row-gap: .5rem; }
  .marquee-list[aria-hidden="true"] { display: none; }
}

/* ---------- Organization comparison table ---------- */
.compare { width: 100%; min-width: 68rem; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.compare th, .compare td { padding: 1rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { vertical-align: bottom; background: #fff; }
.compare tbody th { position: sticky; left: 0; z-index: 1; background: #fff; width: 11rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 800; }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; width: 11rem; }
.compare tbody td { color: var(--ink-2); line-height: 1.55; }
.compare tbody tr:hover td { background: rgba(240, 249, 255, .6); }
.compare td + td, .compare th + td, .compare th + th { border-left: 1px solid var(--line); }
.compare tfoot td, .compare tfoot th { border-bottom: 0; background: var(--sky-50); }
.compare .org-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Pricing (PRICING_SPEC.md) ---------- */
.launch-banner { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.launch-dot { width: .55rem; height: .55rem; border-radius: 99px; background: var(--sun-500); box-shadow: 0 0 0 4px rgba(250, 204, 21, .3); }
.billing-toggle { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 12px; background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.billing-toggle button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--ink-2); }
.billing-toggle button:hover { background: var(--sky-50); color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-toggle .save { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 99px; background: var(--sun-400); color: var(--ink); }
[data-billing="monthly"] .price-yearly, [data-billing="yearly"] .price-monthly { display: none; }
.plan .price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.plan .per { margin-left: .3rem; font-size: .9rem; color: var(--ink-3); font-weight: 500; }
.plan-popular { box-shadow: 0 0 0 2px var(--sun-400), 0 30px 80px -30px rgba(15, 23, 42, .4); }
.tick { color: var(--brand); font-weight: 700; }
.dash { color: #94A3B8; }
.price-table { position: relative; width: 100%; min-width: 44rem; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.price-table th, .price-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); background: #fff; }
.price-table thead th:first-child { width: 38%; }
.price-table tbody th[scope="row"] { font-weight: 500; color: var(--ink-2); }
.price-table td { color: var(--ink); }
.price-table .group-row th { background: var(--sky-50); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand); padding-top: .7rem; padding-bottom: .7rem; }
.price-table tbody tr:not(.group-row):hover td, .price-table tbody tr:not(.group-row):hover th { background: rgba(240, 249, 255, .55); }

/* Legal consent line on forms */
.form-legal a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Legal pages ---------- */
.legal-toc a { display: flex; gap: .4rem; color: var(--ink-2); padding: .15rem 0; }
.legal-toc a:hover { color: var(--brand); }
.legal-toc .n, .legal .n { color: var(--brand); font-variant-numeric: tabular-nums; }
.legal { color: var(--ink-2); font-size: .97rem; line-height: 1.7; }
.legal-sec { scroll-margin-top: 6rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.4rem; color: var(--ink); margin-bottom: .8rem; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + dl, .legal dl + p { margin-top: .8rem; }
.legal ul { display: grid; gap: .5rem; padding-left: 0; }
.legal ul li { position: relative; padding-left: 1.2rem; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 99px; background: var(--sun-400); }
.legal a, .legal-foot a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.legal-contact { display: grid; gap: .5rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sky-50); border: 1px solid var(--sky-100); }
.legal-contact div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; }
.legal-contact dt { font-weight: 700; color: var(--ink); }
.legal-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
