/* VidyaGate landing — orange theme, mobile-first */
:root {
  --vg-orange: #f06421;
  --vg-orange-hot: #ff7a33;
  --vg-orange-dark: #d45312;
  --vg-orange-deep: #b63f0a;
  --vg-soft: #fff4ec;
  --vg-border: #ffd4b8;
  --vg-navy: #1a3a5f;
  --vg-navy-deep: #12283f;
  --vg-ink: #152238;
  --vg-muted: #6b7c93;
  --vg-white: #ffffff;
  --vg-radius: 1.5rem;
  --vg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --vg-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vg-app: https://play.google.com/store/apps/details?id=vidyagate.ai;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--vg-font);
  color: var(--vg-ink);
  background-color: var(--vg-orange);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 255, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 45% at 100% 20%, rgba(255, 200, 140, 0.35), transparent 50%),
    radial-gradient(ellipse 90% 50% at 50% 110%, rgba(155, 55, 8, 0.35), transparent 55%),
    linear-gradient(160deg, #e85a14 0%, #f06421 40%, #ff8a3d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M40 70v40l30 16 30-16V70L70 54z'/%3E%3Cpath d='M55 48l15-10 15 10'/%3E%3Cpath d='M150 55h40v50h-40z'/%3E%3Cpath d='M160 55v-12h20v12'/%3E%3Cpath d='M30 160c10-18 40-18 50 0'/%3E%3Ccircle cx='55' cy='138' r='12'/%3E%3Cpath d='M140 150h50M145 165h40M150 180h30'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wl-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wl-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1.1rem, env(safe-area-inset-top))
    1rem
    1.25rem;
}

.wl-stack {
  width: 100%;
  max-width: 46rem;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: wl-rise 0.65s var(--vg-ease) 0.05s forwards;
}

.wl-card {
  background: var(--vg-white);
  border-radius: var(--vg-radius);
  padding: 1.5rem 1.2rem 1.25rem;
  box-shadow:
    0 24px 60px rgba(90, 30, 0, 0.28),
    0 4px 0 rgba(255, 255, 255, 0.2) inset;
}

.wl-brand {
  text-align: center;
  margin-bottom: 1.15rem;
}

.wl-logo {
  width: auto;
  max-width: min(148px, 46vw);
  max-height: 88px;
  height: auto;
  margin: 0 auto 0.65rem;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 16px;
}

.wl-wordmark {
  font-size: clamp(1.55rem, 6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--vg-navy);
}

.wl-wordmark span {
  color: var(--vg-orange);
}

.wl-tagline {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--vg-navy);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.wl-head {
  text-align: center;
  margin-bottom: 1.15rem;
}

.wl-head h1 {
  font-size: clamp(1.4rem, 5.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--vg-navy);
  line-height: 1.2;
}

.wl-head h1 em {
  font-style: normal;
  color: var(--vg-orange);
}

.wl-head p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--vg-muted);
  line-height: 1.45;
}

.wl-head p::before,
.wl-head p::after {
  content: "•";
  color: var(--vg-orange);
  margin: 0 0.35rem;
  font-weight: 700;
}

.wl-portals {
  display: grid;
  gap: 0.8rem;
}

.wl-portal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  min-height: 5rem;
  padding: 1rem 3rem 1rem 1rem;
  border-radius: 1.1rem;
  transition: transform 0.22s var(--vg-ease), box-shadow 0.22s var(--vg-ease);
  -webkit-tap-highlight-color: transparent;
}

.wl-portal:hover,
.wl-portal:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.wl-portal:active {
  transform: scale(0.99);
}

.wl-portal--staff {
  background: linear-gradient(135deg, var(--vg-orange-hot), var(--vg-orange) 45%, var(--vg-orange-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 100, 33, 0.35);
}

.wl-portal--parent {
  background: #fff;
  border: 1.5px solid #eceff4;
  box-shadow: 0 8px 22px rgba(26, 58, 95, 0.08);
  color: var(--vg-navy);
}

.wl-portal--parent:hover,
.wl-portal--parent:focus-visible {
  border-color: var(--vg-border);
  box-shadow: 0 12px 28px rgba(240, 100, 33, 0.14);
}

.wl-portal-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wl-portal--staff .wl-portal-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.wl-portal--parent .wl-portal-icon {
  background: var(--vg-soft);
  color: var(--vg-orange);
  border: 1.5px solid var(--vg-border);
}

.wl-portal-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.wl-portal-copy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

.wl-portal-copy span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.9;
}

.wl-portal--parent .wl-portal-copy span {
  color: var(--vg-muted);
  opacity: 1;
}

.wl-portal-go {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: transform 0.22s var(--vg-ease);
}

.wl-portal--staff .wl-portal-go {
  background: #fff;
  color: var(--vg-orange);
}

.wl-portal--parent .wl-portal-go {
  background: var(--vg-navy);
  color: #fff;
}

.wl-portal:hover .wl-portal-go,
.wl-portal:focus-visible .wl-portal-go {
  transform: translateX(3px);
}

.wl-portal-go svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* App download */
.wl-app {
  margin-top: 1.25rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eef1f6;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.wl-phone {
  width: 4.6rem;
  height: 9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #1a3a5f, #0d2137);
  border: 3px solid #243f5f;
  box-shadow: 0 12px 28px rgba(26, 58, 95, 0.25);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0.55rem;
}

.wl-phone::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.6rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #314f70;
}

.wl-phone img {
  width: 78%;
  height: auto;
  object-fit: contain;
  margin-top: 0.35rem;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.2rem;
}

.wl-app-copy h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vg-navy);
  letter-spacing: -0.02em;
}

.wl-app-copy p {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: var(--vg-muted);
  line-height: 1.4;
}

.wl-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.85rem;
}

.wl-store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border-radius: 0.65rem;
  background: #111;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--vg-ease), background 0.2s var(--vg-ease);
}

.wl-store:hover,
.wl-store:focus-visible {
  transform: translateY(-1px);
  background: #222;
  outline: none;
}

.wl-store svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.wl-store small {
  display: block;
  font-size: 0.58rem;
  line-height: 1;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.wl-store strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.12rem;
  letter-spacing: -0.01em;
}

.wl-qr-block {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.wl-qr-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vg-orange);
}

.wl-qr-label svg {
  width: 0.9rem;
  height: 0.9rem;
}

.wl-qr {
  width: 7.5rem;
  height: 7.5rem;
  padding: 0.4rem;
  border: 2px solid var(--vg-orange);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(240, 100, 33, 0.12);
  transition: transform 0.2s var(--vg-ease);
}

.wl-qr:hover,
.wl-qr:focus-visible {
  transform: scale(1.03);
  outline: none;
}

.wl-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wl-secure {
  margin-top: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vg-navy);
}

.wl-secure svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--vg-orange);
  flex-shrink: 0;
}

.wl-foot {
  margin-top: auto;
  background: var(--vg-navy-deep);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.85rem 1rem max(0.95rem, env(safe-area-inset-bottom));
}

.wl-foot strong {
  font-weight: 700;
  color: #fff;
}

@keyframes wl-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .wl-shell {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .wl-card {
    padding: 1.85rem 1.75rem 1.5rem;
  }

  .wl-logo {
    max-width: 160px;
    max-height: 96px;
  }

  .wl-tagline {
    max-width: 28rem;
    font-size: 0.84rem;
  }

  .wl-portals {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
  }

  .wl-portal {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
    gap: 0.95rem;
    min-height: 10.5rem;
    padding: 1.25rem 1.2rem;
  }

  .wl-app {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
    gap: 1.25rem;
    justify-items: stretch;
  }

  .wl-app-copy {
    min-width: 0;
  }

  .wl-stores {
    justify-content: flex-start;
  }

  .wl-qr-block {
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-stack {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .wl-portal,
  .wl-portal-go,
  .wl-store,
  .wl-qr {
    transition: none;
  }
}
