/* ================================================================
   main.css — School Bus Tracking SaaS (Hafilatona / حافلتنا)
   Design System: STRICT MATCH to design-reference.html
   Style: Flat, bold, illustration-driven, indie studio aesthetic.
   Rules:
   - Flat colors only: NO gradients, NO glow, NO blur/glassmorphism,
     NO soft or blurred shadows, NO aurora blobs, NO neon.
   - Thick 3-4px ink borders on buttons, panels, and illustrated elements.
   - Hard offset shadows only, directionally flipped in LTR.
   - Buttons press toward their shadow on hover.
   - Varied border radii by purpose (buttons ~10px, panels ~16px).
   - Asymmetric, intentional layouts with thick 4px ink rule dividers.
   - Typography: Lalezar (headlines), IBM Plex Sans Arabic (body).
   - Hero portal is the ONE orchestrated motion moment; no motion elsewhere.
   - Touch targets >= 44px, mobile-first responsive 320px to 4K.
   ================================================================ */

/* ── Palette & CSS Variables ─────────────────────────────────── */
:root {
  --yellow: #ffc20e;
  --y:      #ffc20e;  /* alias */
  --ink:    #1b1b1b;
  --white:  #ffffff;
  --w:      #ffffff;  /* alias */
  --sky:    #cfe8f7;
  --green:  #2e7d4f;
  --g:      #2e7d4f;  /* alias */
  --red:    #e63946;

  /* Typography */
  --font-display: Lalezar, "IBM Plex Sans Arabic", Impact, Arial Black, sans-serif;
  --font-body:    "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Thick Borders */
  --border-thick: 3.5px solid var(--ink);
  --border-rule:  4px solid var(--ink);

  /* Varied Radii by purpose */
  --radius-btn:    10px;
  --radius-card:   16px;
  --radius-phone:  34px;
  --radius-badge:  6px;

  /* Directional Hard Shadows (RTL Default) */
  --sh:           -5px 5px 0 var(--ink);
  --sh-sm:        -2.5px 2.5px 0 var(--ink);
  --sh-lg:        -8px 8px 0 var(--ink);
  --btn-press:    translate(-3px, 3px);

  box-sizing: border-box;
  padding-top:    env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Directional flipping for LTR (box-shadow 5px 5px 0 var(--ink)) */
html[dir="ltr"] {
  --sh:           5px 5px 0 var(--ink);
  --sh-sm:        2.5px 2.5px 0 var(--ink);
  --sh-lg:        8px 8px 0 var(--ink);
  --btn-press:    translate(3px, 3px);
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ── Base ────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--w);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.8;
  font-size: 1.05rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .hero-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
h4 { font-size: 1.25rem; }

p {
  max-width: 65ch;
  line-height: 1.8;
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Buttons (press toward hard shadow on hover) ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--y);
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  text-decoration: none;
  box-shadow: var(--sh);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}

.btn:hover {
  transform: var(--btn-press);
  box-shadow: var(--sh-sm);
}

.btn.w {
  background: var(--w);
}

.btn.dark {
  background: var(--ink);
  color: var(--w);
}

.btn.lg {
  font-size: 1.15rem;
  padding: 14px 32px;
  min-height: 52px;
}

.btn.sm {
  font-size: .875rem;
  padding: 8px 16px;
  min-height: 40px;
  box-shadow: var(--sh-sm);
}

/* ── Visible Focus States (WCAG AA & AAA Compliance) ────────── */
:focus-visible {
  outline: 3px solid var(--ink) !important;
  outline-offset: 3px !important;
}

/* On dark sections, use school-bus yellow focus ring for 10.5:1 contrast */
.dark :focus-visible,
.stats-bar :focus-visible,
footer :focus-visible,
.btn.dark :focus-visible,
.mockup-dash-window :focus-visible {
  outline: 3px solid var(--y) !important;
  outline-offset: 3px !important;
}

.btn:focus-visible,
.lang-switch-btn:focus-visible,
.nav-burger:focus-visible,
.faq-q:focus-visible,
.scroll-top:focus-visible {
  outline: 3px solid var(--ink) !important;
  outline-offset: 3px !important;
}

/* ── Skip to Main Content Link ───────────────────────────────── */
.skip-link {
  position: fixed;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 10000;
  background: var(--y);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  box-shadow: var(--sh);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--ink) !important;
  outline-offset: 3px !important;
}

/* ── Fixed Navbar ────────────────────────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--y);
  border-bottom: var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.logo {
  font-size: 2.1rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.lang-switch-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  background: var(--w);
  border: 2.5px solid var(--ink);
  border-radius: 6px;
  padding: 6px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}

.lang-switch-btn:hover {
  transform: var(--btn-press);
  box-shadow: none;
}

/* Mobile burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: var(--w);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  box-shadow: var(--sh-sm);
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* Mobile full-screen drawer */
.mob-nav {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--w);
  border-top: var(--border-thick);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.mob-nav.open {
  display: flex;
}

.mob-nav a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px dashed #eee;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ── Hero: The ONE Orchestrated Motion Moment ────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--sky);
  border-bottom: var(--border-rule);
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 5vh 24px 0;
  max-width: 640px;
  margin-inline-start: 6vw;
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  margin-bottom: 14px;
  line-height: 1.2;
}

.hero-inner p {
  max-width: 36ch;
  margin: 0 0 22px;
  font-size: 1.2rem;
  color: var(--ink);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Road & Hill matching design-reference.html */
.road {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22%;
  background: var(--ink);
  z-index: 1;
}

.road::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 48%;
  border-top: 5px dashed var(--y);
}

.hill {
  position: absolute;
  bottom: 22%;
  inset-inline-end: -6%;
  width: 46%;
  height: 26%;
  background: var(--g);
  border: 4px solid var(--ink);
  border-radius: 50% 50% 0 0;
  z-index: 1;
}

/* Flat Bus SVG with thick ink strokes */
.bus {
  position: absolute;
  z-index: 2;
  bottom: 14%;
  inset-inline-end: 8%;
  width: min(520px, 62%);
  animation: drive 1.6s cubic-bezier(.2, .8, .2, 1) 1.9s both;
}

@keyframes drive {
  from { transform: translateX(-90vw); }
  to   { transform: none; }
}

html[dir="ltr"] .bus {
  animation: drive-ltr 1.6s cubic-bezier(.2, .8, .2, 1) 1.9s both;
  transform: scaleX(-1);
}

@keyframes drive-ltr {
  from { transform: scaleX(-1) translateX(-90vw); }
  to   { transform: scaleX(-1) translateX(0); }
}

/* Curtain panels that slide open */
.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--y);
  z-index: 10;
  transition: transform 1.2s cubic-bezier(.7, 0, .2, 1) .4s;
}

.panel.l {
  left: 0;
  border-right: 4px solid var(--ink);
}

.panel.r {
  right: 0;
  border-left: 4px solid var(--ink);
}

.hero.open .panel.l {
  transform: translateX(-102%);
}

.hero.open .panel.r {
  transform: translateX(102%);
}

.mark {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: clamp(5rem, 26vw, 16rem);
  color: var(--ink);
  transition: opacity .4s ease .35s;
}

.hero.open .mark {
  opacity: 0;
}

.in {
  opacity: 0;
  transition: opacity .6s ease 1.5s;
}

.hero.open .in {
  opacity: 1;
}

/* ── Full-Bleed Sections with Thick 4px Ink Rules ────────────── */
section.s {
  padding: 72px 24px;
  border-bottom: var(--border-rule);
  position: relative;
}

section.s h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 24px;
}

/* ── Breadcrumb Bar (Subpages) ───────────────────────────────── */
.breadcrumb-wrap {
  background: var(--w);
  border-bottom: 2.5px solid var(--ink);
  padding: 10px 24px;
  font-size: .88rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "←";
  color: var(--ink);
  font-weight: 700;
}

html[dir="ltr"] .breadcrumbs li:not(:last-child)::after {
  content: "→";
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  background: var(--y);
}

.breadcrumbs [aria-current="page"] {
  color: #555;
  font-weight: 700;
  text-decoration: none;
}

/* Subpage Hero Header (No motion, bold flat sky background) */
.subpage-hero {
  background: var(--sky);
  border-bottom: var(--border-rule);
  padding: 56px 24px 44px;
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 12px;
}

.subpage-hero p {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Non-eyebrow flat badge/pill */
.indie-badge {
  display: inline-block;
  background: var(--y);
  border: 2.5px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  margin-bottom: 14px;
}

/* ── Stats Bar (Dark strip, thick divider) ───────────────────── */
.stats-bar {
  background: var(--ink);
  border-bottom: var(--border-rule);
  color: var(--w);
  padding: 0 24px;
}

.stats-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 30px 16px;
  text-align: center;
  border-inline-end: 3px solid #333;
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--y);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: .95rem;
  margin-top: 6px;
  color: #ddd;
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even) { border-inline-end: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 3px solid #333; }
}

/* ── Asymmetric Value Proposition ────────────────────────────── */
.val-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.val-card {
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--sh);
}

.val-card.offset {
  transform: translateY(12px);
}

.val-icon-box {
  width: 52px;
  height: 52px;
  background: var(--y);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
  margin-bottom: 16px;
}

.val-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
}

.val-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.val-card p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* ── 3. How It Works (Bus Route Timeline + Tilted Callout) ───── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 800px) {
  .how-grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
  }
}

.route {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  margin-inline-start: 18px;
}

.step {
  position: relative;
  padding: 0 0 34px 0;
  padding-inline-start: 46px;
  border-inline-start: 5px dashed var(--ink);
}

.step:last-child {
  border-inline-start-color: transparent;
}

.step::before {
  content: "";
  position: absolute;
  inset-inline-start: -14px;
  top: 4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--y);
  border: 4px solid var(--ink);
}

.step h3 {
  font-size: 1.5rem;
}

.step p {
  margin: 4px 0 0;
  max-width: 48ch;
}

/* Rotated callout matching design-reference.html */
.notif-card, .tilt {
  background: var(--y);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 24px;
  transform: rotate(-2deg);
  box-shadow: var(--sh);
}

html[dir="ltr"] .notif-card,
html[dir="ltr"] .tilt {
  transform: rotate(2deg);
}

.notif-card .label, .tilt b {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  display: block;
  margin-bottom: 6px;
}

.notif-card p {
  margin: 0;
  font-size: 1.1rem;
  max-width: 32ch;
  color: var(--ink);
}

/* ── Phone & App Mockups (Hand-Made Style Flat SVGs) ─────────── */
.mockup-phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: var(--radius-phone);
  padding: 12px;
  box-shadow: var(--sh-lg);
  position: relative;
}

.phone-screen {
  background: #f4f7f6;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.phone-top-bar {
  padding: 12px 14px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  font-weight: 700;
  background: var(--w);
  border-bottom: 2px solid var(--ink);
}

.phone-map {
  background: #e4ebe6;
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.phone-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-eta-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--y);
  border: 2px solid var(--ink);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  white-space: nowrap;
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-card-bottom {
  background: var(--w);
  border-top: 3px solid var(--ink);
  padding: 16px;
}

.phone-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d4f4e2;
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
}

/* Driver Mockup Specifics */
.driver-screen {
  background: #1c252c;
  color: var(--w);
}

.driver-header {
  background: var(--y);
  color: var(--ink);
  padding: 14px;
  border-bottom: 3px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.driver-header h4 {
  font-size: 1.2rem;
  margin: 0;
}

.driver-student-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-row-mock {
  background: #25313a;
  border: 2px solid #3c4b54;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-row-mock.boarded {
  border-color: var(--g);
  background: #1d3326;
}

.check-badge-mock {
  background: var(--g);
  color: var(--w);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 700;
}

/* ── 6. Dark Dashboard Section (Full-Width Rows, Thick Rules) ─ */
.s.dark {
  background: var(--ink);
  color: var(--w);
}

.s.dark h2, .s.dark h3 {
  color: var(--y);
}

.rows {
  border-top: 3.5px solid var(--w);
}

.rows .row {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 3.5px solid var(--w);
  align-items: start;
}

.rows .row h3 {
  font-size: 1.5rem;
  color: var(--y);
}

.rows .row p {
  margin: 0;
  color: #ddd;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .rows .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Browser Mockup inside Dark Section */
.mockup-dashboard {
  background: var(--ink);
  border: 4px solid var(--w);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: -8px 8px 0 var(--y);
}

html[dir="ltr"] .mockup-dashboard {
  box-shadow: 8px 8px 0 var(--y);
}

.mockup-dash-chrome {
  background: #2b2b2b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--w);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.dash-dot.r { background: #ff5f56; }
.dash-dot.y { background: #ffbd2e; }
.dash-dot.g { background: #27c93f; }

.dash-url {
  background: #181818;
  color: #aaa;
  border: 1.5px solid #444;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: .8rem;
  flex: 1;
  max-width: 320px;
}

.mockup-dash-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 380px;
  background: #111;
  color: var(--w);
}

@media (max-width: 760px) {
  .mockup-dash-body { grid-template-columns: 1fr; }
  .mockup-dash-sidebar { display: none; }
}

.mockup-dash-sidebar {
  background: #1a1a1a;
  border-inline-end: 3px solid #333;
  padding: 20px 16px;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--y);
  margin-bottom: 22px;
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .9rem;
}

.sidebar-nav-item {
  padding: 8px 12px;
  border-radius: 6px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-nav-item.active {
  background: var(--y);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid var(--ink);
}

.mockup-dash-content {
  padding: 20px;
  background: #0f1317;
}

.dash-metric-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dash-mini-card {
  background: #1b2128;
  border: 2px solid #2e3844;
  border-radius: 8px;
  padding: 12px;
}

.dash-mini-card span {
  font-size: .75rem;
  color: #8898aa;
  display: block;
}

.dash-mini-card b {
  font-size: 1.5rem;
  color: var(--y);
  font-family: var(--font-display);
}

.dash-preview-map {
  background: #162029;
  border: 2px solid #2a3848;
  border-radius: 8px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

/* ── 7. Security & Privacy Statement ─────────────────────────── */
.security-banner {
  background: #fdfdf5;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 38px 32px;
  box-shadow: var(--sh);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 680px) {
  .security-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sec-shield { margin: 0 auto; }
}

.sec-shield {
  width: 80px;
  height: 80px;
  background: var(--y);
  border: var(--border-thick);
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
}

.sec-shield svg {
  width: 42px;
  height: 42px;
  stroke: var(--ink);
  stroke-width: 2.5;
  fill: none;
}

.sec-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.sec-check-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .95rem;
  font-weight: 600;
}

.sec-check-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--g);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
}

/* ── 8. Pricing Grid ─────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 760px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.plan-card {
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--w);
  box-shadow: var(--sh);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  background: var(--y);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -1px;
  inset-inline-end: 20px;
  background: var(--ink);
  color: var(--y);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  border: 2px solid var(--ink);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: .4rem;
}

.plan-per {
  font-size: .85rem;
  color: #444;
  margin-bottom: 24px;
}

.plan-features {
  margin: 0 0 28px;
  flex: 1;
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 2px dashed #ddd;
  font-size: .95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--g);
  stroke-width: 3;
  fill: none;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── 9. Download & QR Section ────────────────────────────────── */
.download-card-wrap {
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--sh);
  padding: 44px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

@media (max-width: 760px) {
  .download-card-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qr-box { margin: 0 auto; }
  .download-badges { justify-content: center; }
}

.download-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  min-height: 48px;
  transition: transform .12s, box-shadow .12s;
}

.store-btn:hover {
  transform: var(--btn-press);
  box-shadow: none;
}

.qr-box {
  background: var(--y);
  border: var(--border-thick);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--sh-sm);
  max-width: 220px;
}

.qr-code-graphic {
  background: var(--w);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.qr-code-graphic svg {
  width: 140px;
  height: 140px;
  display: block;
  margin: 0 auto;
}

.qr-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}

/* ── 10. FAQ Accordion ───────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--w);
  box-shadow: var(--sh-sm);
}

.faq-q {
  width: 100%;
  background: var(--w);
  border: none;
  padding: 18px 22px;
  text-align: start;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.faq-q:hover {
  background: #fafafa;
}

.faq-q .arrow {
  width: 26px;
  height: 26px;
  background: var(--y);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .25s ease;
  font-size: .8rem;
  flex-shrink: 0;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  background: #fafafa;
  padding: 0 22px;
  border-top: 2px dashed transparent;
}

.faq-item.open .faq-a {
  max-height: 380px;
  padding: 16px 22px 20px;
  border-top-color: #ddd;
}

/* ── 11. Final CTA & Request a Demo Form ─────────────────────── */
.s.cta {
  background: var(--y);
  text-align: center;
}

.demo-form {
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--sh);
  text-align: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .demo-form { padding: 24px 18px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: var(--border-thick);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--w);
  color: var(--ink);
  min-height: 44px;
}

.form-group textarea {
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid var(--ink);
  outline-offset: 1px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.15rem;
  margin-top: 10px;
}

.form-msg {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  border: var(--border-thick);
}

.form-msg.success {
  background: #d4f4e2;
  border-color: var(--g);
  color: var(--g);
  display: block;
}

.form-msg.error {
  background: #fde8e8;
  border-color: var(--red);
  color: var(--red);
  display: block;
}

/* ── 12. Footer ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--w);
  border-top: var(--border-rule);
  padding: 56px 24px 28px;
}

.foot-grid {
  max-width: 1060px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

.foot-logo {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--y);
  text-decoration: none;
}

.foot-tagline {
  font-size: .95rem;
  color: #e0e0e0;
  margin-top: 8px;
  max-width: 28ch;
}

.foot-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.foot-social a {
  width: 44px;
  height: 44px;
  border: 2px solid #555;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ddd;
  text-decoration: none;
  font-size: 1rem;
}

.foot-social a:hover {
  border-color: var(--y);
  color: var(--y);
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--y);
  margin-bottom: 14px;
}

.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: .95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-col a:hover {
  color: var(--w);
  text-decoration: underline;
}

.foot-bottom {
  max-width: 1060px;
  margin: 0 auto;
  border-top: 2px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: #cccccc;
}

.foot-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.foot-contact-info a {
  color: #ccc;
  text-decoration: none;
  font-size: .95rem;
}

/* ── Deep Feature Alternating Layout ────────────────────────── */
.feature-deep-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 36px;
}

.feature-deep-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-deep-item:nth-child(even) {
  direction: rtl;
}

html[dir="rtl"] .feature-deep-item:nth-child(even) {
  direction: ltr;
}

.feature-deep-item:nth-child(even) > * {
  direction: rtl;
}

html[dir="ltr"] .feature-deep-item:nth-child(even) > * {
  direction: ltr;
}

@media (max-width: 820px) {
  .feature-deep-item,
  .feature-deep-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: inherit !important;
  }
}

.feature-deep-text h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 12px;
}

.feature-deep-text p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-deep-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-deep-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.feature-deep-bullets li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--y);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Pricing Comparison Table ───────────────────────────────── */
.pricing-table-container {
  overflow-x: auto;
  margin-top: 40px;
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--sh);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 2px solid #ddd;
  font-size: .95rem;
}

.pricing-table th {
  background: var(--y);
  font-family: var(--font-display);
  font-size: 1.3rem;
  border-bottom: 3.5px solid var(--ink);
}

.pricing-table tr:nth-child(even) {
  background: #fbfbfb;
}

.pricing-table td.check {
  text-align: center;
  color: var(--g);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ── Contact Channels Grid ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-sidebar-card {
  background: var(--w);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--sh);
}

.contact-channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 2px dashed #ddd;
}

.contact-channel:last-child {
  border-bottom: none;
}

.channel-icon {
  width: 44px;
  height: 44px;
  background: var(--y);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}

.channel-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 2.2;
  fill: none;
}

/* ── Scroll to Top ───────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  background: var(--y);
  border: var(--border-thick);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .12s, box-shadow .12s;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: var(--btn-press);
  box-shadow: none;
}

/* ── Legal Content Styling ───────────────────────────────────── */
.legal-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 90px 24px 60px;
}

.legal-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 24px; }
.legal-page h2 { font-size: 1.5rem; margin: 32px 0 10px; }
.legal-page h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.legal-page p  { margin: 0 0 16px; color: #333; line-height: 1.9; }
.legal-page ul { padding-inline-start: 1.4em; margin: 0 0 16px; }
.legal-page li { margin-bottom: 8px; color: #333; }
.legal-page a  { color: var(--ink); font-weight: 700; text-decoration: underline; }

body:not(:has(.hero)) {
  padding-top: 64px;
}

/* ── Reduced Motion (Strict Compliance) ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .panel, .mark, .in, .bus, .btn, .faq-a, .scroll-top {
    transition: none !important;
    animation: none !important;
  }
  .panel.l { transform: translateX(-102%) !important; display: none !important; }
  .panel.r { transform: translateX(102%) !important; display: none !important; }
  .mark { opacity: 0 !important; display: none !important; }
  .in { opacity: 1 !important; }
  .bus { transform: none !important; }
  html[dir="ltr"] .bus { transform: scaleX(-1) !important; }
  html { scroll-behavior: auto !important; }
}
