:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-soft: #f0eee7;
  --ink: #1d252c;
  --muted: #63707a;
  --line: #ded9ce;
  --primary: #124f63;
  --primary-strong: #0c3b4a;
  --accent: #d76545;
  --gold: #e2a84b;
  --green: #1f8a5b;
  --blue: #346b97;
  --shadow: 0 24px 70px rgba(18, 79, 99, 0.14);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(18, 79, 99, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 14px 0 72px;
}

.narrow-shell {
  --max-width: 780px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(18, 79, 99, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(18, 79, 99, 0.09);
}

.brand,
.nav,
.hero-actions,
.card-heading,
.toggle-row,
.support-panel,
.method {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 800;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 5px rgba(18, 79, 99, 0.1);
}

.nav {
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 54px 0 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero h1 {
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  margin: 9px 0 8px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.lede,
.section-heading p,
.app-card p,
.support-panel p,
.feature-card p,
.donation-card p,
.notice-card p,
.fine-print {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 680px;
  font-size: 1.18rem;
}

.lede-secondary {
  margin-top: 0;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.app-card,
.support-panel,
.donation-card,
.notice-card {
  border: 1px solid rgba(18, 79, 99, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.app-card {
  align-self: center;
  padding: 28px;
}

.app-card h2 {
  margin: 14px 0;
}

.section {
  padding-top: 24px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 20px;
  border: 1px solid rgba(18, 79, 99, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.support-panel {
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.tutorial-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(18, 79, 99, 0.13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tutorial-panel p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.support-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 79, 99, 0.32);
}

.arrow {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
}

.donation-screen {
  padding-top: 62px;
}

.screen-heading {
  margin-bottom: 22px;
}

.screen-heading h1 {
  max-width: 100%;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  white-space: nowrap;
}

.screen-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.notice-card,
.donation-card {
  margin-top: 14px;
  padding: 20px;
}

.notice-card {
  background: #fff8e8;
  border-color: rgba(226, 168, 75, 0.35);
}

.toggle-row {
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toggle-row span {
  display: grid;
  gap: 3px;
}

.toggle-row small {
  color: var(--muted);
}

.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.card-heading {
  gap: 12px;
  margin-bottom: 14px;
}

.card-heading h2 {
  font-size: 1.3rem;
  letter-spacing: 0;
}

.card-heading p {
  margin: 3px 0 0;
  font-size: 0.94rem;
}

.icon-pill {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.icon-pill.red {
  background: var(--accent);
}

.icon-pill.blue {
  background: var(--blue);
}

.icon-pill.green {
  background: var(--green);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.amount-grid.monthly {
  grid-template-columns: repeat(5, 1fr);
}

.amount-grid button {
  min-height: 42px;
  border: 1px solid rgba(18, 79, 99, 0.14);
  border-radius: 999px;
  background: rgba(18, 79, 99, 0.07);
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

.amount-grid button.is-selected {
  background: var(--primary);
  color: #fff;
}

.selection-note,
.fine-print {
  margin: 12px 0 0;
  font-size: 0.88rem;
}

.method-stack {
  display: grid;
  gap: 9px;
}

.method {
  width: 100%;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.method span,
.method small {
  display: block;
}

.method span {
  font-weight: 800;
}

.method small {
  opacity: 0.86;
}

.method.venmo {
  background: #3d95ce;
}

.method.paypal {
  background: #003087;
}

.method.cashapp {
  background: #00a84a;
}

.method.zelle {
  background: #6d1ed4;
}

.method.stripe {
  background: #635bff;
}

body.monthly-selected .one-time-method {
  display: none;
}

.site-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--primary-strong);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    white-space: normal;
  }

  .screen-heading h1 {
    white-space: normal;
  }

  .topbar,
  .support-panel,
  .tutorial-panel {
    align-items: flex-start;
    border-radius: 22px;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

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

  .amount-grid,
  .amount-grid.monthly {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .amount-grid,
  .amount-grid.monthly,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
