/* watermelonwarriors.io — same family as the donor accountability page
   (frontend/src/pages/Accountability.tsx): mint page, white rounded cards, green/red/ink.
   One 8 px scale: sections 96/56, card padding 24, gaps 16/24. Type: h2 40/28, body 18/16, small 14.
   Logical properties throughout so dir="rtl" pages mirror exactly. Phone first. */

:root {
  --green: #48A078;
  --green-deep: #256A49;   /* text on tints: 5.2:1 on the mint tint, 5.8:1 on white */
  --red: #E8505B;
  --red-deep: #C9343F;     /* solid button: 5.2:1 with white */
  --ink: #323734;
  --ink-soft: #3C4F44;
  --muted: #5B6E63;        /* 5.5:1 on white, 4.9:1 on mint */
  --line: #8C9B91;
  --mint: #EAF5ED;
  --mint-deep: #DCEDE2;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(50, 55, 52, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, "Noto Sans", "Noto Sans Arabic", "Noto Naskh Arabic", sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 56px; --s7: 96px;
  --section: var(--s6);
  --gap: var(--s2);
  --bar-h: 56px;
}
@media (min-width: 768px) { :root { --section: var(--s7); --gap: var(--s3); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--mint); overflow-x: clip;
  padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { body { font-size: 18px; padding-block-end: 0; } }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
@media (min-width: 768px) { h1 { font-size: 52px; } h2 { font-size: 40px; } h3 { font-size: 22px; } }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
p { margin: 0; }
p + p { margin-block-start: var(--s2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.green { color: var(--green-deep); }
.red { color: var(--red); }

.wrap { max-width: 1152px; margin-inline: auto; padding-inline: var(--s2); }
.narrow { max-width: 720px; }
section { padding-block: var(--section); }
.sec-head { text-align: center; margin-block-end: var(--s4); }
.sec-head h2 + p { margin-block-start: var(--s1); }
@media (min-width: 768px) { .sec-head { margin-block-end: var(--s5); } }

.card { background: var(--white); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); }

/* skip link */
.skip { position: absolute; inset-inline-start: var(--s2); inset-block-start: -80px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-block-start: var(--s2); }

/* buttons: labels never wrap */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 20px; border: 0; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: #B32B36; }
.btn-green-tint { background: rgba(72, 160, 120, .12); color: var(--green-deep); }
.btn-green-tint:hover { background: rgba(72, 160, 120, .22); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn-lg { font-size: 18px; min-height: 56px; padding: 14px 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.checkout-note { font-size: 14px; color: var(--muted); }

/* header */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: rgba(234, 245, 237, .92); backdrop-filter: blur(10px); border-block-end: 1px solid var(--mint-deep); }
.bar { display: flex; align-items: center; gap: var(--s1); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand .melon { width: 30px; height: 30px; }
.brand span { white-space: nowrap; }
details.menu, details.lang { position: relative; }
details.menu > summary, details.lang > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 15px;
}
details.menu > summary::-webkit-details-marker, details.lang > summary::-webkit-details-marker { display: none; }
details.menu > summary:hover, details.lang > summary:hover { background: rgba(72, 160, 120, .12); }
details.menu > ul, details.lang > ul {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); min-width: 200px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
details.menu > ul a, details.lang > ul a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 16px; }
details.menu > ul a:hover, details.lang > ul a:hover { background: var(--mint); }
details.lang > ul a[aria-current] { color: var(--green-deep); font-weight: 600; }
@media (min-width: 900px) {
  details.menu > summary { display: none; }
  details.menu > ul { position: static; display: flex; gap: 4px; background: none; box-shadow: none; padding: 0; min-width: 0; }
  details.menu > ul a { padding: 8px 12px; font-size: 15px; }
}
@media (max-width: 639px) {
  .site-header .btn-red { display: none; }           /* the sticky bar carries Donate on phones */
  details.lang > summary span { display: none; }
  details.lang > summary { padding-inline: 10px; }
}

/* hero */
.hero { padding-block: var(--s5) var(--section); }
.hero-grid { display: grid; gap: var(--s4); align-items: center; }
.hero .eyebrow { color: var(--green-deep); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; margin-block-end: var(--s2); }
[dir="rtl"] .hero .eyebrow { letter-spacing: 0; text-transform: none; }
.hero h1 { margin-block-end: var(--s2); }
.hero .lead { font-size: 18px; margin-block-end: var(--s3); }
@media (min-width: 768px) { .hero .lead { font-size: 22px; } }
.hero .cta-row { margin-block-end: var(--s2); }
.micro { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.micro svg { color: var(--green); flex: none; }
.hero-card { max-width: 400px; width: 100%; margin-inline: auto; }
@media (min-width: 900px) {
  .hero { padding-block: var(--s7) var(--section); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s6); }
  .hero-card { margin-inline: 0 auto; }
}

/* the accountability mock card (mirrors the donor page) */
.report { background: var(--white); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); position: relative; }
.report-tag { position: absolute; inset-inline-end: var(--s2); inset-block-start: 14px; font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 8px; }
.report-head { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-block-end: var(--s2); }
.report-head .melon { width: 24px; height: 24px; }
.pills { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-block-end: var(--s2); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; }
.pill-green { background: rgba(72, 160, 120, .13); color: var(--green-deep); }
.pill-plan { background: rgba(72, 160, 120, .1); color: var(--green-deep); font-size: 12px; font-weight: 500; padding: 2px 10px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--green); display: inline-block; }
.dot-lg { width: 12px; height: 12px; margin-inline-end: 8px; vertical-align: middle; }
.big-num { font-size: 40px; font-weight: 700; text-align: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.report .delivered { font-size: 15px; text-align: center; margin-block: var(--s2); }
.meter { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-block-end: 6px; }
.report .bar { height: 10px; background: var(--mint); border-radius: 999px; overflow: hidden; min-height: 0; }
.bar-fill { height: 100%; width: 52%; background: var(--green); border-radius: 999px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: var(--s2); }
.stats div { background: rgba(234, 245, 237, .6); border-radius: 12px; padding: 10px; text-align: center; }
.stats strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
.report-h { font-size: 14px; font-weight: 600; margin-block: var(--s2) var(--s1); }
.journey li { display: flex; gap: 10px; align-items: center; padding-block: 4px; font-size: 14px; }
.jicon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(140, 155, 145, .15); font-style: normal; flex: none; font-size: 14px; }
.jicon-green { background: rgba(72, 160, 120, .15); }
.jicon-red { background: rgba(232, 80, 91, .15); }

/* trust band */
.trust-band { padding-block: var(--s4); background: var(--white); text-align: center; }
.trust-line { font-size: 20px; font-weight: 600; line-height: 1.35; max-width: 880px; margin-inline: auto; }
@media (min-width: 768px) { .trust-line { font-size: 24px; } }

/* tatreez band */
.tatreez { background-color: var(--mint); background-image: url("/assets/brand/tatreez.svg"); background-size: 96px 96px; }

/* impact */
.live-grid { display: grid; gap: var(--gap); margin-block-end: var(--gap); }
@media (min-width: 640px) { .live-grid { grid-template-columns: 1fr 1fr; } }
.live-card { text-align: center; }
.live-num { font-size: 44px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-block-end: 6px; }
@media (min-width: 768px) { .live-num { font-size: 52px; } }
.live-label { font-weight: 600; }
.live-card .small { margin-block-start: 4px; }
.dark-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); text-align: center; }
.figures li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .figures { grid-template-columns: repeat(3, 1fr); } .figures li:last-child { grid-column: auto; } }
.figures strong { display: block; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
@media (min-width: 768px) { .figures strong { font-size: 40px; } }
.figures span { font-size: 14px; color: #CFE2D6; }
.figures-note { text-align: center; color: #CFE2D6; font-size: 14px; margin-block-start: var(--s3); }
.quote { margin: var(--s4) auto 0; max-width: 640px; text-align: center; font-size: 16px; }
.quote p { font-style: italic; }
.quote footer { margin-block-start: 4px; }

/* how it works */
.steps { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { display: flex; flex-direction: column; gap: var(--s1); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(72, 160, 120, .15); color: var(--green-deep); font-weight: 700; margin-block-end: var(--s1); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 16px; }

/* give */
.give-card { max-width: 960px; margin-inline: auto; }
.give-card .lead { text-align: center; font-size: 18px; margin-block-end: var(--s3); }
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 var(--s3); max-width: 480px; margin-inline: auto; }
.freq legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.freq label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 2px solid var(--mint-deep); border-radius: 12px; font-weight: 600; cursor: pointer; background: var(--white); }
.freq input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.freq label:has(input:checked) { border-color: var(--green); background: rgba(72, 160, 120, .1); color: var(--green-deep); }
.freq label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.badge { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-block-end: var(--s3); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; min-height: 116px; padding: var(--s2); border: 2px solid var(--mint-deep); border-radius: 12px; background: var(--mint); position: relative; }
.tile strong { font-size: 28px; line-height: 1.1; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.tile span { font-size: 14px; color: var(--muted); }
.tile input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.tile { cursor: pointer; }
label.tile:has(input:checked) { border-color: var(--green); background: var(--white); }
label.tile:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.tile-other input[type="number"] { width: 100%; max-width: 140px; min-height: 40px; font: inherit; font-size: 18px; font-weight: 600; text-align: center; padding: 4px 8px; border: 2px solid var(--mint-deep); border-radius: 8px; color: var(--ink); background: var(--white); }
.tile-other input[type="number"]:focus { border-color: var(--green); outline: none; }
.give-action { text-align: center; }
.give-action .btn { min-width: 220px; }
.give-action .hint { font-size: 14px; color: var(--muted); margin-block-start: var(--s1); }
.give-action .checkout-note { margin-block-start: 4px; }
.give-action .fees { font-size: 14px; font-weight: 600; color: var(--green-deep); margin-block-start: var(--s2); display: flex; justify-content: center; align-items: center; gap: 6px; }
.give-action .fees svg { flex: none; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-block-start: var(--s2); }
.trust-row li { display: inline-flex; align-items: center; gap: 4px; }
.trust-row svg { color: var(--green); flex: none; }
.give-action .manage { font-size: 14px; margin-block-start: var(--s2); }
/* the button label follows the toggle without JS */
.give-card:has(#freq-once:checked) .lbl-monthly { display: none; }
.give-card:not(:has(#freq-once:checked)) .lbl-once { display: none; }

/* faq */
.faq-list { display: grid; gap: 8px; }
.faq-item { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 14px var(--s3); min-height: 48px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-deep); font-size: 22px; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 var(--s3) var(--s2); color: var(--ink-soft); font-size: 16px; }

/* story */
.timeline { position: relative; padding-inline-start: 28px; max-width: 640px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 9px; inset-block: 8px; width: 2px; background: var(--mint-deep); }
.timeline li { position: relative; padding-block-end: var(--s3); }
.timeline li:last-child { padding-block-end: 0; }
.tl-dot { position: absolute; inset-inline-start: -28px; inset-block-start: 6px; width: 20px; height: 20px; border-radius: 999px; background: var(--white); border: 3px solid var(--green); }
.timeline li:last-child .tl-dot { background: var(--green); }
.tl-date { font-size: 14px; font-weight: 600; color: var(--green-deep); }

/* instagram */
.ig { background: var(--white); }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-block-end: var(--s4); }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-card { display: flex; flex-direction: column; background: var(--mint); border-radius: var(--radius); overflow: hidden; }
.ig-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; }
.ig-body { padding: var(--s2); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ig-date { font-size: 13px; color: var(--muted); }
.ig-text { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-card a { color: inherit; text-decoration: none; }
.ig .center .btn { margin-inline: auto; }

/* need an eSIM */
.need-card { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .need-card { grid-template-columns: 1fr 1fr; } }
.need-col h2, .need-col h3 { margin-block-end: var(--s1); }
.need-col p + p { margin-block-start: var(--s1); }
.need-col p:last-child { font-weight: 600; }
.partner { grid-column: 1 / -1; border-block-start: 1px solid var(--mint-deep); padding-block-start: var(--s2); font-size: 16px; }

/* learn + travel: three equal cards, action pinned to the bottom */
.learn { background: var(--white); }
.learn-grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .learn-grid { grid-template-columns: repeat(3, 1fr); } }
.learn .card { background: var(--mint); box-shadow: none; display: flex; flex-direction: column; gap: var(--s1); }
.learn .card p { flex: 1; font-size: 16px; }
.learn .card .btn { align-self: flex-start; margin-block-start: var(--s2); }
.learn .code { background: var(--white); padding: 6px 10px; border-radius: 8px; font-weight: 700; letter-spacing: .05em; font-size: 15px; display: inline-block; margin-block-start: 4px; }

/* final */
.final .lead { font-size: 18px; margin-block: var(--s2) var(--s3); }

/* footer */
.site-footer { background: var(--white); padding-block: var(--s5); border-block-start: 1px solid var(--mint-deep); font-size: 15px; }
.foot-grid { display: grid; gap: var(--s3); margin-block-end: var(--s3); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr auto; } }
.site-footer .brand { margin-block-end: 4px; }
.site-footer .muted { font-size: 14px; }
.foot-links { display: flex; flex-direction: column; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-langs { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-block-end: var(--s2); }
.foot-langs ul { display: contents; }
.foot-langs a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-langs a[aria-current] { font-weight: 700; }

/* sticky donate bar, phones only */
.sticky-donate {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: var(--bar-h); padding: 8px var(--s2); padding-block-end: calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96); border-block-start: 1px solid var(--mint-deep); box-shadow: 0 -8px 24px -12px rgba(50, 55, 52, .3);
  font-weight: 600;
}
@media (min-width: 768px) { .sticky-donate { display: none; } }

/* legal */
.legal { padding-block: var(--s5) var(--s6); }
.legal section { padding-block: var(--s2); }
.legal h1 { margin-block-end: var(--s1); }
.legal h2 { font-size: 22px; text-align: start; margin-block-end: var(--s1); }
.legal-body main { background: var(--white); border-radius: var(--radius); margin-block: var(--s4); padding: var(--s4) var(--s3); box-shadow: var(--shadow); }
@media (min-width: 640px) { .legal-body main { padding: var(--s5); } }

/* motion: only with JS present and no reduced-motion preference */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .pill-green .dot, .live-num .dot { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
}
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---- device fit (Part B4, measured at 280–1920 px; scratchpad/devices/check.mjs) ---- */
/* header: the logo never collapses; the wordmark yields first on tiny phones */
.brand { min-width: 0; }
.brand .melon { flex-shrink: 0; }
details.menu > summary, details.lang > summary { min-width: 44px; justify-content: center; }
@media (max-width: 360px) {
  .brand { font-size: 15px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  details.menu > summary { padding-inline: 8px; }
}
@media (max-width: 300px) { .brand span { display: none; } }
/* footer languages: full 44 px targets */
.foot-langs a { min-width: 44px; justify-content: center; padding-inline: 8px; }
/* give: the toggle stacks before it can overflow; every tile row shares the tallest height,
   and on phones "Other" spans the row so its line never wraps into a taller tile */
@media (max-width: 380px) { .freq { grid-template-columns: 1fr; } }
.tiles { grid-auto-rows: 1fr; }
@media (max-width: 767px) { .tiles .tile-other { grid-column: 1 / -1; } }
/* small-print floor: nothing under 13 px */
.report-tag, .pill-plan, .stats span, .badge { font-size: 13px; }
/* tiny phones: "Menu" becomes a three-line icon (the word stays as its accessible name), so the full name fits */
@media (max-width: 400px) {
  details.menu > summary { font-size: 0; gap: 0; }
  details.menu > summary::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 1px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
}
@media (max-width: 340px) { .brand { font-size: 14px; gap: 6px; } .brand .melon { width: 26px; height: 26px; } }
.tile span { text-wrap: balance; }
