/* Care's website: the app's own tokens (apps/customer/src/theme/tokens.ts) and Readex Pro, which covers Latin and
   Arabic. Layout: an ink hero with the app on a phone, then plain paper and white sections, and a red band for shops. */
:root {
  --red: #E2162B;
  --red-deep: #B80D20;
  --ink: #17181C;
  --on-ink: #FFFFFF;
  --on-ink-2: #B9BBC1;
  --bg: #F7F5F3;
  --surface: #FFFFFF;
  --fg: #17181C;
  --fg-2: #3D4047;
  --muted: #8A8D94;
  --line: #ECEBEA;
  --green: #0C9A63;
  --green-tint: #E5F6EE;
  --font: "Readex Pro", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214; --surface: #1B1C20; --fg: #F2F1EF; --fg-2: #C9CAD0; --muted: #8F929A; --line: #2A2B31;
    --green-tint: #123326; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111214; --surface: #1B1C20; --fg: #F2F1EF; --fg-2: #C9CAD0; --muted: #8F929A; --line: #2A2B31;
  --green-tint: #123326; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* Hero ------------------------------------------------------------------------------------------------------ */
.hero { background: var(--ink); color: var(--on-ink); margin-top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "top top" "pitch phone"; column-gap: 48px; padding-block: 20px 0; }
.top { grid-area: top; display: flex; align-items: center; justify-content: space-between; padding-block: 8px 40px; }
.logo { width: 132px; }
.logo.small { width: 96px; }
.lang { font: inherit; font-size: 15px; color: var(--on-ink); background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.lang:hover { border-color: var(--on-ink); }

.pitch { grid-area: pitch; align-self: center; padding-bottom: 64px; display: grid; gap: 24px; }
h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(17px, 1.9vw, 20px); font-weight: 300; color: var(--on-ink-2); max-width: 32em; }
.soon-note { font-size: 14px; color: var(--on-ink-2); }
.soon-note[hidden] { display: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 176px; padding: 10px 18px 10px 14px; border-radius: 12px; background: var(--on-ink); color: var(--ink); text-decoration: none; line-height: 1.1; font-weight: 500; font-size: 18px; border: 1px solid transparent; transition: transform .15s ease; }
.store small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .01em; }
.store svg { width: 26px; height: 26px; flex: none; }
.store[href]:hover { transform: translateY(-2px); }
.store.soon { opacity: .55; cursor: default; }
.store.light { background: var(--ink); color: var(--on-ink); }

/* The phone: the app's real home screen, cut off at the bottom of the hero */
.phone { grid-area: phone; margin: 0; align-self: end; justify-self: center; width: min(100%, 330px); aspect-ratio: 330 / 600; max-width: 100%; border-radius: 46px 46px 0 0; background: #2B2D33; padding: 12px 12px 0; box-shadow: 0 -20px 80px rgba(226, 22, 43, .22); }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px 36px 0 0; background: #F7F5F3; }

/* Steps ----------------------------------------------------------------------------------------------------- */
.steps { padding-block: 88px 64px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.015em; }
.steps ol { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.n { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 20px; }
.n.red { background: var(--red); color: #FFFFFF; }
.steps h3 { font-size: 22px; font-weight: 500; margin-top: 10px; }
.steps p { color: var(--fg-2); font-weight: 300; margin-top: 6px; max-width: 30ch; }

/* App screens ------------------------------------------------------------------------------------------------ */
.tour { padding-block: 8px 88px; }
.tour-lede { color: var(--fg-2); font-weight: 300; margin-top: 10px; }
.tour-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: 1120px; margin: 36px auto 0; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: thin; }
.tour-item { margin: 0; scroll-snap-align: start; display: grid; gap: 16px; align-content: start; }
.frame { border-radius: 34px; background: #2B2D33; padding: 8px; box-shadow: 0 18px 40px rgba(23, 24, 28, .14); }
.frame img { width: 100%; aspect-ratio: 390 / 844; border-radius: 27px; background: #F7F5F3; }
.tour-item figcaption { display: grid; gap: 4px; }
.tour-item b { font-weight: 500; font-size: 18px; }
.tour-item span { color: var(--fg-2); font-weight: 300; font-size: 15px; }

/* Facts ----------------------------------------------------------------------------------------------------- */
.facts { background: var(--surface); border-block: 1px solid var(--line); padding-block: 72px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.fact { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); }
.fact:last-child { border-top-color: var(--red); }
.fact h3 { font-size: 19px; font-weight: 500; }
.fact p { color: var(--fg-2); font-weight: 300; font-size: 16px; }

/* Shops ----------------------------------------------------------------------------------------------------- */
.partner { background: var(--red); color: #FFFFFF; padding-block: 80px; }
.partner-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.partner .eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 12px; }
.partner h2 { margin-bottom: 16px; }
.partner p { font-weight: 300; max-width: 38em; }
.partner-cta { display: grid; gap: 14px; justify-items: start; }
.app-name { font-weight: 600; font-size: 20px; }

/* Footer ---------------------------------------------------------------------------------------------------- */
.foot { background: var(--ink); color: var(--on-ink-2); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot .copy { margin-inline-start: auto; }

/* Arabic ---------------------------------------------------------------------------------------------------- */
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .partner .eyebrow { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .store { padding: 10px 14px 10px 18px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Narrow screens -------------------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "pitch" "phone"; }
  .top { padding-bottom: 28px; }
  .pitch { padding-bottom: 48px; }
  .phone { width: min(100%, 300px); }
  .steps { padding-block: 64px; }
  .steps ol { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour { padding-bottom: 64px; }
  .tour-strip { grid-auto-columns: 62%; gap: 18px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .store { min-width: 0; flex: 1 1 160px; }
  .foot .copy { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
