/* Visitor site (rabt.com.pk: Home, Features, Pricing, Our Story, Contact Us).
   Restored 2026-11-03 from the pre-2026-11-01 live build (its style.css, public
   rules only), loaded only by the public pages (extraStyles), so the app and
   login styles are untouched. Variables (--sky, --gold, --slate, ...) come
   from style.css. [data-theme="dark"] is set by js/theme-init.js on these
   pages only. */

.hero {
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--slate) 100%);
  color: #ffffff;
  padding: 3rem 1.5rem;
}

.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__content {
  flex: 1 1 360px;
  min-width: 280px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  color: #ffffff;
}

.hero__tagline {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 1.75rem;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

.hero__art {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.hero__art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.feature-card {
  margin-bottom: 0;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--navy);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h2 {
  font-size: 1.02rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--surface-sunken);
}

.cta-banner h2 {
  margin: 0 0 0.35rem;
}

.cta-banner p {
  margin: 0;
}

@media (max-width: 640px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__tagline { max-width: none; margin-left: auto; margin-right: auto; }
  .cta-banner { flex-direction: column; text-align: center; }
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-hairline);
}

.public-nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  gap: 1rem;
}

.public-nav__brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}

.public-nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.public-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.public-nav__link:hover {
  color: var(--sky-text);
}

.public-nav__link.is-active {
  color: var(--navy);
  font-weight: 700;
}

.public-nav__cta {
  padding: 0.5rem 1.1rem;
}

.public-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.public-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

@media (max-width: 760px) {
  .public-nav__toggle { display: flex; }
  .public-nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }
  .public-nav__links.is-open { display: flex; }
  .public-nav__cta { margin-top: 0.4rem; }
}

.page-hero {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 3rem 1.5rem 0;
}

.page-hero h1 {
  font-size: 2.1rem;
  margin: 0.4rem 0 0.75rem;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--sky-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pricing-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--highlight {
  border-color: var(--sky);
  box-shadow: 0 6px 20px rgba(11,37,69,0.12);
  transform: translateY(-6px);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 1.75rem;
  background: var(--sky-text);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.pricing-card__name {
  margin: 0.25rem 0 0.5rem;
}

.pricing-card__price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}

.pricing-card__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-card__features li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.pricing-card__cta {
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--sky) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero__headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem;
  line-height: 1.4;
}

.hero__accent { color: var(--gold); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.hero__proof-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.hero__art { position: relative; }

.hero__chip {
  position: absolute;
  background: var(--surface-1);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(11,37,69,0.25);
  z-index: 2;
}

.hero__chip--1 { top: 6%; left: -6%; }

.hero__chip--2 { bottom: 10%; right: -4%; }

@media (max-width: 900px) {
  .hero__chip { display: none; }
}

.capability-strip {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border-hairline);
  padding: 1.5rem;
}

.capability-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.capability-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.capability-strip__item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-text);
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: 1.7rem;
}

.feature-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(11,37,69,0.12);
}

.feature-card__icon {
  background: color-mix(in srgb, var(--sky) 16%, var(--surface-1));
  color: var(--sky-text);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
}

.feature-card__icon svg { width: 22px; height: 22px; }

.cta-banner--brand {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  border: none;
}

.cta-banner--brand h2, .cta-banner--brand p { color: #ffffff; }

.cta-banner--brand p.muted { color: rgba(255,255,255,0.75); }

.btn-ghost-dark {
  background: transparent;
  border-color: var(--border-hairline);
  color: var(--navy);
}

.btn-ghost-dark:hover {
  background: var(--surface-sunken);
  border-color: var(--navy);
}

.public-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  margin-top: 3rem;
}

.public-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.public-footer__brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.public-footer__tagline {
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0;
}

.public-footer h3 {
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.9rem;
}

.public-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.public-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.public-footer a:hover { color: #ffffff; }

.public-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .public-footer__inner { grid-template-columns: 1fr; }
}

[data-theme="dark"] {
  color-scheme: dark;
  --page-plane: #0a1526;
  --surface-1: #101d33;
  --surface-sunken: #16233b;
  --text-primary: #eef3f9;
  --text-secondary: #b7c4d6;
  --text-muted: #7e8fa5;
  --border-hairline: rgba(255, 255, 255, 0.1);
  --gridline: rgba(255, 255, 255, 0.09);
  --sky-text: #7cc0ea;
}

[data-theme="dark"] .public-nav {
  background: rgba(10, 21, 38, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
}

[data-theme="dark"] .public-nav__brand,
[data-theme="dark"] .public-nav__link.is-active {
  color: #ffffff;
}

[data-theme="dark"] .public-nav__toggle span {
  background: #ffffff;
}

[data-theme="dark"] .stats-bar__value,
[data-theme="dark"] .pricing-card__price {
  color: #ffffff;
}

[data-theme="dark"] .feature-card__icon {
  background: linear-gradient(135deg, var(--sky) 0%, var(--slate) 100%);
  color: #ffffff;
}

[data-theme="dark"] .step__number {
  background: linear-gradient(135deg, var(--sky) 0%, var(--slate) 100%);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-sunken);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.theme-toggle:hover {
  color: var(--sky-text);
  border-color: var(--sky);
}

.theme-toggle__icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.theme-toggle__icon--moon { opacity: 0; transform: scale(0.6) rotate(-40deg); }

.theme-toggle__icon--sun { opacity: 1; transform: scale(1) rotate(0); }

[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: scale(0.6) rotate(40deg); }

[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: scale(1) rotate(0); color: var(--gold); }

.section-eyebrow {
  color: var(--sky-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin: 0;
}

.hero__headline-main {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0 0 1.1rem;
}

.hero__headline-main .hero__accent {
  background: linear-gradient(100deg, var(--sky) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
}

.proof-pill__icon {
  width: 16px;
  height: 16px;
  color: var(--sky);
  flex-shrink: 0;
}

.hero__mock {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero__mock-back {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 78%;
  transform: rotate(6deg);
  opacity: 0.55;
}

.hero__mock-front {
  position: relative;
  transform: rotate(-2deg);
}

.hero__mock-back svg,
.hero__mock-front svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 40px rgba(2, 8, 20, 0.45));
}

@keyframes rabtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__chip {
  animation: rabtFloat 5s ease-in-out infinite;
}

.hero__chip--2 {
  animation-delay: 1.4s;
}

.stats-bar {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 1180px;
  margin: -2.75rem auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem 1rem;
}

.stats-bar__item {
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid var(--gridline);
}

.stats-bar__item:last-child { border-right: none; }

.stats-bar__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.stats-bar__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

@media (max-width: 760px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -1.5rem; }
  .stats-bar__item:nth-child(2) { border-right: none; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.step {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__chip { animation: none; }
}

.hero__chip {
  background: #ffffff;
  color: var(--navy);
}

.feature-card__icon {
  background: linear-gradient(135deg, var(--sky) 0%, var(--slate) 100%);
  color: #ffffff;
}

.step__number {
  background: linear-gradient(135deg, var(--sky) 0%, var(--slate) 100%);
}

.public-nav {
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.06);
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  max-width: 140vw;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--sky) 0%, transparent 70%);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.pricing-card {
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--gold) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 24px -18px rgba(11, 37, 69, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(11, 37, 69, 0.4);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--slate));
  margin-bottom: 1rem;
}

.contact-map-card h2 {
  margin-bottom: 0.4rem;
}

.contact-map-frame {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 8px 24px -18px rgba(11, 37, 69, 0.35);
}

.contact-map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}





/* Restore fixes (2026-11-03). The old build centred main on public pages
   (its 2026-08-08 "content not centered" fix lived in the shared main rule,
   which the current style.css no longer has); scoped here to the visitor
   pages, which have no sidebar. */
main,
main.main--wide {
  margin-left: auto;
  margin-right: auto;
}
/* .pricing-card clips its overflow (the coloured top stripe), which cut the
   badge sitting above the card in half; it sits inside the card instead. */
.pricing-card__badge {
  top: 0.9rem;
  left: auto;
  right: 1.25rem;
}
/* Dark theme: the outline button's navy text vanished on the dark card. */
[data-theme="dark"] .btn-ghost-dark {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] .btn-ghost-dark:hover {
  border-color: var(--sky-text);
}
