/* Tadween website. System fonts only: this site makes no third-party requests. */

:root {
  --green: #225648;        /* AccentColor, light */
  --green-press: #1a4439;
  --cream: #f5e8d6;        /* the pocket in the app icon */
  --bg: #ffffff;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --surface: #f2f2f7;      /* iOS grouped background */
  --card: #ffffff;
  --rule: #e5e5ea;
  --band: #f5e8d6;
  --band-ink: #1f3a32;
  --link: #225648;
  --income: #248a3d;

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --ink: #f2f2f7;
    --muted: #a1a1a6;
    --surface: #1c1c1e;
    --card: #2c2c2e;
    --rule: #38383a;
    --band: #12291f;
    --band-ink: #e9dcc9;
    --link: #5fb39a;
    --income: #30d158;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--bg); color: var(--ink); padding: 8px 14px; border-radius: var(--r-s);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
  font: 600 19px/1 var(--font-display);
}
.brand img { width: 32px; height: 32px; border-radius: 22.5%; }

.site-nav { display: flex; gap: 22px; }
.site-nav a { color: inherit; text-decoration: none; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* On the landing page the header sits on the green hero. */
.on-green { background: var(--green); color: var(--cream); }
.on-green .site-nav a { color: var(--cream); }
.on-green :focus-visible { outline-color: var(--cream); }

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

.hero { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 9vw, 112px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 {
  font: 700 clamp(44px, 7.2vw, 84px)/0.98 var(--font-display);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero .lede {
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.5;
  max-width: 34em;
  margin: 0 0 32px;
  color: color-mix(in srgb, var(--cream) 88%, var(--green));
}

.store-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cream); color: var(--green);
}
.store-badge strong { font: 600 18px/1.2 var(--font-display); }
.store-badge span { font-size: 14px; opacity: 0.8; }

.name-note {
  margin: 28px 0 0;
  font-size: 15px;
  color: color-mix(in srgb, var(--cream) 75%, var(--green));
}
.name-note [lang="ar"] { font-size: 19px; color: var(--cream); padding: 0 2px; }

.pocket { width: min(100%, 420px); justify-self: center; overflow: visible; }
.pocket .card-drop { transform-box: fill-box; transform-origin: 50% 50%; animation: drop 1100ms cubic-bezier(0.22, 1.1, 0.36, 1) 250ms both; }

@keyframes drop {
  from { transform: translate(90px, -260px) rotate(12deg); opacity: 0; }
  30%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pocket .card-drop { transform-box: fill-box; transform-origin: 50% 50%; animation: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }

.section h2 {
  font: 700 clamp(32px, 4.4vw, 48px)/1.08 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.section-flush { padding-top: 0; }

.section .intro { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 0 32px; }

/* How it works: a sentence becomes a transaction. */

.capture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }

.ways { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.ways li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.ways b { font-weight: 600; }
.ways span { color: var(--muted); }

.demo { background: var(--surface); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); }

.said {
  margin: 0 0 18px auto;
  max-width: 85%;
  width: fit-content;
  background: var(--green); color: var(--cream);
  padding: 12px 18px;
  border-radius: 20px 20px 6px 20px;
  font-size: 18px;
}

.found { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.found svg { flex: none; margin-top: 3px; color: var(--link); }
.found p { margin: 0; }
.found small { display: block; color: var(--muted); font-size: 15px; }

.draft { background: var(--card); border-radius: var(--r-m); padding: 6px 18px; }

.draft .amount {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0 14px; border-bottom: 1px solid var(--rule);
}
.draft .amount b { font: 700 44px/1 var(--font-display); letter-spacing: -0.01em; }
.draft .amount span { font: 600 15px/1 var(--font-display); background: var(--surface); padding: 7px 12px; border-radius: 999px; }

.draft dl { margin: 0; }
.draft dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.draft dl div:last-child { border-bottom: 0; }
.draft dt { color: var(--ink); }
.draft dd { margin: 0; color: var(--muted); text-align: end; }
.chip { display: inline-block; background: #0a84ff; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 15px; }

.demo .note { margin: 16px 2px 0; font-size: 15px; color: var(--muted); }

/* Screenshots */

/* Full-bleed row: the first shot lines up with the page column, the rest run off the edge. */
.shots {
  --inset: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px var(--inset) 20px;
  scroll-padding-inline: var(--inset);
  scrollbar-width: thin;
}
.shots figure { flex: 0 0 clamp(200px, 22vw, 260px); margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 30px; border: 1px solid var(--rule); background: var(--surface); }
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shots figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* Privacy band */

.band { background: var(--band); color: var(--band-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.band .intro { color: inherit; opacity: 0.8; }
.band a { color: inherit; font-weight: 600; }

.facts { margin: 0; }
.facts div { padding: 16px 0; border-top: 1px solid color-mix(in srgb, var(--band-ink) 20%, transparent); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font: 600 19px/1.3 var(--font-display); margin-bottom: 4px; }
.facts dd { margin: 0; opacity: 0.85; }

/* Feature groups */

.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(40px, 6vw, 88px); }
.groups h3 { font: 600 22px/1.25 var(--font-display); margin: 0 0 12px; }
.groups ul { margin: 0; padding-left: 1.1em; }
.groups li { margin: 0 0 8px; }
.groups li::marker { color: var(--link); }

.langs { margin: 56px 0 0; font-size: 19px; }
.langs [lang="ar"] { font-size: 21px; }

/* ---------- Legal / help pages ---------- */

.doc { max-width: 44rem; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 64px; }
.doc h1 { font: 700 clamp(36px, 5vw, 48px)/1.1 var(--font-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font: 600 22px/1.3 var(--font-display); margin: 44px 0 10px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 1.2em; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc .summary { background: var(--surface); border-radius: var(--r-m); padding: 18px 22px; margin: 0 0 8px; }
.doc .summary p:last-child { margin: 0; }

.contact {
  background: var(--green); color: var(--cream);
  border-radius: var(--r-l); padding: 24px 26px; margin: 28px 0 8px;
}
.contact p { margin: 0 0 6px; }
.contact p:last-child { margin: 0; opacity: 0.85; font-size: 15px; }
.contact a { color: var(--cream); font: 600 20px/1.3 var(--font-display); }
.contact :focus-visible { outline-color: var(--cream); }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 32px 18px 0; position: relative;
  font: 600 19px/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

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

.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: inherit; }
.site-footer p { margin: 0; }

/* ---------- Narrow screens ---------- */

@media (max-width: 820px) {
  .hero .wrap, .capture, .band .wrap { grid-template-columns: minmax(0, 1fr); }
  .pocket { width: min(64%, 300px); grid-row: 1; }
  .groups { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 480px) {
  .site-nav { gap: 16px; }
  .ways li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .draft .amount b { font-size: 38px; }
}
