/*
 * AI Coach ERP marketing site. Colour, radius and type values are the School ERP's own tokens
 * (packages/ui/src/styles/tokens.css) so the page and the app look like one product. Kept as a
 * copy because this folder is a static site with no build step that could import them.
 */
:root {
  color-scheme: light dark;
  --bg: hsl(218 57% 97%);
  --bg-subtle: hsl(218 45% 94%);
  --surface: hsl(0 0% 100%);
  --border: hsl(217 33% 92%);
  --border-strong: hsl(217 33% 82%);
  --fg: hsl(222 47% 11%);
  --fg-muted: hsl(215 19% 38%);
  --fg-on-accent: hsl(0 0% 100%);
  --accent: hsl(224 82% 56%);
  --accent-hover: hsl(224 82% 47%);
  --accent-subtle: hsl(224 82% 96%);
  --accent-text: hsl(224 82% 45%);
  --success: hsl(142 69% 30%);
  --success-subtle: hsl(142 69% 94%);
  --warning-subtle: hsl(36 94% 94%);
  --hero-from: hsl(220 90% 62%);
  --hero-to: hsl(232 60% 28%);
  --shadow: 0 1px 2px hsl(222 47% 11% / 0.06), 0 8px 24px -8px hsl(222 47% 11% / 0.1);
  --shadow-accent: 0 10px 20px -3px rgb(18 84 211 / 0.28);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --font-sans:
    'Plus Jakarta Sans', ui-sans-serif, system-ui, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  --gutter: 1.25rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-subtle: #0f1729;
    --surface: #121c2e;
    --border: #24314a;
    --border-strong: #33415c;
    --fg: #f8fafc;
    --fg-muted: #a7b4c8;
    --accent: hsl(224 88% 64%);
    --accent-hover: hsl(224 88% 72%);
    --accent-subtle: hsl(224 60% 18%);
    --accent-text: hsl(224 100% 78%);
    --success: hsl(142 60% 60%);
    --success-subtle: hsl(142 40% 14%);
    --warning-subtle: hsl(36 50% 15%);
    --shadow: 0 1px 2px #0006, 0 8px 24px -8px #0008;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent-text);
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--surface);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.lede {
  color: var(--fg-muted);
  font-size: 1.0625rem;
  max-width: 40rem;
}

/* ---- Buttons ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
}
.btn-primary {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--fg-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: hsl(224 82% 40%);
  border-color: hsl(224 82% 40%);
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    background: hsl(224 82% 52%);
    border-color: hsl(224 82% 52%);
  }
  .btn-primary:hover {
    background: hsl(224 82% 60%);
    border-color: hsl(224 82% 60%);
  }
}

/* ---- Header ------------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 2rem;
  height: 2rem;
}
.nav {
  display: none;
  margin-left: auto;
  gap: 1.5rem;
}
.nav a {
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav a:hover {
  color: var(--fg);
}
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-cta .btn {
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}
@media (max-width: 26rem) {
  .header-cta .btn:not(.btn-primary) {
    display: none; /* "Sign in" sits in the hero directly below on a phone */
  }
}
@media (min-width: 62rem) {
  .nav {
    display: flex;
  }
  .header-cta {
    margin-left: 1.5rem;
  }
}

/* ---- Hero -------------------------------------------------------------------------------- */
.hero {
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(60rem 28rem at 85% -10%, var(--accent-subtle), transparent 70%), var(--bg);
}
.hero .wrap {
  display: grid;
  gap: 2.5rem;
}
.hero h1 {
  font-size: clamp(2.125rem, 7.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.hero .lede {
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
@media (min-width: 62rem) {
  .hero {
    padding: 5rem 0 5.5rem;
  }
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3.5rem;
  }
}

/* Hero picture: the school app on one side, AI Coach on the other, what flows between them. */
.bridge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}
.bridge-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.bridge-node.tutor {
  background: linear-gradient(135deg, hsl(160 70% 32%), hsl(190 80% 22%));
}
.bridge-node svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.bridge-node strong {
  display: block;
  font-size: 1.0625rem;
}
.bridge-node span {
  font-size: 0.8125rem;
  opacity: 0.92;
}
.bridge-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  padding: 0.25rem 0;
}
.bridge-flow li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--accent-subtle);
  color: var(--accent-text);
}
.bridge-caption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ---- Sections ---------------------------------------------------------------------------- */
section {
  padding: 4rem 0;
}
section.alt {
  background: var(--bg-subtle);
}
.section-head {
  margin-bottom: 2.25rem;
}
.section-head h2 {
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 62rem) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}
.icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--accent-subtle);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background: var(--success-subtle);
  color: var(--success);
}

/* ---- AI Coach section -------------------------------------------------------------------- */
.coach {
  display: grid;
  gap: 1rem;
}
@media (min-width: 52rem) {
  .coach {
    grid-template-columns: 1fr 1fr;
  }
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}
.panel h3 {
  font-size: 1.3125rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.panel > p {
  color: var(--fg-muted);
  margin-bottom: 1.1rem;
}
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg) scale(0.85);
  transform-origin: center;
}
.coach-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.coach-cta p {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

/* ---- Safety ------------------------------------------------------------------------------ */
.safety li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
}
.safety strong {
  display: block;
  margin-bottom: 0.25rem;
}
.safety span {
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

/* ---- Closing band ------------------------------------------------------------------------ */
.closing {
  text-align: center;
}
.closing .box {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
}
.closing h2 {
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.closing p {
  opacity: 0.92;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}
.closing .cta-row {
  justify-content: center;
}
.closing .btn-primary {
  background: #fff;
  border-color: #fff;
  color: hsl(224 82% 38%);
  box-shadow: none;
}
.closing .btn:not(.btn-primary) {
  background: transparent;
  color: #fff;
  border-color: hsl(0 0% 100% / 0.6);
}

/* ---- Footer ------------------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  gap: 1.75rem;
}
.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.site-footer li {
  margin-bottom: 0.35rem;
}
.site-footer p {
  color: var(--fg-muted);
  max-width: 26rem;
  margin-top: 0.75rem;
}
@media (min-width: 52rem) {
  .site-footer .wrap {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ---- Legal pages ------------------------------------------------------------------------- */
.legal {
  padding: 3rem 0 4rem;
}
.legal .wrap {
  max-width: 46rem;
}
.legal h1 {
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}
.legal p,
.legal li {
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.draft {
  background: var(--warning-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.legal .draft p {
  color: var(--fg);
  margin: 0;
}

/* ---- Product media (hero video / screens carousel, screenshot strip) ----------------------- */
.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.hero.has-media .bridge {
  display: none;
}
.hero-slides,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slides li {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hero-slides img,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.hero-video[hidden] {
  display: none;
}

.screens:not(:empty) {
  margin-top: 3rem;
}
.strip-head {
  margin-bottom: 1rem;
}
.strip-head h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.strip-head p {
  color: var(--fg-muted);
}
.strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  align-items: flex-start;
}
.shot {
  flex: none;
  scroll-snap-align: start;
  width: min(82vw, 34rem);
}
.shot.phone {
  width: min(52vw, 12.5rem);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.cta-band {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  background: var(--accent-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.cta-band p {
  font-size: 1.0625rem;
}
@media (min-width: 52rem) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}
