:root {
  --spruce: #153f35;
  --spruce-2: #235f50;
  --blue: #8fb8c8;
  --gold: #dca32d;
  --gold-soft: #f4d889;
  --paper: #f7f4ec;
  --paper-2: #ece7da;
  --ink: #17211e;
  --muted: #5e6a65;
  --line: rgba(23, 33, 30, 0.14);
  --white: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
}

.brand img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(21, 63, 53, 0.16);
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--spruce);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  padding: clamp(26px, 4vw, 42px) clamp(20px, 5vw, 72px) clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 78% 22%, rgba(143, 184, 200, 0.46), transparent 34%),
    linear-gradient(135deg, var(--paper), #fffaf0 48%, #edf5f2);
}

.hero-copy {
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.1rem, 8.7vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--spruce);
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.12;
  font-weight: 800;
}

.hero-copy p:not(.hero-lede) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
}

.download-panel {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--spruce);
  color: var(--white);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(21, 63, 53, 0.28);
}

.download-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.download-label {
  margin-bottom: 2px;
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
}

.free-badge {
  align-self: start;
  padding: 8px 12px;
  color: var(--spruce);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-store-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 78px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.app-store-button strong,
.app-store-button small {
  display: block;
}

.app-store-button strong {
  font-size: 1.4rem;
  line-height: 1.05;
}

.app-store-button small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.app-store-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  flex: 0 0 auto;
}

.app-store-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.download-note {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

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

.download-highlights span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.86rem;
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.free-section h2,
.donation-section h2 {
  margin-bottom: 12px;
  color: var(--spruce);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.free-section p,
.donation-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
  background: var(--white);
}

.story-copy {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.story-copy p {
  margin-bottom: 0;
  color: #27342f;
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  line-height: 1.48;
}

.feature-band {
  padding: clamp(70px, 10vw, 126px) clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, #edf5f2, var(--paper));
}

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

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--white);
  font-weight: 900;
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.coffee-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--gold-soft);
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.donation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(70px, 10vw, 128px) clamp(20px, 5vw, 72px);
  background: var(--spruce);
}

.donation-section h2,
.donation-section p {
  color: var(--white);
}

.donation-section p {
  max-width: 740px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.qr-card {
  display: block;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(21, 63, 53, 0.12);
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.7);
  background: #0d2721;
  font-size: 0.94rem;
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .story-section,
  .free-section,
  .donation-section {
    grid-template-columns: 1fr;
  }

  .download-panel {
    max-width: 560px;
  }

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

  .coffee-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.2rem);
  }

  .hero-lede {
    font-size: 1.35rem;
  }

  .download-panel {
    padding: 20px;
  }

  .download-highlights {
    grid-template-columns: 1fr;
  }

  .download-panel__top {
    flex-direction: column;
  }

  .free-badge {
    justify-self: start;
  }

  .app-store-button {
    min-height: 72px;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
