:root {
  color-scheme: light;
  --paper: #f6f5ee;
  --ink: #1c2117;
  --muted: #52594a;
  --accent: #dbea7c;
  --rule: #d8d9cb;
  --display: "Avenir Next", Avenir, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 100%/1.5 var(--body);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #536509; outline-offset: 4px; }
.wrap { width: min(100% - 104px, 1260px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip:focus { position: absolute; top: 10px; left: 10px; z-index: 4; background: white; padding: 10px; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 77px;
  border-bottom: 1px solid var(--rule);
}
.site-header a, .site-footer a { text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.04em; }
.wordmark span { color: #638011; }

.journey {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 82px);
  padding-block: 20px 82px;
}
.intro {
  grid-area: 1 / 1;
  min-height: calc(100svh - 97px);
  padding-block: 45px 54px;
  display: grid;
  align-content: center;
  justify-items: start;
}
.product { display: flex; align-items: center; gap: 11px; font-size: 1.0625rem; font-weight: 700; }
.product img { border-radius: 23%; }
h1, .chapter h2, .about h2, .founder-note h2, .founder-story h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.047em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { margin-top: 24px; font-size: clamp(3.35rem, 5.85vw, 6.3rem); }
h1 span { color: #617414; }
.intro-copy, .chapter p, .about p { color: var(--muted); font-size: clamp(1.05rem, 1.47vw, 1.3rem); max-width: 36ch; }
.intro-copy { margin-block: 24px 29px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 49px;
  padding: 10px 21px;
  background: var(--ink);
  color: #fbfbf1;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
}
.button:hover { background: #394328; }

.preview {
  position: sticky;
  top: 20px;
  z-index: 1;
  grid-area: 1 / 2 / span 2;
  align-self: start;
  min-width: 0;
}
.stage {
  --field: #ddec83;
  --phone-width: clamp(185px, min(30vw, (100svh - 152px) / 2.03), 330px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: min(740px, calc(100svh - 84px));
  min-height: 405px;
  border-radius: 25px;
  background: var(--field);
  transition: background-color .42s ease-out;
}
.stage[data-view="entry"] { --field: #eddcaa; }
.stage[data-view="complete"] { --field: #e8cdb5; }
.stage[data-view="history"] { --field: #d1e4c4; }
.stage[data-view="stats"] { --field: #dce1ed; }
.orbit {
  position: absolute;
  width: 122%;
  height: 61%;
  border: 1px solid #54603930;
  border-radius: 50%;
  transform: rotate(-31deg);
  box-shadow: 0 0 0 24px #ffffff18, 0 0 0 25px #54603919, 0 0 0 52px #ffffff12, 0 0 0 53px #54603912;
  pointer-events: none;
}
.stage-bird {
  position: absolute;
  right: max(-8px, calc((100% - var(--phone-width)) * .13));
  bottom: 1%;
  width: min(26%, 140px);
  height: auto;
  transform: rotate(7deg);
  pointer-events: none;
}
.stage[data-view="complete"] .stage-bird { animation: bird-hop .5s ease-out; }
@keyframes bird-hop {
  45% { transform: translateY(-18px) rotate(0); }
}

.phone {
  container-type: inline-size;
  position: relative;
  width: var(--phone-width);
  aspect-ratio: 1 / 2.03;
  border: clamp(4px, .7vw, 9px) solid #242820;
  border-radius: clamp(24px, 4vw, 45px);
  overflow: hidden;
  background: #fafaf8;
  color: #181916;
  box-shadow: 0 24px 39px #3a462449, 0 0 0 1px #505644;
  font-family: var(--body);
}
.system-bar {
  position: absolute;
  inset: 3.8cqw 7.5cqw auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 3.7cqw;
  font-weight: 750;
}
.system-bar i { position: absolute; left: 50%; translate: -50%; width: 28cqw; height: 7.6cqw; border-radius: 999px; background: #22241f; }
.screen {
  position: absolute;
  inset: 16cqw 7cqw max(36px, 18cqw);
  overflow: auto;
  scrollbar-width: thin;
  font-size: 4.65cqw;
}
.screen.is-entering { animation: screen-in .35s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(3cqw); }
  to { opacity: 1; transform: translateY(0); }
}
.screen h2 { font-size: 10cqw; font-weight: 750; line-height: 1.07; letter-spacing: -.055em; margin-bottom: 1cqw; }
.screen h3 { font-size: 5.2cqw; line-height: 1.25; }
.app-muted { color: #555953; font-size: 4.5cqw; }
.app-brand { margin: 0 0 7cqw; font-size: 4.5cqw; font-weight: 700; }
.app-brand span { margin-right: 1cqw; }
.app-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2cqw;
  margin: 6cqw 0;
}
.app-total strong { font-size: 13cqw; line-height: 1.2; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.progress { height: 1cqw; border-radius: 999px; background: #dedfd9; }
.progress i { display: block; width: var(--progress, 60.5%); height: 100%; border-radius: inherit; background: #4b5145; transition: width .3s ease; }
.day-status {
  display: grid;
  place-items: center;
  min-height: max(24px, 12cqw);
  padding: 1.8cqw 2.5cqw;
  border: 0;
  background: #ebede7;
  border-radius: 999px;
  font-size: 4.05cqw;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.day-status::-webkit-details-marker { display: none; }
.stage[data-complete="true"] .day-status { background: #e6ecda; }
.status-picker { position: relative; }
.status-options {
  position: absolute;
  z-index: 1;
  right: 0;
  top: calc(100% + 4px);
  min-width: max(80px, 33cqw);
  padding: 4px;
  background: white;
  border: 1px solid #e0e1dc;
  border-radius: 8px;
  box-shadow: 0 7px 17px #252a2126;
}
.status-options button {
  display: block;
  width: 100%;
  min-height: 24px;
  padding: 2px 6px;
  border: 0;
  background: transparent;
  font-size: max(9px, 4.2cqw);
  text-align: left;
}
.status-options button:hover { background: #ecede7; }
.app-button {
  display: block;
  width: 100%;
  min-height: max(24px, 14cqw);
  border: 0;
  border-radius: 999px;
  background: #22251f;
  color: white;
  font-size: 4.8cqw;
  font-weight: 650;
}
.app-button:hover { background: #444c3b; }
.entries { list-style: none; padding: 0; margin: 5cqw 0 0; }
.entries li, .stats-row { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; border-bottom: 1px solid #e0e1dc; }
.entries li { min-height: 12cqw; }
.entries span { color: #555953; white-space: nowrap; font-size: 4.05cqw; }
.new-entry { color: #405313; }
.bird-message { display: none; align-items: center; gap: 1.5cqw; font-size: 4.05cqw; font-weight: 650; color: #405313; }
.stage[data-complete="true"] .bird-message { display: flex; }
.bird-message img { width: 20cqw; height: auto; }
.phone-nav {
  position: absolute;
  inset: auto 4cqw 6cqw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1cqw;
  border: 1px solid #e2e4de;
  border-radius: 999px;
  background: #f4f4ef;
}
.phone-nav button { border: 0; border-radius: 999px; background: none; font-size: max(8px, 3.7cqw); font-weight: 650; min-height: max(24px, 11.5cqw); }
.phone-nav span { display: block; font-size: 5cqw; line-height: 1; }
.phone-nav [aria-pressed="true"] { background: #e7e9dd; }
.home-line { position: absolute; bottom: 2cqw; left: 32%; right: 32%; height: 1.25cqw; border-radius: 999px; background: #232520; }

.app-sheet { inset-inline: 5.6cqw; padding: 3cqw 5cqw; border: 1px solid #e5e5dd; border-radius: 7cqw; background: white; }
.sheet-bar { display: flex; justify-content: space-between; gap: 2cqw; margin-bottom: 7cqw; }
.sheet-bar button { min-height: max(24px, 10cqw); border: 0; background: #eff0e9; border-radius: 999px; padding: 0 3cqw; font-size: max(8px, 4.3cqw); font-weight: 700; }
.field-label { font-weight: 650; margin-top: 8cqw; }
.example-amount, .example-label { border-bottom: 1px solid #dedfd7; }
.example-amount { font-size: 12cqw; font-weight: 650; letter-spacing: -.05em; }
.example-label { padding-block: 3cqw; }
.example-note { font-size: 4.1cqw; color: #555953; margin-block: 4cqw 7cqw; }

.calendar { margin-block: 9cqw; padding: 4cqw 2cqw; border-radius: 5cqw; background: #f0f2eb; }
.calendar-header { font-weight: 700; text-align: center; margin-bottom: 3cqw; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3cqw; text-align: center; font-size: 4.2cqw; }
.calendar-grid span { color: #555953; }
.calendar-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; }
.calendar-grid button[aria-pressed="true"] { background: #252a21; color: white; }
.history-details .app-muted { margin-top: 1cqw; }
.history-total { margin-top: 4cqw; font-size: 12cqw; font-weight: 750; letter-spacing: -.06em; }
.history-total small { font-size: 4.5cqw; letter-spacing: 0; }

.stats-period { margin-block: 5cqw 1cqw; padding: 1.5cqw; border-radius: 3cqw; background: #e9ece3; text-align: center; font-weight: 650; }
.stats-row { min-height: 12cqw; }
.stats-row b { white-space: nowrap; }
.stats-row + .app-muted { margin-top: 2cqw; }
.challenge-title, .chart-title { margin-block: 6cqw 2cqw; }
.challenge-dots { display: flex; gap: 2cqw; margin-top: 3cqw; }
.challenge-dots span { display: grid; place-items: center; width: 6.5cqw; height: 6.5cqw; border-radius: 50%; background: #e5ebd9; color: #384627; font-size: 4cqw; font-weight: 700; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.8cqw; height: 24cqw; }
.chart span { display: grid; grid-template-rows: 1fr auto; justify-items: center; font-size: 3.5cqw; }
.chart i { align-self: end; width: 80%; height: var(--bar); border-radius: 1cqw 1cqw 0 0; background: #51594a; }

.preview-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 5px; font-size: .8125rem; color: var(--muted); }
.preview-caption button, .text-button { padding: 5px 0; min-height: 38px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .23em; }

.chapters { grid-area: 2 / 1; }
.chapter {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  min-height: min(80svh, 720px);
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.chapter-label { color: #4c5c15; font-weight: 700; }
.chapter h2, .about h2 { font-size: clamp(2.85rem, 5vw, 5.4rem); }
.text-button { font-weight: 650; }
.text-button:hover, .preview-caption button:hover { color: #52650c; }

.founder-note {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(24px, 7vw, 104px);
  padding-block: clamp(48px, 8vw, 112px);
  border-top: 1px solid var(--rule);
}
.founder-note h2 { font-size: clamp(2.6rem, 4.3vw, 4.6rem); }
.founder-note p, .founder-story p { color: var(--muted); line-height: 1.65; }
.founder-note p { max-width: 53ch; font-size: clamp(1.05rem, 1.47vw, 1.25rem); }
.founder-note p + p { margin-top: 14px; }
.story-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  font-weight: 650;
  text-underline-offset: .23em;
}
.story-link:hover { color: #52650c; }

.founder-story { width: min(100% - 36px, 720px); margin-inline: auto; }
.founder-story-header {
  padding-block: clamp(52px, 9vw, 108px) clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.founder-story h1 { margin-top: 18px; font-size: clamp(3rem, 8vw, 5.85rem); }
.founder-story p { font-size: clamp(1.06rem, 2.4vw, 1.2rem); }
.founder-story .story-lead { margin-top: 20px; font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--ink); }
.founder-story section { margin-top: clamp(42px, 7vw, 72px); }
.founder-story h2 { margin-bottom: 18px; font-size: clamp(2rem, 5vw, 3.25rem); }
.founder-story section p + p { margin-top: clamp(1.625rem, 3vw, 2rem); }
.story-end { margin-top: 44px; padding-block: 27px 48px; border-top: 1px solid var(--rule); }
.story-page .site-footer { border-top: 1px solid var(--rule); }

.about { background: #e5edb5; }
.about-inner {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 6vw, 96px);
  padding-block: clamp(48px, 9vw, 130px);
}
.about-inner img { width: min(100%, 300px); height: auto; justify-self: center; }
.about h2 { max-width: 13ch; }
.about p { margin-top: 18px; }
.about .availability { font-size: .95rem; font-weight: 650; }
.about .button { margin-top: 23px; }
.site-footer { border: 0; }

@media (min-width: 761px) and (max-height: 540px) {
  .preview { position: relative; top: auto; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header, .site-footer { min-height: 62px; font-size: .9375rem; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 42px; }
  .intro { min-height: auto; padding-block: 36px 30px; }
  .intro h1 { font-size: clamp(3.1rem, 10.1vw, 5.15rem); margin-top: 16px; }
  .intro-copy { margin-block: 16px 21px; }
  .product img { width: 38px; height: 38px; }
  .preview, .chapters { grid-area: 2 / 1; }
  .preview { top: 0; padding-block: 8px 3px; background: var(--paper); }
  .stage {
    --phone-width: clamp(142px, (48svh - 27px) / 2.03, 235px);
    height: clamp(306px, 48svh, 490px);
    min-height: 0;
    border-radius: 18px;
  }
  .preview-caption { padding-top: 1px; }
  .chapters { padding-top: calc(clamp(306px, 48svh, 490px) + 52px); }
  .chapter { min-height: max(360px, 58svh); align-content: start; padding-block: 27px 48px; scroll-margin-top: calc(clamp(306px, 48svh, 490px) + 50px); }
  .chapter:last-child { min-height: max(445px, 75svh); }
  .chapter h2, .about h2 { font-size: clamp(2.9rem, 9vw, 4.4rem); }
  .founder-note { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .about-inner { grid-template-columns: 1fr; gap: 0; }
  .about-inner img { width: 125px; justify-self: start; margin: -20px 0 -12px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .preview { position: relative; }
  .chapters { padding-top: 360px; }
  .chapter { min-height: auto; scroll-margin-top: 16px; }
  .chapter:last-child { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
