/* dmaasd.org — shared styles. Large type by default: many members are older. */
:root {
  --primary: #6750a4;
  --primary-strong: #533f8f;
  --on-primary: #ffffff;
  --accent: #6750a4;
  --bg: #fffbfe;
  --surface: #ffffff;
  --surface-2: #f7f3fc;
  --text: #1c1b1f;
  --text-2: #49454f;
  --muted: #666666;
  --border: #e0dce6;
  --field-border: #79747e;
  --error: #b3261e;
  --error-bg: #fdecea;
  --success: #0b7a3e;
  --success-bg: #e6f4ec;
  --info-bg: #e3f2fd;
  --info-text: #1565c0;
  --eth-green: #078930;
  --eth-yellow: #fcdd09;
  --eth-red: #da121a;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 24px rgb(60 40 120 / 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6750a4;
    --primary-strong: #7a63b8;
    --accent: #d0bcff;
    --bg: #1c1b1f;
    --surface: #2b2930;
    --surface-2: #352e45;
    --text: #e6e1e5;
    --text-2: #cac4d0;
    --muted: #b8b2c0;
    --border: #49454f;
    --field-border: #938f99;
    --error: #f2b8b5;
    --error-bg: #3b1f1e;
    --success: #7fd6a4;
    --success-bg: #183325;
    --info-bg: #1e3a5f;
    --info-text: #90caf9;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Ethiopic", Ubuntu, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Ethiopian-colors stripe from the logo, used once at the very top. */
.stripe { height: 6px; background: linear-gradient(90deg, var(--eth-green) 0 33.3%, var(--eth-yellow) 33.3% 66.6%, var(--eth-red) 66.6%); }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 600; }
.nav a[aria-current="page"], .nav a:hover { background: var(--surface-2); color: var(--accent); }
.nav a.nav-cta { background: var(--primary); color: var(--on-primary); }
.nav a.nav-cta:hover { background: var(--primary-strong); color: var(--on-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
}
.btn:hover { background: var(--primary-strong); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-outline { background: transparent; color: var(--accent); border-color: currentColor; }
.btn-outline:hover { background: var(--surface-2); }
.btn-block { width: 100%; }

/* Home */
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 400px at 80% -10%, var(--surface-2), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--text-2); max-width: 34em; }
.eyebrow { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 8px; }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; min-height: 60px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid #555;
}
.store-btn svg { width: 28px; height: 28px; flex: none; fill: #fff; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.85; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.15rem; line-height: 1.15; }
.store-btn:hover { background: #222; }
.phones { position: relative; display: flex; justify-content: center; }
.phone { width: 230px; border-radius: 34px; border: 8px solid #1c1b1f; box-shadow: var(--shadow); overflow: hidden; background: #000; }
.phone + .phone { margin-left: -60px; margin-top: 60px; }

.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-2); margin: 0; }
.pay-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pay-band p { color: var(--text-2); max-width: 36em; margin: 0; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Payment form */
.page-head { padding: 40px 0 8px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 16px 0 24px; }
fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
legend { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; padding: 0; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 0.9rem; margin-right: 8px; vertical-align: 2px; }
.purposes { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 16px 18px 16px 52px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); }
.choice span::before { content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--field-border); background: var(--surface); }
.choice strong { display: block; }
.choice small { color: var(--text-2); font-size: 0.9rem; }
.choice input:checked + span { border-color: var(--accent); background: var(--surface-2); }
.choice input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip { min-height: 52px; min-width: 88px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; color: var(--text);
  background: var(--surface); border: 2px solid var(--field-border); border-radius: 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--text-2); }
.money input { padding-left: 34px; font-size: 1.25rem; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); margin-top: 8px; flex-wrap: wrap; }
.summary .total { font-size: 1.8rem; font-weight: 800; }
.alert { border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.alert-error { background: var(--error-bg); color: var(--error); font-weight: 600; }
.alert-info { background: var(--info-bg); color: var(--info-text); }
.alert-success { background: var(--success-bg); color: var(--success); }
.secure { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; margin-top: 16px; }
.secure svg { flex: none; width: 24px; height: 24px; color: var(--success); margin-top: 2px; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.methods li { border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--text-2); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; }
.code-row .btn { flex: none; min-height: 56px; }
.field-error { color: var(--error); font-weight: 600; margin: 8px 0 0; }
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.member-list .who { flex: 1; min-width: 0; }
.member-list .who strong { display: block; }
.member-list .who small { color: var(--text-2); }
.member-list .amt { font-weight: 800; white-space: nowrap; }
.member-list .remove { font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 10px 6px; cursor: pointer; text-decoration: underline; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.check input { width: 26px; height: 26px; flex: none; margin: 1px 0 0; accent-color: var(--primary); }
.hidden { display: none !important; }
.section-lead { color: var(--text-2); font-size: 1.1rem; max-width: 36em; }
.spaced { margin-top: 40px; }
.center { text-align: center; }
.big-icon { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.big-icon svg { width: 46px; height: 46px; }
.receipt { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; text-align: left; max-width: 380px; margin: 20px auto; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .phone { width: 150px; border-width: 6px; border-radius: 24px; }
  .phone + .phone { margin-left: -40px; margin-top: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
}
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav a.nav-cta { padding: 10px 16px; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 64px; }
  .brand img { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .choice span { transition: background-color 0.15s, border-color 0.15s; }
}
