/* ==========================================================================
   Clean Pre-Login Landing Page
   Scoped to the public landing page only. The landing root is the only
   direct child of #root that contains a <nav>; the app/dashboard pages use
   a <header> instead.
   ========================================================================== */

/* ---------- Global flattening for the landing page ---------- */
#root > div:has(> nav) {
  background: #ffffff !important;
  color: #1f2937 !important;
}

#root > div:has(> nav) .bg-gradient-to-r,
#root > div:has(> nav) .bg-gradient-to-b,
#root > div:has(> nav) .bg-gradient-to-tr {
  background-image: none !important;
}

#root > div:has(> nav) .shadow-2xs,
#root > div:has(> nav) .shadow-xs,
#root > div:has(> nav) .shadow-sm,
#root > div:has(> nav) .shadow-md,
#root > div:has(> nav) .shadow-lg,
#root > div:has(> nav) .shadow-xl {
  box-shadow: none !important;
}

#root > div:has(> nav) .backdrop-blur-md {
  backdrop-filter: none !important;
}

#root > div:has(> nav) .font-black,
#root > div:has(> nav) .font-extrabold {
  font-weight: 700 !important;
}

#root > div:has(> nav) .rounded-xl,
#root > div:has(> nav) .rounded-2xl,
#root > div:has(> nav) .rounded-3xl {
  border-radius: 6px !important;
}

/* ---------- Announcement bar ---------- */
#root > div:has(> nav) > div:first-child {
  background: #f8fafc !important;
  background-image: none !important;
  color: #475569 !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#root > div:has(> nav) > div:first-child > span {
  display: inline !important;
  max-width: 100% !important;
  white-space: normal !important;
  line-height: 1.5 !important;
}

#root > div:has(> nav) > div:first-child svg {
  display: none !important;
}

/* ---------- Header / navigation ---------- */
#root > div:has(> nav) > nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#root > div:has(> nav) > nav > div {
  max-width: 1120px !important;
  height: 64px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Remove the decorative gradient logo tile; keep the wordmark. */
#root > div:has(> nav) > nav .w-11.h-11 {
  display: none !important;
}

#root > div:has(> nav) > nav .text-xl,
#root > div:has(> nav) > nav .text-2xl {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

#root > div:has(> nav) > nav .text-xs.font-semibold {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  margin-top: 2px !important;
}

#root > div:has(> nav) > nav button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 9px 12px !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

#root > div:has(> nav) > nav button svg {
  display: none !important;
}

#root > div:has(> nav) > nav button:first-of-type {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #374151 !important;
}

#root > div:has(> nav) > nav button:first-of-type:hover {
  background: #f3f4f6 !important;
  border-color: transparent !important;
  color: #111827 !important;
}

#root > div:has(> nav) > nav button:last-of-type {
  background: #047857 !important;
  border: 1px solid #047857 !important;
  color: #ffffff !important;
  padding: 9px 14px !important;
}

#root > div:has(> nav) > nav button:last-of-type:hover {
  background: #065f46 !important;
  border-color: #065f46 !important;
  color: #ffffff !important;
}

/* ---------- Hero ---------- */
#root > div:has(> nav) > section:nth-of-type(1) {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 64px 24px 56px !important;
}

#root > div:has(> nav) > section:nth-of-type(1) > div.absolute {
  display: none !important;
}

/* Remove the pill badge above the headline. */
#root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > div:first-child {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(1) svg {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(1) h1 {
  font-size: clamp(28px, 3.6vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: #111827 !important;
  margin-bottom: 16px !important;
}

#root > div:has(> nav) > section:nth-of-type(1) h1 span {
  color: #047857 !important;
  text-decoration: none !important;
  background-image: none !important;
}

#root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > p {
  max-width: 620px !important;
  margin-bottom: 32px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #4b5563 !important;
}

#root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > div:nth-child(4) {
  max-width: none !important;
  gap: 12px !important;
  margin-bottom: 32px !important;
}

#root > div:has(> nav) > section:nth-of-type(1) button {
  gap: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

#root > div:has(> nav) > section:nth-of-type(1) button:first-child {
  background: #047857 !important;
  color: #ffffff !important;
}

#root > div:has(> nav) > section:nth-of-type(1) button:first-child:hover {
  background: #065f46 !important;
  color: #ffffff !important;
}

#root > div:has(> nav) > section:nth-of-type(1) button:last-child {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}

#root > div:has(> nav) > section:nth-of-type(1) button:last-child:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}

/* Trust line under the hero buttons: plain text, no check icons. */
#root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > div:nth-child(5) {
  gap: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > div:nth-child(5) > span {
  gap: 0 !important;
}

/* ---------- Three steps ---------- */
#root > div:has(> nav) > section:nth-of-type(2) {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 56px 24px !important;
}

#root > div:has(> nav) > section:nth-of-type(2) > div > div:first-child {
  margin-bottom: 40px !important;
}

#root > div:has(> nav) > section:nth-of-type(2) h2 {
  font-size: clamp(22px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(2) p {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid {
  gap: 32px !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 18px 0 0 !important;
  transform: none !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div:hover {
  border-color: #e5e7eb !important;
  box-shadow: none !important;
  transform: none !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div > div:first-child {
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #047857 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div > div:first-child::before {
  content: "ধাপ ";
  font-weight: 500;
  color: #9ca3af;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div h3 {
  margin-bottom: 6px !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(2) .grid > div p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #6b7280 !important;
}

/* ---------- District coverage ---------- */
#root > div:has(> nav) > section:nth-of-type(3) {
  background: #f8fafc !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 40px 24px !important;
}

#root > div:has(> nav) > section:nth-of-type(3) svg {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(3) h3 {
  gap: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(3) p {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(3) button {
  gap: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #047857 !important;
}

#root > div:has(> nav) > section:nth-of-type(3) button:hover {
  text-decoration: underline !important;
}

/* Turn the district chips into a plain comma-style text list. */
#root > div:has(> nav) > section:nth-of-type(3) .flex.flex-wrap {
  gap: 0 !important;
  line-height: 1.9 !important;
}

#root > div:has(> nav) > section:nth-of-type(3) .flex.flex-wrap > span {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #4b5563 !important;
}

#root > div:has(> nav) > section:nth-of-type(3) .flex.flex-wrap > span:not(:last-child)::after {
  content: " · ";
  color: #9ca3af;
}

#root > div:has(> nav) > section:nth-of-type(3) .flex.flex-wrap > span:last-child {
  margin-left: 8px !important;
  font-weight: 500 !important;
  color: #047857 !important;
}

/* ---------- Feature list ---------- */
#root > div:has(> nav) > section:nth-of-type(4) {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 56px 24px !important;
}

#root > div:has(> nav) > section:nth-of-type(4) > div > div:first-child {
  margin-bottom: 40px !important;
}

#root > div:has(> nav) > section:nth-of-type(4) h2 {
  font-size: clamp(22px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(4) p {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(4) .grid {
  gap: 24px 40px !important;
}

#root > div:has(> nav) > section:nth-of-type(4) .grid > div {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 0 0 !important;
  transform: none !important;
}

#root > div:has(> nav) > section:nth-of-type(4) .grid > div:hover {
  border-color: #e5e7eb !important;
  box-shadow: none !important;
}

/* Hide the icon tile that sits before each feature. */
#root > div:has(> nav) > section:nth-of-type(4) .p-3.rounded-xl {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(4) .grid > div h4 {
  margin-bottom: 4px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(4) .grid > div p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #6b7280 !important;
}

/* ---------- Pricing ---------- */
#root > div:has(> nav) > section:nth-of-type(5) {
  background: #f8fafc !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 56px 24px !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .max-w-md {
  padding: 32px !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .absolute {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(5) svg {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(5) span.uppercase {
  margin-bottom: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .text-5xl,
#root > div:has(> nav) > section:nth-of-type(5) .text-6xl {
  font-size: 48px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .text-2xl {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #047857 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .text-xs {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .space-y-3 > div {
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .space-y-3 > div::before {
  content: "•";
  flex: 0 0 auto;
  color: #9ca3af;
}

#root > div:has(> nav) > section:nth-of-type(5) button {
  gap: 0 !important;
  padding: 12px 20px !important;
  border-radius: 6px !important;
  background: #047857 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#root > div:has(> nav) > section:nth-of-type(5) button:hover {
  background: #065f46 !important;
  color: #ffffff !important;
}

#root > div:has(> nav) > section:nth-of-type(5) .max-w-md > p:last-child {
  margin-top: 12px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
}

/* ---------- FAQ ---------- */
#root > div:has(> nav) > section:nth-of-type(6) {
  background: #ffffff !important;
  border-bottom: 0 !important;
  padding: 56px 24px 64px !important;
}

#root > div:has(> nav) > section:nth-of-type(6) > div > div:first-child {
  margin-bottom: 32px !important;
}

#root > div:has(> nav) > section:nth-of-type(6) h2 {
  font-size: clamp(22px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(6) p {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

#root > div:has(> nav) > section:nth-of-type(6) .space-y-3 > div {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
}

#root > div:has(> nav) > section:nth-of-type(6) button {
  padding: 16px 18px !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #111827 !important;
}

#root > div:has(> nav) > section:nth-of-type(6) button:hover {
  background: #f9fafb !important;
}

#root > div:has(> nav) > section:nth-of-type(6) button > span {
  gap: 0 !important;
}

/* Keep the accordion chevron; remove only the decorative question icon. */
#root > div:has(> nav) > section:nth-of-type(6) button > span svg {
  display: none !important;
}

#root > div:has(> nav) > section:nth-of-type(6) button > svg {
  width: 16px !important;
  height: 16px !important;
  color: #9ca3af !important;
}

#root > div:has(> nav) > section:nth-of-type(6) .border-t {
  padding: 12px 18px 16px !important;
  background: #ffffff !important;
  border-top-color: #f3f4f6 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #4b5563 !important;
}

/* ---------- Footer ---------- */
#root > div:has(> nav) > footer {
  background: #111827 !important;
  padding: 32px 24px !important;
}

#root > div:has(> nav) > footer svg {
  display: none !important;
}

/* Replace the tiny letter tile with a plain wordmark. */
#root > div:has(> nav) > footer .w-7.h-7 {
  display: none !important;
}

#root > div:has(> nav) > footer .text-base {
  font-size: 14px !important;
  font-weight: 600 !important;
}

#root > div:has(> nav) > footer .text-xs {
  font-size: 12px !important;
}

#root > div:has(> nav) > footer .flex.flex-wrap {
  gap: 18px !important;
}

#root > div:has(> nav) > footer button,
#root > div:has(> nav) > footer a {
  gap: 0 !important;
  font-weight: 400 !important;
}

/* ---------- Mobile spacing ---------- */
@media (max-width: 640px) {
  #root > div:has(> nav) > div:first-child {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  #root > div:has(> nav) > nav > div {
    height: 60px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 8px !important;
  }

  #root > div:has(> nav) > nav .text-xl,
  #root > div:has(> nav) > nav .text-2xl {
    font-size: 17px !important;
  }

  #root > div:has(> nav) > nav button {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  /* The hero already has a login button; keep the mobile header to one CTA. */
  #root > div:has(> nav) > nav button:first-of-type {
    display: none !important;
  }

  #root > div:has(> nav) > nav button:last-of-type {
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  #root > div:has(> nav) > section:nth-of-type(1) {
    padding: 48px 16px 40px !important;
  }

  #root > div:has(> nav) > section:nth-of-type(2),
  #root > div:has(> nav) > section:nth-of-type(4),
  #root > div:has(> nav) > section:nth-of-type(5),
  #root > div:has(> nav) > section:nth-of-type(6) {
    padding: 40px 16px !important;
  }

  #root > div:has(> nav) > section:nth-of-type(3) {
    padding: 32px 16px !important;
  }

  #root > div:has(> nav) > section:nth-of-type(1) > div.max-w-4xl > div:nth-child(4) {
    flex-direction: column !important;
  }

  #root > div:has(> nav) > section:nth-of-type(1) button {
    width: 100% !important;
  }
}
