/* AntSchool — additions on top of the AntLibrary design system (antlibrary/vanilla/styles.css) */

.as-section-sub { font-family: var(--body); font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 560px; margin: 1rem auto 0; }
.as-center-link { text-align: center; margin-top: 2.5rem; }

/* ─── Introduction video ────────────────────────────────────────────────── */
.as-video-frame {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; background: #1e1a18;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.as-video-frame iframe, .as-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.as-video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: 2rem; text-align: center; color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
    linear-gradient(135deg, var(--accent) 0%, #4a0b0b 100%);
}
.as-video-play { color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; }
.as-video-placeholder .t { font-family: var(--heading); font-size: 1.75rem; }
.as-video-placeholder .s { font-family: var(--body); font-size: 0.95rem; color: rgba(255,255,255,0.75); max-width: 440px; line-height: 1.6; }
.as-video-placeholder a { color: #fff; text-decoration: underline; }

/* ─── Library strength band ─────────────────────────────────────────────── */
.as-library { padding: 6rem 0; background: var(--accent); color: #fff; }
.as-library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.as-library .section-label { color: rgba(255,255,255,0.75); }
.as-library h2 { color: #fff; font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.25rem; }
.as-library-text > p { font-family: var(--body); font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.as-library-text strong { color: #fff; }
.as-library-points { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; }
.as-library-points li { display: flex; gap: 0.75rem; align-items: flex-start; font-family: var(--body); font-size: 0.95rem; }
.as-library-points svg { flex-shrink: 0; margin-top: 1px; }
.as-library-points svg circle { fill: rgba(255,255,255,0.15); }
.as-library-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.as-library-visual .mock { box-shadow: 0 24px 60px rgba(0,0,0,0.3); }

/* ─── Attendance mockup ─────────────────────────────────────────────────── */
.as-mock { font-family: var(--body); }
.as-filters { display: flex; gap: 8px; align-items: stretch; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.as-sel { display: flex; flex-direction: column; gap: 2px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.as-sel .k { font-size: 7.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.as-sel .v { font-size: 10px; font-weight: 600; color: var(--text); white-space: nowrap; }
.as-rate { margin-left: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; font-size: 8px; color: var(--muted); }
.as-rate span { font-family: var(--heading); font-size: 18px; color: var(--accent); line-height: 1; }
.as-list { flex: 1; padding: 4px 12px 8px; display: flex; flex-direction: column; justify-content: space-around; }
.as-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); }
.as-row:last-child { border-bottom: 0; }
.as-row .no { font-size: 9px; color: var(--muted); }
.as-row .nm { font-size: 10.5px; font-weight: 600; color: var(--text); }
.as-pill { font-size: 8.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.as-present { background: #ecfdf3; color: #047857; }
.as-late { background: #fffbeb; color: #b45309; }
.as-leave { background: #eff6ff; color: #1d4ed8; }
.as-absent { background: var(--accent-light); color: var(--accent); }

/* ─── Report card mockup ────────────────────────────────────────────────── */
.rc-mock { font-family: var(--body); padding: 18px 20px; background: #fffdf9; }
.rc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.rc-crest { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-school { font-family: var(--heading); font-size: 15px; color: var(--text); }
.rc-sub { font-size: 9px; color: var(--muted); margin-top: 2px; }
.rc-stamp { margin-left: auto; transform: rotate(-8deg); border: 2px solid #047857; color: #047857; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 0; font-size: 9.5px; color: var(--text); }
.rc-meta b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.rc-tbl { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.rc-th, .rc-tr { display: grid; grid-template-columns: 1fr 52px 52px; padding: 6px 10px; font-size: 10px; align-items: center; }
.rc-th { background: var(--bg-alt); font-size: 8.5px; font-weight: 700; color: var(--muted); }
.rc-th span:not(:first-child), .rc-tr span:not(:first-child) { text-align: center; }
.rc-tr { border-top: 1px solid var(--border); color: var(--text); }
.rc-tr em { font-style: normal; color: var(--muted); margin-left: 4px; }
.rc-tr .g { font-weight: 700; color: var(--accent); }
.rc-remark { margin-top: 10px; padding: 8px 10px; background: var(--bg-alt); border-radius: 4px; font-size: 9.5px; line-height: 1.5; color: var(--text); }
.rc-remark b { display: block; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* ─── Student "My School" phone mockup ──────────────────────────────────── */
.pp-phone { width: 280px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 34px; background: #1e1a18; box-shadow: var(--shadow-lg); }
.pp-screen { border-radius: 26px; overflow: hidden; background: var(--bg); font-family: var(--body); padding-bottom: 12px; }
.pp-top { background: var(--accent); color: #fff; padding: 22px 16px 14px; }
.pp-title { display: block; font-family: var(--heading); font-size: 18px; }
.pp-switch { margin-left: 3px; opacity: 0.8; }
.pp-child { display: block; font-size: 10.5px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.pp-tabs { display: flex; gap: 14px; padding: 10px 16px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.pp-tabs span { font-size: 10px; font-weight: 600; color: var(--muted); padding-bottom: 8px; }
.pp-tabs .on { color: var(--accent); border-bottom: 2px solid var(--accent); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 4px; }
.pp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.pp-card .k { font-size: 8.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pp-card .v { font-family: var(--heading); font-size: 22px; color: var(--text); line-height: 1.1; }
.pp-card .v.pos { color: #047857; }
.pp-card .s { font-size: 8.5px; color: var(--muted); }
.pp-item { display: flex; gap: 10px; align-items: flex-start; margin: 8px 12px 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--accent); }
.pp-item svg { flex-shrink: 0; margin-top: 1px; }
.pp-item b { display: block; font-size: 10.5px; color: var(--text); }
.pp-item span { display: block; font-size: 9px; color: var(--muted); margin-top: 1px; }

/* ─── Features & library pages ──────────────────────────────────────────── */
.as-cat-link { font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.as-cat-link:hover { text-decoration: underline; }
.as-feat-library .feat-card { border-color: rgba(138, 21, 21, 0.25); background: var(--accent-light); }
.as-library-only {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding: 2rem 2.25rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.as-library-only h3 { font-family: var(--heading); font-weight: var(--hw); font-size: 1.5rem; color: var(--text); margin-bottom: 0.25rem; }
.as-library-only p { font-family: var(--body); color: var(--muted); }
.as-library-only-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.as-aside-video { margin-top: 1.5rem; }
.as-aside-video p { font-family: var(--body); font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0.5rem 0 1rem; }

@media (max-width: 900px) {
  .as-library { padding: 4.5rem 0; }
  .as-library-grid { grid-template-columns: 1fr; gap: 3rem; }
  .as-library h2 { font-size: 2rem; }
}

@media (max-width: 560px) {
  .as-video-frame--empty { aspect-ratio: 4 / 3; }
  .as-video-placeholder .t { font-size: 1.3rem; }
  .as-video-play svg { width: 48px; height: 48px; }
  .as-filters { flex-wrap: wrap; }
  .as-rate { margin-left: 0; align-items: flex-start; }
}

/* Icons inside the red logo squares of the mockups */
.dash-logo, .bm-logo { color: #fff; }
