﻿:root {
  /* WhateverAsk family — NeuroPOS product identity (Owner 2026-10-26) */
  --ink: #172839;
  --ink-soft: #4a5a6c;
  --ivory: #f7f7f4;
  --ivory-2: #efefea;
  --paper: #ffffff;
  --teal: #087e87;
  --teal-deep: #066068;
  --cyan: #3db8c5;
  --cyan-soft: rgba(61, 184, 197, 0.18);
  --violet: #6254e8;
  --violet-deep: #4f43c4;
  --orange: #6254e8; /* primary CTA — violet per Owner 2026-10-26 */
  --orange-deep: #4f43c4;
  --mint: #e4f4f5;
  --mint-ink: #066068;
  --line: rgba(23, 40, 57, 0.12);
  --shadow: 0 24px 50px rgba(23, 40, 57, 0.14);
  --header: 72px;
  --max: 1180px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif-ar: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", serif;
  --sans-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
/* Anchor landings clear the sticky header */
section[id],
.world[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
/* Hero / problem first paint must never depend on scroll or motion */
#problems {
  position: relative;
  z-index: 1;
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}
#problems h1,
#problems .lede,
#problems .hero-cta,
#problems .hero-flow {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Split hero: problem copy + operating-flow visual */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 2.4rem;
  align-items: center;
  min-height: min(70vh, 38rem);
}
.hero-copy .lede { max-width: 36rem; color: var(--ink-soft); }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.hero-flow {
  margin: 0;
}
/* Stage stacks steps then inset — inset can never cover step text */
.hero-flow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "steps"
    "shot";
  gap: 1.25rem;
  align-items: stretch;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #101820;
  min-height: 26rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.hero-flow-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  z-index: 0;
  pointer-events: none;
}
.hero-flow-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(16, 24, 32, 0.88) 0%, rgba(16, 24, 32, 0.45) 46%, rgba(8, 126, 135, 0.32) 100%);
  pointer-events: none;
}
.hero-flow-steps {
  grid-area: steps;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-self: stretch;
  max-width: none;
  width: 100%;
}
.hero-flow-steps li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(247, 247, 244, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.hero-flow-steps .hf-n {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.82rem;
}
.hero-flow-steps strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.12rem;
}
.hero-flow-steps p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.hero-flow-shot {
  grid-area: shot;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  align-self: start;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  background: #0b121a;
}
.hero-flow-shot img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-flow-shot figcaption {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #d7dde4;
  background: rgba(11, 18, 26, 0.92);
  overflow-wrap: anywhere;
}
.hero-flow-note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.hero-clusters {
  margin-top: 2.2rem;
  padding-top: 0.4rem;
}
html[dir="rtl"] .hero-flow-steps li {
  text-align: right;
}
html[dir="rtl"] .hero-flow-veil {
  background:
    linear-gradient(200deg, rgba(16, 24, 32, 0.82) 0%, rgba(16, 24, 32, 0.5) 48%, rgba(8, 126, 135, 0.3) 100%);
}

/* AI capability cards (narrow) + desktop table */
.ai-cap-list {
  display: none;
  gap: 0.85rem;
  margin-top: 1.4rem;
}
.ai-cap-caption {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  color: #c5ced8;
  font-weight: 600;
}
.ai-cap {
  background: rgba(247, 247, 244, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  color: #d7dde4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ai-cap-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.ai-cap-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}
.ai-cap-role,
.ai-cap-gate {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c5ced8;
}
.ai-cap-role strong,
.ai-cap-gate strong {
  color: #fff;
}
html[dir="rtl"] .ai-cap-head {
  align-items: flex-start;
  text-align: right;
}
.ai-cap-desktop {
  display: block;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-ink);
  font-weight: 700;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }

/* Internal QA overlay only — hidden for normal visitors; enable with ?qa=1 */
.preview-bar {
  display: none;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
  text-align: center;
}
body.np-qa-overlay .preview-bar { display: block; }
.preview-bar strong { font-weight: 700; color: var(--cyan); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { width: min(1440px, calc(100% - 2rem)); }
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; text-decoration: none; color: inherit; }
.mark {
  width: 2.1rem; height: 2.1rem; border-radius: 0.45rem;
  background: var(--ink); color: var(--ivory);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 650;
}
.brand small { display: block; color: var(--ink-soft); font-size: 0.78rem; }
.np-lang-btn[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
}
.nav-wrap { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.85rem; margin-left: auto; }
.np-nav { display: flex; flex-wrap: nowrap; gap: 0.85rem; }
.np-nav a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 0.98rem; }
.header-actions .btn { white-space: nowrap; }
.np-nav a.is-active { color: var(--violet); box-shadow: inset 0 -2px 0 var(--violet); }
.header-actions { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 0.6rem; }

.np-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
}
.np-lang-sep { color: var(--ink-soft); opacity: 0.7; }
.np-lang-btn {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 0.35rem;
}
.np-lang-btn.is-active,
.np-lang-btn[aria-current="true"] {
  color: var(--violet);
  box-shadow: inset 0 -2px 0 var(--violet);
}
.np-lang-btn:hover, .np-lang-btn:focus-visible { color: var(--ink); }

html[dir="rtl"] body {
  font-family: var(--sans-ar);
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--serif-ar);
  letter-spacing: 0;
}
html[dir="rtl"] .brand .mark { font-family: var(--serif); }
html[dir="rtl"] .nav-wrap { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .kicker { letter-spacing: 0.08em; }
html[dir="rtl"] .price-entry .offer { font-variant-numeric: tabular-nums; }
html[dir="rtl"] .np-faq-trigger { text-align: right; }
html[dir="rtl"] bdi,
html[dir="rtl"] [dir="ltr"] { unicode-bidi: isolate; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.45rem 1rem;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: var(--ivory); color: var(--ink); }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }

.section { padding: 4.5rem 0; }
.section-ink { background: var(--ink); color: var(--ivory); }
.section-ink .kicker { color: var(--mint); }
.section-mint { background: var(--mint); }
.grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
}
.section-ink .card { background: #1c2b42; border-color: transparent; color: var(--ivory); }
.section-ink .lede, .section-ink p { color: #d5dee8; }
.section-ink h2, .section-ink h3 { color: var(--ivory); }

.module-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem;
}
.module-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.9rem 1rem;
}
.module-list strong { display: block; margin-bottom: 0.2rem; }
.module-list span { color: var(--ink-soft); font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.shot {
  background: var(--paper);
  border: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20,32,51,0.08);
  color: var(--ink);
  font: inherit;
}
.shot img { aspect-ratio: 16/10; object-fit: cover; object-position: top; width: 100%; }
.shot span { display: block; padding: 0.75rem 0.85rem 0.95rem; }
.shot strong { display: block; }
.shot em { font-style: normal; color: var(--ink-soft); font-size: 0.92rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--ivory); font-weight: 700;
}

.price-flag {
  background: #fff6e8;
  border: 1px solid #e4c48a;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.price {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
}
.price .amount { font-family: var(--serif); font-size: 2rem; margin: 0.2rem 0; }
.badge {
  display: inline-block;
  background: var(--mint);
  color: var(--mint-ink);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.np-faq-trigger {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 1rem 0; font: inherit; font-weight: 700; color: inherit;
  display: flex; justify-content: space-between; gap: 1rem; cursor: pointer;
}
.np-faq-panel { display: none; padding: 0 0 1rem; color: var(--ink-soft); }
.np-faq-item.is-open .np-faq-panel { display: block; }

.contact-form { display: grid; gap: 0.8rem; max-width: 42rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.25rem; }
input, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 0.6rem;
  padding: 0.7rem 0.75rem; font: inherit; background: #fff; color: var(--ink);
}
.np-form-note--error { color: #8d1d1d; }

.site-footer { padding: 2.5rem 0; color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--ink); margin-right: 0.8rem; }

.screen-dialog {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 1rem;
  padding: 0;
  background: var(--ink);
  color: #fff;
}
.screen-dialog::backdrop { background: rgba(12, 18, 28, 0.72); }
.dialog-bar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.8rem 1rem; }
.dialog-bar p { margin: 0; }
.screen-dialog img { width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; background: #0e1624; }
.dialog-close { background: var(--ivory); color: var(--ink); }

.mobile-cta[hidden] { display: none !important; }
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 0.6rem 1rem; justify-content: space-between; align-items: center; gap: 0.6rem;
}

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; gap: 1.4rem; }
  .hero-flow-stage { min-height: 0; }
  /* Hamburger before nav overflows tablet widths (~1024) */
  .nav-toggle { display: inline-flex; }
  .nav-wrap {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.8rem 1.25rem 1rem;
  }
  .nav-wrap.is-open { display: flex; }
  .np-nav, .header-actions { flex-direction: column; }
}
@media (max-width: 820px) {
  .hero-flow-steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .gallery, .price-grid, .fields, .module-list { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .mobile-cta .btn { flex: 1 1 0; white-space: nowrap; justify-content: center; }
  body.np-mobile-cta-on { padding-bottom: 4.5rem; }
  /* Extra scroll clearance when sticky header + bottom CTA are both active */
  html { scroll-padding-top: calc(var(--header) + 0.5rem); scroll-padding-bottom: 5rem; }
  section[id],
  .world[id] { scroll-margin-top: calc(var(--header) + 0.85rem); scroll-margin-bottom: 5rem; }
  #pricing .price-entry,
  #decision .example-grid,
  #tailored .retain-grid,
  #contact .contact-form { padding-bottom: 0.5rem; }
  /* Narrow: cards are authoritative; desktop table hidden */
  .ai-cap-list { display: grid; }
  .ai-cap-desktop { display: none !important; }
  .hero-flow-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "steps"
      "shot";
    align-items: stretch;
    min-height: 0;
    padding: 0.85rem;
    gap: 0.75rem;
  }
  html[dir="rtl"] .hero-flow-stage {
    grid-template-areas:
      "steps"
      "shot";
    grid-template-columns: 1fr;
  }
  .hero-flow-steps { align-self: stretch; }
  .hero-flow-shot {
    justify-self: stretch;
    align-self: stretch;
    max-width: none;
    width: 100%;
  }
  .hero-flow-veil {
    background: linear-gradient(180deg, rgba(16, 24, 32, 0.55), rgba(16, 24, 32, 0.78));
  }
  .hero-flow-plate {
    /* Keep plate as background only; content height from steps+shot */
    min-height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow-plate { opacity: 1; }
}
@media (max-width: 360px) {
  .mobile-cta .btn { font-size: 0.88rem; padding-left: 0.6rem; padding-right: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 320px) {
  .wrap { width: calc(100% - 1.2rem); }
  h1 { font-size: 2rem; }
}
