:root {
  --ink: #15372c;
  --ink-soft: #52685f;
  --forest: #173f32;
  --forest-light: #2d6a4f;
  --mint: #b7e4c7;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --gold: #f9c74f;
  --line: rgba(21, 55, 44, 0.14);
  --shadow: 0 24px 70px rgba(20, 60, 46, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 6%, rgba(183, 228, 199, 0.42), transparent 24rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(13, 43, 30, 0.14);
}

nav {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.footer-links a:hover {
  color: var(--forest-light);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  padding: 64px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 0.94rem;
  font-family: inherit;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--forest-light);
  box-shadow: 0 12px 30px rgba(45, 106, 79, 0.24);
}

.button-store {
  color: white;
  background: #101211;
  box-shadow: 0 12px 30px rgba(16, 18, 17, 0.16);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.availability,
.noscript-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.phone-stage {
  min-height: 600px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.phone-stage::before {
  content: "";
  width: 480px;
  height: 480px;
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  background: var(--mint);
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(21, 55, 44, 0.13);
  border-radius: 50%;
}

.orbit-one {
  width: 560px;
  height: 560px;
}

.orbit-two {
  width: 390px;
  height: 390px;
  border-style: dashed;
}

.phone {
  width: 312px;
  padding: 10px;
  border: 4px solid #10261f;
  border-radius: 44px;
  background: #10261f;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.phone-top {
  width: 104px;
  height: 23px;
  margin: 0 auto -13px;
  position: relative;
  z-index: 2;
  border-radius: 0 0 16px 16px;
  background: #10261f;
}

.phone-screen {
  min-height: 552px;
  overflow: hidden;
  padding: 27px 18px 14px;
  border-radius: 32px;
  background: #f8f8f5;
}

.app-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.app-heading span,
.item-card span {
  display: block;
  margin-bottom: 3px;
  color: #6e7974;
  font-size: 0.66rem;
  font-weight: 650;
}

.app-heading strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.05;
}

.app-heading img {
  border-radius: 9px;
}

.search-pill {
  margin: 22px 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(21, 55, 44, 0.08);
  border-radius: 12px;
  color: #89928e;
  background: white;
  font-size: 0.72rem;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.item-card {
  min-height: 164px;
  padding: 9px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 20px rgba(21, 55, 44, 0.07);
}

.item-card strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.item-art {
  height: 105px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.item-card-yellow .item-art {
  color: #6d5611;
  background: #f6df91;
}

.item-card-blue .item-art {
  color: #315674;
  background: #c8e2f4;
}

.item-card-coral .item-art {
  color: #7c463d;
  background: #f3c1b6;
}

.item-card-green .item-art {
  color: #315e4d;
  background: #bfe2ce;
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid rgba(21, 55, 44, 0.09);
  color: #8b9691;
  font-size: 0.62rem;
  font-weight: 700;
}

.phone-nav .active {
  color: var(--forest-light);
}

.principle {
  width: 100%;
  padding: clamp(52px, 8vw, 92px) clamp(28px, 7vw, 84px);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(249, 199, 79, 0.18), transparent 18rem),
    var(--forest);
}

.principle p {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}

.how-it-works {
  padding: 112px 0 106px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

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

.feature-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.62);
}

.step {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--forest-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.feature-grid p,
.android-callout p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.android-callout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 100px;
  padding: 42px;
  border-radius: 26px;
  background: var(--mint);
}

.android-callout h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
}

.android-callout .eyebrow {
  margin-bottom: 12px;
}

.android-copy {
  max-width: 480px;
}

.android-form {
  width: min(100%, 470px);
  flex: 0 1 470px;
  position: relative;
  padding: 24px;
  border: 1px solid rgba(21, 55, 44, 0.12);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(21, 55, 44, 0.1);
}

.android-form > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-row input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 55, 44, 0.24);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 1rem;
}

.form-row input::placeholder {
  color: #87958f;
}

.form-row input:focus {
  outline: 3px solid rgba(249, 199, 79, 0.72);
  outline-offset: 2px;
  border-color: var(--forest-light);
}

.form-submit {
  box-shadow: none;
}

.form-help {
  margin: 10px 0 0 !important;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0 !important;
  font-size: 0.84rem;
  font-weight: 750;
}

.form-status.is-success {
  color: #1e6a42;
}

.form-status.is-error {
  color: #a32921;
}

.form-trap {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

body[data-route="invite"] .phone-stage::after,
body[data-route="community-invite"] .phone-stage::after,
body[data-route="app-link"] .phone-stage::after {
  content: "Open this link in the app";
  position: absolute;
  right: 2%;
  bottom: 12%;
  padding: 13px 18px;
  border: 1px solid rgba(21, 55, 44, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(21, 55, 44, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  transform: rotate(-3deg);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .phone-stage {
    min-height: 590px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .step {
    margin-bottom: 26px;
  }

  .android-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .android-form {
    width: 100%;
    flex-basis: auto;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 66px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone-stage {
    min-height: 530px;
  }

  .phone-stage::before {
    width: min(340px, calc(100vw - 28px));
    height: min(340px, calc(100vw - 28px));
  }

  .orbit-one {
    width: min(390px, calc(100vw - 28px));
    height: min(390px, calc(100vw - 28px));
  }

  .orbit-two {
    width: min(300px, calc(100vw - 28px));
    height: min(300px, calc(100vw - 28px));
  }

  .phone {
    width: 270px;
    transform: rotate(1.5deg) scale(0.92);
  }

  .phone-screen {
    min-height: 510px;
  }

  .item-card {
    min-height: 145px;
  }

  .item-art {
    height: 88px;
  }

  body[data-route] .phone-stage::after {
    right: 0;
    bottom: 8%;
  }

  .principle {
    border-radius: 22px;
  }

  .how-it-works {
    padding: 86px 0 80px;
  }

  .android-callout {
    margin-bottom: 74px;
    padding: 30px 24px;
  }

  .android-form {
    padding: 20px;
  }

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

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

  .button {
    transition: none;
  }
}
