:root {
  color-scheme: light;
  --bg: #f0f4ff;
  --surface: #ffffff;
  --ink: #1a1f36;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #f97316;
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  min-height: 100vh;
}

.hero {
  background:
    linear-gradient(180deg, var(--brand) 0%, var(--brand) 72%, var(--bg) 72%, var(--bg) 100%);
  color: #ffffff;
  padding: 30px 20px 72px;
}

.site-hero {
  min-height: 74vh;
  background:
    linear-gradient(180deg, var(--brand) 0%, var(--brand) 76%, var(--bg) 76%, var(--bg) 100%);
  color: #ffffff;
  padding: 30px 20px 52px;
}

.nav,
.hero-inner,
.content,
.footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 13px;
  background: #ffffff;
  color: var(--brand);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.1;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.nav-links .nav-download {
  min-height: 38px;
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.nav-links .nav-download:hover {
  background: #ffffff;
}

.hero-inner {
  max-width: 1080px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.6;
}

.site-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 42px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
}

.button.primary {
  background: #eef2ff;
  color: var(--brand);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

.button.primary:hover,
.button.secondary:hover {
  text-decoration: none;
}

.play-store-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 9px 16px 9px 12px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  order: -1;
}

.play-store-button:hover {
  background: #0f172a;
  text-decoration: none;
}

.play-store-button span:last-child {
  display: grid;
  gap: 1px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
}

.play-store-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.play-icon {
  position: relative;
  width: 28px;
  height: 32px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #34a853 0 34%, #4285f4 34% 61%, #fbbc04 61% 78%, #ea4335 78%);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.inline-download {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 900;
}

.inline-download:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.app-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.app-panel img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.app-panel strong {
  font-size: 24px;
}

.app-panel span {
  color: var(--muted);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #eef2ff;
}

.preview-header strong {
  display: block;
  font-size: 16px;
}

.preview-header span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-grid span {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.band {
  padding: 62px 20px;
  background: var(--bg);
}

.band.light {
  background: #ffffff;
}

.band.light .quick-list span,
.band.light .feature-card,
.band.light .stats-grid div {
  background: #f8fafc;
}

.section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p,
.split p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
}

.section-heading h2,
.split h2 {
  margin: 12px 0;
  font-size: 34px;
}

.eyebrow.dark {
  border-color: var(--line);
  background: #eef2ff;
  color: var(--brand);
}

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

.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.feature-list-card {
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.feature-list-card h3 {
  margin-top: 0;
}

.feature-list-card ul {
  columns: 1;
}

.feature-list-card li {
  break-inside: avoid;
  font-size: 13px;
  line-height: 1.45;
}

.feature-grid.compact .feature-card {
  min-height: 150px;
}

.feature-card {
  min-height: 186px;
  padding: 22px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--ink);
}

.feature-card p {
  line-height: 1.55;
}

.module-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.module-icon.attendance {
  background: #dbeafe;
  color: #2563eb;
}

.module-icon.homework {
  background: #fef3c7;
  color: #d97706;
}

.module-icon.fees {
  background: #f0fdf4;
  color: #15803d;
}

.module-icon.results {
  background: #fff7ed;
  color: #ea580c;
}

.module-icon.announcements {
  background: #fffbeb;
  color: #d97706;
}

.module-icon.transport {
  background: #e0f2fe;
  color: #0284c7;
}

.module-icon.feedback {
  background: #eff6ff;
  color: #2563eb;
}

.module-icon.privacy {
  background: #ede9fe;
  color: #7c3aed;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.quick-list {
  display: grid;
  gap: 10px;
}

.quick-list span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

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

.stats-grid div {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.stats-grid strong {
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: -42px;
  padding-bottom: 54px;
}

.simple-content {
  display: block;
  max-width: 900px;
}

.toc,
.article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toc {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.article {
  padding: 34px;
  overflow: hidden;
}

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

.summary-item {
  min-height: 100px;
  padding: 16px;
  border: 1px solid #e6ecf4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

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

.summary-item span {
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 26px 0;
  border-top: 1px solid #edf1f6;
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
  line-height: 1.6;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.notice {
  margin: 18px 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-left-color: var(--accent);
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
}

.warning {
  border-left-color: var(--warning);
  background: #fff7e8;
  color: #58370f;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding: 0 0 0 62px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.data-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef2ff;
  color: var(--ink);
  font-size: 14px;
}

.data-table td {
  color: var(--muted);
}

.footer {
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 56px;
    background:
      linear-gradient(180deg, var(--brand) 0%, var(--brand) 78%, var(--bg) 78%, var(--bg) 100%);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .nav-links {
    width: 100%;
    gap: 6px;
  }

  .nav-links a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .content {
    display: block;
    margin-top: -30px;
  }

  .toc {
    position: static;
    margin-bottom: 18px;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 24px 18px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-hero {
    min-height: auto;
    padding-bottom: 42px;
    background:
      linear-gradient(180deg, var(--brand) 0%, var(--brand) 78%, var(--bg) 78%, var(--bg) 100%);
  }

  .site-hero-grid,
  .feature-grid,
  .feature-list-grid,
  .split,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feature-list-card ul {
    columns: 1;
  }

  .play-store-button {
    width: 100%;
    justify-content: center;
  }

  .button {
    flex: 1 1 150px;
  }

  .app-panel {
    max-width: 360px;
  }

  .section-heading h2,
  .split h2 {
    font-size: 28px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.contact-card:hover {
  text-decoration: none;
}

.contact-card strong {
  color: var(--ink);
  font-size: 18px;
}

.contact-card span:last-child {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

