/*
 * The public site — the front door to the console.
 *
 * ONE STYLESHEET, HAND-WRITTEN, NO BUILD STEP. The design arrives from Figma
 * as React and Tailwind; neither is in this repo and neither is worth adding
 * for six static pages. What is here is the same measurements in plain CSS,
 * served by the API alongside the HTML it styles.
 *
 * THE CANVAS IS 1440 WIDE with 80px gutters, and every number below is the
 * number from the design at that width. Below 1440 the gutters shrink and the
 * grids fold; the breakpoints are at the bottom, in one block, so the desktop
 * rules read as the design and the adaptations read as adaptations.
 */

/* ── Fonts ────────────────────────────────────────────────────────────────
 *
 * SELF-HOSTED, and that is not a preference. The console's CSP allows styles
 * only from 'self', so a <link> to fonts.googleapis.com is blocked outright --
 * and the same audit that self-hosted CanvasKit had the other reason: a third
 * party on the critical path of a page sold to fleets in one country.
 *
 * One file per family: all three are variable fonts with a `wght` axis, so
 * nine static weights would be nine downloads of the same outlines.
 */
@font-face {
  font-family: 'Outfit';
  src: url('/site/fonts/outfit.woff2?v=bBjVef2Hw3dr') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/site/fonts/inter.woff2?v=MQDndehhbNJh') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
/* Arabic.
 *
 * Outfit, Inter and Fira Code have NO ARABIC COVERAGE. Without this every
 * Arabic page falls back to whatever the browser has, which on a Windows
 * machine is a different face for every heading -- and the failure reads as a
 * broken page rather than a missing font.
 *
 * Noto Kufi Arabic because the Qatar Wheels buyer app and the console both
 * ship it: three surfaces from one company should not disagree about what
 * Arabic looks like. */
@font-face {
  font-family: 'Noto Kufi Arabic';
  src: url('/site/fonts/noto-kufi-arabic.woff2?v=KWIZYVTOZqhh') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ── Right to left ────────────────────────────────────────────────────────
 *
 * Almost nothing here, and that is the point: the layout is flex and grid,
 * which mirror on their own once the document says `dir="rtl"`. What follows
 * is the short list of places that had a PHYSICAL direction written into them
 * and therefore could not mirror by themselves.
 */
[dir='rtl'] {
  font-family: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
}
[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] .logo__name,
[dir='rtl'] .hero__title,
[dir='rtl'] .stat__figure {
  font-family: 'Noto Kufi Arabic', 'Outfit', system-ui, sans-serif;
}
/* The monospace label style is a Latin-typewriter effect; in Arabic it is a
 * face that does not exist, so those labels take the ordinary Arabic one. */
[dir='rtl'] .mono,
[dir='rtl'] .eyebrow,
[dir='rtl'] .post__meta,
[dir='rtl'] .article__byline {
  font-family: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
}
/* The arrow means "forward", and forward is the other way. */
[dir='rtl'] .post__more img,
[dir='rtl'] .metric__move img {
  transform: scaleX(-1);
}
[dir='rtl'] .article__back img {
  transform: none;
}
[dir='rtl'] .post:hover .post__more img {
  transform: scaleX(-1) translateX(3px);
}
@font-face {
  font-family: 'Fira Code';
  src: url('/site/fonts/fira-code.woff2?v=dxv0t5qX_ABd') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --maroon: #8a1538;
  --maroon-deep: #5c0b22;
  --maroon-mid: #7a1030;
  --maroon-card: #470d1f;
  --maroon-icon: #801a33;
  --maroon-hero: #3d0717;
  --maroon-footer: #260a14;
  --maroon-logo: #1f0a14;

  --cyan: #06b6d4;
  --green: #10b981;

  --ink: #0f172a;
  --ink-2: #0f1729;
  --paper: #f8fafc;
  --line: #e2e8f0;

  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-950: #0b0f1a;
  --near-black: #060a13;

  --muted: #4d4d59;
  --rose-100: #e0ccd4;
  --rose-200: #e5d1d9;
  --footer-text: #d9d9d9;

  --gutter: 80px;
  --shell: 1440px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Every visible focus ring in one place, because the default one disappears
 * against the maroon sections and a keyboard user then has no cursor at all. */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only, for the skip link and for labels a sighted reader gets
 * from position alone. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--maroon);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* The shell every band centres its content in: 1440 wide, 80px gutters. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Mono eyebrow / pill ─────────────────────────────────────────────────── */
.mono {
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.19);
  background: rgba(6, 182, 212, 0.06);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cyan);
}
.eyebrow--pill {
  padding: 7px 14px;
  border-radius: 99px;
  border-color: rgba(6, 182, 212, 0.19);
  background: rgba(255, 255, 255, 0.06);
  text-transform: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--cyan);
  flex: none;
}

/* A 3px gradient rule under a heading. 80px in the hero, 60px elsewhere. */
.accent {
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--maroon));
}
.accent--short {
  width: 60px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  cursor: pointer;
  /* One line, always. On a phone the navbar CTA was breaking into "Open /
     FMS" and taking two rows of a 56px bar with it. */
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    background-color 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--maroon);
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(138, 21, 56, 0.38));
}
.btn--primary:hover {
  filter: drop-shadow(0 6px 16px rgba(138, 21, 56, 0.5)) brightness(1.06);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.19);
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(115, 20, 46, 0.12));
}

.btn--compact {
  padding: 14px 24px;
}

/* The navbar CTA is a smaller measure than the hero's. */
.btn--nav {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.btn--light {
  background: #fff;
  color: var(--maroon);
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* ── The mark ────────────────────────────────────────────────────────────
 *
 * A map pin, 100 x 130 in the brand file, with the wheel turning inside it.
 * The same three paths the console and the boot splash draw. The pin drops in
 * once; the wheel turns for ever, about the centre of the pin head (50, 44).
 */
.mark {
  width: 30px;
  height: 39px; /* 30 * 130 / 100 */
  flex: none;
  overflow: visible;
}
.mark--maroon {
  color: var(--maroon);
}
.mark--maroon .mark__disc {
  fill: #fbf7f8;
}
.mark--light {
  color: #fff;
}
.mark--light .mark__disc {
  fill: var(--maroon);
}
.mark__pin,
.mark__spokes {
  fill: currentColor;
}
.mark__drop {
  transform-origin: 50px 118px;
  animation: mark-drop 1s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.mark__wheel {
  transform-origin: 50px 44px;
  animation: mark-spin 1.2s linear infinite;
}
@keyframes mark-drop {
  0% {
    transform: translateY(-160px);
    opacity: 0;
  }
  55% {
    transform: translateY(0);
    opacity: 1;
  }
  72% {
    transform: translateY(-16px) scale(1.02, 0.98);
  }
  86% {
    transform: translateY(0) scale(0.98, 1.03);
  }
  100% {
    transform: none;
  }
}
@keyframes mark-spin {
  to {
    transform: rotate(360deg);
  }
}

/* A mark that turns for ever is exactly the perpetual motion this setting
 * exists to stop, and for some people it is a trigger rather than a
 * preference. Stopped, the mark is still there. */
@media (prefers-reduced-motion: reduce) {
  .mark__wheel,
  .mark__drop {
    animation: none;
  }
}

.logo__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: normal;
  color: var(--ink);
}
.logo__sub {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 10px;
  line-height: normal;
  color: var(--maroon);
  margin-top: 2px;
}

/* `.nav__links .nav__lang`, not `.nav__lang`.
 *
 * The switcher moved inside the menu so a phone bar could hold three things
 * instead of four -- and inside, `.nav__links a` (0,1,1) outranks a lone
 * `.nav__lang` (0,1,0), so the pill silently took the plain link's 15px/500
 * instead of its own 13px/600. The border and the radius survived, which is
 * what makes it the kind of drift nobody reports. */
.nav__links .nav__lang {
  flex: none;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav__links .nav__lang:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  padding-block: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease;
}
.nav__links a:hover {
  color: var(--maroon);
}
.nav__links a[aria-current='page'] {
  font-weight: 700;
  color: var(--maroon);
}

/* The menu button exists only under the fold-down breakpoint. */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: '';
}
.nav__toggle span::before {
  transform: translateY(-6px);
}
.nav__toggle span::after {
  transform: translateY(4px);
}

/* ── Hero (dark maroon band) ─────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--maroon-hero);
  box-shadow: inset 0 -80px 120px 0 rgba(140, 26, 56, 0.3);
}

/* The dotted field over the hero. Figma exports it as a white rectangle at 18%
 * opacity; a repeating radial gradient is the same picture without an image. */
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
.hero__line--top {
  top: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    var(--cyan) 35%,
    var(--maroon) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}
.hero__line--bottom {
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(6, 182, 212, 0.5) 40%,
    rgba(138, 21, 56, 0.5) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__glow {
  position: absolute;
  pointer-events: none;
}
.hero__glow--left {
  left: -180px;
  top: -200px;
  width: 600px;
  height: 500px;
}
.hero__glow--right {
  left: 800px;
  top: 100px;
  width: 500px;
  height: 400px;
}
.hero__glow img {
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: 96px;
}

.hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 1.15;
  color: #fff;
}

.hero__lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-300);
}

.hero__actions {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.19);
  background: rgba(6, 182, 212, 0.06);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
}
.chip--green {
  border-color: rgba(16, 185, 129, 0.19);
  background: rgba(16, 185, 129, 0.06);
  color: var(--green);
}
.chip--green .dot {
  background: var(--green);
}
.chip--rose {
  border-color: rgba(138, 21, 56, 0.15);
  background: rgba(138, 21, 56, 0.06);
  color: #c14b6a;
}
.chip--rose .dot {
  background: #c14b6a;
}
.chip--slate {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--slate-400);
}
.chip--slate .dot {
  background: var(--slate-400);
}
.chip--sm {
  padding: 5px 10px;
  border-radius: 4px;
}

/* The live-fleet card beside the hero copy. */
.hero__card {
  flex: none;
  width: 480px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  box-shadow:
    0 16px 48px -8px rgba(115, 20, 46, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.hero__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero__card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--slate-100);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
  flex: none;
}
.tag-live {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.08);
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 10px;
  color: var(--cyan);
  white-space: nowrap;
}

.hero__card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}
.hero__card-body img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}

.readout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.readout__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.readout__label {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--slate-400);
}
.readout__value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-100);
}
.readout__value span {
  font-weight: 400;
  color: var(--slate-600);
}
.readout__value--green {
  color: var(--green);
}
/* 142 of 145, drawn rather than described. */
.readout__bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.readout__bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--maroon));
}

/* ── Stats band ─────────────────────────────────────────────────────────── */
.stats {
  position: relative;
  overflow: hidden;
  background: var(--slate-950);
  border-bottom: 1px solid var(--slate-800);
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.02), rgba(0, 0, 0, 0));
}
.stats::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(6, 182, 212, 0.25) 50%,
    rgba(0, 0, 0, 0)
  );
}

.stats__inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-block: 48px;
}

.stat {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-block: 48px;
  text-align: center;
}
.stat__figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--slate-100);
  font-size: 52px;
  line-height: normal;
}
.stat__unit {
  font-size: 32px;
  color: var(--cyan);
}
.stat__unit--green {
  color: var(--green);
}
.stat__unit--maroon {
  font-size: 28px;
  color: var(--maroon);
}
.stat__label {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--slate-500);
}
.stat-rule {
  width: 1px;
  align-self: center;
  height: 80px;
  background: var(--slate-800);
  flex: none;
}

/* ── Section scaffolding ────────────────────────────────────────────────── */
.section {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
}
.section--white {
  background: #fff;
}
.section--paper {
  background: var(--paper);
}
.section--dark {
  background: var(--near-black);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.section-head--left {
  align-items: flex-start;
  text-align: left;
  gap: 14px;
}
.section-head h2 {
  font-size: 40px;
  color: var(--ink-2);
}
.section-head--dark h2 {
  color: var(--slate-100);
}
.section-head p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.section-head--dark p {
  color: var(--slate-500);
  max-width: none;
}

/* The soft cyan bloom behind a white section. */
.bloom {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0));
}

/* ── Feature cards ──────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(128, 26, 51, 0.3);
  background: var(--maroon-card);
  box-shadow:
    0 12px 40px 0 rgba(71, 13, 31, 0.25),
    0 4px 16px 0 rgba(115, 20, 46, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 48px 0 rgba(71, 13, 31, 0.35),
    0 6px 20px 0 rgba(115, 20, 46, 0.45),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--maroon-icon);
  border: 1px solid rgba(6, 182, 212, 0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 7px rgba(140, 26, 56, 0.35));
  flex: none;
}
.card__icon img {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
  color: #fff;
}
.card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rose-100);
}

/* ── Social proof strip ─────────────────────────────────────────────────── */
.proof {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon-mid) 50%, var(--maroon-deep));
}
.proof::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(255, 255, 255, 0.13) 50%,
    rgba(0, 0, 0, 0)
  );
}
.proof__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 64px;
  flex-wrap: wrap;
}
.proof__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.proof__label::before {
  content: '';
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--cyan);
}
/* FIVE NAMES, ONE WIDTH. Sized to their text they made a ragged row on a
 * desktop and a ragged column on a phone, which reads as five different kinds
 * of thing rather than five customers. `flex: 1 1 0` gives them the row in
 * equal shares at every width. */
.proof__names {
  display: flex;
  flex: 1 1 auto;
  gap: 16px;
}
.proof__name {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  filter: drop-shadow(0 2px 4px rgba(115, 20, 46, 0.12));
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.69);
}

/* ── Spotlight ──────────────────────────────────────────────────────────── */
.spotlight__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
}
.spotlight__frame {
  flex: none;
  padding: 2px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.25), rgba(138, 21, 56, 0.25));
  box-shadow: 0 0 32px 0 rgba(6, 182, 212, 0.13);
}
.spotlight__frame img {
  width: 556px;
  height: 376px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}
.spotlight__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.spotlight__text > p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-500);
}
.chip-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chip-stack > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--maroon-footer);
  color: var(--footer-text);
  box-shadow: inset 0 -80px 120px 0 rgba(140, 26, 56, 0.3);
}
.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 80px;
}
/* A grid, not a wrapping flex row.
   `space-between` with four fixed widths put each wrapped row's columns at
   different x positions from the row above it, so the footer lost its column
   alignment at every width between one row and four. `auto-fit` keeps the
   tracks -- and therefore the headings -- lined up however many fit. */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
  gap: 48px 40px;
}
.footer__brand {
  max-width: 380px;
}
.footer__brand .logo__name,
.footer__brand .logo__sub {
  color: var(--footer-text);
}
.footer__brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}
.footer__col h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}
.social {
  display: flex;
  gap: 16px;
}
.social a {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease;
}
.social a:hover {
  background: var(--maroon);
}
.social img {
  width: 16px;
  height: 16px;
}

/* ── Page hero (the short banner every inner page opens with) ───────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--maroon-deep);
  box-shadow: inset 0 -80px 120px 0 rgba(140, 26, 56, 0.3);
}
.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-block: 80px;
  text-align: center;
}
.page-hero__eyebrow {
  padding: 4px 12px;
  border-radius: 4px;
  background: #450a1c;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: #faf0f3;
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
}
.page-hero p {
  width: 640px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.55;
  color: #d1d6e0;
}

/* ── Service rows ───────────────────────────────────────────────────────────
 *
 * Eight of them, 416 tall on a 464 pitch, alternating which side the picture
 * is on. `:nth-child(even)` does the alternation rather than a modifier class:
 * the order is the design's, and a class per row is eight places to get the
 * sequence wrong when one is inserted.
 */
.service-rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px;
  border-radius: 12px;
  border: 2px solid #73142e;
  background: #fff;
  scroll-margin-top: 96px;
}
.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

/* ALTERNATE ROWS ARE FILLED, which is what the design says and what the page
 * was not doing -- every row was white with a maroon rule, so the only thing
 * alternating was which side the photograph sat on, and that reads as one
 * long list rather than as a rhythm.
 *
 * `--maroon-card` rather than a new colour: it is the token the filled cards
 * already use, so the fill matches the ones on the home page instead of being
 * a second maroon that is nearly the same.
 *
 * The border goes to the fill, because a maroon rule around a maroon panel is
 * a line nobody can see, and the icon tile takes a lighter ground for the same
 * reason -- `--maroon-logo` on `--maroon-card` is two shades of the same
 * near-black and the glyph disappears into it. */
.service-row:nth-child(even) {
  background: var(--maroon-card);
  border-color: var(--maroon-card);
}
.service-row:nth-child(even) .service-row__head h2,
.service-row:nth-child(even) .service-row__points li {
  color: #fff;
}
.service-row:nth-child(even) .service-row__text > p {
  color: var(--slate-300);
}
.service-row:nth-child(even) .service-row__icon {
  background: rgba(255, 255, 255, 0.12);
}
.service-row > img {
  width: 480px;
  height: 320px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}
.service-row__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
/* Exactly two lines' worth, whether the sentence takes one or two: a narrow
   column cannot push the row past its photo, and a short tagline cannot make
   one row shorter than the next. */
.service-row__text > p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.55em);
}
/* One line, so the heading cannot do what the tagline is stopped from doing. */
.service-row__head h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.service-row__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-row__icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--maroon-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 7px rgba(140, 26, 56, 0.35));
  flex: none;
}
.service-row__icon img {
  width: 28px;
  height: 24px;
}
.service-row__head h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: normal;
  color: var(--ink);
}
.service-row__text > p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-500);
}
.service-row__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-row__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.service-row__points img {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ── Panels, values, team (About) ───────────────────────────────────────── */
.section--warm {
  background: #faf7f5;
}

/* Two side-by-side statements: mission and vision. */
.pair {
  display: flex;
  align-items: stretch;
  gap: 48px;
}
.panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: var(--paper);
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.panel h2 {
  font-size: 24px;
  color: var(--maroon);
}
.panel p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-500);
}

/* A section heading at the inner-page size, which is 36 rather than the home
 * page's 40. */
.h-36 {
  font-size: 36px;
}

/* The light eyebrow: maroon on blush, for the sections that sit on paper. */
.eyebrow--light {
  border: 0;
  background: #faf0f3;
  color: var(--maroon);
  padding: 4px 12px;
}

.cards--values {
  margin-top: 48px;
  gap: 24px;
}
.card--value {
  padding: 32px;
  align-self: start;
}
.card--value h3 {
  font-size: 20px;
}
.card--value p {
  font-size: 14px;
  line-height: 1.5;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.team__member {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.team__member img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}
.team__member figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.team__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.team__role {
  font-size: 14px;
  font-weight: 600;
  color: var(--maroon);
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.tiers {
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.tier {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: #fff;
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
/* The middle one is the recommendation, and says so by being the only maroon
 * card on the page rather than by being bigger. */
.tier--featured {
  border: 0;
  background: var(--maroon);
  color: #fff;
  filter: drop-shadow(0 16px 16px rgba(138, 21, 56, 0.25));
}
.tier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tier h2 {
  font-size: 24px;
  color: var(--ink);
}
.tier--featured h2 {
  color: #fff;
}
.tier__badge {
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--maroon);
}
.tier__pitch {
  font-size: 14px;
  color: var(--slate-500);
}
.tier--featured .tier__pitch {
  color: var(--paper);
}
.tier__price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  color: var(--ink);
}
.tier--featured .tier__price {
  color: #fff;
}
.tier__rule {
  height: 1px;
  background: var(--line);
}
.tier--featured .tier__rule {
  background: rgba(255, 255, 255, 0.25);
}
.tier__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Pushes the button to the foot of every card, so three cards with unequal
   * feature counts still line their calls to action up. */
  flex: 1 1 auto;
}
.tier__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
}
.tier--featured .tier__points li {
  color: #fff;
}
.tier__points img {
  width: 16px;
  height: 16px;
  flex: none;
}
.tier__cta {
  display: block;
  width: 100%;
  padding-block: 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  transition:
    filter 0.12s ease,
    background-color 0.12s ease;
}
.tier__cta--outline {
  border: 1px solid var(--maroon);
  background: var(--paper);
  color: var(--maroon);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.tier__cta--outline:hover {
  background: #fff;
}
.tier__cta--solid {
  background: var(--maroon);
  color: #fff;
}
.tier__cta--light {
  background: #fff;
  color: var(--maroon);
}
.tier__cta:hover {
  filter: brightness(1.06);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}
/* A real <details>, so it opens with no script and is reachable by keyboard.
 * The design draws every answer open; a browser's own disclosure gives the
 * same picture and a working control, so `open` is set on all three. */
.faq details {
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary img {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.15s ease;
}
.faq details[open] summary img {
  transform: rotate(45deg);
}
.faq p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate-500);
}

/* ── Case studies ───────────────────────────────────────────────────────── */
.cases {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.case {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.case > img {
  width: 400px;
  height: 280px;
  flex: none;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}
.case__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case__text h2 {
  font-size: 24px;
  color: var(--ink);
}
.case__text > p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-500);
}
.case__metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: var(--paper);
}
.metric__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-500);
}
.metric__move {
  display: flex;
  align-items: center;
  gap: 16px;
}
.metric__before {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--slate-500);
  text-decoration: line-through;
}
.metric__move img {
  width: 14px;
  height: 14px;
  flex: none;
}
.metric__after {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: var(--paper);
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--maroon);
}
.quote__who {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate-500);
}

/* ── Closing call to action ─────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--maroon-deep);
  box-shadow: inset 0 -80px 120px 0 rgba(140, 26, 56, 0.3);
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 96px;
  text-align: center;
}
.cta h2 {
  font-size: 36px;
  color: #fff;
}
.cta p {
  width: 600px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-100);
}
.cta .btn {
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 16px;
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.contact__form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.contact__form h2 {
  font-size: 24px;
  color: var(--ink);
}
.fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field textarea {
  height: 100px;
  border-radius: 16px;
  border-color: rgba(217, 31, 77, 0.6);
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-500);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--maroon);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.12);
}
.contact__submit {
  width: 100%;
  padding-block: 16px;
  border: 0;
  border-radius: 6px;
  background: var(--maroon);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.contact__submit:hover {
  filter: brightness(1.08);
}

/* The outcome of a submission. Rendered by the server on the page the browser
 * lands on after the POST -- no script, and a refresh does not resend. */
.notice {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.notice--ok {
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #065f46;
}
.notice--bad {
  border: 1px solid rgba(138, 21, 56, 0.4);
  background: rgba(138, 21, 56, 0.06);
  color: var(--maroon);
}

.contact__aside {
  width: 500px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(128, 26, 51, 0.3);
  background: var(--maroon-card);
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.contact__direct h2 {
  font-size: 20px;
  color: #fff;
}
.contact__direct li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
}
.contact__direct img {
  width: 20px;
  height: 20px;
  flex: none;
}
.contact__direct a:hover {
  text-decoration: underline;
}
.contact__map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__map h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.contact__map img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 6px 0 rgba(0, 0, 0, 0.08),
    0 8px 24px -4px rgba(0, 0, 0, 0.15);
}
.contact__map p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate-500);
}

/* ── Field notes: the index and one article ─────────────────────────────── */

.posts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* One post, as a card. The site's panel treatment: rose hairline, warm
   three-layer shadow, and a lift on hover -- the same language the service
   cards use, in the light colourway the reading pages are set in. */
.post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: #fff;
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06),
    0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.post:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 56px 0 rgba(115, 20, 46, 0.12),
    0 10px 28px 0 rgba(0, 0, 0, 0.08),
    0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* The newest one gets the width, because a list of four equal cards has no
   opinion about which to read first. */
.post--lead {
  gap: 18px;
  padding: 48px;
}
.post--lead .post__title {
  font-size: 32px;
}
.post--lead .post__dek {
  font-size: 18px;
  max-width: 62ch;
}

.post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: var(--slate-500);
}
.post__topic {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(138, 21, 56, 0.15);
  background: rgba(138, 21, 56, 0.06);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
}

.post__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--ink);
}
.post__title a {
  color: inherit;
}
.post__title a:hover {
  color: var(--maroon);
}

.post__dek {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-500);
}
.post__by {
  font-size: 13px;
  color: var(--slate-600);
}
.post__by span {
  color: var(--slate-400);
}

.post__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--maroon);
}
.post__more img {
  transition: transform 0.15s ease;
}
.post:hover .post__more img {
  transform: translateX(3px);
}

/* ── One article ─────────────────────────────────────────────────────────── */

.article__head {
  position: relative;
  overflow: hidden;
  background: var(--maroon-deep);
  box-shadow: inset 0 -80px 120px 0 rgba(140, 26, 56, 0.3);
}
.article__head-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 72px;
}
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-200);
}
.article__back img {
  transform: rotate(180deg);
}
.article__back:hover {
  color: #fff;
}
.article__topic {
  padding: 4px 12px;
  border-radius: 4px;
  background: #450a1c;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-200);
}
.article__head h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  text-wrap: balance;
  max-width: 20ch;
  color: #fff;
}
.article__dek {
  font-size: 19px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--rose-200);
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(224, 204, 212, 0.75);
}
.article__author {
  font-weight: 700;
  color: #fff;
}

/* The measure, not the shell. Running text at 1440px wide is unreadable
   however good the type is. */
.article__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
  padding-block: 72px;
}
.article__body h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  text-wrap: balance;
  margin-top: 24px;
  color: var(--maroon);
}
.article__body > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate-600);
}
.article__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-inline-start: 22px;
  list-style: disc;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-600);
}
.article__list li::marker {
  color: var(--maroon);
}

.article__quote {
  margin: 12px 0;
  padding: 28px 32px;
  border-inline-start: 3px solid var(--maroon);
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  background: #faf7f5;
}
.article__quote p {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  text-wrap: balance;
  color: var(--ink);
}
.article__quote cite {
  display: block;
  margin-top: 12px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  font-style: normal;
  color: var(--slate-500);
}

/* A measured figure, set the way the console sets a metric. */
.article__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 8px 0;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.6);
  background: #fff;
  box-shadow:
    0 16px 48px 0 rgba(115, 20, 46, 0.08),
    0 8px 24px 0 rgba(0, 0, 0, 0.06);
}
.article__stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--maroon);
}
.article__stat-label {
  font-size: 15px;
  line-height: 1.5;
  color: var(--slate-500);
}

.article__note {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(6, 182, 212, 0.19);
  background: rgba(6, 182, 212, 0.05);
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-600);
}

.article__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(128, 26, 51, 0.3);
  background: var(--maroon-card);
  box-shadow:
    0 12px 40px 0 rgba(71, 13, 31, 0.25),
    0 4px 16px 0 rgba(115, 20, 46, 0.35),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}
.article__cta h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.article__cta p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rose-100);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
/* The way from a row into its own page. On the maroon rows the arrow and the
   words go white, as the row's other text does. */
.service-row__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--maroon);
}
.service-row:nth-child(even) .service-row__more {
  color: #fff;
}
.service-row:nth-child(even) .service-row__more img {
  filter: brightness(0) invert(1);
}
[dir='rtl'] .service-row__more img {
  transform: scaleX(-1);
}

/* ── Service pages ──────────────────────────────────────────────────────── */
.page-hero__back {
  margin-bottom: 8px;
}

.solution-lead {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.solution-lead img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.4);
}
.solution-lead p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate-600);
}

/* The process: an ordered list whose numbers are the design, not the browser's.
   `counter` rather than typed digits so the Arabic page counts in Arabic-Indic
   through `list-style` locale rules, and nothing is written twice. */
.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  padding: 0;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.4);
  background: #fff;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 14px;
}
[dir='rtl'] .step::before {
  content: counter(step, arabic-indic);
  font-family: 'Noto Kufi Arabic', system-ui, sans-serif;
}
.step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--slate-600);
}

/* The feature table. Wide content scrolls inside its own box; the page never
   scrolls sideways. */
.features-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.4);
  background: #fff;
}
.features {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.features th,
.features td {
  padding: 16px 24px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid rgba(217, 31, 77, 0.18);
}
.features thead th {
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[dir='rtl'] .features thead th {
  letter-spacing: 0;
}
.features tbody th {
  width: 30%;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.features tbody td {
  color: var(--slate-600);
  line-height: 1.5;
}
.features tbody tr:last-child th,
.features tbody tr:last-child td {
  border-bottom: 0;
}

/* Packages: two columns, the higher one in the maroon card treatment. */
.packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  max-width: 760px;
  margin-inline: auto;
}
.package {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.4);
  background: #fff;
}
.package--top {
  background: var(--maroon-card);
  border-color: var(--maroon-card);
}
.package h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.package--top h3 {
  color: #fff;
}
.package ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.package li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-600);
}
.package--top li {
  color: var(--rose-100);
}
.package li img {
  flex: none;
  margin-top: 1px;
}

/* Service areas: a heading and one paragraph, no card. */
.areas p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-600);
}

/* Questions: the browser's own disclosure widget, styled. No script. */
.faq {
  max-width: 760px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}
.faq__item {
  border-radius: 12px;
  border: 1px solid rgba(217, 31, 77, 0.4);
  background: #fff;
  padding: 0 24px;
}
.faq__item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  color: #fff;
  font-weight: 700;
}
.faq__item[open] summary::after {
  content: '\2212';
}
.faq__item p {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-600);
}

/* The service the visitor came from, named above the form. */
.contact__about {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--slate-600);
}
.contact__about strong {
  color: var(--maroon);
}

/* ── Careers ────────────────────────────────────────────────────────────── */
.openings {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 16px;
}
.opening {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(217, 31, 77, 0.4);
  background: #fff;
}
.opening h3 {
  font-size: 18px;
  font-weight: 800;
}
.opening h3 a {
  color: var(--ink-2);
}
.opening h3 a:hover {
  color: var(--maroon);
}
.opening__meta {
  display: flex;
  gap: 32px;
  margin: 0;
}
.opening__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.opening__meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}
[dir='rtl'] .opening__meta dt {
  letter-spacing: 0;
}
.opening__meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 1200px) {
  :root {
    --gutter: 48px;
  }
  .hero__inner,
  .spotlight__inner {
    gap: 40px;
  }
  .hero__card {
    width: 420px;
  }
  .spotlight__frame img {
    width: 100%;
    max-width: 556px;
    height: auto;
    aspect-ratio: 556 / 376;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav__links {
    gap: 20px;
  }
  .service-row {
    gap: 40px;
    padding: 32px;
  }
  .service-row > img {
    width: 380px;
    height: 260px;
  }
  .service-row__head h2 {
    font-size: 24px;
  }
  .contact {
    gap: 40px;
  }
  .contact__aside {
    width: 380px;
  }
  .case > img {
    width: 320px;
    height: 224px;
  }
  .tiers {
    gap: 20px;
  }
  .tier {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }

  /* THE LANGUAGE SWITCHER IS A MENU ROW ON A PHONE, not a pill in the bar.
   *
   * It moved inside `.nav__links` in the markup, so it opens and closes with
   * everything else and the bar is left with the three things a thumb needs:
   * the menu, the logo, and the way in. The bar could not hold four -- the row
   * measured 455px of content inside a 375px screen, and the overflow was what
   * let the whole page slide sideways.
   *
   * The pill's border and radius come off here so it reads as one of the rows
   * it now sits among rather than a control that wandered into the list. */
  .nav__links .nav__lang {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  /* Opened by the checkbox the toggle is a label for -- no script, because a
   * menu that needs JavaScript to open is a menu that is closed while the
   * bundle downloads. */
  #nav-open:checked ~ .nav__links {
    display: flex;
  }
  .nav__toggle {
    display: flex;
    /* BEFORE THE LOGO, which is where a thumb on the left of a phone expects
     * it. `order` rather than moving it in the markup, because the reading
     * order the checkbox needs -- input, then label, then the menu it opens --
     * is the one the DOM should keep. */
    order: -1;
  }
  .nav__inner {
    gap: 12px;
  }


  /* One row for the two hero buttons. Stacked, they pushed the fleet card and
   * everything under it a whole button further down the page. */
  .hero__actions {
    flex-wrap: nowrap;
  }
  .hero__actions .btn {
    flex: 1 1 0;
    padding-inline: 16px;
  }

  /* The customer names keep their equal shares, stacked. */
  .proof__names {
    flex-direction: column;
    width: 100%;
  }
  .hero__inner,
  .spotlight__inner {
    flex-direction: column;
    align-items: stretch;
  }
  /* 96px of padding under a navbar is a desktop measure. On a phone it is a
   * screenful of empty maroon before the first word. */
  .hero__inner {
    padding-block: 40px 56px;
    gap: 32px;
  }
  .hero__text {
    gap: 20px;
  }
  .page-hero__inner {
    padding-block: 48px;
  }
  .hero__card {
    width: 100%;
  }
  .hero__title {
    font-size: 40px;
  }
  .section-head h2,
  .page-hero h1 {
    font-size: 32px;
  }
  .pair,
  .tiers,
  .contact,
  .case {
    flex-direction: column;
    align-items: stretch;
  }
  .contact__aside {
    width: 100%;
  }
  .case > img {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
  }
  .team,
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards--values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta h2 {
    font-size: 28px;
  }
  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .service-row > img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .stats__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-block: 32px;
  }
  .stat {
    width: 45%;
    min-width: 200px;
    padding-block: 16px;
  }
  .stat-rule {
    display: none;
  }
  .section {
    padding-block: 64px;
  }
  .footer__inner {
    padding-block: 56px;
  }
  .post--lead {
    padding: 32px;
  }
  .post--lead .post__title {
    font-size: 26px;
  }
  .article__head-inner {
    padding-block: 56px;
  }
  .article__body {
    padding-block: 56px;
  }
}

@media (max-width: 640px) {
  /* THE MARK ALONE ON A PHONE, and only on a phone.
   *
   * The wordmark is 138px of a 375px bar -- more than a third of it for what
   * the round mark beside it already says. The bar wanted 425px of content:
   * mark 38, wordmark 138, toggle 40, the console button 121, two gaps and two
   * gutters. That is where the sideways scroll came from, and a page sliding
   * under a menu panel only as wide as the screen is why the open menu looked
   * broken rather than merely narrow.
   *
   * 640 and not the 900 where the hamburger appears: 425px of bar fits from
   * about 430px up, so a tablet has room for the full wordmark and keeps it.
   * Without it the row is 271px, which fits a 320px screen with margin. */
  .logo__name,
  .logo__sub {
    display: none;
  }
  .cards,
  .cards--values {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__form {
    padding: 28px;
  }
  .hero__title {
    font-size: 32px;
  }
  .stat {
    width: 100%;
  }
  .stat__figure {
    font-size: 40px;
  }
  .proof__inner {
    justify-content: center;
    padding-block: 40px;
  }
}

@media (max-width: 1200px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .solution-lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features tbody th {
    white-space: normal;
  }
}
@media (max-width: 640px) {
  /* The phone card is its own size: a 180px photo strip, tighter padding,
     the same clamped text. Every row on the page is then the same height. */
  .service-row,
  .service-row:nth-child(even) {
    gap: 20px;
    padding: 20px;
  }
  .service-row > img {
    height: 180px;
    aspect-ratio: auto;
  }
  .service-row__head h2 {
    font-size: 22px;
    white-space: normal;
  }
  .steps,
  .packages {
    grid-template-columns: 1fr;
  }
  .opening__meta {
    gap: 20px;
    flex-wrap: wrap;
  }
  .features th,
  .features td {
    padding: 12px 16px;
  }
}

/* Somebody who has asked their system for less motion gets none of it. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
