/* ============================================================
   Educate 10 Million — warm & human
   Palette: cream paper · terracotta · amber · deep green
   Type: Fraunces (display) · Hanken Grotesk (body) · Caveat (signature)
   ============================================================ */

:root {
  --paper: #FBF5EC;
  --paper-2: #F3EADA;
  --ink: #27201A;
  --ink-soft: #6B5F52;
  --terra: #C0522B;
  --terra-deep: #99401F;
  --amber: #E9A63C;
  --amber-soft: #F6D9A8;
  --green: #1C4A38;
  --green-deep: #123527;
  --cream: #FDF9F1;
  --line: rgba(39, 32, 26, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --font-hand: "Caveat", cursive;

  --radius: 20px;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--ink); }

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

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

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 550; line-height: 1.08; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--terra);
}

.light { color: var(--cream); }
.light em { color: var(--amber); }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.kicker.light { color: var(--amber); }

.body-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46em; }
.body-lg.light { color: rgba(253, 249, 241, 0.82); }
.center { margin-left: auto; margin-right: auto; text-align: center; }

.source { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.75; margin-top: 26px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terra);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(192, 82, 43, 0.32);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(192, 82, 43, 0.4); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

.btn-big {
  background: var(--amber);
  color: var(--ink);
  font-size: 1.2rem;
  padding: 20px 56px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
.btn-big:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(251, 245, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-num {
  display: inline-block;
  background: var(--terra);
  color: var(--cream);
  border-radius: 999px;
  padding: 1px 9px;
  margin: 0 2px;
  font-style: italic;
}

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--terra); }

.head-actions { display: flex; align-items: center; gap: 14px; }

.lang-pill {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-pill button {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-pill button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

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

.hero { position: relative; padding: clamp(48px, 8vh, 96px) 28px 80px; }

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 42% at 82% 12%, rgba(233, 166, 60, 0.28), transparent 70%),
    radial-gradient(40% 34% at 8% 88%, rgba(192, 82, 43, 0.12), transparent 70%);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 22px;
}

.lede { margin-top: 26px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-note { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--green); }

.hero-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.hero-scale strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.scale-dot { color: var(--terra); font-weight: 700; }

/* hero visual composition */

.hero-visual { position: relative; padding-bottom: 150px; }

.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(233, 166, 60, 0.55), transparent 55%),
    radial-gradient(110% 110% at 85% 90%, rgba(153, 64, 31, 0.5), transparent 60%),
    linear-gradient(160deg, #E7C08A 0%, #CE7B4A 48%, #8A4A2B 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(253, 249, 241, 0.55);
  border-radius: inherit;
  pointer-events: none;
}
.ph-tag {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cream);
  background: rgba(39, 32, 26, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph.has-img::before,
.ph.has-img::after { display: none; }

.arch { border-radius: 500px 500px var(--radius) var(--radius); }

.ph-hero { aspect-ratio: 4 / 5; width: min(92%, 460px); margin-left: auto; }

/* WhatsApp-style chat card */

.chat-card {
  position: absolute;
  left: -16px;
  bottom: 0;
  width: min(290px, 74%);
  background: #FDFBF7;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(39, 32, 26, 0.24);
  transform: rotate(-2.5deg);
  overflow: hidden;
  border: 1px solid rgba(39, 32, 26, 0.08);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--cream);
  padding: 12px 16px;
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.chat-id { display: flex; flex-direction: column; line-height: 1.25; }
.chat-id strong { font-size: 0.82rem; }
.chat-status { font-size: 0.7rem; opacity: 0.75; }

.chat-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    radial-gradient(circle at 20% 10%, rgba(28, 74, 56, 0.05), transparent 40%),
    #F1EADD;
}

.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-card.on .msg { opacity: 1; transform: none; }
.chat-card.on .msg:nth-child(1) { transition-delay: 0.15s; }
.chat-card.on .msg:nth-child(2) { transition-delay: 0.75s; }
.chat-card.on .msg:nth-child(3) { transition-delay: 1.35s; }
.chat-card.on .msg:nth-child(4) { transition-delay: 1.95s; }
.chat-card.on .msg:nth-child(5) { transition-delay: 2.6s; }
.chat-card.on .msg:nth-child(6) { transition-delay: 3.25s; }

.msg.in {
  align-self: flex-start;
  background: #FFFFFF;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}
.msg.out {
  align-self: flex-end;
  background: #D7EDCB;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}
.msg.quoted {
  background: #FFF6E3;
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
}

/* voice-note bubbles */
.msg.voice { display: flex; align-items: center; gap: 8px; width: 78%; }
.v-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 0.55rem;
  flex-shrink: 0;
  padding-left: 2px;
}
.v-wave { display: flex; align-items: center; gap: 2.5px; height: 22px; flex: 1; }
.v-wave i { flex: 1; max-width: 3px; min-width: 2px; border-radius: 2px; background: rgba(39, 32, 26, 0.35); height: 35%; }
.v-wave i:nth-child(4n + 2) { height: 80%; }
.v-wave i:nth-child(4n + 3) { height: 55%; }
.v-wave i:nth-child(4n) { height: 95%; }
.v-wave i:first-child, .v-wave i:last-child { height: 25%; }
.v-time { font-size: 0.64rem; color: var(--ink-soft); flex-shrink: 0; }

.chat-note {
  padding: 9px 14px;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--ink-soft);
  background: #FDFBF7;
  border-top: 1px solid rgba(39, 32, 26, 0.07);
  text-align: center;
}

.gloss {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.85;
}
html[lang="pt-BR"] .msg .gloss,
html[lang="pt-BR"] .tk-word .gloss { display: none; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  align-items: baseline;
  gap: 56px;
  width: max-content;
  animation: tickerScroll 46s linear infinite;
  padding-left: 24px;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tk-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tk-word {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
  text-align: center;
}
.tk-word .gloss { font-family: var(--font-body); font-size: 0.68rem; margin-top: 0; }

/* ---------- Problem ---------- */

.problem { padding: clamp(80px, 12vh, 130px) 0; }
.problem h2 { max-width: 18em; }
.problem .body-lg { margin-top: 26px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 600;
  color: var(--terra);
  line-height: 1;
}
.stat span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Teach ---------- */

.teach { padding: clamp(70px, 10vh, 120px) 0; background: var(--paper-2); }
.teach-title { text-align: center; margin-bottom: 22px; }
.teach .body-lg { text-align: center; margin-bottom: 64px; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card:nth-child(even) { transform: translateY(26px); }

.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }

.card-ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.card-ph .ph-tag { bottom: 12px; padding: 4px 11px; font-size: 0.62rem; }

/* ---------- How ---------- */

.how {
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(233, 166, 60, 0.12), transparent 60%),
    var(--green);
  padding: clamp(80px, 12vh, 130px) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 64px;
}
.step {
  border: 1px solid rgba(253, 249, 241, 0.18);
  border-radius: var(--radius);
  padding: 36px 30px;
  background: rgba(253, 249, 241, 0.04);
  transition: transform 0.3s ease, background 0.3s ease;
}
.step:hover { transform: translateY(-6px); background: rgba(253, 249, 241, 0.08); }
.step-n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--amber);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}
.step h3 { color: var(--cream); }
.step p { margin-top: 12px; color: rgba(253, 249, 241, 0.75); font-size: 0.95rem; }

.how-note {
  margin-top: 46px;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(253, 249, 241, 0.65);
}

/* ---------- Ripple ---------- */

.ripple { padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }

.ripple-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.rings {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(192, 82, 43, 0.4);
}
.ring.r1 { width: 26%; height: 26%; background: var(--terra); border: none; animation: pulse 4s ease-in-out infinite; }
.ring.r2 { width: 52%; height: 52%; animation: pulse 4s ease-in-out infinite 0.4s; }
.ring.r3 { width: 76%; height: 76%; border-color: rgba(192, 82, 43, 0.28); animation: pulse 4s ease-in-out infinite 0.8s; }
.ring.r4 { width: 100%; height: 100%; border-color: rgba(192, 82, 43, 0.18); animation: pulse 4s ease-in-out infinite 1.2s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 82, 43, 0.18); }
  50% { box-shadow: 0 0 0 14px rgba(192, 82, 43, 0); }
}

.ring-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--paper);
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-deep);
  white-space: nowrap;
  border: 1px solid rgba(192, 82, 43, 0.25);
}
.ring-label.core {
  top: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  color: var(--cream);
}

.ripple-math {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
}
.rm-block { display: flex; flex-direction: column; gap: 6px; max-width: 240px; }
.rm-n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rm-n.accent { color: var(--terra); }
.rm-block span { font-size: 0.88rem; color: var(--ink-soft); }
.rm-arrow { font-size: 2rem; color: var(--amber); font-weight: 700; }

/* ---------- Break / quote ---------- */

.break { padding: 0 0 clamp(70px, 10vh, 110px); }
.ph-wide {
  aspect-ratio: 21 / 9;
  border-radius: 0;
}
.break-quote {
  max-width: 780px;
  margin: -70px auto 0;
  position: relative;
  z-index: 3;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(39, 32, 26, 0.16);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.break-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
}
.break-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ---------- Founder ---------- */

.founder { padding: clamp(70px, 10vh, 120px) 0; background: var(--paper-2); }

.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.founder-ph { aspect-ratio: 4 / 5; width: 100%; max-width: 400px; }
.founder-caption { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.founder-caption strong { font-family: var(--font-display); font-size: 1.15rem; }
.founder-caption span { color: var(--ink-soft); font-size: 0.88rem; }
.founder-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terra);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s, transform 0.2s;
}
.founder-social svg { width: 16px; height: 16px; flex-shrink: 0; }
.founder-social:hover { color: var(--terra-deep); transform: translateX(2px); text-decoration: underline; }

.letter { margin-top: 30px; max-width: 40em; }
.letter p { margin-bottom: 22px; font-size: 1.05rem; color: #4A4036; }
.letter p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  color: var(--terra);
  font-weight: 600;
}
.signature {
  font-family: var(--font-hand);
  font-size: 2.3rem;
  color: var(--terra-deep);
  transform: rotate(-2deg);
  margin-top: 8px;
}

/* ---------- Transparency ---------- */

.trust { padding: clamp(70px, 10vh, 120px) 0; }
.trust h2 { max-width: 20em; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.trust-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
}
.trust-card h3 { color: var(--terra-deep); }
.trust-card p { margin-top: 14px; color: var(--ink-soft); font-size: 0.98rem; }
.trust-card p strong { color: var(--ink); }

/* ---------- Donate ---------- */

.donate {
  background:
    radial-gradient(50% 40% at 15% 10%, rgba(233, 166, 60, 0.2), transparent 65%),
    linear-gradient(165deg, var(--terra) 0%, var(--terra-deep) 80%);
  padding: clamp(80px, 12vh, 140px) 0;
  text-align: center;
}
.donate h2 { max-width: 16em; margin: 0 auto; }
.donate .body-lg { margin-top: 24px; }

.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1060px;
  margin: 56px auto 0;
}
.tier {
  display: block;
  text-decoration: none;
  background: rgba(253, 249, 241, 0.1);
  border: 1px solid rgba(253, 249, 241, 0.24);
  border-radius: var(--radius);
  padding: 30px 22px;
  color: var(--cream);
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.tier:hover { transform: translateY(-5px); background: rgba(253, 249, 241, 0.16); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
.tier:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.tier.featured { background: var(--cream); color: var(--ink); border-color: transparent; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); }
.tier strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
}
.tier.featured strong { color: var(--terra); }
.tier span { font-size: 0.88rem; opacity: 0.85; }
.tier.open { border-style: dashed; border-color: rgba(253, 249, 241, 0.5); }
.tier.open strong { font-size: 1.7rem; padding-top: 8px; font-style: italic; }

.donate-note { margin-top: 40px; font-size: 0.95rem; color: rgba(253, 249, 241, 0.85); }

/* ---------- Alternative Support & Modal ---------- */

.alt-support {
  max-width: 920px;
  margin: 48px auto 0;
  background: rgba(253, 249, 241, 0.08);
  border: 1px solid rgba(253, 249, 241, 0.22);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}
.alt-support:hover {
  background: rgba(253, 249, 241, 0.12);
}
.alt-support-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.alt-support-copy {
  flex: 1;
}
.alt-support-copy h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--cream);
  margin: 10px 0 8px;
}
.alt-support-copy p {
  color: rgba(253, 249, 241, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.pill-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.2);
  color: var(--amber);
  border: 1px solid rgba(245, 166, 35, 0.35);
}
.btn-secondary {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.modal-head {
  margin-bottom: 24px;
  text-align: left;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 10px 0 6px;
  color: var(--ink);
}
.modal-head p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Form Controls */
.partner-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid rgba(27, 24, 21, 0.2);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(192, 82, 43, 0.15);
}
.form-status {
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 20px;
  transition: color 0.2s ease;
}
.form-status.success {
  color: #1b873f;
}
.form-status.error {
  color: #c0392b;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

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

.site-foot { background: var(--ink); color: var(--cream); padding: 60px 0; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 36px;
  align-items: start;
}
.foot-brand { color: var(--cream); font-size: 1.3rem; }
.foot-tag { margin-top: 10px; color: rgba(253, 249, 241, 0.62); font-size: 0.92rem; max-width: 30em; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: rgba(253, 249, 241, 0.8); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { color: var(--amber); }
.foot-made { color: rgba(253, 249, 241, 0.55); font-size: 0.85rem; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.35s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Motion: load & scroll reveals ---------- */

.rise { opacity: 0; transform: translateY(26px); animation: riseIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.32s; }
.d4 { animation-delay: 0.46s; }
.d5 { animation-delay: 0.6s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.on { opacity: 1; transform: none; }
.card.reveal:nth-child(even) { transform: translateY(60px); }
.card.reveal:nth-child(even).on { transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .card:nth-child(even) { transform: none; }
  .ticker-track { animation: none; }
  .ring { animation: none; }
  .msg { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 20px auto 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .ripple-grid { grid-template-columns: 1fr; }
  .rings { max-width: 360px; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-ph { margin: 0 auto; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .alt-support-inner { flex-direction: column; text-align: center; }
  .alt-support-copy { text-align: center; }
  .site-nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head { padding: 12px 16px; }
  .btn-sm { padding: 9px 16px; }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(even) { transform: none; }
  .card.reveal:nth-child(even).on { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .alt-support { padding: 24px 20px; margin-top: 36px; }
  .modal-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .chat-card { position: relative; left: 0; width: min(340px, 92%); margin: -60px auto 0; transform: rotate(-1.5deg); }
  .hero-visual { padding-bottom: 0; }
  .ph-hero { width: 100%; }
  .break-quote { margin: -40px 16px 0; }
}
