/* Jaango — jaango.org
   Colours come from the logo: navy hand, orange, sun yellow and leaf green bands. */
:root {
  --navy: #1F3466;
  --navy-soft: #E8ECF5;
  --gold: #F5A623;
  --gold-deep: #B8740D;
  --sun: #F7B928;
  --clay: #E46A36;
  --leaf: #2F9A62;
  --leaf-soft: #E2F3E9;
  --paper: #FFF8E7;
  --card: #FFFFFF;
  --line: #EEDFC0;
  --muted: #5B6585;
  --danger: #C8381B;
  --radius: 20px;
  --display: "Bricolage Grotesque", "Lexend", system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Lexend", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 17px/1.65 var(--body);
}
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabic); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 7vw, 78px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 34em; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 16px; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.langs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; font: 600 14px/1 var(--body); color: var(--muted); padding: 8px 11px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--sun); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #2A437F; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy-soft); }
.btn-wa { background: #25D366; color: #08311B; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .where { margin-top: 26px; font-size: 16px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.hero .where span { display: inline-flex; gap: 6px; align-items: center; }

/* The group circle: one seat per member, filled when she has paid this month */
.circle { position: relative; width: min(460px, 100%); margin-inline: auto; aspect-ratio: 1; }
.circle svg { width: 100%; height: 100%; overflow: visible; }
.circle .seat { transition: fill .35s ease, transform .35s ease; transform-box: fill-box; transform-origin: center; }
.circle .seat.paid { transform: scale(1.08); }
.circle .core { position: absolute; inset: 27%; border-radius: 50%; background: var(--card); box-shadow: 0 20px 50px -24px rgba(31, 52, 102, .35); display: grid; place-content: center; text-align: center; padding: 10px; }
.circle .core b { font: 800 clamp(30px, 5vw, 44px)/1 var(--display); letter-spacing: -0.02em; }
.circle .core small { display: block; font-size: 15px; color: var(--muted); margin-top: 6px; }
.circle .core .count { margin-top: 10px; font-weight: 700; color: var(--leaf); font-size: 15px; }
.circle figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }

/* Sections */
section { padding: 84px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 19px; }
.band { background: var(--navy); color: #fff; }
.band .sec-head p, .band .muted { color: #C9D2E8; }

/* Steps: a real sequence, so they are numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 18px 0 0; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--navy); font: 800 22px/1 var(--display); margin-bottom: 18px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 26px; inset-inline-start: 52px; inset-inline-end: 0; height: 2px; background: rgba(255,255,255,.22); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(1)::before { background: var(--clay); color: #fff; }
.steps li:nth-child(2)::before, .steps li:nth-child(3)::before { background: var(--sun); }
.steps li:nth-child(4)::before, .steps li:nth-child(5)::before { background: var(--leaf); color: #fff; }
.steps h3 { font-size: 20px; color: #fff; }
.steps p { margin-top: 8px; font-size: 16px; color: #C9D2E8; }

/* Financing example */
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 8px; }
.picker button { border: 2px solid var(--line); background: var(--card); color: var(--navy); font: 600 16px/1 var(--body); border-radius: 999px; padding: 12px 18px; cursor: pointer; }
.picker button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 14px 0; align-items: baseline; }
.sheet dt { padding-inline-end: 16px; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.sheet .total { border-top: 2px dashed var(--line); padding-top: 14px; }
.sheet .save { color: var(--leaf); font: 800 26px/1 var(--display); }
.months { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 22px; }
.months span { height: 34px; border-radius: 8px; background: linear-gradient(to top, var(--leaf) var(--s), var(--sun) var(--s)); }
.months-legend { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.months-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* Countries */
.countries { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.country { border-radius: var(--radius); padding: 30px; background: var(--card); border: 1px solid var(--line); }
.country .flag { font-size: 40px; line-height: 1; }
.country h3 { margin-top: 14px; }
.country p { margin-top: 8px; color: var(--muted); }
.country ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--muted); }

/* Roles strip */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.roles div { border-top: 4px solid var(--sun); padding-top: 16px; }
.roles div:nth-child(1) { border-color: var(--clay); }
.roles div:nth-child(3) { border-color: var(--leaf); }
.roles p { margin-top: 8px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font: 700 20px/1.3 var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: .8; color: var(--gold-deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Download + contact */
.get { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.get .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.contact-box { background: var(--card); color: var(--navy); border-radius: var(--radius); padding: 28px; }
.contact-box p { color: var(--muted); margin-top: 8px; }
.contact-box .btn { width: 100%; margin-top: 14px; }

footer { padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; margin-inline-start: auto; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero .wrap, .example, .get { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { margin: 0; grid-row: span 2; }
  .steps li::after { top: 52px; bottom: -26px; inset-inline-start: 25px; width: 2px; height: auto; inset-inline-end: auto; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .langs { margin-inline-start: auto; }
  .countries { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero .actions .btn { flex: 1 1 100%; }
  .sheet { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
