:root {
  --bg: #f5f0e8;
  --bg-alt: #ebe4d6;
  --card: #fffef9;
  --card-elevated: #ffffff;
  --text: #2c2419;
  --text-muted: #6b5d4f;
  --text-subtle: #8a7b6a;
  --accent: #3d6b3d;
  --accent-dark: #2d5230;
  --accent-soft: #e8f0e8;
  --reward: #9a7b2e;
  --reward-soft: #f5ecd4;
  --border: #e8e2d8;
  --shadow: rgba(44, 36, 25, 0.12);
  --header-bg: rgba(245, 240, 232, 0.88);
  --hero-wash-1: rgba(232, 240, 232, 0.9);
  --hero-wash-2: rgba(245, 236, 212, 0.7);
  --hero-glow: rgba(61, 107, 61, 0.18);
  --btn-from: #3d6b3d;
  --btn-to: #2d5230;
  --btn-shadow: rgba(45, 82, 48, 0.22);
  --btn-shadow-hover: rgba(45, 82, 48, 0.28);
  --card-inset: rgba(255, 255, 255, 0.6);
  --cta-from: #2d5230;
  --cta-to: #3d6b3d;
  --cta-btn-bg: #ffffff;
  --toast-bg: #2c2419;
  --toast-fg: #ffffff;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-ui: 'DM Sans', system-ui, -apple-system, sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --bg-alt: #242019;
    --card: #2a2620;
    --card-elevated: #322e27;
    --text: #f5f0e8;
    --text-muted: #b8a99a;
    --text-subtle: #8a7b6a;
    --accent: #6b9a6b;
    --accent-dark: #8fbc8f;
    --accent-soft: #2a352a;
    --reward: #c9a84a;
    --reward-soft: #3d3420;
    --border: #3d3830;
    --shadow: rgba(0, 0, 0, 0.4);
    --header-bg: rgba(26, 23, 20, 0.88);
    --hero-wash-1: rgba(42, 53, 42, 0.55);
    --hero-wash-2: rgba(61, 52, 32, 0.4);
    --hero-glow: rgba(107, 154, 107, 0.16);
    --btn-from: #3d6b3d;
    --btn-to: #2d5230;
    --btn-shadow: rgba(0, 0, 0, 0.35);
    --btn-shadow-hover: rgba(0, 0, 0, 0.5);
    --card-inset: rgba(255, 255, 255, 0.04);
    --cta-from: #2d5230;
    --cta-to: #3d6b3d;
    --cta-btn-bg: #fffef9;
    --toast-bg: #f5f0e8;
    --toast-fg: #1a1714;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent-dark);
  color: white;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.brand picture {
  display: contents;
}

.brand-mark {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.brand-wordmark {
  width: auto;
  height: 1.65rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0.85rem 0;
  }

  .brand-mark {
    width: 3.25rem;
    height: 3.25rem;
  }

  .brand-wordmark {
    height: 2rem;
  }
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--btn-from) 0%, var(--btn-to) 100%);
  color: white;
  box-shadow: 0 8px 24px var(--btn-shadow);
}

.btn-primary:hover {
  color: white;
  box-shadow: 0 12px 28px var(--btn-shadow-hover);
}

.btn-secondary {
  background: var(--card);
  color: var(--accent-dark);
  border-color: var(--border);
  box-shadow: 0 4px 16px var(--shadow);
}

.btn-secondary:hover {
  background: var(--card-elevated);
  color: var(--accent-dark);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.75rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--hero-wash-1), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, var(--hero-wash-2), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.5rem 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--reward);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-dark);
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 360px;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
    min-height: 420px;
  }
}

.tree-view-card {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 48px var(--shadow),
    0 0 0 1px var(--card-inset) inset;
}

@media (min-width: 900px) {
  .tree-view-card {
    width: min(100%, 420px);
    padding: 1rem;
  }
}

.tree-view-label {
  margin: 0 0 0.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.tree-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--bg-alt);
}

.tree-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.tree-layer--trunk,
.tree-layer--fruit {
  animation: none;
}

.tree-layer--fruit {
  animation: fruit-glow 3.2s ease-in-out infinite;
}

@keyframes tree-sway {
  0%,
  100% {
    transform: rotate(calc(var(--sway-amp, 0.6deg) * -1));
  }
  50% {
    transform: rotate(var(--sway-amp, 0.6deg));
  }
}

@keyframes fruit-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.tree-layer--sway {
  transform-origin: var(--sway-origin, 50% 80%);
  animation: tree-sway var(--sway-duration, 5s) ease-in-out infinite;
  animation-delay: var(--sway-delay, 0s);
}

.story-chip {
  position: absolute;
  top: 2.5rem;
  right: -0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px var(--shadow);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.story-chip img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--reward-soft);
}

@media (prefers-reduced-motion: reduce) {
  .tree-layer--sway,
  .tree-layer--fruit {
    animation: none;
  }
}

@media (max-width: 899px) {
  .story-chip {
    right: 0.5rem;
  }
}

.hero-glow {
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 900px) {
  .hero-glow {
    inset: 0 -5% 0 15%;
  }
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.hero + .section {
  padding-top: 2.75rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 3rem;
}

.section-header h2,
.alpha-copy h2,
.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px var(--shadow);
}

.step-shot {
  margin: 0 0 1.25rem;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  max-height: 22rem;
}

.step-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.step-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shot-pair {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

@media (min-width: 768px) {
  .shot-pair {
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
    gap: 2rem;
  }
}

.shot-frame {
  margin: 0;
  width: min(100%, 280px);
}

.shot-frame picture {
  display: block;
  width: 100%;
}

.shot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px var(--shadow);
  background: var(--card);
}

.shot-frame figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.growth-showcase {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-top: 3rem;
  padding: 1.75rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px var(--shadow);
}

@media (min-width: 768px) {
  .growth-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 2.25rem;
    padding: 2rem 2rem 2rem 2.25rem;
  }
}

.growth-copy .eyebrow {
  margin-bottom: 0.5rem;
}

.growth-copy h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
}

.growth-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 28rem;
}

.growth-card {
  width: min(100%, 300px);
  margin-inline: auto;
}

.growth-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.growth-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.growth-stages {
  position: absolute;
  inset: 0;
}

.growth-stage-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  pointer-events: none;
}

.growth-stage-set.is-active {
  opacity: 1;
  transform: scale(1);
}

.growth-plant {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .growth-stage-set {
    transition: none;
    transform: none;
  }
}

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

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

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

/* Alpha */
.alpha-section {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--hero-wash-1), transparent),
    var(--bg);
}

.alpha-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .alpha-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.alpha-copy p {
  color: var(--text-muted);
}

.alpha-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.alpha-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.alpha-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.alpha-form-card {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px var(--shadow);
}

.alpha-form-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.form-note {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-style: italic;
}

.apply-form label {
  display: block;
  margin-bottom: 1rem;
}

.apply-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-form label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.apply-form input:focus,
.apply-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-foot {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  text-align: center;
}

/* CTA band */
.cta-band {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: white;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  color: white;
}

.cta-inner p {
  margin: 0;
  opacity: 0.9;
}

.cta-band .btn-secondary {
  background: var(--cta-btn-bg);
  border-color: transparent;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* About page */
.about-hero {
  padding: 3.25rem 0 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--hero-wash-1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, var(--hero-wash-2), transparent 50%);
}

.about-hero-inner {
  max-width: 40rem;
}

.about-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
}

.about-seed-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.about-stack {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  max-width: 40rem;
}

.about-block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
}

.about-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-block--scripture {
  padding: 1.5rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px var(--shadow);
}

.about-note {
  margin-top: 0.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem !important;
  color: var(--text-subtle) !important;
}

.legal-updated {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.brand--footer .brand-mark {
  width: 1.85rem;
  height: 1.85rem;
}

.brand--footer .brand-wordmark {
  height: 1.2rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-badge {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--reward-soft);
  color: var(--reward);
}

/* Demo toast */
.demo-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  max-width: 22rem;
  padding: 0.85rem 1.25rem;
  background: var(--toast-bg);
  color: var(--toast-fg);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.demo-toast.visible {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 767px) {
  .header-inner .btn-sm {
    display: none;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
