@font-face {
  font-family: Nunito;
  src: url('/assets/nunito-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url('/assets/nunito-bold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --forest: #3a5242;
  --accent: #4b6a54;
  --sage: #a8bdaa;
  --pale: #edf1ed;
  --stroke: #d6dcd3;
  --muted: #414c43;
  --focus: #735921;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4.7vw, 4.5rem);
  --header-height: 5.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); scrollbar-color: var(--sage) var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1.0625rem/1.59 Nunito, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
main img { pointer-events: none; -webkit-touch-callout: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role='tabpanel']:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { color: #1b2c21; background: #d3e2cb; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; font-weight: 800; letter-spacing: -.036em; text-wrap: balance; }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.125rem); }
h3 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); }
p { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset: 1rem auto auto 1rem; z-index: 5; transform: translateY(-200%); }
.skip:focus { transform: none; background: var(--forest); color: white; padding: .65rem 1rem; border-radius: .5rem; }

.sticky-header { position: sticky; top: 0; z-index: 4; flex: none; background: var(--canvas); }
.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; }
.brand img { width: 7.45rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.75vw, 2.75rem); }
.nav-links a { display: flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 800; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current='page'], .site-footer a:hover { text-decoration: underline; }

.quiet-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--forest); font-weight: 800; }
.hero-details { margin-top: .45rem; }
.launch-hero { margin-top: 1.65rem; }
.launch-title { color: var(--forest); font-weight: 800; }
.launch-hero, .launch-article {
  width: min(42rem, 100%);
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border-radius: 1rem;
  background: var(--pale);
}
.launch-article {
  margin-inline: auto;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}
.launch-hero .launch-title, .launch-article .launch-title { font-size: clamp(1.45rem, 3.4vw, 2rem); text-wrap: initial; }
.launch-form { max-width: 23rem; margin-top: .2rem; }
.launch-purpose { margin-bottom: .65rem; font-size: 1rem; line-height: 1.4; }
.launch-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem;
  padding: .1875rem;
  border: 1px solid #839185;
  border-radius: 999px;
  background: var(--surface);
}
.launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.launch-fields input, .launch-fields button { min-height: 2.75rem; border: 0; border-radius: 999px; font: inherit; }
.launch-fields input { min-width: 0; width: 100%; padding: .4rem .35rem .4rem .8rem; background: transparent; color: var(--ink); caret-color: var(--forest); }
.launch-fields input::placeholder { color: var(--muted); }
.launch-fields :is(input, button):focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.launch-fields button { padding: .4rem clamp(.75rem, 2.4vw, 1rem); background: var(--forest); color: var(--surface); font-weight: 800; white-space: nowrap; cursor: pointer; }
.launch-fields button:hover { background: #2e4235; }
.launch-fields button[aria-disabled='true'] { cursor: wait; }
.launch-note, .launch-status { margin-top: .4rem; font-size: .875rem; }
.launch-note a { color: var(--forest); white-space: nowrap; }
.launch-status:empty { margin: 0; }
.launch-status[data-state='success'] { color: var(--forest); font-weight: 800; }
.launch-status[data-state='error'] { color: #793a21; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-block: .65rem; }
.store-badges img { width: auto; height: 40px; }
.store-badges img[src$='/google-play-badge.png'] { height: 60px; margin-block: -10px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 3.8vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.8rem, 5.5vw, 5.25rem) clamp(3.5rem, 7vw, 6.3rem);
}
.hero h1 { font-size: clamp(3rem, 5.15vw, 5rem); line-height: 1.01; text-wrap: initial; }
.hero h1 span { display: block; color: var(--accent); }
.intro { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.53; }
.hero-figure { min-width: 0; }
.hero-stage { position: relative; isolation: isolate; aspect-ratio: 1; }
.hero-paper {
  position: absolute;
  inset: 11% 0 3% 8%;
  border-radius: 46% 41% 8% 8% / 30% 30% 8% 8%;
  background: #e3eadd url('/assets/afternoon-sky.webp') center top / cover no-repeat;
}
.phone {
  position: relative;
  min-width: 0;
  padding: 2.15%;
  border-radius: 13% / 6%;
  background: #222a23;
  box-shadow: 0 22px 45px -20px #18291c88, 0 2px 5px #17251e3b;
}
.phone img { width: 100%; border-radius: 11% / 5.05%; }
.hero-stage .phone { position: absolute; width: min(44%, 17rem); padding: 1%; }
.hero-timeline { top: 9%; left: 7%; z-index: 1; transform: rotate(-9deg) scale(.89); transform-origin: center 80%; }
.hero-kitchen { top: 1%; left: 40%; z-index: 2; transform: rotate(6deg); transform-origin: center 80%; }
.hero-bag { position: absolute; right: -2%; bottom: 1%; z-index: 3; width: 25%; transform: rotate(9deg); filter: drop-shadow(0 10px 10px #23372829); }

.routine { background: var(--pale); border-block: 1px solid var(--stroke); }
.routine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 7.5vw, 7rem);
}
.routine-art {
  position: relative;
  aspect-ratio: 1.26;
  overflow: hidden;
  border-radius: 2.5rem 2.5rem 1.25rem 1.25rem;
  background: #d3dfce;
}
.routine-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.routine-copy h2 { color: var(--forest); text-wrap: initial; max-width: 11ch; }
.routine-copy p, .household-copy p, .tour-copy p { margin-top: 1.2rem; max-width: 43ch; font-size: clamp(1.0625rem, 1.35vw, 1.2rem); }
.routine-steps { display: grid; justify-items: start; gap: .55rem; margin: 1.4rem 0 0; padding-inline-start: 1.55rem; font-weight: 800; }
.routine-steps li { padding-inline-start: .2rem; }
.routine-steps li::marker { color: var(--accent); }

.app-tour { padding-block: clamp(3rem, 7vw, 6.75rem); }
.tour-layout {
  --tour-title-size: clamp(2.35rem, 4.6vw, 4.125rem);
  --tour-row-gap: clamp(.65rem, 2svh, 1.25rem);
  --tour-screen-padding: clamp(.75rem, 2.3svh, 1.75rem);
  /* The tabs use 3.27rem. The other 2rem leaves space around the gallery. */
  --tour-phone-height: calc(100svh - var(--header-height) - 5.27rem - 1.04 * var(--tour-title-size) - 2 * var(--tour-row-gap) - 2 * var(--tour-screen-padding));
  display: grid;
  position: relative;
  gap: var(--tour-row-gap);
}
.tour-layout > h2 { font-size: var(--tour-title-size); }
.tour-controls {
  display: inline-flex;
  justify-self: start;
  gap: .15rem;
  border-radius: 1.125rem;
  padding: .26rem;
  background: #e8ede6;
}
.tour-controls button {
  min-height: 2.75rem;
  padding: .5rem clamp(.7rem, 1.5vw, 1.3rem);
  border: 0;
  border-radius: .9rem;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}
.tour-controls button:hover { background: #dfe8dc; }
.tour-controls button[aria-selected='true'] { background: var(--forest); color: white; }
.tour-panels { display: grid; gap: 1.5rem; min-width: 0; position: relative; }
.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  overflow: hidden;
  border-radius: 1.9rem;
  background: var(--surface);
  border: 1px solid var(--stroke);
}
.tour-copy { padding: clamp(1.25rem, min(4.5vw, 7svh), 4rem); }
.tour-copy h3 { color: var(--forest); max-width: 13ch; text-wrap: initial; }
.tour-screen { display: grid; justify-items: center; align-items: center; padding: var(--tour-screen-padding) 1.75rem; }
.tour-screen-timeline { background: #e0e9da; }
.tour-screen-kitchen { background: var(--pale); }
.tour-screen-list { background: #dde9e8; }
.tour-screen .phone {
  /* Oowa screenshots are 804 by 1748, with 5px of frame padding on each side. */
  width: min(100%, 14.75rem, max(8rem, calc(10px + (var(--tour-phone-height) - 10px) * .46)));
  padding: 5px;
}

.households { background: #e7eddf; border-block: 1px solid #d7e0d2; }
.household-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6.75rem);
}
.household-copy h2 { max-width: 14ch; text-wrap: initial; color: var(--forest); }
.household-layout img { justify-self: center; width: min(100%, 26rem); }

.faq {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block-start: clamp(3.5rem, 7.5vw, 7rem);
}
.faq-intro p { margin-top: 1.1rem; }
.faq-questions details { border-bottom: 1px solid var(--stroke); }
.faq-questions details:first-child { border-top: 1px solid var(--stroke); }
.faq-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding-block: .9rem;
  cursor: pointer;
  font-size: clamp(1.0625rem, 1.45vw, 1.2rem);
  font-weight: 800;
  list-style: none;
}
.faq-questions summary::-webkit-details-marker { display: none; }
.faq-questions summary::after {
  display: block;
  content: '';
  flex: 0 0 .62rem;
  height: .62rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: -.25rem .25rem 0 0;
}
.faq-questions details[open] summary::after { transform: rotate(225deg); margin-top: .25rem; }
.faq-questions p { padding: 0 1.5rem 1.25rem 0; max-width: 64ch; }

.faq-page-intro { background: var(--pale); border-block-end: 1px solid var(--stroke); }
.faq-page-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.faq-page-intro h1 { max-width: 13ch; color: var(--forest); font-size: clamp(2.5rem, 5vw, 4rem); text-wrap: initial; }
.faq-page-intro p { margin-top: 1rem; max-width: 42ch; color: var(--muted); font-size: 1.125rem; }
.faq-page-intro img { width: min(100%, 24rem); justify-self: end; border-radius: 1rem; }
.faq-directory {
  display: grid;
  grid-template-columns: minmax(11rem, .62fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.faq-topic-nav { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.faq-topic-nav p { color: var(--forest); font-weight: 800; }
.faq-topic-nav ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.faq-topic-nav a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .25rem; }
.faq-topic + .faq-topic { margin-top: clamp(2.25rem, 5vw, 4rem); }
.faq-topic h2, .faq-help h2 { color: var(--forest); font-size: clamp(1.5rem, 3vw, 2.25rem); }
.faq-topic .faq-questions { margin-top: .75rem; }
.faq-help { margin-top: 3rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--pale); border-radius: 1rem; }
.faq-help p { margin-top: .6rem; max-width: 55ch; }

.home-blog { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.blog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}
.blog-heading .quiet-link { font-size: 1rem; }
.blog-empty { margin-top: .7rem; font-size: 1.125rem; }
.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: clamp(1.2rem, 3vw, 2rem) 0 0;
}
.post-list--single { grid-template-columns: minmax(0, 1fr); }
.post-list--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { min-width: 0; border: 1px solid var(--stroke); border-radius: 1rem; }
.post-card-link { display: grid; height: 100%; border-radius: inherit; overflow: hidden; text-decoration: none; }
.post-card-link--cover { grid-template-rows: auto 1fr; }
.post-card-cover { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--pale); }
.post-card-copy { display: flex; flex-direction: column; gap: .6rem; padding: clamp(1rem, 2.8vw, 2rem); }
.post-card time { color: var(--muted); font-size: .9rem; }
.post-card :is(h2, h3) { color: var(--forest); font-size: clamp(1.35rem, 2.75vw, 2rem); line-height: 1.16; overflow-wrap: anywhere; }
.post-card p { max-width: 48ch; overflow-wrap: anywhere; }
.post-card-action { align-self: start; margin-top: auto; padding-top: .5rem; color: var(--forest); font-weight: 800; text-decoration: underline; text-underline-offset: .24em; }
.post-card-link:hover .post-card-action, .post-card-link:focus-visible .post-card-action { text-decoration-thickness: 2px; }
.post-list--single .post-card-link--cover {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
}
.post-list--single .post-card-copy { justify-content: center; gap: .85rem; padding: clamp(1.2rem, 4vw, 3rem); background: var(--pale); }
.post-list--single .post-card :is(h2, h3) { font-size: clamp(1.7rem, 3.8vw, 3rem); }
.post-list--single .post-card-action { margin-top: .25rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.3rem 2.5rem;
  border-top: 1px solid var(--stroke);
  font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: 1.3rem; }
.site-footer nav a { min-height: 2.75rem; display: inline-flex; align-items: center; text-decoration: none; }
.site-footer .brand img { width: 6.45rem; }
.site-footer p { white-space: nowrap; }
.site-footer .store-credit { flex-basis: 100%; white-space: normal; font-size: .8125rem; }

.blog-page { display: flex; flex-direction: column; min-height: 100vh; }
.blog-page main { flex: 1; padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.blog-page h1 { font-size: clamp(2.85rem, 5.15vw, 4.75rem); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
}

@media (max-width: 740px) {
  :root { --header-height: 6.625rem; }
  .site-nav { grid-template-columns: minmax(0, 1fr); gap: .25rem; padding-block: .4rem; }
  .brand img { width: 6rem; }
  .nav-links { flex-wrap: wrap; gap: 0 1.15rem; }
  .hero { display: block; }
  .hero h1 { font-size: clamp(2.65rem, 10.75vw, 4.4rem); }
  .hero h1 span { display: block; margin-top: .04em; }
  .intro { margin-top: 1.1rem; }
  .launch-hero { margin-top: 1.2rem; }
  .hero-details { display: none; }
  .hero-figure { margin: 1.8rem auto 0; width: min(100%, 30rem); }
  .routine-layout, .household-layout, .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-page-intro-layout, .faq-directory { grid-template-columns: minmax(0, 1fr); }
  .faq-page-intro img { display: none; }
  .faq-topic-nav { position: static; }
  .faq-topic-nav ul { display: flex; flex-wrap: wrap; column-gap: 1rem; }
  .routine-art { order: 1; aspect-ratio: 1.12; }
  .household-layout img { width: min(85%, 22rem); }
  .tour-layout { --tour-title-size: clamp(1.95rem, 9.2vw, 2.35rem); --tour-row-gap: .7rem; }
  .tour-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); justify-self: stretch; }
  .tour-controls button { padding-inline: .35rem; }
  .tour-panels.is-swipeable {
    --tour-gap: .75rem;
    --tour-peek: 1rem;
    display: flex;
    gap: var(--tour-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tour-panels.is-swipeable::after { content: ''; flex: 0 0 var(--tour-peek); }
  .tour-panels.is-swipeable .tour-panel {
    flex: 0 0 calc(100% - var(--tour-gap) - var(--tour-peek));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .tour-panels.is-swipeable .tour-panel:focus-visible { outline-offset: -3px; }
  .tour-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; border-radius: 1.25rem; }
  .tour-screen { grid-row: 1; padding: .8rem; }
  .tour-screen .phone { width: min(76%, 11.5rem, max(7.125rem, calc(24svh - 1.9rem))); }
  .tour-copy { grid-row: 2; padding: .95rem 1.05rem 1.1rem; }
  .tour-copy h3 { max-width: none; font-size: clamp(1.5rem, 6vw, 2rem); }
  .tour-copy p { margin-top: .55rem; line-height: 1.45; }
  .post-list, .post-list--single .post-card-link--cover { grid-template-columns: minmax(0, 1fr); }
  .post-list--single .post-card-link--cover { grid-template-rows: auto 1fr; }
}

@media (max-width: 379px) {
  .site-nav .nav-links { column-gap: .625rem; }
  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 2.65rem); }
  .tour-controls button { font-size: .94rem; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    --reveal-ease: cubic-bezier(.32, .14, .27, 1);
    transition-property: transform, opacity;
    transition-duration: var(--reveal-duration, 640ms);
    transition-timing-function: var(--reveal-ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  [data-reveal='scan-art'] {
    --reveal-from: translateY(1.75rem) rotate(-2.2deg) scale(.97);
    --reveal-duration: 960ms;
    transform-origin: 50% 78%;
  }

  [data-reveal='tour'] {
    --reveal-from: translateX(1rem) scale(.985);
    --reveal-duration: 790ms;
  }
  [data-reveal='household-copy'] { --reveal-from: translateX(-.9rem); }
  [data-reveal='household-art'] {
    --reveal-from: translate(1rem, 1.2rem) rotate(2deg) scale(.97);
    --reveal-duration: 920ms;
    transform-origin: 50% 72%;
  }
  [data-reveal='step'], [data-reveal='question'] {
    --reveal-from: translateY(.65rem);
    --reveal-duration: 560ms;
  }
  :is([data-reveal='step'], [data-reveal='question']):nth-child(2) { --reveal-delay: 65ms; }
  :is([data-reveal='step'], [data-reveal='question']):nth-child(3) { --reveal-delay: 130ms; }
  [data-reveal='blog-posts'] { --reveal-from: translateY(.65rem) scale(.99); --reveal-delay: 80ms; }

  [data-reveal-pending] {
    opacity: 0;
    transform: var(--reveal-from, translateY(1rem));
    transition: none;
  }
  :target [data-reveal], [data-reveal]:target, [data-reveal]:focus-within {
    opacity: 1;
    transform: none;
    transition: none;
  }
  :target [data-reveal='scan-art'] img { transform: none; transition: none; }

  @media (max-width: 740px) {
    [data-reveal='scan-art'] { --reveal-from: translateY(1.25rem) rotate(-1.5deg) scale(.98); --reveal-duration: 860ms; }
    [data-reveal='household-copy'] { --reveal-from: translateY(.85rem); }
    [data-reveal='household-art'] { --reveal-from: translateY(1rem) rotate(1.6deg) scale(.98); --reveal-duration: 820ms; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
