:root {
  --bg-dark: #0b0d14;
  --bg-card: #111526;
  --text-main: #f5f7ff;
  --text-soft: #c4ccdf;
  --accent: #e50914;
  --accent-2: #ff3c46;
  --border: #23283d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: #07090f;
  color: var(--text-main);
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.top-nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-profile-wrap {
  position: relative;
}

.top-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 18, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.top-profile-email,
.top-profile-plan,
.top-profile-expiry {
  margin: 0 0 8px;
  color: #d8deef;
  font-size: 13px;
  word-break: break-word;
}

.top-profile-plan {
  color: #b8c2df;
}

.top-profile-expiry {
  color: #90e2ad;
}

.top-profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #ffffff;
  background-image: url("./school_sathi_logo.png");
  background-image: image-set(url("./school_sathi_logo.webp") type("image/webp"), url("./school_sathi_logo.png") type("image/png"));
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  overflow: hidden;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.hero {
  min-height: 92vh;
  padding-top: 110px;
  position: relative;
  background:
    linear-gradient(120deg, rgba(229, 9, 20, 0.2), rgba(11, 13, 20, 0.95)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=80")
      center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #07090f 8%, rgba(7, 9, 15, 0.35) 40%, rgba(7, 9, 15, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 840px;
  line-height: 1.18;
  font-size: clamp(32px, 6vw, 58px);
}

.hero-subtext {
  max-width: 760px;
  color: var(--text-soft);
  font-size: clamp(15px, 2.3vw, 18px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-subtext {
  margin: 0 0 30px;
  color: var(--text-soft);
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.section-dark {
  background: #0b1020;
}

.download-cards .card {
  text-align: center;
}

.download-note {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca6c7;
}

.policy-highlight {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.policy-highlight h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.policy-highlight p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.policy-highlight a {
  color: #fff;
  text-decoration: underline;
}

.policy-highlight a:hover {
  color: #ffd6d8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}

.btn-glass {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.btn-premium {
  border-color: rgba(46, 160, 67, 0.7);
  background: rgba(46, 160, 67, 0.22);
  color: #baf8cd;
}

.profile-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.full {
  width: 100%;
  margin-top: 16px;
}

.section-pricing {
  background: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.15), transparent 36%);
}

.auth-card {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-card h3 {
  margin: 0 0 6px;
}

.auth-card p {
  margin: 0;
  color: var(--text-soft);
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#logoutBtn {
  display: none;
}

.pricing-grid .price-card {
  display: flex;
  flex-direction: column;
}

.plan-name {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffb5b9;
  margin-bottom: 10px;
}

.price {
  margin: 0 0 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price .sale-price {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.price .mrp-price {
  font-size: 18px;
  color: #9ca6c7;
  text-decoration: line-through;
  display: none;
}

.price .discount-badge {
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 160, 67, 0.2);
  border: 1px solid rgba(46, 160, 67, 0.45);
  color: #7df0a2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: none;
}

.pricing-meta {
  margin: 0 0 12px;
  color: #ffced1;
  font-size: 13px;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.9;
  flex: 1;
}

.featured {
  border-color: rgba(255, 60, 70, 0.75);
  transform: scale(1.03);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #a9b1c8;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d7ddf0;
}

.footer-links a:hover {
  color: #fff;
}

.legal-page {
  min-height: 100vh;
  padding-top: 108px;
  padding-bottom: 48px;
  background: radial-gradient(circle at top right, rgba(229, 9, 20, 0.12), transparent 35%);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  max-width: 940px;
  margin: 0 auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.legal-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.legal-card h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 20px;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal-card ul {
  margin-top: 6px;
}

.legal-meta {
  margin: 0;
  color: #9ca6c7;
  font-size: 13px;
}

@media (max-width: 720px) {
  .top-nav {
    padding: 0 14px;
    height: auto;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-name {
    font-size: 15px;
  }

  .top-nav-actions {
    gap: 8px;
  }

  .featured {
    transform: none;
  }
}
