/* DWS site. Brand colors from Mezanya (navy #23308F, cream #FFF4DC, amber #F7B538).
   Mobile-first; logical properties only, so RTL mirrors for free. */

@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/readex-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF,
    U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/readex-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f3eee3;
  --ink: #141a3e;
  --ink-2: #4a4f68;
  --brand: #23308f;
  --brand-text: #23308f;
  --on-brand: #fff4dc;
  --cream: #fff4dc;
  --amber: #f7b538;
  --amber-ink: #7a4f00;
  --line: rgba(20, 26, 62, 0.12);
  --shadow: 0 1px 2px rgba(20, 26, 62, 0.06), 0 12px 32px rgba(20, 26, 62, 0.08);
  --r-card: 22px;
  --r-pill: 999px;
  --gutter: 16px;
  --max: 1080px;
  --font: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0e26;
    --surface: #141839;
    --surface-2: #1a1f4a;
    --ink: #f6f0e2;
    --ink-2: #bcbfd6;
    --brand: #fff4dc;
    --brand-text: #b8c0ff;
    --on-brand: #1b2470;
    --amber-ink: #f7b538;
    --line: rgba(255, 244, 220, 0.13);
    --shadow: 0 0 0 1px rgba(255, 244, 220, 0.06), 0 12px 32px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-wrap: break-word;
}

:lang(ar) body,
body:lang(ar) {
  line-height: 1.75;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: var(--brand-text);
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

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

p {
  margin: 0;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  inset-block-start: -100px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  inset-block-start: 8px;
}

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

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-block-size: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand .dot {
  inline-size: 0.42em;
  block-size: 0.42em;
  border-radius: 3px;
  background: var(--amber);
  align-self: flex-end;
  margin-block-end: 0.32em;
}
.brand img {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 9px;
}
.brand picture img {
  inline-size: auto;
  block-size: 24px;
  border-radius: 0;
}
:lang(ar) .brand picture img {
  block-size: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
}
.nav a:hover {
  background: var(--surface-2);
}
.nav .lang {
  border: 1px solid var(--line);
  font-weight: 500;
}
.nav .hide-sm {
  display: none;
}

/* Sections */
main section {
  padding-block: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 16px;
  color: var(--amber-ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:lang(ar) .eyebrow {
  letter-spacing: 0;
  font-size: 0.95rem;
}
.eyebrow::before {
  content: '';
  inline-size: 18px;
  block-size: 2px;
  background: currentColor;
  border-radius: 2px;
}

.h1 {
  font-size: clamp(2.1rem, 1.3rem + 4.2vw, 3.6rem);
}
.h2 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem);
  margin-block-end: 12px;
}
.lead {
  margin-block-start: 18px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-inline-size: 36em;
}
.sub {
  color: var(--ink-2);
  max-inline-size: 38em;
}

.hero {
  padding-block: 32px 48px;
}

/* Buttons */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 52px;
  padding-inline: 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.btn svg {
  inline-size: 18px;
  block-size: 18px;
  flex: none;
}
:dir(rtl) .btn .arrow {
  transform: scaleX(-1);
}

/* Cards and grids */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-block-start: 28px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-block: 14px 8px;
}
.feature p {
  color: var(--ink-2);
  font-size: 1rem;
}
.icon {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand-text);
}
.icon svg {
  inline-size: 22px;
  block-size: 22px;
}

/* The Mezanya "spend up to" card: the app's hero sentence with the number left blank. */
.spend {
  position: relative;
  overflow: hidden;
  background: #23308f;
  color: #fff4dc;
  border: 0;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.spend .label {
  font-size: 0.9rem;
  opacity: 0.85;
}
.spend .big {
  margin-block: 10px 14px;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}
.spend .blank {
  display: inline-block;
  min-inline-size: 4.2em;
  padding-inline: 0.25em;
  border-block-end: 3px solid #f7b538;
  color: #f7b538;
  text-align: center;
  unicode-bidi: isolate;
}
.spend .note {
  font-size: 0.95rem;
  opacity: 0.85;
}
.spend .meter {
  position: relative;
  block-size: 8px;
  margin-block-start: 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 244, 220, 0.18);
}
.spend .meter::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: 38%;
  border-radius: inherit;
  background: #fff4dc;
}
.spend .meter::after {
  content: '';
  position: absolute;
  inset-block: -4px;
  inset-inline-start: 52%;
  inline-size: 2px;
  background: #f7b538;
}
.hero-grid > .spend {
  margin-block-start: 40px;
}
.spend .mark {
  position: absolute;
  inset-inline-end: -34px;
  inset-block-start: -34px;
  inline-size: 104px;
  opacity: 0.1;
}

/* Balance mark (DWS hero) */
.scale {
  inline-size: min(100%, 220px);
  margin-block-start: 40px;
  margin-inline: auto;
  color: var(--brand);
}
.scale .beam {
  transform-origin: 512px 510px;
  animation: settle 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes settle {
  0% {
    transform: rotate(-9deg);
  }
  45% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-1.5deg);
  }
  100% {
    transform: rotate(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scale .beam {
    animation: none;
  }
  .btn {
    transition: none;
  }
}

/* Product card on the home page */
.product {
  display: grid;
  gap: 20px;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.product .body {
  padding: 24px;
}
.product .head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 14px;
}
.product .head img {
  inline-size: 56px;
  block-size: 56px;
  border-radius: 14px;
}
.product .head picture img {
  inline-size: auto;
  block-size: 26px;
  border-radius: 0;
}
:lang(ar) .product .head picture img {
  block-size: 34px;
}
.product .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 16px;
  padding: 0;
  list-style: none;
}
.product .tags li {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.product .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 20px;
  color: var(--brand-text);
  font-weight: 600;
}
.product .go svg {
  inline-size: 18px;
  block-size: 18px;
}
:dir(rtl) .product .go svg {
  transform: scaleX(-1);
}
.product .side {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: #23308f;
}
.product .side .spend {
  box-shadow: none;
  inline-size: 100%;
  max-inline-size: 360px;
}

.more {
  margin-block-start: 16px;
  padding: 18px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* Values list */
.values {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--line);
}
.values li {
  display: grid;
  gap: 4px;
  padding-block: 20px;
  border-block-end: 1px solid var(--line);
}
.values strong {
  font-weight: 600;
  font-size: 1.1rem;
}
.values span {
  color: var(--ink-2);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 60px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  background: var(--amber);
  color: #141a3e;
  font-weight: 700;
}
.steps h3 {
  font-size: 1.15rem;
  margin-block: 6px 6px;
}
.steps p {
  color: var(--ink-2);
}

/* Screenshots in device frames (a demo household, light theme). */
.phones {
  display: flex;
  gap: 20px;
  margin-block-start: 28px;
  padding-block-end: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.phone {
  flex: none;
  inline-size: 220px;
  margin: 0;
  scroll-snap-align: start;
}
.phone .frame {
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 38px;
  background: #141a3e;
  box-shadow: var(--shadow);
}
.phone .screen {
  block-size: 100%;
  overflow: hidden;
  border-radius: 29px;
  background: var(--surface-2);
}
.phone .screen img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.phone figcaption {
  margin-block-start: 12px;
  text-align: center;
  font-weight: 600;
}

/* FAQ */
.faq {
  margin-block-start: 24px;
  border-block-start: 1px solid var(--line);
}
.faq details {
  border-block-end: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 64px;
  padding-block: 14px;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-text);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '−';
}
.faq .a {
  padding-block-end: 20px;
  color: var(--ink-2);
  max-inline-size: 44em;
}
.faq .a p + p {
  margin-block-start: 10px;
}

/* Closing call to action */
.closing {
  text-align: center;
}
.closing .card {
  padding: 40px 24px;
  background: var(--surface-2);
  border: 0;
}
.closing .ctas {
  justify-content: center;
}
.closing .sub {
  margin-inline: auto;
  margin-block-start: 10px;
}


/* Footer */
.foot {
  margin-block-start: 32px;
  padding-block: 32px 40px;
  border-block-start: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.foot .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  color: var(--ink-2);
  display: inline-block;
  padding-block: 10px;
}

/* 404 */
.lost {
  display: grid;
  gap: 24px;
  padding-block: 64px;
}
.lost .card {
  display: grid;
  gap: 14px;
}

@media (min-width: 560px) {
  :root {
    --gutter: 24px;
  }
  .nav .hide-sm {
    display: inline-flex;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .steps li {
    padding-inline-start: 0;
    padding-block-start: 58px;
  }
}

@media (min-width: 900px) {
  main section {
    padding-block: 72px;
  }
  .hero {
    padding-block: 56px 72px;
  }
  .scale {
    inline-size: min(100%, 360px);
    margin-block-start: 0;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .hero-grid > .spend {
    margin-block-start: 0;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .product {
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
  }
  .product .body {
    padding: 36px;
  }
  .phones {
    justify-content: center;
    overflow: visible;
  }
  .phone {
    inline-size: 240px;
  }
  .split {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
  }
  .split .faq,
  .split .values {
    margin-block-start: 0;
  }
  .lost {
    grid-template-columns: 1fr 1fr;
  }
}
