@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&family=Ubuntu:wght@300;400;500;700&display=swap");

:root {
  --bg: #f7f4ec;
  --bg-soft: #ede8dc;
  --surface: #ffffff;
  --text: #1a231e;
  --muted: #4e6058;
  --primary-100: #d9ebdd;
  --primary: #c1dfc8;
  --primary-700: #4f8a65;
  --green: #1c3829;
  --green-mid: #3d6b52;
  --border-divider: #d1d5db;
  --hero-hooks-size: clamp(1.1rem, 1.855vw, 1.28rem);
  --hero-brand-size: clamp(2.8rem, 4.76vw, 3.27rem);
  --hero-phrase-size: clamp(1.4rem, 2.555vw, 1.76rem);
  --hero-feats-size: clamp(1.1rem, 1.785vw, 1.23rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
}

a {
  color: inherit;
}

.brand {
  font-family: "EB Garamond", serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-decoration: none;
}

.hero {
  position: relative;
  width: min(960px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 48px) 0 0;
  text-align: left;
  color: var(--text);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px);
  align-items: center;
  line-height: normal;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vw, 50px);
  text-align: center;
}

.hero-copy,
.hero-waitlist {
  display: contents;
}

@media (max-width: 700px) {
  html[data-landing-mode="public"] .hero-with-video .hero-left {
    display: contents;
  }

  html[data-landing-mode="public"] .hero-with-video .hero-copy,
  html[data-landing-mode="public"] .hero-with-video .hero-waitlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: inherit;
  }

  html[data-landing-mode="public"] .hero-with-video .hero-copy { grid-row: 1; }
  html[data-landing-mode="public"] .hero-with-video .hero-right { grid-row: 2; }
  html[data-landing-mode="public"] .hero-with-video .hero-waitlist {
    grid-row: 3;
    margin-top: 24px;
  }
}

.hooks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "EB Garamond", serif;
  font-size: var(--hero-hooks-size);
  line-height: 1.12;
  color: var(--text);
}

.hook {
  margin: 0;
}

.hero .brand {
  margin: 0;
  font-size: var(--hero-brand-size);
  font-weight: 600;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.02em;
}

.marker {
  background-color: var(--primary-100);
  padding: 0 3px;
  border-radius: 0;
}

.hero-marker {
  font-weight: 500;
  padding-inline: 0;
}

.phrase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: var(--hero-phrase-size);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
}

.phrase > span {
  text-align: center;
}

.phrase .highlight {
  font-weight: 600;
  color: var(--text);
}

.feats {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: clamp(22px, 3vw, 34px);
  max-width: 760px;
  font-family: "EB Garamond", serif;
  font-size: var(--hero-feats-size);
  font-weight: 400;
  line-height: 1.16;
  color: var(--text);
}

.feats .wrapped-text {
  display: flex;
  flex-direction: column;
}

.feats.hero-tagline {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.mobile-break { display: none; }

@media (max-width: 700px) {
  .mobile-break { display: initial; }
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Ubuntu", serif;
}

html[data-landing-mode="public"] [data-beta-only],
html[data-landing-mode="beta"] [data-public-only] {
  display: none;
}

.invitation-actions { width: 100%; }

.waitlist-form { width: 100%; text-align: left; }
.waitlist-fields { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.waitlist-fields input {
  min-width: 0;
  max-width: 370px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-divider);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.waitlist-fields input:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }
.waitlist-fields button { align-self: center; cursor: pointer; font: inherit; }
.waitlist-fields button:disabled { opacity: 0.7; cursor: default; }
.waitlist-status { margin: 12px 0 0; color: var(--green); font-size: 0.9rem; line-height: 1.5; }
.waitlist-status:empty { display: none; }

.action-note {
  margin: 14px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.beta-intro { max-width: 76ch; }

.beta-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.beta-platform {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border-divider);
  border-radius: 16px;
}

.beta-guide .beta-platform > h3 {
  font-family: "EB Garamond", serif;
  font-size: 1.65rem;
}

.beta-steps { padding-left: 24px; margin: 24px 0; }
.beta-steps li { padding-left: 8px; }
.beta-steps li + li { margin-top: 24px; }
.beta-steps li::marker { color: var(--green-mid); font-weight: 500; }
.beta-steps h4 { margin: 0 0 8px; font-weight: 500; line-height: 1.5; }
.beta-guide .beta-steps p { font-size: 0.95rem; margin: 0; }
.beta-guide .beta-pending { font-size: 0.9rem; margin-bottom: 0; }
.beta-help { margin-top: 28px; text-align: center; }
.beta-guide .beta-help p { margin: 0; font-size: 1rem; }
.beta-help a { white-space: nowrap; }

@media (max-width: 700px) {
  .beta-platforms { grid-template-columns: 1fr; }
}

.items-list {
  line-height: 1.2;
}

.desktop-break {
  display: block;
}

.hero-right {
  position: relative;
  width: min(100%, 500px);
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-halo {
  position: absolute;
  width: min(88vw, 440px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 138, 101, 0.18) 0%, rgba(79, 138, 101, 0.08) 42%, transparent 70%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  width: min(100%, 420px);
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  width: min(68vw, 278px);
}

.carousel-caption-track {
  position: relative;
  overflow: hidden;
  height: 2.8em;
  margin: 0 10px 12px;
  font-family: "EB Garamond", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.carousel-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  visibility: hidden;
}

.carousel-caption.is-active,
.carousel-caption.is-leaving {
  visibility: visible;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid var(--green);
  border-radius: 44px;
  background: var(--surface);
  box-shadow: 0 38px 86px rgba(28, 56, 41, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.58);
  width: 100%;
}

.phone-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
}

.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-shot.is-active {
  position: relative;
  z-index: 2;
  visibility: visible;
  pointer-events: auto;
}

.phone-shot.is-leaving {
  visibility: visible;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(28, 56, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 14px 34px rgba(28, 56, 41, 0.15);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-arrow[hidden] {
  display: none;
}

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

  .phone-shot,
  .carousel-arrow {
    transition: none;
  }
}

.actions a:focus-visible,
.public-content a:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 4px;
}

.public-content {
  width: min(960px, 100% - 48px);
  margin: 20px auto 0;
  scroll-margin-top: 24px;
}

.public-content h2 {
  margin: 0 0 24px;
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.public-content h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
}

.public-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.overview p {
  max-width: 76ch;
}

.routine-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-left: 24px;
}

.routine-steps li {
  padding-left: 4px;
}

.routine-steps li::marker {
  color: var(--green-mid);
  font-weight: 500;
}

.faq-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.faq-list article {
  padding: 24px 0 8px;
  border-top: 1px solid var(--border-divider);
  scroll-margin-top: 24px;
}

.faq-list article:first-child {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 700px) {
  .public-content {
    margin-top: 56px;
  }

  .routine-steps,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-heading p {
    margin-bottom: 0;
  }
}

.carousel-arrow:hover {
  background: var(--surface);
  border-color: rgba(28, 56, 41, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--text);
  font-weight: 400;
  word-break: keep-all;
}

.button-primary {
  background: var(--green);
  color: var(--surface);
  border-color: var(--green);
  padding: 12px 24px;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}

.button-primary:hover { background: var(--green-mid); border-color: var(--green-mid); }

.button.store {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-divider);
  font-weight: 500;
  gap: 10px;
  padding: 0 18px;
  min-width: 158px;
  align-items: center;
  white-space: nowrap;
}

.button.store:hover {
  box-shadow: 0 0 30px 0 var(--primary);
}

.button.store.store-appstore {
  background: #000;
  color: #fff;
  border-color: #000;
}

.button.store.store-appstore:hover {
  background: #111827;
  border-color: #111827;
}

.store-icon {
  display: inline-block;
  line-height: 1;
  flex: 0 0 24px;
}

.store-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.store-icon-apple,
.store-icon-apple svg {
  width: 30px;
  height: 30px;
}

.store-icon-apple {
  width: 24px;
  height: 24px;
  margin: -10px 0 0 0;
}

.store-icon-playstore,
.store-icon-playstore svg {
  width: 23px;
  height: 23px;
}

.store-icon-playstore {
  flex-basis: 23px;
}

.store-label {
  font-family: "Ubuntu", serif;
  font-size: 16px;
  font-weight: 400;
}

.text-link {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-footer {
  color: var(--text);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-bottom: 24px;
}

.site-footer a {
  text-decoration: none;
  color: var(--text);
}

.email-link {
  font-weight: 300;
}

.footer-links,
.legal-nav,
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
}

.footer-links {
  flex-direction: column;
  align-items: center;
}

.footer-links a,
.legal-nav a,
.language-switcher a {
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}

.footer-links-home {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links-home .links-wrapper {
  display: flex;
  align-items: baseline;
  column-gap: 6px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text);
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary-100);
  border-radius: 999px;
}

.social-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-links a:hover,
.legal-nav a:hover,
.language-switcher a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--primary);
}

.footer-links a[aria-current="page"],
.legal-nav a[aria-current="page"],
.language-switcher a[aria-current="page"] {
  background-color: var(--primary-100);
  padding: 0.25rem 4px;
  text-decoration: none;
}

.footer-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Ubuntu", sans-serif;
  font-size: 12px;
  line-height: 1;
  z-index: 1;
}

.language-selector a {
  color: var(--text);
  text-decoration: none;
  padding: 2px;
  line-height: 1;
}

.footer-language-selector {
  justify-content: center;
}

.language-selector a:hover,
.language-selector a[aria-current="page"] {
  background-color: var(--primary-100);
  text-decoration: none;
}

.legal-header {
  width: min(1040px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
}

.legal-header .brand {
  line-height: 1;
}

.legal-header .legal-nav {
  justify-content: center;
}

.legal-main {
  width: min(840px, 100% - 2rem);
  margin: 0 auto;
  padding: 0;
}

.legal-document {
  background: var(--surface);
  border: 1px solid var(--border-divider);
  border-radius: 8px;
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}

.legal-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-document h1 {
  margin: 0.35rem 0 1.25rem;
  font-family: "EB Garamond", serif;
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 1;
  font-weight: 600;
}

.language-switcher {
  justify-content: flex-start;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-divider);
}

.legal-content {
  font-size: 1rem;
}

.legal-content h2 {
  margin: 2rem 0 0.55rem;
  font-family: "EB Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin: 0.55rem 0;
}

.legal-content ul {
  padding-left: 1.35rem;
}

.legal-content li + li {
  margin-top: 0.25rem;
}

.legal-footer {
  padding: 0 1rem 2rem;
}

@media only screen and (max-width: 960px) {
  .hero {
    width: min(100% - 32px, 620px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0 0;
    text-align: center;
  }

  .hero-left,
  .hooks,
  .phrase,
  .feats {
    align-items: center;
  }

  .actions {
    justify-content: center;
  }

  .hero-right {
    min-height: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-carousel {
    min-height: 500px;
    width: 100%;
    align-items: flex-start;
  }

  .carousel-content {
    width: 100%;
  }

  .carousel-caption-track {
    display: grid;
    font-size: 18px;
    height: auto;
    padding-bottom: 4px;
    margin: 0 14px 10px;
  }

  .carousel-caption {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-items: center;
  }

  .phone-frame {
    width: min(64vw, 256px);
    margin-inline: auto;
    border-width: 8px;
    border-radius: 34px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .carousel-arrow-prev {
    left: 4px;
  }

  .carousel-arrow-next {
    right: 4px;
  }
}

@media (max-width: 375px) {
  .actions {
    gap: 12px;
  }

  .button.store {
    min-height: 44px;
    padding: 0 14px;
  }

  .store-label {
    font-size: 14px;
  }
}

@media only screen and (max-width: 320px) {
  .actions {
    gap: 8px;
  }

  .hero {
    width: min(100% - 24px, 620px);
  }
}

@media only screen and (max-width: 640px) {
  .legal-header {
    align-items: center;
  }

  .legal-header .legal-nav {
    flex-direction: row;
    align-items: center;
    gap: 8px 16px;
  }

  .language-switcher {
    justify-content: center;
  }
}

@media only screen and (min-width: 520px) {
  .feats .wrapped-text {
    flex-direction: row;
    column-gap: 4px;
  }

  .actions {
    column-gap: 14px;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

@media only screen and (min-width: 961px) {
  .footer-links,
  .footer-links-home {
    flex-direction: row;
  }
}

/* Shared information pages retain the landing's typography and green accents. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--green);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 10;
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 4px;
}

.legal-content { line-height: 1.65; overflow-wrap: anywhere; }
.legal-nav, .language-switcher, .footer-links { font-size: 0.875rem; }
.legal-nav a, .language-switcher a, .footer-links a { padding: 0.25rem 0; }
.footer-links-home { flex-wrap: wrap; }
