/* ---------- Tokens ---------- */
:root {
  --ink: #0f1e33;
  --ink-2: #33445c;
  --ink-3: #66758a;
  --line: #e4e8ee;
  --line-2: #d3dae4;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --blue: #1557b0;
  --blue-2: #e8f0fb;
  --green: #1f7a3a;
  --green-2: #19672f;
  --amber: #b45309;
  --amber-2: #fdf3e3;
  --red: #b42318;
  --red-2: #fdecea;
  --ok-2: #e6f4ea;
  --navy: #0f1e33;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --gutter: 16px;
}

:root:lang(ar) {
  --font: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

:root:lang(ar) h1,
:root:lang(ar) h2,
:root:lang(ar) h3 {
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
}

.sprite {
  position: absolute;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir='rtl'] .flip {
  transform: scaleX(-1);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

.skip {
  position: absolute;
  top: 8px;
  inset-inline-start: -9999px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip:focus {
  inset-inline-start: 8px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-2);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #1d3352;
}

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

.btn-ghost:hover,
.btn-line:hover {
  border-color: var(--ink-3);
}

.btn-line {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--paper);
}

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

.btn-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-name {
  font: 700 17px/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-name span {
  color: var(--blue);
}

.nav {
  display: none;
  gap: 22px;
  margin-inline-start: 16px;
}

.nav a {
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.langs {
  display: flex;
  gap: 2px;
}

.langs button {
  min-width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font: 600 13px/1 var(--font);
  cursor: pointer;
}

.langs button:hover {
  color: var(--ink);
}

.langs button[aria-pressed='true'] {
  background: var(--paper-2);
  color: var(--ink);
}

/* Six links: shown only where they fit on one line. */
@media (min-width: 1180px) {
  .nav {
    display: flex;
  }
}

@media (max-width: 559px) {
  .hide-sm {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .header-inner {
    gap: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--paper);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 88px;
  }
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.035em;
}

:root:lang(ar) .hero h1 {
  line-height: 1.35;
  font-weight: 700;
}

.hero-lead {
  margin-top: 22px;
  max-width: 600px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 14px;
}

/* Product stage */
.hero-stage {
  position: relative;
  margin-top: 56px;
  padding-bottom: 0;
}

.window {
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--paper);
  box-shadow: 0 30px 60px -30px rgba(15, 30, 51, 0.25);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}

.url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.app {
  display: flex;
  min-height: 360px;
}

.app-side {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 60px;
  padding: 16px 0;
  background: #1b2d4d;
}

.app-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #1976d2;
  color: #fff;
  font: 800 15px/1 var(--display);
}

.app-nav {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.app-nav.is-on {
  background: rgba(255, 255, 255, 0.28);
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 20px;
}

@media (min-width: 640px) {
  .app-side {
    display: flex;
  }

  .app-main {
    padding: 24px 28px;
  }
}

.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-head strong {
  font: 700 18px/1.2 var(--display);
}

.app-btn {
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

@media (min-width: 720px) {
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpis div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  background: var(--paper);
}

.kpis span {
  color: var(--ink-3);
  font-size: 12px;
}

.kpis b {
  font: 700 18px/1.2 var(--display);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-weight: 500;
  font-size: 12px;
  text-align: start;
}

.table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .table th:nth-child(3),
  .table td:nth-child(3) {
    display: none;
  }
}

.st {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.st-blue {
  background: var(--blue-2);
  color: var(--blue);
}

.st-green {
  background: var(--ok-2);
  color: var(--green);
}

.st-amber {
  background: var(--amber-2);
  color: var(--amber);
}

.st-red {
  background: var(--red-2);
  color: var(--red);
}

/* Phone */
.device {
  width: 236px;
  padding: 8px;
  border-radius: 34px;
  background: #0b1626;
  box-shadow: 0 30px 60px -20px rgba(15, 30, 51, 0.45);
}

.hero-stage .device {
  display: none;
  position: absolute;
  inset-inline-end: 4%;
  bottom: 28px;
}

@media (min-width: 900px) {
  .hero-stage {
    padding-inline-end: 120px;
  }

  .hero-stage .device {
    display: block;
    inset-inline-end: 0;
    bottom: 24px;
  }

  /* Keep the table clear of the phone that overlaps the window edge. */
  .hero-stage .app-main {
    padding-inline-end: 150px;
  }
}

.device-screen {
  display: grid;
  gap: 10px;
  min-height: 400px;
  padding: 0 12px 14px;
  border-radius: 27px;
  background: var(--paper-2);
  align-content: start;
  overflow: hidden;
}

.d-head {
  display: grid;
  gap: 6px;
  margin: 0 -12px;
  padding: 22px 14px 14px;
  background: #1b2d4d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.d-truck {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 500;
}

.d-offline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--amber-2);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 600;
}

.d-offline .icon {
  width: 15px;
  height: 15px;
}

.d-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 12.5px;
}

.d-cust {
  font-weight: 700;
  font-size: 13px;
}

.d-line,
.d-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-2);
}

.d-warn {
  color: var(--red);
}

.d-total {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.d-btn {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Facts ---------- */
.facts {
  border-bottom: 1px solid var(--line);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact {
  display: flex;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .fact {
    padding: 30px 24px;
    border-bottom: 0;
    border-inline-start: 1px solid var(--line);
  }

  .fact:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}

.fact:last-child {
  border-bottom: 0;
}

.fact .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.fact p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}

.fact b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Blocks ---------- */
.block {
  padding: 80px 0;
}

@media (min-width: 900px) {
  .block {
    padding: 120px 0;
  }
}

.block-soft {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.block-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.kicker {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:root:lang(ar) .kicker {
  letter-spacing: 0;
  font-size: 14px;
}

.block h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.block-lead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
}

/* Feature rows */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    padding: 72px 0;
  }

  .feature-rev .feature-copy {
    order: 2;
  }
}

.num {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-3);
  font: 600 13px/1 var(--display);
  letter-spacing: 0.08em;
}

.feature h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 520px;
}

.points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
}

.points .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
  stroke-width: 2.2;
}

.feature-visual {
  padding: 28px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

@media (max-width: 559px) {
  .feature-visual {
    padding: 14px;
  }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px -18px rgba(15, 30, 51, 0.25);
  overflow: hidden;
  font-size: 13.5px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chip {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.parcel,
.lot {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.parcel span:first-child {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
}

.panel-foot {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--green);
}

/* Invoice */
.invoice {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px -18px rgba(15, 30, 51, 0.25);
  font-size: 13px;
}

.inv-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.inv-top div {
  display: grid;
  gap: 2px;
}

.inv-top span {
  color: var(--ink-3);
  font-size: 12px;
}

.inv-no {
  text-align: end;
}

.inv-no b {
  font-family: var(--display);
  font-size: 15px;
}

.inv-to {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper-2);
}

.inv-to span {
  color: var(--ink-3);
  font-size: 12px;
}

.inv-lines {
  width: 100%;
  border-collapse: collapse;
}

.inv-lines td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.inv-lines td:nth-child(2) {
  width: 48px;
  color: var(--ink-3);
  text-align: center;
}

.inv-lines td:last-child {
  text-align: end;
}

.inv-sum {
  display: grid;
  gap: 6px;
  margin: 0;
  margin-inline-start: auto;
  width: min(100%, 240px);
}

.inv-sum div {
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
}

.inv-sum dd {
  margin: 0;
}

.inv-net {
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
  color: var(--ink) !important;
  font-weight: 700;
}

/* ---------- Wholesale (dark) ---------- */
.block-dark {
  background: var(--navy);
  color: #fff;
}

.block-dark h2 {
  color: #fff;
}

.block-dark .kicker {
  color: #8ab4f8;
}

.block-dark .block-lead {
  color: rgba(255, 255, 255, 0.72);
}

.wholesale {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .wholesale {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
  }
}

.steps {
  display: grid;
  margin: 40px 0 0;
}

.steps div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.steps dt {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 16px;
}

.steps dt span {
  min-width: 52px;
  color: #8ab4f8;
  font: 600 13px/1 var(--display);
}

.steps dd {
  margin: 0;
  padding-inline-start: 66px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.wholesale-visual {
  display: flex;
  justify-content: center;
}

.device-lg {
  width: 270px;
}

.device-lg .device-screen {
  min-height: 470px;
}

/* ---------- Pricing ---------- */
.billing {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.billing button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font: 600 14px/1 var(--font);
  cursor: pointer;
}

.billing button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 30, 51, 0.12);
}

.billing small {
  margin-inline-start: 4px;
  color: var(--green);
  font-size: 12px;
}

.plans {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .plans {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

@media (min-width: 720px) {
  .plan {
    border-inline-end: 1px solid var(--line);
  }
}

@media (min-width: 1100px) {
  .plan {
    border-bottom: 0;
  }

  .plan:last-child {
    border-inline-end: 0;
  }
}

.plan-main {
  background: var(--paper-2);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.plan h3 small {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ok-2);
  color: var(--green);
  font: 600 11.5px/1.2 var(--font);
  letter-spacing: 0;
}

.plan-for {
  margin-top: 6px;
  min-height: 2.6em;
  color: var(--ink-3);
  font-size: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 22px;
  color: var(--ink-3);
  font-size: 14px;
}

.price b {
  color: var(--ink);
  font: 800 38px/1 var(--display);
  letter-spacing: -0.03em;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 14.5px;
}

.addons {
  display: grid;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

@media (min-width: 720px) {
  .addons {
    grid-template-columns: 1fr 1fr;
  }
}

.addons div {
  display: grid;
  gap: 4px;
  padding: 18px 24px;
  background: var(--paper);
}

.addons b {
  font-weight: 600;
}

.addons span {
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
  }

  .faq-head {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line-2);
}

.faq-list summary {
  position: relative;
  padding: 22px 0;
  padding-inline-end: 40px;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 1.8px solid var(--ink-3);
  border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq-list details p {
  padding-bottom: 22px;
  color: var(--ink-2);
  max-width: 620px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--navy);
  color: #fff;
}

.cta-inner {
  display: grid;
  gap: 32px;
  padding-block: 72px;
}

@media (min-width: 960px) {
  .cta-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 64px;
    padding-block: 96px;
  }
}

.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
}

.cta p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 960px) {
  .cta-actions {
    justify-content: flex-end;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: #0b1626;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-block: 56px 40px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 14px;
  max-width: 340px;
}

.brand-inv .brand-name {
  color: #fff;
}

.brand-inv .brand-name span {
  color: #8ab4f8;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col b {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 600;
}

.footer-col a {
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}

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

  * {
    transition: none !important;
  }
}

/* ---------- Real screenshots ---------- */
.shot {
  display: block;
  width: 100%;
  height: auto;
}

.window-shot {
  border-bottom: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 24px 50px -28px rgba(15, 30, 51, 0.35);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.hero-stage .device {
  width: 230px;
}

.wholesale-visual {
  display: grid;
  place-items: center;
  padding-block: 12px;
}

.wholesale-visual .device {
  grid-area: 1 / 1;
  width: 230px;
}

.device-back {
  transform: translateX(-38%) rotate(-5deg) scale(0.9);
  opacity: 0.92;
}

.device-front {
  transform: translateX(26%);
}

[dir='rtl'] .device-back {
  transform: translateX(38%) rotate(5deg) scale(0.9);
}

[dir='rtl'] .device-front {
  transform: translateX(-26%);
}

@media (max-width: 559px) {
  .wholesale-visual .device {
    width: 190px;
  }
}

/* Feature rows: hide the app's left menu (264 of 1440 px) so the screen reads larger. */
.feature-visual .window-shot {
  overflow: hidden;
}

.feature-visual .shot {
  width: 122.4%;
  max-width: none;
  margin-left: -22.4%;
}

/* ---------- Two systems ---------- */
.systems {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .systems {
    grid-template-columns: repeat(3, 1fr);
  }
}

.system {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.system:hover {
  border-color: var(--line-2);
  box-shadow: 0 18px 40px -26px rgba(15, 30, 51, 0.35);
}

.system-both {
  background: var(--paper-2);
}

.system h3 {
  font-size: 22px;
}

.system > p {
  color: var(--ink-2);
}

.system .points {
  margin-top: 4px;
  flex: 1;
}

.system-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.tag-blue {
  background: var(--blue-2);
  color: var(--blue);
}

.tag-amber {
  background: var(--amber-2);
  color: var(--amber);
}

.tag-green {
  background: var(--ok-2);
  color: var(--green);
}

.system-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  gap: 1px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid li {
  display: flex;
  gap: 14px;
  padding: 22px 22px 24px;
  background: var(--paper);
}

.feature-grid .icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}

.feature-grid b {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-grid span {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}

.feature-grid-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.feature-grid-dark li {
  background: var(--navy);
}

.feature-grid-dark b {
  color: #fff;
}

.feature-grid-dark span {
  color: rgba(255, 255, 255, 0.66);
}

.feature-grid-dark .icon {
  color: #8ab4f8;
}

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

.shot-card {
  margin: 0;
}

.shot-card .window-shot {
  overflow: hidden;
}

/* Hide the app's left menu (264 of 1440 px) so the screen reads larger. */
.shot-card .shot {
  width: 122.4%;
  max-width: none;
  margin-left: -22.4%;
}

.shot-card figcaption,
.phone-card figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.block-dark .shot-card figcaption,
.block-dark .phone-card figcaption {
  color: rgba(255, 255, 255, 0.72);
}

.block-dark .window-shot {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- Driver phones ---------- */
.phones {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
  .phones {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
  }
}

.phones-copy h3 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
}

.phones-copy > p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.phones-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.phones-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phones-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Online store: the office screen next to two phones of the store. */
.store-show {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .store-show {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.phone-card {
  margin: 0;
  text-align: center;
}

.phone-card .device {
  width: 100%;
  max-width: 230px;
  margin-inline: auto;
  padding: 6px;
  border-radius: 28px;
}

.phone-card .device img {
  border-radius: 22px;
}

@media (max-width: 639px) {
  .phones-row {
    grid-template-columns: repeat(3, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .phone-card {
    scroll-snap-align: center;
  }
}

@media (max-width: 639px) {
  .phones-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .phones-row-4 {
    grid-template-columns: repeat(4, 70%);
  }
}

/* ---------- Together ---------- */
.together {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .together {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
  }
}

.points-lg li {
  font-size: 16px;
}

/* Same shape for every gallery frame; taller screenshots are cut at the bottom. */
.gallery .window-shot,
.together .window-shot {
  aspect-ratio: 16 / 11;
}
