:root {
  --primary: #2f7d64;
  --primary-dark: #185a46;
  --soft-green: #e5f2eb;
  --bg: #f5faf8;
  --cream: #fffcf4;
  --surface: #ffffff;
  --text: #0e2032;
  --muted: #536274;
  --divider: #e2eae7;
  --warm: #f8b84e;
  --shadow: 0 24px 70px rgba(24, 90, 70, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(248, 184, 78, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--cream), var(--bg) 42%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(47, 125, 100, 0.035) 1px, transparent 1px);
  background-size: 100% 56px;
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(226, 234, 231, 0.84);
  background: rgba(255, 252, 244, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(47, 125, 100, 0.16);
}

.sticky-download a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(47, 125, 100, 0.2);
}

.hero,
.section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "gallery"
    "download";
  gap: 22px;
  align-items: start;
  padding: clamp(34px, 7vw, 72px) 0 58px;
  text-align: center;
}

.hero-copy {
  grid-area: copy;
}

.hero-gallery {
  grid-area: gallery;
  width: 100%;
  min-width: 0;
}

.hero-download {
  grid-area: download;
  justify-self: center;
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

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

h1 {
  max-width: 610px;
  margin-inline: auto;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-subhead,
.section-lead,
.final-copy > p {
  max-width: 670px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 500;
  line-height: 1.56;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 186px;
  min-height: 62px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111714;
  color: white;
  box-shadow: 0 18px 40px rgba(14, 32, 50, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-badge[data-store="play"] {
  background: #3ddc84;
  color: #073621;
  box-shadow: 0 18px 40px rgba(61, 220, 132, 0.24);
}

.store-badge[data-store="play"] small {
  color: rgba(7, 54, 33, 0.72);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(14, 32, 50, 0.22);
}

.store-badge[data-store="play"]:hover {
  box-shadow: 0 24px 50px rgba(61, 220, 132, 0.3);
}

.store-badge:focus-visible,
.sticky-download a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.store-icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.apple-icon::before {
  content: "";
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid currentColor;
  filter: drop-shadow(-7px 0 0 rgba(255, 255, 255, 0.24));
}

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

.store-badge small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-badge strong {
  margin-top: 2px;
  font-size: 18px;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 30vw, 340px);
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 2px 18px;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 125, 100, 0.38) transparent;
}

.screenshot-card {
  margin: 0;
  scroll-snap-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 46px rgba(24, 90, 70, 0.12);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.cta-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.phone {
  width: min(100%, 316px);
  aspect-ratio: 0.49;
  border: 10px solid #102c24;
  border-radius: 42px;
  background: #102c24;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-screen {
  height: 100%;
  padding: 24px 18px;
  border-radius: 31px;
  background: linear-gradient(180deg, #fffcf4, #f5faf8);
  overflow: hidden;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-weight: 850;
}

.streak {
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--primary-dark);
  padding: 8px 10px;
  font-size: 11px;
}

.counter-ring {
  width: 198px;
  height: 198px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 288deg, var(--soft-green) 288deg 360deg);
  position: relative;
}

.counter-ring::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #fffcf4;
}

.ring-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ring-center strong {
  display: block;
  color: var(--primary);
  font-size: 62px;
  line-height: 0.9;
}

.ring-center span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.action {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: white;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.action-voice {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.blessing-list {
  display: grid;
  gap: 9px;
}

.blessing-list p {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.section {
  padding: clamp(64px, 9vw, 106px) 0;
}

.section-copy {
  max-width: 790px;
  margin: 0 auto 34px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.step,
.value-list article,
.insight-panel,
.completion-card,
.progress-days article,
.review-card {
  border: 1px solid rgba(226, 234, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(47, 125, 100, 0.07);
}

.step {
  min-height: 282px;
  padding: 24px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--primary-dark);
  font-weight: 900;
}

.step p {
  color: var(--muted);
  line-height: 1.56;
}

.capture-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--divider);
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 850;
}

.mode-tabs span {
  padding: 9px;
  border-radius: 8px;
  text-align: center;
  background: white;
}

.mode-tabs span:first-child {
  background: var(--primary);
  color: white;
}

.mic-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.mini-counter {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin-top: 24px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--primary-dark);
}

.mini-counter strong {
  font-size: 42px;
}

.mini-counter span {
  margin-top: -20px;
  font-weight: 850;
}

.split,
.insights,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(310px, 1fr);
  gap: 54px;
  align-items: center;
}

.value-list {
  display: grid;
  gap: 12px;
}

.value-list article {
  padding: 24px;
}

.value-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.56;
}

.emotional {
  width: 100%;
  padding-inline: max(16px, calc((100vw - 1120px) / 2));
  background: linear-gradient(180deg, rgba(229, 242, 235, 0.52), rgba(255, 252, 244, 0.42));
}

.moment-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
}

.moment-cloud span {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 234, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-dark);
  padding: 18px;
  text-align: center;
  font-weight: 760;
  line-height: 1.36;
}

.small-phone {
  width: 220px;
  justify-self: center;
}

.small-phone .phone-screen {
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.small-phone img {
  width: 145px;
  margin: 0 auto;
}

.small-phone strong {
  color: var(--primary-dark);
  font-size: 20px;
}

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

.progress-days article {
  padding: 25px;
  text-align: center;
}

.progress-days span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-days strong {
  color: var(--primary-dark);
  font-size: clamp(34px, 5vw, 54px);
}

.progress-days .complete {
  background: var(--primary);
}

.progress-days .complete span,
.progress-days .complete strong {
  color: white;
}

.progress-days .today {
  background: var(--soft-green);
}

.insight-panel {
  padding: 26px;
}

.insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-weight: 850;
}

.bar {
  height: 10px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--soft-green);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.insight-panel p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.review-card {
  margin: 0;
  padding: 24px;
}

.review-rating {
  color: var(--warm);
  font-size: 18px;
  letter-spacing: 0;
}

.review-card blockquote {
  margin: 16px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.42;
}

.review-card figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.final-cta {
  width: min(1120px, calc(100% - 32px));
  margin-bottom: 30px;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid rgba(226, 234, 231, 0.95);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--cream));
  box-shadow: var(--shadow);
}

.completion-card {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 28px;
  text-align: center;
}

.completion-card img {
  width: 160px;
}

.completion-card strong {
  margin-top: 16px;
  color: var(--primary);
  font-size: 42px;
}

.completion-card span {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  padding: 28px 0 96px;
  border-top: 1px solid var(--divider);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--primary-dark);
  font-weight: 750;
}

.sticky-download {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display: none;
  pointer-events: none;
}

.sticky-download.is-visible {
  display: flex;
  justify-content: center;
}

.sticky-download a {
  width: min(100%, 430px);
  min-height: 56px;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 62px;
  }

  .hero {
    gap: 24px;
    padding-top: 28px;
  }

  .screenshot-strip {
    grid-auto-columns: clamp(240px, 45vw, 300px);
  }

  .store-row {
    justify-content: center;
  }

  .steps,
  .review-grid,
  .split,
  .insights,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .moment-cloud {
    grid-template-columns: 1fr 1fr;
  }

  .small-phone {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero,
  .section,
  .site-footer,
  .final-cta {
    width: min(100% - 24px, 430px);
  }

  h1 {
    font-size: clamp(32px, 8.6vw, 40px);
  }

  h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .store-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .screenshot-strip {
    grid-auto-columns: min(82vw, 320px);
    gap: 14px;
    padding-bottom: 16px;
  }

  .screenshot-card {
    border-radius: 16px;
  }

  .screenshot-card img {
    border-radius: 16px;
  }

  .phone {
    width: min(100%, 292px);
  }

  .phone-screen {
    padding: 22px 16px;
  }

  .counter-ring {
    width: 180px;
    height: 180px;
  }

  .steps,
  .progress-days,
  .moment-cloud {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: unset;
  }

  .moment-cloud span {
    min-height: auto;
  }

  .completion-card {
    min-height: 260px;
  }

  .completion-card strong {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Keep preferences above the sticky download CTA on small screens. */
.marketing-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  max-width: 42rem;
  margin: auto;
  padding: 1.25rem;
  background: #fff;
  color: #243c32;
  border: 1px solid #bbc8bd;
  border-radius: 1rem;
  box-shadow: 0 8px 32px #0003;
}
.marketing-consent[hidden], #cookieSettings[hidden] { display: none; }
.marketing-consent button, #cookieSettings {
  font: inherit;
  cursor: pointer;
  padding: .6rem .8rem;
  border: 1px solid #bbc8bd;
  border-radius: .5rem;
  background: #fff;
  color: #243c32;
}
.marketing-consent button { margin: .25rem; }
.marketing-consent button:disabled { opacity: .5; cursor: default; }
