/* ==========================================================================
   JIMMIND AI — pages.css
   Styles for the multi-page layout: nav dropdowns + mobile menu, inner page
   heroes, service/tool detail pages, tools grid + widgets, login/payment.
   Loaded after style.css, which owns the design tokens (:root vars), hero,
   service-grid, process-grid, fee-table, quote-grid, contact-section,
   footer and chat widget.
   ========================================================================== */

/* ---- Nav: active link + dropdowns --------------------------------------- */
.desktop-nav a.nav-active,
.nav-drop-toggle.nav-active {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #59657a;
  cursor: pointer;
}

.nav-drop-toggle:hover {
  color: var(--blue);
}

.nav-drop-toggle .care {
  font-size: 9px;
  transition: transform .2s ease;
}

.nav-dropdown.open .nav-drop-toggle .care {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}

.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 13px;
  color: #33405a;
  transition: background .15s ease;
}

.nav-drop-menu a:hover {
  background: #f3f6fc;
}

.nav-drop-menu a b {
  display: block;
  font-size: 12.5px;
}

.nav-drop-menu a small {
  display: block;
  font-size: 10.5px;
  color: #8792a5;
  margin-top: 2px;
}

.nav-drop-menu .drop-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex: none;
}

.nav-drop-menu .nav-drop-all {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 4px;
  padding: 8px 12px 12px;
}

.nav-payment-link {
  display: inline-flex;
}

/* ---- Mobile menu ---------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: .2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  /* Fallback height for browsers without dvh support */
  height: calc(100vh - 78px);
  /* Dynamic viewport height accounts for mobile browser toolbars
     showing/hiding, which is what usually causes the panel to look
     "too short" on iOS Safari / Chrome Android */
  height: calc(100dvh - 78px);
  background: #fff;
  z-index: 99;
  padding: 18px 20px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav>a {
  display: block;
  padding: 14px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-group {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #8792a5;
  margin: 8px 0;
}

.mobile-nav-group a {
  display: block;
  padding: 9px 10px;
  font-size: 14px;
  color: #33405a;
  border-radius: 10px;
}

.mobile-nav-group a:hover {
  background: #f3f6fc;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}

/* Prevent the page behind the open mobile nav from also scrolling —
   if your JS toggle doesn't already do this, add/remove this class on
   <body> when opening/closing the menu (see note below). */
body.nav-open {
  overflow: hidden;
}
/* .mobile-nav {
  display: none;
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  padding: 18px 20px 40px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav>a {
  display: block;
  padding: 14px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.mobile-nav-group {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #8792a5;
  margin: 8px 0;
}

.mobile-nav-group a {
  display: block;
  padding: 9px 10px;
  font-size: 14px;
  color: #33405a;
  border-radius: 10px;
}

.mobile-nav-group a:hover {
  background: #f3f6fc;
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
} */

/* ---- Inner-page hero (services list, process, fees, tools, 404) -------- */
.page-hero {
  padding: 165px 0 60px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 85%);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 14px 0 16px;
  color: var(--navy);
}

.page-hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  font-size: 15px;
}

.dark-page-hero {
  background: var(--navy);
  color: #fff;
}

.dark-page-hero .eyebrow {
  color: var(--cyan);
}

.dark-page-hero h1 {
  color: #fff;
}

.dark-page-hero p {
  color: #b7c2d6;
}

.breadcrumb {
  font-size: 11px;
  color: #8792a5;
  padding-top: 150px;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #536077;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ---- Home: feature grid + CTA strip ------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: .3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 70px;
}

.feature-card .card-link {
  position: static;
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}

.cta-strip {
  background: #f7f9fc;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0c2450, #173a78);
  color: #fff;
  padding: 50px;
  border-radius: 28px;
}

.cta-strip-inner .eyebrow {
  color: var(--cyan);
}

.cta-strip-inner h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 10px 0 0;
  letter-spacing: -.03em;
  max-width: 480px;
}

.cta-strip-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-strip-inner .btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.text-link-light {
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.btn-bordered {
  border: 1px solid black;
  border-radius: 6px;
  padding: 0.8rem 1.6rem;
}

.btn-bordered:hover {
  background-color: var(--navy);
  color: #2ef314;
}

/* ---- Service detail page -------------------------------------------------*/
.detail-hero {
  padding-bottom: 50px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: start;
  margin-top: 8px;
}

.detail-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -.04em;
  margin: 14px 0 16px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-icon {
  font-size: 30px;
  color: var(--blue);
}

.detail-lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 560px;
}

.detail-fee-card {
  background: linear-gradient(150deg, #071633, #0d2a58);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}

.detail-fee-label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  color: #9fb0cf;
  text-transform: uppercase;
  font-weight: 800;
}

.detail-fee-amount {
  display: block;
  font-size: 42px;
  margin: 10px 0 2px;
  letter-spacing: -.03em;
}

.detail-fee-unit {
  display: block;
  font-size: 12px;
  color: #a9bad5;
  margin-bottom: 16px;
}

.fee-note-inline {
  font-size: 11px;
  line-height: 1.7;
  color: #b6c2da;
  margin: 0;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 60px;
  align-items: start;
}

.detail-h2 {
  font-size: 21px;
  letter-spacing: -.02em;
  margin: 34px 0 14px;
}

.detail-h2:first-child {
  margin-top: 0;
}

.detail-p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.detail-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: #3a475f;
  line-height: 1.6;
}

.detail-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2b9b73;
  font-weight: 800;
}

.detail-list-ordered {
  counter-reset: step;
}

.detail-list-ordered li {
  counter-increment: step;
}

.detail-list-ordered li:before {
  content: counter(step);
  background: var(--navy);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  top: -1px;
}

.detail-aside {
  display: grid;
  gap: 18px;
}

.mini-card {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.mini-card h3 {
  font-size: 13px;
  letter-spacing: .04em;
  margin: 0 0 12px;
  color: #47556d;
}

.mini-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
}

.mini-card-link:hover {
  background: #eef2fa;
}

.mini-card-link span:first-child {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.mini-card-link b {
  display: block;
  font-size: 12.5px;
}

.mini-card-link small {
  display: block;
  font-size: 10.5px;
  color: #8792a5;
  margin-top: 2px;
}

.service-fee-tag {
  display: inline-block;
  margin: 6px 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}

.service-fee-tag small {
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.contact-direct {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.contact-direct h3 {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #647189;
  margin: 0;
}

.contact-direct a {
  font-weight: 700;
  color: var(--blue);
  font-size: 13px;
}

/* ---- Tools list + detail --------------------------------------------------*/
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.tool-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  min-height: 230px;
  transition: .3s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  font-size: 30px;
}

.tool-card h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}

.tool-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-card .card-link {
  position: absolute;
  bottom: 24px;
}

.badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge-live {
  background: #e9fff7;
  color: #17a979;
}

.badge-soon {
  background: #fff4e6;
  color: #b8720f;
}

.tool-widget-card {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 640px;
  margin: 0 auto;
}

.tool-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #647189;
  margin: 0 0 10px;
  display: block;
}

.tool-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-input-row input {
  flex: 1;
  min-width: 200px;
  padding: 14px 15px;
  border: 1px solid #dce3ee;
  border-radius: 11px;
  outline: none;
  font-size: 15px;
}

.tool-input-row input:focus {
  border-color: #80a4ee;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, .08);
}

.tool-result {
  margin-top: 16px;
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
}

.tool-result-ok {
  color: #1b9b6d;
}

.tool-result-bad {
  color: #c74747;
}

.tool-disclaimer {
  font-size: 11px;
  color: #8792a4;
  line-height: 1.6;
  margin-top: 16px;
}

.fee-estimator-options {
  display: grid;
  gap: 10px;
}

.fee-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  cursor: pointer;
}

.fee-option input {
  width: 17px;
  height: 17px;
}

.fee-option span {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
}

.fee-option strong {
  font-size: 13px;
  color: var(--navy);
}

.fee-estimator-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 16px 18px;
  background: linear-gradient(150deg, #071633, #0d2a58);
  color: #fff;
  border-radius: 15px;
}

.fee-estimator-total span {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #a9bad5;
}

.fee-estimator-total strong {
  font-size: 24px;
}

.coming-soon-block {
  text-align: center;
  padding: 20px 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.coming-soon-block p {
  max-width: 420px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Login / auth page ---------------------------------------------------*/
.auth-section {
  padding: 160px 0 100px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 60%);
  display: flex;
  align-items: center;
}

.auth-wrap {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.auth-mark {
  width: 44px;
  height: 44px;
  font-size: 15px;
  margin-bottom: 16px;
}

.auth-card h1 {
  font-size: 30px;
  letter-spacing: -.03em;
  margin: 10px 0 6px;
}

.auth-card .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin: 26px 0 8px;
}

.auth-form label span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #647189;
  margin: 0 0 8px;
}

.auth-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #dce3ee;
  border-radius: 11px;
  outline: none;
}

.auth-form input:focus {
  border-color: #80a4ee;
  box-shadow: 0 0 0 4px rgba(62, 123, 255, .08);
}

.auth-note {
  font-size: 11.5px;
  color: #8792a4;
  line-height: 1.7;
  background: #f5f8fc;
  padding: 12px 14px;
  border-radius: 12px;
}

.auth-note-active {
  color: #b8720f;
  background: #fff4e6;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-links a {
  font-weight: 700;
  color: var(--blue);
}

/* ---- Payment page ---------------------------------------------------------*/
.payment-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.payment-summary .fee-row:last-of-type {
  border-bottom: 0;
}

.payment-status {
  display: grid;
  gap: 14px;
}

.payment-status h3 {
  margin: 4px 0 6px;
  font-size: 17px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-grid,
  .detail-columns,
  .payment-layout,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip-inner {
    padding: 34px;
  }
}

/* --- Empty state (e.g. tools page before any tools ship) ------------------*/
.empty-state {
  max-width: 560px;
  margin: 20px auto;
  text-align: center;
  padding: 50px 30px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: #f8fbff
}

.empty-state-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 18px
}

.empty-state h2 {
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: var(--navy)
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px
}

.empty-state .hero-cta {
  justify-content: center
}

/* --- Request-type cards (on any service detail page) ----------------------*/
.request-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px
}

.request-type-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: .3s;
  position: relative
}

.request-type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #cbd8ee
}

.request-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #eef3ff;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px
}

.request-type-card h3 {
  font-size: 17px;
  margin: 0 0 8px
}

.request-type-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px
}

.request-type-fee {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px
}

.request-type-fee small {
  font-size: 11px;
  font-weight: 600;
  color: #8792a5;
  margin-left: 4px
}

/* --- Fees page: grouped by service ----------------------------------------*/
.fee-groups {
  display: grid;
  gap: 26px;
  margin-top: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto
}

.fee-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 14px
}

.fee-group-title span {
  font-size: 20px
}

.payment-summary-service {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #7a869c;
  text-transform: uppercase;
  margin: 18px 0 4px
}

.payment-summary-service:first-child {
  margin-top: 0
}