/* ==================================================================
   Skolabs - main stylesheet
   Concept: "smart campus meets playful learning"
   Mobile-first. No frameworks.
   ================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --indigo-900: #0B1238;
  --indigo-800: #14205A;
  --indigo-700: #1F2E75;
  --indigo-500: #3A4BA0;
  --yellow: #FFD84D;
  --mint: #3DDBB0;
  --coral: #FF6B57;
  --sky: #6C8CFF;
  --paper: #F5F7FF;
  --white: #FFFFFF;
  --ink: #0B1238;
  --ink-2: #3B4370;
  --ink-3: #6A7199;
  --line: rgba(11, 18, 56, .10);
  --line-light: rgba(255, 255, 255, .14);

  --font-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-1: 0 1px 2px rgba(11, 18, 56, .06), 0 8px 24px rgba(11, 18, 56, .06);
  --shadow-2: 0 20px 60px rgba(11, 18, 56, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-500); text-underline-offset: 3px; }
a:hover { color: var(--indigo-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--mint), var(--sky), var(--coral));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--indigo-800); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease), background-color .2s;
  box-shadow: 0 2px 0 rgba(11, 18, 56, .25);
}
.btn:hover { color: var(--fg); transform: translateY(-3px); box-shadow: 0 12px 24px -8px rgba(11, 18, 56, .45); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9em 1.7em; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { box-shadow: 0 14px 30px -10px rgba(255, 216, 77, .8); }
.btn--indigo { --bg: var(--indigo-800); --fg: #fff; }
.btn--mint { --bg: var(--mint); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px #fff; }
.btn--outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-500);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--mint); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 219, 176, .2); animation: pulse 2.4s infinite; }

/* Highlighter marker, animates in when its section is revealed */
.hl {
  --c: var(--yellow);
  color: var(--ink);
  background-image: linear-gradient(100deg, transparent 0 2%, var(--c) 2% 98%, transparent 98%);
  background-repeat: no-repeat; background-position: 0 70%; background-size: 0% 72%;
  padding: 0 .12em; margin: 0 -.06em; border-radius: .2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1s var(--ease) .35s;
}
.is-visible .hl, .hl.is-visible { background-size: 100% 72%; }
.hl--yellow { --c: var(--yellow); }
.hl--mint { --c: var(--mint); }
.hl--coral { --c: var(--coral); }
.hl--sky { --c: #B9C8FF; }
.section--dark .hl, .hero .hl { color: var(--ink); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; color: #fff;
  transition: height .35s var(--ease), background-color .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav.is-scrolled {
  --nav-h: 60px; height: 60px;
  background: rgba(11, 18, 56, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light), 0 10px 30px rgba(0, 0, 0, .15);
}
.page-policy .nav, .page-checkout .nav, .page-status .nav, .page-404 .nav { background: var(--indigo-900); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.nav__brand:hover { color: #fff; }
.logo-mark { width: 36px; height: 36px; transition: transform .5s var(--ease-spring); }
.nav__brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav__brand--light { color: #fff; }

.nav__toggle {
  display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-light); background: rgba(255, 255, 255, .06); cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: var(--nav-h) 12px auto 12px; display: grid; gap: 2px; padding: 12px;
  background: rgba(11, 18, 56, .96); border: 1px solid var(--line-light); border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__menu a:not(.btn) { color: rgba(255, 255, 255, .86); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.nav__menu a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__menu .btn { margin-top: 6px; }

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; display: flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__menu a:not(.btn) { padding: 8px 12px; font-size: .95rem; position: relative; }
  .nav__menu a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--yellow);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav__menu a:not(.btn):hover { background: none; }
  .nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
  .nav__menu .btn { margin: 0 0 0 10px; }
}

/* ---------- Blobs ---------- */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--a { width: 520px; height: 520px; background: var(--sky); top: -160px; right: -120px; animation: drift-a 22s ease-in-out infinite; }
.blob--b { width: 420px; height: 420px; background: var(--mint); bottom: -180px; left: -120px; opacity: .35; animation: drift-b 26s ease-in-out infinite; }
.blob--c { width: 300px; height: 300px; background: var(--coral); top: 40%; left: 45%; opacity: .28; animation: drift-c 30s ease-in-out infinite; }
.blobs--soft .blob { opacity: .25; }

@keyframes drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-80px, 60px) scale(1.12); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(90px, -50px) scale(.92); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-60px, -40px); } 66% { transform: translate(50px, 30px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 219, 176, .5); } 70% { box-shadow: 0 0 0 8px rgba(61, 219, 176, 0); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 88px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(108, 140, 255, .25), transparent 60%),
    linear-gradient(180deg, var(--indigo-900), var(--indigo-800));
  color: #fff;
}
.hero::after { /* subtle grid paper pattern */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 8vw, 5.1rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .4em; }
.hero__lead { font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__notes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero__notes li::before { content: "\2713"; color: var(--mint); font-weight: 700; margin-right: .45em; }
.hero__visual { position: relative; padding: 24px 0; }

@media (min-width: 1000px) {
  .hero { padding-bottom: 120px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero__visual { margin-right: -30px; }
}

/* Timetable board (glassmorphism) */
.board {
  position: relative; z-index: 2;
  padding: 18px; border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: float-y 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.board__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.board__kicker { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.board__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.board__live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: rgba(61, 219, 176, .14); color: var(--mint); white-space: nowrap; }
.board__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s infinite; }
.board__grid { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 5px; min-height: 260px; }
.board__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tt-day, .tt-time { font-size: .68rem; font-weight: 700; color: rgba(255, 255, 255, .6); display: grid; place-items: center; min-height: 26px; }
.tt-time { justify-items: start; font-variant-numeric: tabular-nums; }
.tt-cell {
  --bg: rgba(255, 255, 255, .1); --fg: #fff;
  position: relative; min-height: 46px; border-radius: 10px; padding: 6px;
  background: var(--bg); color: var(--fg);
  font-size: .68rem; font-weight: 700; line-height: 1.15;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  opacity: 0; transform: scale(.6) translateY(8px);
  transition: opacity .45s var(--ease), transform .55s var(--ease-spring), background-color .4s;
}
.tt-cell small { font-weight: 500; opacity: .75; font-size: .6rem; }
.tt-cell.is-in { opacity: 1; transform: none; }
.tt-cell.is-swap { animation: swap .7s var(--ease); }
.tt-cell.s-yellow { --bg: var(--yellow); --fg: var(--ink); }
.tt-cell.s-mint { --bg: var(--mint); --fg: var(--ink); }
.tt-cell.s-coral { --bg: var(--coral); --fg: #fff; }
.tt-cell.s-sky { --bg: var(--sky); --fg: #fff; }
.tt-cell.s-glass { --bg: rgba(255, 255, 255, .16); --fg: #fff; }
.tt-break {
  grid-column: span 5; min-height: 22px; border-radius: 8px; display: grid; place-items: center;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px);
  opacity: 0; transition: opacity .5s;
}
.tt-break.is-in { opacity: 1; }
@keyframes swap {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(90deg) scale(.95); }
  55% { transform: rotateX(-90deg) scale(.95); }
  100% { transform: rotateX(0); }
}

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.chip--mint { background: rgba(61, 219, 176, .16); color: var(--mint); }
.chip--sky { background: rgba(108, 140, 255, .2); color: #C7D3FF; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-2);
  font-size: .8rem; line-height: 1.2;
  animation: float-y 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .85rem; }
.float-card small { color: var(--ink-3); }
.float-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.fc-mint { background: var(--mint); }
.fc-coral { background: var(--coral); color: #fff; }
.fc-yellow { background: var(--yellow); font-family: var(--font-head); }
.float-card--a { top: -6px; left: -6px; animation-delay: -1s; }
.float-card--b { bottom: -8px; right: 6px; animation-delay: -3s; }
.float-card--c { display: none; top: 42%; right: -34px; animation-delay: -4.5s; }
@media (min-width: 640px) { .float-card--c { display: flex; } .float-card--a { left: -30px; } }

/* ---------- Facts strip ---------- */
.facts { position: relative; z-index: 2; margin-top: -44px; }
.facts__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  background: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.fact { background: #fff; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fact__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--indigo-800); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.fact:nth-child(2) .fact__num { color: var(--coral); }
.fact:nth-child(3) .fact__num { color: #13A982; }
.fact:nth-child(4) .fact__num { color: var(--indigo-500); }
.fact__label { font-weight: 700; line-height: 1.25; font-size: .95rem; }
.fact__label small { font-weight: 400; color: var(--ink-3); font-size: .8rem; }
@media (min-width: 900px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } .fact { padding: 28px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; isolation: isolate; }
.section--dark { background: var(--indigo-900); color: #fff; overflow: hidden; }
.section--paper { background: linear-gradient(180deg, var(--paper), #EAEFFF); }
.section > .container { position: relative; z-index: 1; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.section__lead { font-size: 1.08rem; color: var(--ink-2); }
.section--dark .section__lead, .section__lead--light { color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) { .section { padding: 128px 0; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.bento__card {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-1); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bento__card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(11, 18, 56, .3); }
.bento__card h3 { font-size: 1.45rem; font-weight: 700; }
.bento__card p { color: var(--ink-2); margin-bottom: 0; }
.tag { display: inline-block; justify-self: start; align-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag--yellow { background: #FFF2BF; color: #6A5300; }
.tag--mint { background: #CFF6EA; color: #0B6B52; }
.tag--sky { background: #DCE4FF; color: #2A3F9E; }
.tag--coral { background: #FFDCD6; color: #A3301F; }
.tag--light { background: rgba(255, 255, 255, .16); color: #fff; }

.bento__card--schedule { background: var(--indigo-800); color: #fff; border-color: transparent; border-radius: var(--r-xl) var(--r-lg) var(--r-lg) var(--r-lg); display: grid; gap: 24px; }
.bento__card--schedule p { color: rgba(255, 255, 255, .75); }
.bento__card--schedule h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bento__card--attendance { background: #E6FBF4; }
.bento__card--grades { background: #EEF2FF; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px; }
.bento__card--parent { background: #FFF0ED; }
.bento__card--reports { background: #fff; }
.bento__card--spp {
  color: #fff; border-color: transparent; display: grid; gap: 24px; align-items: center;
  background: radial-gradient(500px 300px at 90% 10%, rgba(255, 216, 77, .35), transparent 60%), linear-gradient(135deg, var(--indigo-700), var(--sky));
  border-radius: var(--r-lg) var(--r-xl) var(--r-lg) var(--r-lg);
}
.bento__card--spp p { color: rgba(255, 255, 255, .85); }

.mini-sched { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-self: end; }
.mini-sched__cell { padding: 14px 8px; border-radius: 12px; font-size: .78rem; font-weight: 700; text-align: center; background: rgba(255, 255, 255, .08); transition: transform .4s var(--ease-spring), background-color .3s; }
.mini-sched__cell.c0 { background: var(--yellow); color: var(--ink); }
.mini-sched__cell.c2 { background: rgba(61, 219, 176, .9); color: var(--ink); }
.mini-sched__cell.c3 { background: var(--sky); color: #fff; }
.mini-sched__cell.c4 { background: var(--coral); color: #fff; }
.bento__card--schedule:hover .mini-sched__cell:nth-child(3n) { transform: translateY(-6px) rotate(-3deg); }

.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 20px; max-width: 220px; }
.dots span { aspect-ratio: 1; border-radius: 6px; background: var(--mint); transform: scale(.4); opacity: 0; transition: transform .5s var(--ease-spring), opacity .4s; }
.dots span.off { background: var(--coral); }
.dots span.warn { background: var(--yellow); }
.is-visible .dots span { transform: scale(1); opacity: 1; }
.dots span:nth-child(n) { transition-delay: calc(var(--i, 0) * 30ms); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: 20px; }
.bars span { flex: 1; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--sky), #9DB2FF); transition: height 1s var(--ease); }
.bars span:nth-child(4) { background: linear-gradient(180deg, var(--indigo-800), var(--indigo-500)); }
.is-visible .bars span { height: var(--h); }
.bars span:nth-child(2) { transition-delay: .08s; } .bars span:nth-child(3) { transition-delay: .16s; } .bars span:nth-child(4) { transition-delay: .24s; } .bars span:nth-child(5) { transition-delay: .32s; }

.phone { margin: 20px auto 0; width: 190px; padding: 18px 12px 14px; border-radius: 26px; background: #fff; border: 2px solid var(--ink); display: grid; gap: 8px; box-shadow: 8px 8px 0 var(--coral); transform: rotate(-3deg); transition: transform .5s var(--ease-spring); }
.bento__card--parent:hover .phone { transform: rotate(0) translateY(-4px); }
.phone__notch { width: 50px; height: 6px; border-radius: 6px; background: var(--ink); margin: -6px auto 4px; }
.phone__row { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 500; padding: 8px; border-radius: 10px; background: var(--paper); }
.phone__row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.i-mint { background: var(--mint); } .i-sky { background: var(--sky); } .i-coral { background: var(--coral); }

.ring { width: 120px; height: 120px; margin-top: 18px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring__bg { stroke: #EEF1FB; }
.ring__a, .ring__b { stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1.4s var(--ease); }
.ring__a { stroke: var(--indigo-800); }
.ring__b { stroke: var(--yellow); }
.is-visible .ring__a { stroke-dashoffset: 110; }
.is-visible .ring__b { stroke-dashoffset: 250; transition-delay: .3s; }

.invoice { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .4); max-width: 320px; width: 100%; justify-self: center; transform: rotate(2deg); transition: transform .5s var(--ease-spring); }
.bento__card--spp:hover .invoice { transform: rotate(0) scale(1.02); }
.invoice__row { display: flex; justify-content: space-between; font-size: .86rem; padding: 4px 0; color: var(--ink-2); }
.invoice__row b { color: var(--ink); }
.invoice__line { height: 1px; background: var(--line); margin: 10px 0; }
.invoice__methods { display: flex; gap: 6px; flex-wrap: wrap; }
.invoice__methods span { font-size: .72rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--paper); }
.invoice__status { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #DFF8F0; color: #0B6B52; font-weight: 700; font-size: .86rem; }
.invoice__status i { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); position: relative; }
.invoice__status i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .bento__card--schedule, .bento__card--spp { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "sch sch sch sch att att"
      "sch sch sch sch gra gra"
      "par par spp spp spp spp"
      "par par rep rep rep rep";
  }
  .bento__card--schedule { grid-area: sch; padding: 40px; grid-template-columns: 1fr 1fr; align-items: end; }
  .bento__card--attendance { grid-area: att; }
  .bento__card--grades { grid-area: gra; }
  .bento__card--parent { grid-area: par; }
  .bento__card--spp { grid-area: spp; grid-template-columns: 1.2fr 1fr; padding: 36px; }
  .bento__card--reports { grid-area: rep; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; }
  .bento__card--reports .tag, .bento__card--reports h3, .bento__card--reports p { grid-column: 1; }
  .bento__card--reports .ring { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* ---------- Role tabs ---------- */
.roles { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light); border-radius: var(--r-xl); padding: 12px; }
.roles__tabs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 6px; background: rgba(255, 255, 255, .06); border-radius: 22px; }
.roles__tabs button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 0; border-radius: 16px; background: transparent; color: rgba(255, 255, 255, .7);
  font-weight: 700; cursor: pointer; transition: color .3s;
}
.roles__tabs button[aria-selected="true"] { color: var(--ink); }
.roles__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-head); font-size: .8rem; background: rgba(255, 255, 255, .12); transition: background-color .3s; }
.roles__tabs button[aria-selected="true"] .roles__ico { background: var(--ink); color: var(--yellow); }
.roles__indicator { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 16px; background: var(--yellow); transition: transform .45s var(--ease-spring), width .45s var(--ease), height .45s var(--ease); }
.roles__panels { position: relative; padding: 28px 16px 16px; }
.roles__panel { display: grid; gap: 28px; align-items: center; }
.roles__panel.is-active { animation: panel-in .55s var(--ease) both; }
.roles__panel h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.roles__panel p { color: rgba(255, 255, 255, .72); }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (min-width: 760px) {
  .roles { padding: 16px; }
  .roles__tabs { grid-template-columns: repeat(4, 1fr); }
  .roles__panels { padding: 44px 36px 28px; }
  .roles__panel { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

.checks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 7px; background: var(--mint);
  -webkit-mask: none;
}
.checks li::after { content: ""; position: absolute; left: 7px; top: .38em; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--sm { gap: 8px; font-size: .94rem; }

.panel-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.panel-visual span { min-height: 92px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-light); color: #fff; animation: panel-in .6s var(--ease) both; }
.panel-visual b { font-family: var(--font-head); font-size: 1.05rem; }
.panel-visual small { font-size: .78rem; opacity: .75; }
.panel-visual span[style], .panel-visual--admin span:nth-child(1), .panel-visual--siswa span:nth-child(4), .panel-visual--guru span:nth-child(2), .panel-visual--ortu span:nth-child(3), .panel-visual--admin span:nth-child(4), .panel-visual--guru span:nth-child(3), .panel-visual--siswa span:nth-child(1), .panel-visual--ortu span:nth-child(1) { color: var(--ink); border-color: transparent; }
.panel-visual--guru span:nth-child(3), .panel-visual--ortu span:nth-child(1) { color: #fff; }
.panel-visual span:nth-child(2) { animation-delay: .06s; } .panel-visual span:nth-child(3) { animation-delay: .12s; } .panel-visual span:nth-child(4) { animation-delay: .18s; }
.panel-visual--admin span:nth-child(1) { background: var(--yellow); grid-column: span 2; }
.panel-visual--admin span:nth-child(4) { background: var(--sky); }
.panel-visual--guru span:nth-child(2) { background: var(--mint); grid-row: span 2; height: auto; }
.panel-visual--guru span:nth-child(3) { background: var(--coral); }
.panel-visual--siswa span:nth-child(1) { background: var(--sky); border-radius: 50px 20px 20px 20px; }
.panel-visual--siswa span:nth-child(4) { background: var(--yellow); grid-column: span 2; }
.panel-visual--ortu span:nth-child(1) { background: var(--coral); }
.panel-visual--ortu span:nth-child(3) { background: var(--mint); grid-column: span 2; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.step::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 140px; height: 140px; border-radius: 50%; opacity: .35; transition: transform .6s var(--ease); }
.step:nth-child(1)::before { background: var(--yellow); }
.step:nth-child(2)::before { background: var(--mint); }
.step:nth-child(3)::before { background: var(--sky); }
.step:nth-child(4)::before { background: var(--coral); }
.step:hover::before { transform: scale(1.4); }
.step > * { position: relative; }
.step__num { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--indigo-800); margin-bottom: 18px; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink-2); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(even) { margin-top: 48px; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 20px; perspective: 1200px; }
.price-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .2s ease-out, box-shadow .3s;
}
.js .price-card.reveal.is-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.price-card:hover { box-shadow: 0 30px 60px -24px rgba(11, 18, 56, .35); }
.price-card > * { transform: translateZ(20px); }
.price-card__name { font-size: 1.6rem; font-weight: 800; margin-bottom: .2em; }
.price-card__tag { color: var(--ink-3); font-size: .95rem; }
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.price-card__price span { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -.03em; }
.price-card__price small { color: var(--ink-3); font-weight: 500; }
.price-card__limit { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper); margin-bottom: 8px; }
.price-card .checks { margin-bottom: 28px; flex: 1; }
.price-card--hot { background: var(--indigo-800); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -20px rgba(20, 32, 90, .55); }
.price-card--hot .price-card__tag, .price-card--hot .price-card__price small { color: rgba(255, 255, 255, .7); }
.price-card--hot .price-card__limit { background: rgba(255, 255, 255, .1); }
.price-card--hot .checks li::before { background: var(--yellow); }
.price-card__badge { position: absolute; top: -14px; right: 24px; padding: 6px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 8px 20px -6px rgba(255, 107, 87, .7); }
.pricing__note { text-align: center; color: var(--ink-3); font-size: .92rem; max-width: 760px; margin: 36px auto 0; }
@media (min-width: 960px) {
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-card--hot { transform: translateY(-14px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .js .price-card--hot.reveal.is-visible { transform: translateY(-14px) rotateX(var(--rx)) rotateY(var(--ry)); }
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } .faq .section__head { position: sticky; top: 100px; } }
.accordion { display: grid; gap: 10px; }
.acc { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.acc.is-open { border-color: transparent; box-shadow: 0 0 0 2px var(--indigo-800); }
.acc__h { margin: 0; font-size: 1rem; font-family: var(--font-body); letter-spacing: 0; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 0; background: none; text-align: left; font-weight: 700; font-size: 1.04rem; cursor: pointer; border-radius: var(--r-md); }
.acc__btn i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--paper); transition: background-color .3s, transform .4s var(--ease-spring); }
.acc__btn i::before, .acc__btn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc__btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__btn i { background: var(--yellow); transform: rotate(180deg); }
.acc.is-open .acc__btn i::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { overflow: hidden; transition: height .35s var(--ease); }
.acc__panel p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 40px; align-items: center; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact__card { padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-light); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; } .contact__card { padding: 36px; } }

/* Business identity block (identical text everywhere) */
.biz { display: grid; gap: 10px; font-size: .95rem; }
.biz__name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.biz__row { display: grid; gap: 2px; }
.biz__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.biz a { color: inherit; }
.biz--contact { color: #fff; }
.biz--contact a { color: var(--yellow); }
.biz--footer { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.biz--footer .biz__name { color: #fff; font-size: 1.05rem; }
.biz--policy, .biz--policy-inline { color: var(--ink); }
.biz--policy-inline { padding: 20px 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--indigo-900); color: rgba(255, 255, 255, .75); padding: 72px 0 28px; border-top: 1px solid var(--line-light); }
.footer__grid { display: grid; gap: 36px; }
.footer__brand p { margin-top: 16px; max-width: 30em; font-size: .94rem; }
.footer__pay { display: inline-block; padding: 8px 12px; border-radius: 10px; background: rgba(61, 219, 176, .12); color: var(--mint); font-weight: 700; font-size: .85rem !important; }
.footer__title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .94rem; }
.footer__links a:hover { color: var(--yellow); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .85rem; }
.footer__top { color: rgba(255, 255, 255, .75); text-decoration: none; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.3fr .7fr 1fr 1.2fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease-spring);
}
.wa-float:hover { color: #fff; transform: translateY(-4px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float span { display: none; }
@media (min-width: 700px) { .wa-float span { display: inline; } .wa-float { padding: 0 20px 0 16px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Without JS everything is visible and finished */
html:not(.js) .hl { background-size: 100% 72%; }
html:not(.js) .tt-cell, html:not(.js) .tt-break { opacity: 1; transform: none; }
html:not(.js) .bars span { height: var(--h); }
html:not(.js) .dots span { opacity: 1; transform: none; }

/* ---------- Inner page hero (policy, checkout, status) ---------- */
.page-hero, .policy__hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--nav-h) + 48px) 0 56px;
  background: radial-gradient(800px 400px at 85% 0%, rgba(108, 140, 255, .35), transparent 60%), var(--indigo-900);
}
.page-hero h1, .policy__hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; max-width: 18em; }
.policy__meta, .page-hero p { color: rgba(255, 255, 255, .72); max-width: 46em; margin: 0; }

/* ---------- Policy pages ---------- */
.policy__layout { display: grid; gap: 32px; padding: 48px 0 96px; }
.policy__aside { display: grid; gap: 20px; align-content: start; }
.policy__aside ul { list-style: none; display: grid; gap: 4px; }
.policy__aside a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; }
.policy__aside a:hover { background: #fff; }
.policy__aside a[aria-current="page"] { background: var(--indigo-800); color: #fff; }
.policy__aside-title { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px 14px; }
.policy__card { padding: 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.policy__card .policy__aside-title { margin-left: 0; }
.policy__card .biz { font-size: .88rem; }
.policy__content { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 22px; }
@media (min-width: 960px) {
  .policy__layout { grid-template-columns: 300px 1fr; gap: 48px; }
  .policy__aside { position: sticky; top: 90px; }
  .policy__content { padding: 48px 56px; }
}
.prose { color: var(--ink-2); font-size: 1.02rem; max-width: 100%; }
.prose h2 { color: var(--ink); font-size: 1.45rem; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.12rem; margin: 1.5em 0 .5em; font-family: var(--font-body); letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: .4em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper); color: var(--ink); }
.table-wrap { overflow-x: auto; }

/* ---------- Checkout ---------- */
.checkout { padding: 40px 0 96px; }
.checkout__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .checkout__grid { grid-template-columns: 1.35fr .9fr; gap: 32px; } .summary { position: sticky; top: 90px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); }
@media (min-width: 700px) { .card { padding: 32px; } }
.card + .card { margin-top: 20px; }
.card__title { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card__title .num { width: 30px; height: 30px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; font-size: .95rem; }

.pkg-picker { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.pkg-picker legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
@media (min-width: 640px) { .pkg-picker { grid-template-columns: repeat(3, 1fr); } }
.pkg-opt { position: relative; }
.pkg-opt input { position: absolute; opacity: 0; inset: 0; }
.pkg-opt label { display: grid; gap: 2px; height: 100%; padding: 16px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease-spring); }
.pkg-opt label b { font-family: var(--font-head); font-size: 1.15rem; }
.pkg-opt label span { font-weight: 700; color: var(--indigo-500); }
.pkg-opt label small { color: var(--ink-3); }
.pkg-opt input:checked + label { border-color: var(--indigo-800); background: #EEF2FF; }
.pkg-opt input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.pkg-opt label:hover { transform: translateY(-2px); }

.form-grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(11, 18, 56, .18);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 4px rgba(108, 140, 255, .25); }
.field.has-error input, .field.has-error textarea { border-color: var(--coral); }
.field__err { color: #C0321F; font-size: .85rem; min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pay-methods { display: grid; gap: 12px; border: 0; padding: 0; margin: 20px 0 0; }
.pay-opt { position: relative; }
.pay-opt input { position: absolute; opacity: 0; inset: 0; }
.pay-opt label { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pay-opt input:checked + label { border-color: var(--indigo-800); background: #EEF2FF; }
.pay-opt input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.pay-opt__radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(11, 18, 56, .3); margin-top: 2px; position: relative; }
.pay-opt input:checked + label .pay-opt__radio { border-color: var(--indigo-800); }
.pay-opt input:checked + label .pay-opt__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--indigo-800); }
.pay-opt__body b { display: block; font-size: 1.04rem; }
.pay-opt__body small { color: var(--ink-3); display: block; margin-top: 2px; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-badges span { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: #fff; border: 1px solid var(--line); }

.agree { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--paper); }
.agree input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--indigo-800); }
.agree label { font-size: .94rem; }

.secure-note { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: .88rem; color: var(--ink-2); }
.secure-note svg { width: 20px; height: 20px; flex: none; color: #13A982; }

.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.summary__row span:first-child { color: var(--ink-3); }
.summary__row b { text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.summary__total b { font-family: var(--font-head); font-size: 2rem; letter-spacing: -.02em; }
.summary__feat { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); margin: 10px 0 0; }
.summary__feat li::before { content: "\2713  "; color: #13A982; font-weight: 700; }

.alert { padding: 14px 16px; border-radius: 14px; font-size: .94rem; margin: 0 0 16px; }
.alert--error { background: #FFE6E2; color: #8E2414; border: 1px solid #FFC2B8; }
.alert--info { background: #E7EDFF; color: #23338A; border: 1px solid #C9D5FF; }
.alert--warn { background: #FFF5CC; color: #6A5300; border: 1px solid #FFE48A; }

/* Credit card (Xendit Components) container */
.cc-box { margin-top: 20px; padding: 22px; border-radius: 20px; border: 2px solid var(--indigo-800); background: linear-gradient(180deg, #F7F9FF, #fff); }
.cc-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cc-box__head h3 { font-size: 1.15rem; margin: 0; }
.cc-box__mount { min-height: 140px; }
.cc-box__status { margin-top: 12px; font-size: .92rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(11, 18, 56, .15); border-top-color: var(--indigo-800); animation: spin .8s linear infinite; vertical-align: -4px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
:root { --xendit-font-family: var(--font-body); --xendit-color-primary: #14205A; --xendit-radius-2: 12px; }

/* ---------- Status pages ---------- */
.status { padding: 40px 0 96px; }
.status__card { max-width: 720px; margin: 0 auto; text-align: center; }
.status__icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 28px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; animation: pop .7s var(--ease-spring) both; }
.status__icon--ok { background: var(--mint); color: var(--ink); }
.status__icon--wait { background: var(--yellow); color: var(--ink); }
.status__icon--fail { background: var(--coral); color: #fff; }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.status__table { text-align: left; margin: 24px 0; }
.status__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 20px 80px; position: relative; overflow: hidden; background: var(--indigo-900); color: #fff; }
.nf__code { font-family: var(--font-head); font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; display: flex; justify-content: center; gap: .05em; }
.nf__code span { display: inline-block; animation: float-y 4s ease-in-out infinite; }
.nf__code span:nth-child(1) { color: var(--yellow); }
.nf__code span:nth-child(2) { color: var(--mint); animation-delay: -.6s; }
.nf__code span:nth-child(3) { color: var(--coral); animation-delay: -1.2s; }
.nf p { color: rgba(255, 255, 255, .75); max-width: 30em; margin: 16px auto 28px; }
.nf .container { position: relative; z-index: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .tt-cell, .tt-break { opacity: 1; transform: none; }
  .board, .float-card { animation: none !important; }
  .blob { animation: none; }
  .hl { background-size: 100% 72%; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.checkout-locked .card input:not([type="hidden"]), .checkout-locked .card textarea { pointer-events: none; opacity: .6; }

/* ---------- Small-screen refinements for the hero board ---------- */
@media (max-width: 560px) {
  .board { padding: 14px; }
  .board__grid { grid-template-columns: 34px repeat(5, minmax(0, 1fr)); gap: 4px; min-height: 0; }
  .tt-cell { min-height: 38px; padding: 5px 4px; font-size: .58rem; word-break: break-word; hyphens: auto; }
  .tt-cell small { display: none; }
  .tt-time { font-size: .6rem; }
  .float-card--a { display: none; }
  .board__live { font-size: .68rem; padding: 4px 8px; }
}

.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.nav.is-scrolled .brand-logo { height: 34px; }

/* ---------- Campus ---------- */
.campus { display: grid; gap: 32px; }
.campus .btn { margin-top: 8px; }
.campus__note { font-size: .9rem; color: var(--ink-3); margin-top: 14px; }
.campus__grid { list-style: none; display: grid; gap: 14px; }
.campus__item { display: grid; gap: 4px; padding: 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); border-left: 6px solid var(--sky); }
.campus__item:nth-child(3n+2) { border-left-color: var(--mint); }
.campus__item:nth-child(3n) { border-left-color: var(--coral); }
.campus__item b { font-family: var(--font-head); font-size: 1.15rem; }
.campus__item span { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 700px) { .campus__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .campus { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; } .campus .section__head { margin-bottom: 0; } }

/* ---------- Real app screenshots (role tabs) ---------- */
.shot { margin: 0; justify-self: center; }
.shot img { display: block; width: 100%; height: auto; }
.shot--hp { width: min(260px, 70vw); padding: 10px; border-radius: 38px; background: #05091F; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .12); transform: rotate(-3deg); transition: transform .5s var(--ease-spring); }
.shot--hp img { border-radius: 28px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.roles__panel:hover .shot--hp { transform: rotate(0) translateY(-6px); }
.shot--web { width: 100%; padding: 8px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-light); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.shot--web img { border-radius: 12px; }
.roles__panel.is-active .shot { animation: panel-in .7s var(--ease) .08s both; }

/* ---------- Showcase gallery ---------- */
.gal { overflow: hidden; }
.gal__track {
  list-style: none; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px max(20px, calc((100vw - 1180px) / 2)) 24px; scrollbar-width: thin;
}
.gal__item { flex: 0 0 min(82vw, 560px); scroll-snap-align: start; scroll-margin-left: max(20px, calc((100vw - 1180px) / 2)); }
.gal__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow-1); transition: transform .4s var(--ease), box-shadow .4s; }
.gal__btn:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(11, 18, 56, .4); }
.gal__btn img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gal__item h3 { font-size: 1.2rem; margin: 16px 0 4px; }
.gal__item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.gal__nav { display: flex; justify-content: flex-end; gap: 10px; }
.gal__arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--indigo-800); color: #fff; font-size: 1.2rem; cursor: pointer; transition: transform .25s var(--ease-spring), background-color .2s; }
.gal__arrow:hover { transform: scale(1.08); background: var(--indigo-500); }

.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--indigo-900); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 9, 31, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #fff; }
.lightbox__cap { margin: 0; padding: 14px 20px; font-size: .95rem; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- Campus media ---------- */
.campus__media img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(11, 18, 56, .2)); }
@media (min-width: 1000px) { .campus__media { grid-column: 1 / -1; order: 3; } }

/* Official logo sizing */
.brand-logo { height: 40px; width: auto; max-width: 160px; }
.footer .brand-logo { height: 44px; }
