/* =========================================================
   ASSIGNZO HOMEPAGE — CLEAN FINAL REFINEMENT
   Replaces the old homepage-refinement.css completely.
   Depends on styles.css for the base site.
   ========================================================= */

:root {
  --az-red: #ec304b;
  --az-blue: #0b4dba;
  --az-navy: #081a3b;
  --az-soft: #eaf2ff;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

/* -------------------- Brand -------------------- */

.brand-with-logo {
  gap: 9px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 77, 186, 0.14);
}

.brand-name > span,
.mini-brand strong > span,
.intro-brand > span > span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--az-red) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

.mini-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  min-width: 0;
}

.mini-brand strong {
  display: block;
  color: var(--az-navy);
  white-space: nowrap;
  line-height: 1;
}

.mini-logo {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

/* -------------------- Entry screen -------------------- */

body.intro-active {
  overflow: hidden;
}

body.intro-active .site-header,
body.intro-active main,
body.intro-active .site-footer {
  filter: blur(10px) saturate(0.78);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

.site-header,
main,
.site-footer {
  transition: filter 0.35s ease, transform 0.35s ease;
}

.launch-intro,
.interest-gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.launch-intro {
  z-index: 1000;
  overflow-y: auto;
  color: #ffffff;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.launch-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.launch-intro-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3, 19, 49, 0.92), rgba(7, 43, 111, 0.82)),
    url("rajwada-indore.jpg") center / cover no-repeat;
}

.launch-intro-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 14%, rgba(81, 152, 255, 0.28), transparent 30%),
    radial-gradient(circle at 85% 82%, rgba(236, 48, 75, 0.14), transparent 28%);
}

.intro-panel,
.interest-gate-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.intro-panel {
  padding: 28px 22px 23px;
  border-radius: 28px;
  background: rgba(7, 28, 72, 0.76);
  backdrop-filter: blur(18px);
}

.intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.intro-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.intro-kicker,
.interest-gate-kicker {
  margin: 0 0 10px;
  color: #bfddff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.intro-panel h1 {
  max-width: 520px;
  margin: 0 auto 13px;
  color: #ffffff;
  font-size: clamp(30px, 8.5vw, 46px);
  line-height: 1.1;
}

.intro-copy {
  max-width: 500px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.intro-highlights {
  display: grid;
  gap: 9px;
  margin: 21px 0 15px;
}

.intro-highlights span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 700;
}

.intro-burger-line {
  margin: 0 0 20px;
  color: #d8ebff;
  font-size: 12px;
  font-weight: 700;
}

.intro-actions-single {
  width: min(320px, 100%);
  margin: 0 auto;
}

.intro-primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--az-blue);
  box-shadow: 0 13px 25px rgba(1, 15, 42, 0.28);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.intro-audio-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
}

/* -------------------- Interest gate -------------------- */

.interest-gate {
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.interest-gate.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.interest-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 48, 0.38);
  backdrop-filter: blur(9px);
}

.interest-gate-card {
  padding: 31px 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 147, 255, 0.26), transparent 40%),
    rgba(6, 30, 77, 0.97);
}

.interest-gate-logo {
  width: 54px;
  height: 54px;
  display: block;
  margin: 0 auto 17px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.interest-gate-card h2 {
  margin: 0 0 11px;
  color: #ffffff;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 1.12;
}

.interest-gate-copy {
  margin: 0 auto 23px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 14px;
  line-height: 1.55;
}

.interest-gate-primary,
.interest-gate-secondary {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.interest-gate-primary {
  margin-bottom: 10px;
  border: 0;
  color: #ffffff;
  background: var(--az-blue);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

.interest-gate-primary.is-interested {
  background: #0d8a4c;
}

.interest-gate-primary:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.interest-gate-secondary {
  border: 1px solid rgba(255, 255, 255, 0.21);
  color: rgba(255, 255, 255, 0.93);
  background: rgba(255, 255, 255, 0.08);
}

.interest-gate-feedback {
  min-height: 18px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 700;
}

.interest-gate-feedback[data-type="success"] {
  color: #c6ffda;
}

.interest-gate-feedback[data-type="error"] {
  color: #ffd1d8;
}

/* -------------------- Home page custom parts -------------------- */

.hero {
  overflow: hidden;
}

.hero h1 .price-highlight {
  display: inline-block;
  margin-left: 4px;
  padding: 0.02em 0.18em 0.08em;
  border-radius: 0.18em;
  color: #ffffff;
  background: #145ae1;
  box-shadow: 0 10px 22px rgba(20, 90, 225, 0.34);
}

.hero h1 .price-suffix {
  display: inline-block;
  margin-left: 4px;
  color: #c8e0ff;
  font-size: 0.56em;
}

.hero-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 19px;
}

.hero-proof-points span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
}

.live-interest-count {
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 17px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #d9ebff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.price-note {
  max-width: 560px;
  margin: -8px 0 17px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 10px;
  line-height: 1.5;
}

.inline-price {
  color: var(--az-red);
  font-weight: 800;
}

.hinglish-copy {
  font-size: 16px;
}

.writer-price {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.writer-disclaimer {
  max-width: 600px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 10px !important;
}

/* -------------------- Mobile-first reset -------------------- */

@media (max-width: 767px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    width: 37px;
    height: 37px;
  }

  .nav-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-grid !important;
  }

  .nav-links {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: 0 !important;
    display: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: var(--shadow-md) !important;
  }

  .nav-links.open {
    display: grid !important;
  }

  .nav-links a {
    padding: 12px 14px !important;
    font-size: 14px !important;
  }

  .student-section,
  .section {
    padding: 52px 0;
  }

  .student-layout,
  .writer-layout,
  .updates-layout,
  .faq-layout,
  .contact-choice-grid,
  .process-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .student-copy h2,
  .writer-copy h2,
  .section-heading h2 {
    font-size: 34px !important;
    line-height: 1.09 !important;
  }

  .student-copy .section-lead {
    font-size: 15px;
    line-height: 1.62;
  }

  .student-list {
    gap: 13px;
  }

  .student-list small {
    line-height: 1.45;
  }

  .student-visual {
    width: 100%;
  }

  .student-panel {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 24px;
  }

  .student-panel-head h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .dashboard-mock {
    padding: 16px;
  }

  .dashboard-title {
    font-size: 18px;
  }

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

  .quick-grid article {
    min-width: 0;
    padding: 11px;
  }

  .quick-grid strong {
    font-size: 11px;
  }

  .quick-grid small {
    font-size: 8px;
    line-height: 1.35;
  }

  /* Rajwada hero: clean text-only mobile view.
     The student dashboard already appears first, so the giant phone is hidden on phones. */
  .hero-grid {
    min-height: auto;
    display: block;
    padding: 48px 0 46px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1.04;
  }

  .hero h1 .price-suffix {
    display: block;
    margin: 5px 0 0;
    font-size: 0.43em;
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .hero-visual {
    display: none !important;
  }

  .hero-location {
    font-size: 12px;
  }

  .hero-proof-points {
    gap: 7px;
  }

  .hero-proof-points span {
    font-size: 10px;
  }

  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 0;
  }

  .trust-item {
    padding: 15px 0;
  }

  .trust-item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-card {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .contact-choice-card,
  .update-form {
    padding: 20px;
  }

  .faq-list summary {
    padding: 16px;
    font-size: 13px;
  }

  .faq-list p {
    padding: 0 16px 16px;
    font-size: 12px;
  }

  .intro-panel {
    padding: 24px 17px 20px;
    border-radius: 23px;
  }

  .intro-panel h1 {
    font-size: 31px;
  }

  .intro-highlights span {
    font-size: 11px;
  }

  .interest-gate-card {
    padding: 27px 18px 21px;
    border-radius: 23px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .intro-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------- Premium Instagram follow card -------------------- */

.instagram-follow-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(236, 48, 75, 0.16), transparent 28%),
    radial-gradient(circle at 94% 88%, rgba(66, 135, 255, 0.20), transparent 32%),
    #f6f9ff;
}

.instagram-follow-section::before,
.instagram-follow-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.instagram-follow-section::before {
  width: 280px;
  height: 280px;
  top: -170px;
  right: 14%;
  border: 1px solid rgba(11, 77, 186, 0.12);
}

.instagram-follow-section::after {
  width: 190px;
  height: 190px;
  bottom: -112px;
  left: 8%;
  border: 1px solid rgba(236, 48, 75, 0.12);
}

.instagram-follow-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 9%, rgba(126, 67, 255, 0.58), transparent 27%),
    radial-gradient(circle at 70% 105%, rgba(236, 48, 75, 0.38), transparent 35%),
    linear-gradient(136deg, #061738 0%, #0b2c69 52%, #0b4dba 100%);
  box-shadow: 0 26px 60px rgba(6, 29, 75, 0.20);
}

.instagram-follow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 88%);
  mask-image: linear-gradient(90deg, #000, transparent 88%);
}

.instagram-follow-copy,
.instagram-qr-card {
  position: relative;
  z-index: 1;
}

.instagram-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #dceaff;
}

.instagram-eyebrow-icon,
.instagram-button-icon {
  display: inline-grid;
  place-items: center;
}

.instagram-eyebrow-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.instagram-follow-copy h2 {
  max-width: 660px;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.instagram-follow-copy h2 span {
  color: #ff6b7d;
}

.instagram-follow-copy > p:not(.instagram-handle-note) {
  max-width: 620px;
  margin: 0 0 23px;
  color: rgba(235, 244, 255, 0.83);
  font-size: 16px;
  line-height: 1.67;
}

.instagram-follow-button {
  width: fit-content;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  color: #071a3b;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(1, 14, 40, 0.25);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.instagram-follow-button:hover {
  color: #071a3b;
  background: #f4f8ff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(1, 14, 40, 0.32);
}

.instagram-button-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(135deg, #ee465f, #bb3bea 50%, #425ff4);
}

.instagram-button-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.instagram-button-arrow {
  margin-left: 5px;
  color: #0b4dba;
  font-size: 19px;
  line-height: 1;
}

.instagram-handle-note {
  margin: 13px 0 0;
  color: rgba(222, 235, 255, 0.67);
  font-size: 12px;
  font-weight: 700;
}

.instagram-handle-note a {
  color: #ffffff;
  text-decoration: none;
}

.instagram-handle-note a:hover {
  text-decoration: underline;
}

.instagram-qr-card {
  width: min(100%, 286px);
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 24px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(16px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.instagram-qr-card:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.instagram-qr-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 45px;
  border-radius: 999px;
  background: rgba(255, 106, 133, 0.38);
  filter: blur(30px);
  pointer-events: none;
}

.instagram-qr-frame {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  padding: 10px;
  border: 5px solid #ffffff;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 11, 36, 0.24);
}

.instagram-qr-frame img {
  width: 100%;
  max-width: 196px;
  display: block;
  border-radius: 7px;
}

.instagram-qr-card strong {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.instagram-qr-card small {
  position: relative;
  z-index: 1;
  color: rgba(229, 240, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .instagram-follow-section {
    padding: 52px 0;
  }

  .instagram-follow-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 27px 21px 22px;
    border-radius: 25px;
  }

  .instagram-follow-copy h2 {
    font-size: 34px;
  }

  .instagram-follow-copy > p:not(.instagram-handle-note) {
    font-size: 14px;
  }

  .instagram-follow-button {
    width: 100%;
    justify-content: center;
  }

  .instagram-qr-card {
    width: min(100%, 244px);
    justify-self: center;
  }

  .instagram-qr-frame img {
    max-width: 170px;
  }
}
