:root {
  --ink: #17151f;
  --muted: #625d70;
  --paper: #fffdf8;
  --cloud: #f4f7fb;
  --line: #e0dde7;
  --indigo: #27215f;
  --teal: #0f766e;
  --coral: #d45f45;
  --amber: #e5a531;
  --plum: #4b214a;
  --night: #0f0b1c;
  --shadow: 0 18px 50px rgba(22, 18, 45, .16);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Drives every rem-based size in the theme. Customizer override via :root. */
  font-size: var(--mp-font-size-base, 16px);
}
body {
  margin: 0;
  font-family: var(--mp-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: var(--mp-line-height, 1.55);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(224, 221, 231, .74);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.05;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 30px);
  color: #393345;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a { padding: 6px 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 28px rgba(212, 95, 69, .24);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(68px, 10vw, 112px) clamp(20px, 5vw, 76px) 104px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 11, 28, .93) 0%, rgba(39, 33, 95, .78) 46%, rgba(15, 11, 28, .28) 100%),
    var(--mp-hero-image, none) right 16% center / min(54vw, 520px) auto no-repeat,
    linear-gradient(135deg, #130e26 0%, #2a255f 54%, #0f766e 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(255,253,248,0), var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  color: #bff3e9;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-head .eyebrow,
.split-copy .eyebrow,
.app-top .eyebrow,
.donate .eyebrow,
.download .eyebrow,
.newsletter .eyebrow {
  border-color: var(--line);
  color: var(--teal);
  background: rgba(15, 118, 110, .08);
}

.donate .eyebrow,
.download .eyebrow {
  border-color: rgba(255,255,255,.28);
  color: #bff3e9;
  background: rgba(255,255,255,.08);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--mp-font-heading, Georgia, "Times New Roman", serif); }
h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: calc(clamp(3.3rem, 8.6vw, 7.2rem) * var(--mp-heading-scale, 1));
  line-height: .92;
  letter-spacing: 0;
}

h1 span { color: #ffd37a; }

.hero p {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 44px;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

section {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 5vw, 76px);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2,
.split-copy h2,
.download h2,
.newsletter h2 {
  margin: 12px 0 12px;
  font-family: var(--mp-font-heading, Georgia, "Times New Roman", serif);
  font-size: calc(clamp(2.1rem, 4.6vw, 4rem) * var(--mp-heading-scale, 1));
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.split-copy p,
.newsletter p {
  color: var(--muted);
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.video-panel {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cloud);
  box-shadow: var(--shadow);
}

.video-panel img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 18px 38px rgba(212,95,69,.3);
  font-size: 26px;
  border: 0;
  cursor: pointer;
}

.caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #fff;
  background: rgba(15, 11, 28, .72);
  font-size: 13px;
  font-weight: 800;
}

.split-copy {
  max-width: 620px;
}

.split-copy .rule {
  width: 56px;
  height: 3px;
  margin: 24px 0;
  background: var(--amber);
}

.donate {
  padding-top: 0;
  padding-bottom: 0;
}

.donate-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--plum), var(--indigo));
  color: #fff;
  box-shadow: var(--shadow);
}

.donate h2 {
  margin: 10px 0;
  font-family: var(--mp-font-heading, Georgia, "Times New Roman", serif);
  font-size: calc(clamp(2rem, 4vw, 3.6rem) * var(--mp-heading-scale, 1));
  line-height: 1.02;
}

.donate p { color: rgba(255,255,255,.75); max-width: 700px; }

.feature-grid,
.app-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.app-card,
.blog-card,
.story {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.feature {
  padding: 22px;
  min-height: 190px;
}

.feature-icon,
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.feature:nth-child(2) .feature-icon,
.app-card:nth-child(2) .app-icon { background: var(--coral); }
.feature:nth-child(3) .feature-icon,
.app-card:nth-child(3) .app-icon { background: var(--amber); color: var(--ink); }
.feature:nth-child(4) .feature-icon { background: var(--plum); }

.feature h3,
.app-card h3,
.blog-card h3,
.story h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.feature p,
.app-card p,
.blog-card p,
.story p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.stories {
  background: var(--cloud);
}

.stories-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
}

.story.large {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15,11,28,.08), rgba(15,11,28,.84)),
    var(--mp-hero-story, none) center / cover no-repeat;
}

.story.large p { color: rgba(255,255,255,.78); }

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story:not(.large) {
  min-height: 206px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.apps {
  background: #fff;
}

.app-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.app-top .section-head {
  margin: 0;
  text-align: left;
}

.app-card {
  min-height: 250px;
  padding: 24px;
}

.app-card .app-shot {
  height: 120px;
  margin: -6px -6px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfeff, #fff7ed);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.blog-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--cloud);
}

.blog-card .blog-body { padding: 18px; }

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  color: #fff;
  background: var(--night);
}

.download p { color: rgba(255,255,255,.72); max-width: 620px; }

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  font-weight: 900;
}

.phone {
  width: min(320px, 78vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 30px;
  background: #242033;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.phone img {
  width: 100%;
  border-radius: 22px;
}

.newsletter {
  text-align: center;
  background: #f2fbfa;
}

.newsletter form {
  width: min(620px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(130px, .5fr));
  gap: 30px;
  padding: 54px clamp(20px, 5vw, 76px);
  color: rgba(255,255,255,.74);
  background: #080613;
}

.footer .brand { color: #fff; min-width: 0; }
.footer p { max-width: 360px; margin: 18px 0 0; }
.footer strong { color: #fff; }
.footer a {
  display: block;
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.footer-col { display: flex; flex-direction: column; }

/* Plain-page fallback for non-homepage routes (single, page, archive) */
.mp-page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 32px);
}

.mp-page h1 {
  font-family: var(--mp-font-heading, Georgia, "Times New Roman", serif);
  font-size: calc(clamp(2rem, 5vw, 3.4rem) * var(--mp-heading-scale, 1));
  color: var(--ink);
  margin-bottom: 18px;
}

.mp-page .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.mp-page .featured {
  margin: 0 0 28px;
  border-radius: 8px;
  overflow: hidden;
}

.mp-page .featured img { width: 100%; height: auto; }

.mp-page p,
.mp-page li { color: var(--ink); font-size: 1.05rem; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(15, 11, 28, .94), rgba(39, 33, 95, .72)),
      var(--mp-hero-image, none) center bottom 20px / min(78vw, 360px) auto no-repeat,
      linear-gradient(135deg, #130e26 0%, #2a255f 54%, #0f766e 100%);
    padding-bottom: 480px;
  }
  .split,
  .stories-layout,
  .download,
  .footer {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .app-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donate-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand strong { font-size: 13px; }
  .brand span { font-size: 10px; }
  .hero { padding-bottom: 390px; }
  .hero-stats,
  .feature-grid,
  .story-list,
  .app-grid,
  .blog-grid,
  .newsletter form {
    grid-template-columns: 1fr;
  }
  section { padding-left: 18px; padding-right: 18px; }
  .app-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
