/* CLAYM website. Colours and type match the app. Uses logical properties (inline-start/end),
   so right-to-left languages work without extra rules. */
:root {
  --forest: #1E3A2B; --night: #16261D; --moss: #2F5A40; --lime: #D7EA77; --lime-soft: #EFF5C9;
  --orange: #F26B1D; --cream: #F6F3EA; --sand: #ECE7D9; --line: #DDD8C9; --ink: #1B1F1C;
  --text: #3c423e; --muted: #5d635e; --green: #2E8B57; --blue: #2F6FEB;
  --display: Archivo, "Segoe UI", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.5; }
a { color: var(--forest); }
a:hover { color: var(--night); }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--forest); margin: 0; }
h1 { font-weight: 900; font-size: clamp(38px, 6vw, 64px); line-height: 1.03; }
h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
h3 { font-size: 21px; }
p { margin: 0; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.logo span { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 3px; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--forest); color: var(--cream); }
.pill:hover { color: #fff; background: var(--night); }

.campaign { display: none; background: var(--forest); color: var(--cream); padding: 12px 24px; text-align: center; font-size: 15px; }
.campaign.show { display: block; }
.campaign a { color: var(--lime); font-weight: 600; margin-inline-start: 6px; }

.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text > p { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 560px; }
.badge { align-self: flex-start; background: var(--lime-soft); color: var(--forest); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.small { font-size: 14px; color: var(--muted); }

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; }
.store:hover { color: #fff; background: #000; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; }
.store b { font-size: 17px; font-weight: 600; }

.phone-area { flex: 1 1 360px; display: flex; justify-content: center; position: relative; }
.phone { width: 300px; height: 610px; border-radius: 46px; background: #111; padding: 12px; }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--sand); display: flex; flex-direction: column; }
.screen svg { width: 100%; height: 430px; display: block; }
.sheet { background: #fff; border-start-start-radius: 22px; border-start-end-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sheet-row { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 22px; }
.toast { position: absolute; top: 80px; inset-inline-end: 4%; background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.08); font-size: 13px; line-height: 1.3; }
.toast i { font-style: normal; width: 36px; height: 36px; border-radius: 10px; background: var(--lime); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; color: var(--forest); }

.band { background: #fff; padding-block: 80px; }
.band-dark { background: var(--forest); color: var(--cream); padding-block: 80px; }
.band-dark h2 { color: var(--lime); font-weight: 900; font-size: clamp(32px, 4.4vw, 48px); }
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 48px; }
.center { text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--cream); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card p, .outline p { line-height: 1.6; color: var(--text); }
.num { font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--orange); }
.outline { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split p { font-size: 18px; line-height: 1.6; color: var(--text); }
.progress-card { background: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bar { height: 12px; border-radius: 999px; background: var(--sand); }
.bar > div { height: 12px; border-radius: 999px; background: var(--green); }
.row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }

.faq { display: flex; flex-direction: column; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; background: #fff; }
summary { font-weight: 600; cursor: pointer; }
details p { margin-top: 10px; line-height: 1.6; color: var(--text); }

.cta { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta > div:first-child { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.qr { display: flex; gap: 16px; align-items: center; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 18px; }
.qr p { font-size: 15px; line-height: 1.4; max-width: 170px; }

.site-footer { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; padding-block: 28px; font-size: 14px; color: var(--muted); }
.langs { display: flex; gap: 12px; flex-wrap: wrap; margin-inline-start: auto; }
.langs a[aria-current] { font-weight: 700; text-decoration: none; }

/* Forum page: reading layout */
.article { padding-block: 32px 24px; display: flex; flex-direction: column; gap: 22px; }
.lead { font-family: "Source Serif 4", Georgia, serif; font-size: 22px; line-height: 1.6; color: var(--text); }
.article ol { margin: 0; padding-inline-start: 22px; font-family: "Source Serif 4", Georgia, serif; font-size: 20px; line-height: 1.7; color: var(--text); }
.article ol b { font-family: var(--body); color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 16px; }
.facts > div { flex: 1 1 200px; background: #fff; border-radius: 18px; padding: 20px; }
.facts b { font-family: var(--display); font-size: 28px; color: var(--forest); }
.map-figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.map-figure svg { width: 100%; height: auto; border-radius: 22px; display: block; }
.map-figure figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.endcard { background: var(--forest); color: var(--cream); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-block: 40px 64px; }
.endcard h2 { color: var(--lime); font-weight: 900; }

/* Waiting list */
.pill-big { min-height: 52px; padding: 14px 26px; font-size: 17px; border: 0; cursor: pointer; font-family: var(--body); }
.signup { display: flex; flex-direction: column; gap: 14px; background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; text-align: start; }
.signup h2 { color: var(--forest); }
.signup p { color: var(--text); line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input { font: inherit; font-weight: 400; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field select { font: inherit; font-weight: 400; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.at-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding-inline-start: 14px; background: #fff; }
.at-input span { color: var(--muted); font-weight: 700; }
.at-input input { border: 0; min-height: 46px; }
.at-input:focus-within { outline: 2px solid var(--forest); outline-offset: 1px; }
.field small { font-weight: 400; color: var(--muted); }
.field small.ok { color: var(--green); } .field small.bad { color: #b42318; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text); }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--forest); }
.form-msg { font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: var(--green); } .form-msg.bad { color: #b42318; }
.band-dark .signup { margin-block: 0; }
.endcard .signup { width: 100%; }

/* /worldmap */
.worldmap { padding-block: 16px 0; }
.worldmap-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-block-end: 28px; }
.worldmap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: stretch; }
.worldmap-map { position: relative; min-height: 560px; border-radius: 24px; overflow: hidden; background: #DCE6E4; }
.worldmap-fallback { padding: 24px; color: var(--muted); }
.worldmap-side { background: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.worldmap-side h2 { font-size: 22px; }
.worldmap-legend { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.worldmap-legend span { display: flex; align-items: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.dot.yes { background: var(--green); }
.dot.no { background: #C9483B; }
.worldmap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.worldmap-list button { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--cream); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; text-align: start; }
.worldmap-list button:hover, .worldmap-list button:focus-visible { background: var(--lime-soft); }
.worldmap-list button::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: none; }
.worldmap-list b { flex: 1; font-weight: 600; }
.worldmap-list span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.worldmap-total { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; }
.worldmap-total b { font-family: var(--display); font-size: 28px; color: var(--forest); }
.worldmap-total span { font-size: 14px; color: var(--muted); }
.worldmap-popup .maplibregl-popup-content { padding: 8px 12px; border-radius: 10px; font-family: var(--body); display: flex; flex-direction: column; gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.worldmap-popup b { font-size: 15px; color: var(--ink); }
.worldmap-popup .yes { color: var(--green); font-size: 13px; font-weight: 600; }
.worldmap-popup .no { color: #B23A2E; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) {
  .worldmap-grid { grid-template-columns: 1fr; }
  .worldmap-map { min-height: 0; height: 62vh; }
}
.worldmap-svg { display: block; width: 100%; height: 100%; min-height: inherit; background: #DCE6E4; }
.worldmap-svg path:hover { stroke: var(--forest); stroke-width: 1.5; }
