:root {
  color-scheme: light;
  --cream: #fef7e9;
  --white: #fff;
  --ink: #302b25;
  --muted: #5f564a;
  --green: #204c36;
  --green-hover: #163a28;
  --leaf: #e7efe1;
  --coral: #9e462e;
  --line: #ddcfba;
  --radius: 8px;
  --gutter: 32px;
  --section-space: 88px;
  --page-width: 1120px;

  --font-family: "Work Sans", system-ui, sans-serif;
  --font-size-display: 2.25rem;
  --font-size-h1: 2rem;
  --font-size-h2: 1.75rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-h5: 1.125rem;
  --font-size-h6: 1rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body: 1rem;
  --font-size-body-sm: 0.875rem;
  --font-size-caption: 0.75rem;
  --font-size-button-lg: 1rem;
  --font-size-button: 1rem;
  --font-size-navigation: 0.875rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-display: 1.125;
  --line-height-h1: 1.17;
  --line-height-h2: 1.2;
  --line-height-h3: 1.25;
  --line-height-h4: 1.33;
  --line-height-h5: 1.4;
  --line-height-h6: 1.4;
  --line-height-body: 1.5;
  --line-height-body-sm: 1.43;
  --line-height-caption: 1.33;
  --line-height-button: 1.5;
  --line-height-navigation: 1.43;

  --letter-spacing-display: -0.03em;
  --letter-spacing-h1: -0.02em;
  --letter-spacing-h2: -0.02em;
  --letter-spacing-h3: -0.015em;
  --letter-spacing-h4: -0.01em;
  --letter-spacing-h5: -0.01em;
  --letter-spacing-normal: 0em;
}

@media (min-width: 768px) {
  :root {
    --font-size-display: 3rem;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1.125rem;
    --font-size-button-lg: 1.125rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --font-size-display: 4rem;
    --font-size-h1: 3rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 2rem;
    --font-size-body-lg: 1.25rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-normal);
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
:where(h1, h2, h3, h4, h5, h6) { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--page-width)); margin-inline: auto; }
.band { padding-block: var(--section-space); }
.reading { max-width: 660px; margin-inline: auto; text-align: center; }
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }

:where(h1) {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
  letter-spacing: var(--letter-spacing-h1);
}

:where(h2, h3, h4, h5, h6) { font-weight: var(--font-weight-semibold); }

:where(h2) {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  letter-spacing: var(--letter-spacing-h2);
}

:where(h3) {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  letter-spacing: var(--letter-spacing-h3);
}

:where(h4), .feature-grid h3 {
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
  letter-spacing: var(--letter-spacing-h4);
}

:where(h5) {
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
  letter-spacing: var(--letter-spacing-h5);
}

:where(h6) {
  font-size: var(--font-size-h6);
  line-height: var(--line-height-h6);
  letter-spacing: var(--letter-spacing-normal);
}

.lead,
.closing p { font-size: var(--font-size-body-lg); }

.availability,
.footer {
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
}

.copyright {
  display: inline-block;
  font-size: var(--font-size-caption);
  line-height: var(--line-height-caption);
}

.skip {
  position: fixed;
  z-index: 5;
  inset: 10px auto auto 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--white);
}
.skip:focus { transform: none; }

.header {
  display: flex;
  min-height: 64px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.back-link,
.header-nav a {
  padding-block: 12px;
  font-size: var(--font-size-navigation);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-navigation);
  text-decoration: none;
  transition: opacity 180ms ease;
}
.back-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.back-link .icon { width: 18px; height: 18px; }
.header-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.back-link:hover,
.header-nav a:hover { opacity: 0.78; }

.intro { padding-block: 42px 50px; text-align: center; }
.app-icon {
  width: 60px;
  height: 60px;
  margin-inline: auto;
  border-radius: 17px;
  box-shadow: 0 6px 14px rgb(109 62 42 / 12%);
}
.intro .hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 21px;
}
.headline {
  margin: 20px auto 0;
  max-width: 22ch;
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
}
.lead {
  max-width: 57ch;
  margin: 14px auto 0;
  color: var(--muted);
  text-wrap: balance;
}
.cta,
.questions summary {
  font-size: var(--font-size-button);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-button);
}

.cta {
  display: inline-flex;
  min-height: 56px;
  max-width: 100%;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 26px;
  border: 1.5px solid rgb(255 255 255 / 28%);
  border-radius: 17px;
  background-color: var(--green);
  background-image: radial-gradient(circle at 24% 0%, rgb(255 255 255 / 13%), transparent 68%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%), 0 10px 26px rgb(32 76 54 / 17%);
  color: var(--white);
  font-family: inherit;
  text-align: center;
  text-decoration: none;
}
.cta--primary { font-size: var(--font-size-button-lg); }
button.cta { cursor: pointer; }
.cta:hover { background-color: var(--green-hover); }
.cta-icon { flex: none; width: 20px; height: 20px; object-fit: contain; }
.cta[href="#screens"] .cta-icon { display: none; }
.cta--store { min-height: 48px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.cta--store:hover { background: transparent; opacity: 0.85; }
.cta--store img { height: 48px; width: auto; }
.availability { margin-top: 9px; color: var(--muted); }

.beta-signup {
  max-width: 410px;
  margin: 20px auto 0;
}

.beta-signup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}

.beta-signup-fields input,
.beta-signup-fields button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
}

.beta-signup-fields input {
  flex: 1 1 11rem;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}

.beta-signup-fields:has(input:focus) { border-color: var(--green); }
.beta-signup-fields input:focus-visible { outline: none; }

.beta-signup-fields button {
  flex: 1 0 auto;
  background: var(--green);
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.beta-signup-fields button:hover { background: var(--green-hover); }
.beta-signup-fields button:disabled { cursor: wait; }
button.cta:focus-visible,
.beta-signup-fields button:focus-visible { outline-color: var(--green); }

.beta-signup .beta-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body-sm);
}

.beta-status:empty { margin: 0; }

.beta-signup .beta-status--success {
  font-size: calc(var(--font-size-body-lg) - 0.125rem);
  line-height: var(--line-height-body);
}

.beta-status--success strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-size-h4);
  line-height: var(--line-height-h4);
}

.closing p {
  max-width: 55ch;
  margin: 13px auto 0;
  color: var(--muted);
}
.closing {
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5.5vw, 80px);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--leaf);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px 36px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.feature-grid li { padding-top: 20px; border-top: 1px solid var(--line); }
.feature-grid .icon { color: var(--coral); margin-bottom: 8px; }
.feature-grid p { max-width: 35ch; margin-top: 7px; color: var(--muted); }

.screenshots { padding-top: 36px; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(76%, 284px);
  align-items: start;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-inline: contain;
  margin-block: 0;
  padding: 6px 6px 14px;
  list-style: none;
  scrollbar-color: #9b886d transparent;
}
.gallery li { min-width: 0; scroll-snap-align: start; }
.gallery a { display: grid; place-items: end center; min-height: 0; aspect-ratio: 480 / 1004; border-radius: 8px; }
.gallery img { width: 100%; max-height: 100%; object-fit: contain; }
.gallery--paginated { scrollbar-width: none; padding-bottom: 6px; }
.gallery--paginated::-webkit-scrollbar { display: none; }
.gallery-progress {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.gallery-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-dot::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8d7c64;
  content: "";
}
.gallery-dot:hover::before,
.gallery-dot[aria-current="true"]::before { background: var(--green); }
.gallery-dot[aria-current="true"]::before { width: 10px; height: 10px; }
.gallery-dot:focus-visible { outline-offset: -4px; border-radius: var(--radius); }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 25px 50px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary {
  position: relative;
  padding: 15px 34px 15px 6px;
  color: var(--green);
  list-style: none;
  cursor: pointer;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after {
  position: absolute;
  right: 9px;
  top: calc(15px + 0.75em - 1px);
  width: 12px;
  height: 2px;
  background: currentColor;
  content: "";
}
.questions summary::after { transform: rotate(90deg); }
.questions details[open] summary::after { transform: rotate(0); }
.questions summary:focus-visible { outline-offset: -2px; }
.answer { padding: 0 8px 16px 6px; color: var(--muted); }
.answer p { max-width: 61ch; }

.closing h2 { margin-top: 21px; }
.footer {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 88px;
  padding-block: 18px;
  color: var(--muted);
  text-align: center;
}
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 19px; }

@media (max-width: 1024px) {
  :root { --section-space: 72px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; --section-space: 64px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --section-space: 53px; }
  .header { min-height: 60px; gap: 8px; }
  .header-nav { flex-wrap: wrap; gap: 0 6px; }
  .header-nav a { overflow-wrap: anywhere; }
  .intro { padding-block: 27px 36px; }
  .app-icon { width: 55px; height: 55px; border-radius: 14px; }
  .intro .hero-icon { width: 72px; height: 72px; border-radius: 18px; }
  .headline { margin-top: 18px; }
  .lead { margin-top: 12px; }
  .cta, .beta-signup { margin-top: 16px; }
  .faq-layout { grid-template-columns: 1fr; }
  .feature-grid { gap: 18px 18px; }
  .screenshots { padding-top: 24px; }
  .gallery { grid-auto-columns: min(78%, 252px); gap: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(#faq:target) { scroll-behavior: smooth; }
  .cta { transition: background-color 160ms ease, opacity 160ms ease; }
  .cta-icon { animation: spin-testflight-icon 750ms linear infinite; }
  .answer { animation: arrive 160ms ease-out; }

  @keyframes spin-testflight-icon {
    to { transform: rotate(1turn); }
  }

  @keyframes arrive {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
  }
}
