/* Doos landing — tokens mirror the "Doos Colors" collection in Figma (sQiaGIP5w9PMLoMCvYyDwW) */
@font-face {
  font-family: "GraphikArabic";
  src: url("/assets/fonts/graphik-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "GraphikArabic";
  src: url("/assets/fonts/graphik-arabic-medium.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --magenta: #d71482;
  --magenta-tint: #fdeef6;
  --ink: #0b0e15;
  --ink-700: #1f232d;
  --ink-500: #525967;
  --charcoal: #161618;
  --charcoal-soft: #2b2b2f;
  --night: #0e0e10;
  --ivory: #f6f4ef;
  --sand: #ece4d6;
  --sage: #a3ac88;
  --mist: #edefeb;
  --white: #ffffff;

  --font-body: "GraphikArabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Markazi Text", "GraphikArabic", serif;

  --container: 1200px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

/* ---------- Shared pieces ---------- */

.logo svg {
  width: 116px;
  height: auto;
  fill: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-primary {
  background: var(--magenta);
  color: var(--white);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s ease;
}
.badge:hover {
  transform: translateY(-2px);
}
.badge svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge-text small {
  font-size: 11px;
  opacity: 0.85;
}
.badge-text strong {
  font-size: 19px;
  font-weight: 500;
  direction: ltr;
}
.badges-light .badge {
  background: var(--white);
  color: var(--ink);
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
}

.lead {
  font-size: 19px;
  line-height: 1.7;
}

/* Phone screenshots carry the device frame; round the crop to match its corners */
.phone {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 1124;
  border-radius: 13.5% / 6.7%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--charcoal-soft), #121214);
  color: var(--white);
  padding-bottom: 110px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.nav .logo {
  color: var(--white);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.lang-link {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.lang-link:hover {
  opacity: 1;
}
/* English wordmark is wider than the Arabic one; match its visual weight */
.logo-en svg {
  width: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 576px);
  align-items: center;
  gap: 48px;
  margin-top: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 560px;
}
.hero-copy .eyebrow {
  opacity: 0.6;
}
.hero-copy h1 {
  font-size: clamp(48px, 6.2vw, 88px);
}
.hero-copy .lead {
  max-width: 500px;
  opacity: 0.72;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.mosaic-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mosaic-col:last-child {
  padding-top: 40px;
}
.mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 278 / 340;
  object-fit: cover;
  border-radius: 20px;
}

/* ---------- Showcase ---------- */

.showcase {
  padding-block: 120px;
  text-align: center;
}
.showcase h2 {
  font-size: clamp(38px, 4.2vw, 60px);
}
.showcase .section-sub {
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 19px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 600px;
  padding: 40px 24px 0;
  overflow: hidden;
  border-radius: 28px;
  text-align: center;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}
.card p {
  min-height: 3.2em; /* two lines, so phones line up across cards */
  font-size: 15px;
  opacity: 0.72;
}
.card .phone {
  width: 226px;
  margin-top: 18px;
  flex: none;
}
.card-mist {
  background: var(--mist);
}
.card-sage {
  background: var(--sage);
  color: var(--white);
}
.card-sand {
  background: var(--sand);
}
.card-charcoal {
  background: var(--charcoal);
  color: var(--white);
}

/* ---------- Multi-store split ---------- */

.split-wrap {
  padding-bottom: 120px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: end;
  gap: 48px;
  padding: 72px 96px 0;
  overflow: hidden;
  border-radius: 36px;
  background: var(--white);
}
.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 96px;
}
.split-copy .eyebrow {
  color: var(--magenta);
  letter-spacing: 0.02em;
}
.split-copy h2 {
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1.12;
}
.split-copy .lead {
  max-width: 480px;
  color: var(--ink-500);
  font-size: 18px;
}
.points {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
}

.split-visual {
  position: relative;
  height: 560px;
}
.split-visual::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sand);
}
.split-visual .phone {
  position: relative;
  width: 270px;
  margin-inline: auto;
}

/* ---------- Download CTA ---------- */

.cta {
  padding-block: 110px;
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}
.cta h2 {
  font-size: clamp(44px, 5vw, 72px);
}
.cta .lead {
  margin-top: 28px;
  opacity: 0.7;
}
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
}
.cta-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cta-badges p {
  font-size: 14px;
  opacity: 0.6;
}
.qr {
  padding: 12px;
  border-radius: 20px;
  background: var(--ivory);
}
.qr img {
  width: 104px;
  height: 104px;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 48px 36px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer .logo {
  color: var(--white);
}
.footer .logo svg {
  width: 100px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--white);
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
}
.socials svg {
  width: 16px;
  height: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Simple pages (legal, shared cart, campaign) ---------- */

.page-header {
  background: var(--charcoal);
  color: var(--white);
}
.page-header .nav {
  padding-block: 20px;
}
.page-header .logo svg {
  width: 96px;
}

.legal {
  max-width: 820px;
  margin-inline: auto;
  padding: 64px var(--gutter) 96px;
}
.legal h1 {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
}
.legal h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
}
.legal h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
}
.legal p,
.legal li {
  color: var(--ink-500);
}
.legal p + p {
  margin-top: 10px;
}
.legal ul {
  margin: 10px 0 0;
  padding-inline-start: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal section,
.legal .legal-block {
  padding-block: 28px;
  border-bottom: 1px solid var(--sand);
}
.legal .legal-block:last-child {
  border-bottom: 0;
}
.legal .lang-switch {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--magenta);
  font-weight: 500;
}

.center-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100svh;
  padding: 48px 24px;
  text-align: center;
}
.center-page .logo {
  margin-bottom: 24px;
  color: var(--magenta);
}
.center-page h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 500;
  line-height: 1.15;
}
.center-page .lead {
  color: var(--ink-500);
  font-size: 17px;
}
.center-page .btn {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  margin-top: 16px;
  font-size: 16px;
}
.center-page .badges {
  justify-content: center;
  margin-top: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cards {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar {
    display: none;
  }
  .card {
    flex: 0 0 270px;
    height: 520px;
    padding-top: 28px;
    scroll-snap-align: start;
  }
  .card .phone {
    width: 210px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 340px;
    padding-inline: 48px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }
  .hero {
    padding-bottom: 48px;
  }
  .nav {
    padding-block: 16px;
  }
  .nav .logo svg {
    width: 88px;
  }
  .nav .btn {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .nav-actions {
    gap: 14px;
  }
  .lang-link {
    font-size: 13px;
  }
  .nav .logo-en svg {
    width: 92px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .hero-copy {
    gap: 20px;
  }
  .hero-copy .eyebrow {
    font-size: 12px;
  }
  .hero-copy .lead {
    font-size: 16px;
  }
  .mosaic,
  .mosaic-col {
    gap: 12px;
  }
  .mosaic-col:last-child {
    padding-top: 24px;
  }
  .mosaic img {
    border-radius: 16px;
  }
  .badges {
    gap: 10px;
  }
  .badge {
    gap: 10px;
    padding: 9px 16px;
    border-radius: 12px;
  }
  .badge svg {
    width: 22px;
    height: 22px;
  }
  .badge-text strong {
    font-size: 16px;
  }
  .showcase {
    padding-block: 64px;
  }
  .showcase .section-sub {
    font-size: 15px;
  }
  .cards {
    margin-top: 28px;
  }
  .card h3 {
    font-size: 26px;
  }
  .card p {
    display: none;
  }
  .split-wrap {
    padding-bottom: 64px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 24px 0;
    border-radius: 28px;
  }
  .split-copy {
    gap: 16px;
    padding-bottom: 0;
  }
  .split-copy .eyebrow {
    font-size: 13px;
  }
  .split-copy .lead {
    font-size: 15px;
  }
  .points {
    font-size: 15px;
  }
  .split-visual {
    height: 380px;
  }
  .split-visual::before {
    inset-inline: 0;
    top: 70px;
    width: 300px;
    margin-inline: auto;
  }
  .split-visual .phone {
    width: 220px;
    top: 10px;
  }
  .cta {
    padding-block: 64px;
  }
  .cta .lead {
    margin-top: 20px;
    font-size: 15px;
  }
  .cta-row {
    margin-top: 20px;
  }
  .cta-badges {
    align-items: center;
  }
  .cta-badges p,
  .qr {
    display: none;
  }
  .footer {
    padding-block: 40px 28px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom {
    font-size: 12px;
  }
}
