/* ==========================================================================
   Mungez — landing site styles
   Single stylesheet, no build step. Logical properties everywhere so the
   same rules serve both the Arabic (RTL) and English (LTR) direction.
   ========================================================================== */

:root {
  /* One ramp at hue 211 landing exactly on #071a2e. Kept in step with the
     dashboard's primary scale in tailwind.config.js. */
  --brand-50: #ebf2f9;
  --brand-100: #d0e0f1;
  --brand-200: #afc9e4;
  --brand-300: #89acd1;
  --brand-400: #5c8bbc;
  --brand-500: #3a699c;
  --brand-600: #26507e;
  --brand-700: #173c63;
  --brand-800: #0d2845;
  --brand-900: #071a2e;
  /* The button / accent colour the user asked for, sitting at the dark end. */
  --brand-solid: #071a2e;

  --ink: #0b1b26;
  --ink-soft: #45606f;
  --ink-muted: #6b8494;
  --line: #e3ebf1;
  --line-soft: #eef4f8;
  --surface: #ffffff;
  --surface-alt: #f6fafc;
  --surface-tint: #f0f7fb;

  --radius-sm: 0.6rem;
  --radius: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --shadow-sm: 0 1px 2px rgba(7, 26, 46, 0.06), 0 1px 3px rgba(7, 26, 46, 0.05);
  --shadow: 0 10px 30px -12px rgba(7, 26, 46, 0.16);
  --shadow-lg: 0 30px 60px -25px rgba(7, 26, 46, 0.32);

  --maxw: 1140px;
  --font-ar: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui,
    sans-serif;
}

/* --------------------------------------------------------------- base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

html[data-lang='en'] body {
  font-family: var(--font-en);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-600);
  text-decoration: none;
}

a:hover {
  color: var(--brand-700);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------- language switching
   Every translatable node exists twice — one lang="ar", one lang="en".
   CSS hides the inactive one, so the content needs no JS to render. */
html[data-lang='ar'] [lang='en'],
html[data-lang='en'] [lang='ar'] {
  display: none !important;
}

/* ------------------------------------------------------------- layout atoms */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 96px;
}

.section--tint {
  background: var(--surface-alt);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 22px;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand-solid);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(7, 26, 46, 0.45);
}

.btn--primary:hover {
  background: var(--brand-700);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--brand-700);
}

.btn--white:hover {
  color: var(--brand-800);
}

/* ------------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  background: var(--surface-tint);
  color: var(--brand-700);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 8px;
}

/* The dashboard link lives in the header on desktop and moves into the
   burger menu on mobile, where the header row has no width to spare. */
.nav__cta {
  display: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      1000px 520px at 85% -10%,
      rgba(38, 80, 126, 0.18),
      transparent 60%
    ),
    radial-gradient(
      760px 420px at 5% 10%,
      rgba(92, 139, 188, 0.16),
      transparent 62%
    ),
    linear-gradient(180deg, #fbfdfe 0%, #ffffff 100%);
  padding-block: 84px 96px;
  border-bottom: 1px solid var(--line-soft);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero__badge span.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.22;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--brand-600);
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__points svg {
  color: var(--brand-500);
  flex: none;
}

/* store badges ------------------------------------------------------------ */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #000;
  color: #fff;
}

.store-badge svg {
  flex: none;
}

.store-badge span {
  display: block;
  line-height: 1.25;
}

.store-badge .small {
  font-size: 0.68rem;
  opacity: 0.8;
}

.store-badge .big {
  font-size: 1.02rem;
  font-weight: 700;
}

.store-badge--outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.store-badge--outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--brand-300);
}

/* ----------------------------------------------------- hero device mockups */
.mockup {
  position: relative;
  padding-block: 10px;
}

.mockup__screen {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line-soft);
}

.mockup__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7e2ea;
}

.mockup__body {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 300px;
}

.mockup__side {
  background: var(--brand-900);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mockup__side i {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mockup__side i:first-child {
  background: var(--brand-400);
  width: 62%;
}

.mockup__side i:nth-child(3) {
  width: 78%;
}

.mockup__side i:nth-child(5) {
  width: 55%;
}

.mockup__main {
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.mockup__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup__kpi {
  background: var(--surface-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 11px;
}

.mockup__kpi b {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-700);
}

.mockup__kpi small {
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.mockup__chart {
  height: 96px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.mockup__chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-300), var(--brand-500));
}

.mockup__rows {
  display: grid;
  gap: 7px;
}

.mockup__rows i {
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.mockup__rows i:nth-child(2) {
  width: 82%;
}

.mockup__rows i:nth-child(3) {
  width: 64%;
}

/* Sits on the side opposite the mocked sidebar, so it never lands on top of
   another dark block when the direction flips. */
.mockup__phone {
  position: absolute;
  inset-block-end: -34px;
  inset-inline-end: -26px;
  width: 156px;
  background: #fff;
  border: 7px solid var(--brand-900);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 12px 10px;
  display: grid;
  gap: 9px;
}

.mockup__phone b {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.mockup__phone .pill {
  height: 30px;
  border-radius: 8px;
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
}

.mockup__phone .pill--brand {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
}

/* ---------------------------------------------------------------- stat band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: -52px;
  position: relative;
  z-index: 5;
}

.stat b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-600);
  line-height: 1.2;
}

.stat span {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------ feature cards */
.features {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card__list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__list li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--surface-tint);
  border: 1px solid var(--brand-50);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ------------------------------------------------------------- split blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin-bottom: 16px;
}

.split p.lead {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-bottom: 24px;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .tick {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-top: 3px;
}

.check-list b {
  display: block;
  font-size: 0.99rem;
}

.check-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------- app visual */
.app-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.app-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.app-card__top i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  flex: none;
}

.app-card__top b {
  font-size: 0.95rem;
}

.app-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.app-card--tall {
  grid-row: span 2;
}

/* ---------------------------------------------------------- app screenshots
   Real phone captures in a CSS-drawn bezel. The <img> carries width/height so
   the row keeps its height while the lazy images are still loading. */
.shots-head {
  max-width: 620px;
  margin: 76px auto 40px;
  text-align: center;
}

.shots-head h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 10px;
}

.shots-head p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.shots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
}

.shot {
  margin: 0;
  text-align: center;
}

.shot__frame {
  display: block;
  padding: 7px;
  background: linear-gradient(155deg, #17313f, var(--ink));
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.shot__frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.shot__frame img {
  width: 100%;
  height: auto;
  border-radius: 17px;
  background: #fff;
}

.shot figcaption {
  margin-top: 15px;
}

.shot figcaption b {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.shot figcaption span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------------ lightbox
   Built by site.js on first use. Without JS the anchors still open the full
   image directly, so the gallery degrades cleanly. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 22, 32, 0.82);
  backdrop-filter: blur(3px);
  animation: lb-in 0.16s ease;
}

.lightbox img {
  max-width: min(380px, 100%);
  max-height: calc(100vh - 48px);
  width: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.26);
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
}

/* --------------------------------------------------------------- role chips */
.roles {
  grid-template-columns: repeat(4, 1fr);
}

.role {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.role i {
  width: 42px;
  height: 42px;
  margin-inline: auto;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
}

.role b {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.role span {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------- steps */
.steps {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 12px;
}

.step__n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-solid);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -8px rgba(7, 26, 46, 0.5);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------- faq */
.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq .answer {
  color: var(--ink-soft);
  font-size: 0.96rem;
  padding-bottom: 20px;
}

/* ------------------------------------------------------------------ cta band */
.cta {
  background:
    radial-gradient(
      700px 320px at 80% 0%,
      rgba(92, 139, 188, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, var(--brand-800), var(--brand-900));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 62px 48px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 30px;
}

.cta .stores {
  justify-content: center;
}

.cta .store-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.cta .store-badge:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ------------------------------------------------------------------ contact */
.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.contact-card i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 14px;
}

.contact-card b {
  display: block;
  margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  word-break: break-word;
}

/* ------------------------------------------------------------------- footer */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 56px 28px;
  font-size: 0.93rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer p {
  max-width: 32em;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer li + li {
  margin-top: 9px;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------- legal pages */
.legal-hero {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-900));
  color: #fff;
  padding-block: 66px 74px;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 46em;
}

.legal-hero .updated {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  padding-block: 64px 88px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.toc h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.toc li + li {
  margin-top: 4px;
}

.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.toc a:hover {
  background: #fff;
  color: var(--brand-700);
}

.legal-body {
  max-width: 760px;
  /* Without this a wide table would stretch the grid column instead of
     scrolling inside .table-scroll, pushing the whole page sideways. */
  min-width: 0;
}

.legal-body section + section {
  margin-top: 44px;
}

.legal-body h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 22px;
  margin-bottom: 8px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul.bullets {
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.legal-body ul.bullets li {
  position: relative;
  padding-inline-start: 22px;
}

.legal-body ul.bullets li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-300);
}

.legal-body .note {
  margin-top: 16px;
  background: var(--surface-tint);
  border: 1px solid var(--brand-50);
  border-inline-start: 4px solid var(--brand-400);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.94rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

.table-scroll .data-table {
  margin-top: 0;
  min-width: 520px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table th {
  background: var(--surface-alt);
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.data-table td {
  color: var(--ink-soft);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .features,
  .roles,
  .steps,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid,
  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -40px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* The nav collapses before the general mobile breakpoint: six links plus the
   dashboard button stop fitting on one row well above 760px. */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    inset-inline: 12px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__cta {
    display: block;
    color: var(--brand-700);
    background: var(--surface-tint);
    margin-top: 4px;
    text-align: center;
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: grid;
    order: 3;
  }

  .header__actions {
    margin-inline-start: auto;
    order: 2;
  }

  .header__inner {
    position: relative;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: 68px;
  }

  .features,
  .roles,
  .steps,
  .contact-grid,
  .app-visual,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .app-card--tall {
    grid-row: auto;
  }

  /* Two phones still read fine at this width; one per row would be huge. */
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .shots-head {
    margin-top: 56px;
  }

  .mockup__phone {
    display: none;
  }

  .cta {
    padding: 44px 24px;
  }

  .hero {
    padding-block: 56px 72px;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------- print */
@media print {
  .header,
  .footer,
  .toc,
  .cta,
  .burger {
    display: none !important;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding-block: 0;
  }

  .legal-hero {
    background: none;
    color: #000;
    padding-block: 0 24px;
  }

  .legal-hero p,
  .legal-hero .updated {
    color: #333;
    background: none;
    border: none;
    padding: 0;
  }
}
