:root {
  --primary: #4CAF50;
  --primary-dark: #2F6E39;
  --primary-light: #D8EFD9;
  --accent: #F4A424;
  --bg: #F4F7F1;
  --surface-muted: #EDF4EA;
  --text: #152116;
  --text-muted: #52615A;
  --border: #D5E0D1;
  --white: #FFFFFF;
  --black: #142013;
  --shadow-lg: 0 24px 56px rgba(20, 32, 19, 0.12);
  --shadow-md: 0 14px 30px rgba(20, 32, 19, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Avenir Next", "Nunito Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 175, 80, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(216, 239, 217, 0.8), transparent 32%),
    var(--bg);
}

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

a {
  color: var(--primary-dark);
}

a:hover {
  text-decoration: underline;
}

.shell,
.page-shell,
.site-footer {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.shell,
.page-shell {
  padding: 0.9rem 0 1.75rem;
}

.surface-card,
.doc-section,
.legal-hero,
.thanks-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(216, 239, 217, 0.16), transparent 28%),
    linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  background: rgba(244, 164, 36, 0.14);
  filter: blur(8px);
}

.hero-grid,
.download-block,
.doc-stack,
.thanks-layout {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy,
.download-pane,
.legal-hero,
.doc-section,
.thanks-card {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.hero-pill,
.hero-highlight,
.app-kicker,
.section-eyebrow,
.eyebrow,
.badge-pill,
.coming-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-pill,
.hero-highlight {
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-icon-shell {
  width: 88px;
  height: 88px;
  padding: 6px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-icon-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-tagline {
  margin: 0.55rem 0 0;
  font-size: clamp(1rem, 3.2vw, 1.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.lead,
.hero-description,
.download-copy,
.feature-card p,
.support-copy,
.footer-copy,
.doc-section p,
.doc-section li,
.legal-hero .lead {
  font-size: 1rem;
  line-height: 1.7;
}

.hero-description {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.84);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.download-pane {
  position: relative;
  z-index: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.app-kicker {
  padding: 0.45rem 0.8rem;
  background: var(--surface-muted);
  color: var(--primary-dark);
}

.download-pane h2,
.section-title,
.thanks-card h1,
.legal-hero h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.download-copy {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.15rem;
  align-items: center;
}

.store-button {
  margin-top: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  justify-self: start;
  align-self: start;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.store-buttons .store-button {
  margin-top: 0;
}

.store-button img,
.store-link img {
  width: min(210px, 100%);
  height: auto;
  transition: transform 0.18s ease;
}

.store-link {
  display: inline-block;
  justify-self: start;
}

.store-button:hover:not(:disabled),
.store-link:hover img {
  transform: translateY(-1px);
}

.store-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(1);
}

.coming-chip {
  margin-top: 0.9rem;
  padding: 0.55rem 0.85rem;
  background: rgba(244, 164, 36, 0.16);
  color: var(--accent);
}

.support-copy {
  margin: 0.95rem 0 0;
  color: var(--text-muted);
}

.section-block {
  margin-top: 1rem;
}

.section-header {
  margin-bottom: 0.95rem;
}

.section-eyebrow,
.eyebrow {
  padding: 0;
  color: var(--primary-dark);
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--surface-muted);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.feature-card h3 {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.feature-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.feature-card.primary .feature-icon {
  color: var(--primary);
}

.feature-card.dark .feature-icon {
  color: var(--primary-dark);
}

.feature-card.accent .feature-icon {
  color: var(--accent);
}

.feature-card.light .feature-icon {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.download-section {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.inline-legal {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-muted);
}

.inline-legal p {
  margin: 0;
  color: var(--text);
  line-height: 1.78;
}

.inline-legal p + p {
  margin-top: 0.95rem;
}

.download-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  justify-items: start;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
}

.checkbox-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.checkbox-row span {
  line-height: 1.65;
}

.form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.warning {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(244, 164, 36, 0.14);
  color: var(--accent);
}

.page-header {
  margin-bottom: 0.85rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.doc-stack {
  max-width: 880px;
  margin: 0 auto;
}

.legal-hero {
  background:
    linear-gradient(180deg, rgba(237, 244, 234, 0.92), var(--white));
}

.legal-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.legal-icon.accent {
  background: rgba(244, 164, 36, 0.16);
  color: var(--accent);
}

.legal-icon svg {
  width: 28px;
  height: 28px;
}

.legal-hero h1 {
  margin-top: 0.9rem;
}

.legal-hero .lead,
.doc-section p,
.doc-section li {
  color: var(--text-muted);
}

.doc-section h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.doc-section p {
  margin: 0.85rem 0 0;
}

.doc-section ul,
.doc-section ol {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}

.doc-section li + li {
  margin-top: 0.45rem;
}

.alpha-list {
  list-style: lower-alpha;
}

.thanks-layout {
  max-width: 880px;
  margin: 0 auto;
}

.thanks-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(237, 244, 234, 0.92), var(--white));
}

.thanks-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.thanks-card h1 {
  margin-top: 0.9rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--primary-dark);
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.button-link.secondary {
  border-color: var(--border);
  background: var(--white);
  color: var(--text);
}

.site-footer {
  display: grid;
  gap: 0.7rem;
  padding: 0 0 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-links a {
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .hero-panel {
    padding: 1.5rem;
  }

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

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
    align-items: stretch;
  }

  .shell,
  .page-shell {
    padding-top: 1.1rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-links {
    order: 2;
    justify-content: flex-end;
  }
}
