:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --card: #ffffff;
  --ink: #172c25;
  --muted: #56655f;
  --line: rgba(23, 44, 37, 0.13);
  --green: #226449;
  --green-dark: #174a35;
  --green-soft: #d9ecd3;
  --gold: #d6b46c;
  --error: #a33a2c;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shared header and footer */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
}

.brand img {
  display: block;
  width: auto;
  height: 56px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.links a {
  text-decoration: none;
}

.links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Home: one screen. It only scrolls on a screen too short to fit it, rather than cutting anything off. */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(60rem 40rem at 88% 8%, rgba(217, 236, 211, 0.9), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(214, 180, 108, 0.2), transparent 60%),
    var(--paper);
}

.hero {
  display: grid;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1180px;
  min-height: 0;
  margin: 0 auto;
  padding: 0 24px;
}

.copy {
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-dark);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, min(8.2vw, 6.6vh), 3rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: normal;
  white-space: nowrap;
  color: var(--green);
}

.lede {
  text-wrap: pretty;
  margin: 18px 0 28px;
  max-width: 470px;
  font-size: clamp(1rem, min(1.6vw, 2.3vh), 1.15rem);
  color: var(--muted);
}

/* Waitlist */
.waitlist {
  max-width: 470px;
}

.platforms {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.platforms label {
  position: relative;
  flex: 1;
}

.platforms input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.platforms span {
  display: block;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.platforms input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.platforms input:focus-visible + span {
  outline: 3px solid rgba(34, 100, 73, 0.35);
  outline-offset: 2px;
}

.row {
  display: flex;
  gap: 8px;
}

.row input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.row input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 100, 73, 0.18);
}

.row button {
  flex: none;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
}

.row button:hover {
  background: var(--green-dark);
}

.row button:disabled {
  opacity: 0.7;
  cursor: default;
}

.note {
  margin: 10px 0 0;
  min-height: 1.5em;
  font-size: 0.8125rem;
  color: var(--muted);
}

.note.error {
  color: var(--error);
}

.joined {
  margin: 0;
  padding: 16px 18px;
  border: 1.5px solid var(--green);
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.joined strong {
  display: block;
  font-size: 1.05rem;
}

/* Phones, on wide screens only */
.phones {
  display: none;
}

.phone {
  margin: 0;
  padding: 8px;
  border-radius: 44px;
  background: #11211b;
  box-shadow: 0 40px 70px -30px rgba(23, 44, 37, 0.55);
}

.phone img {
  display: block;
  height: min(64dvh, 610px);
  width: auto;
  border-radius: 36px;
}

.phone.back {
  margin-right: calc(-1 * min(12dvh, 110px));
  transform: rotate(-7deg) translateY(4%) scale(0.9);
}

.phone.front {
  position: relative;
  transform: rotate(3deg);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .home h1 {
    font-size: clamp(2.2rem, min(4.6vw, 6.6vh), 3.5rem);
  }

  .phones {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .bar {
    padding: 16px 20px;
  }

  .brand img {
    height: 46px;
  }

  .hero {
    padding: 0 20px;
  }

  .row {
    flex-direction: column;
  }

  footer.bar {
    justify-content: center;
  }

  .copyright {
    display: none;
  }
}

/* Privacy and terms */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 24px 56px;
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.doc .updated {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 36px 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: #2b3b35;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .summary {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.doc a {
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
}
