:root {
  --bg: #faf5ec;
  --ink: #1c1a16;
  --muted: #6b6357;
  --muted-2: #948b7c;
  --line: #e6ddcc;
  --green: #3f9c72;
  --green-soft: #eaf4ee;
  --red: #d9695f;
  --cyan-soft: #2f7a63;
  --card: #fffdf8;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.brand span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
}

nav.site a:hover {
  color: var(--ink);
}

.kicker {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}

h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
}

.hero {
  padding: 72px 0 56px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: #fffdf8;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

/* Store links aren't live yet — shown as a disabled "em breve" state, not clickable. */
.btn-soon {
  background: var(--green-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.disclaimer {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
}

section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.card .icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.legal {
  font-size: 13.5px;
  color: var(--muted);
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.faq-item p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 12.5px;
  color: var(--muted-2);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--muted-2);
  margin-right: 16px;
  text-decoration: none;
}

footer.site a:hover {
  color: var(--ink);
}

.page-title {
  font-size: 28px;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}

.updated {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  margin: 32px 0 10px;
}

.doc p, .doc li {
  font-size: 14.5px;
  color: var(--muted);
}

.doc ul {
  padding-left: 20px;
}

.pill {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.waitlist-form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.waitlist-form input:focus {
  border-color: var(--green);
}

.waitlist-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin-top: 12px;
  font-size: 13.5px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-carousel.stacked-carousel {
  flex: 1;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stacked-img {
  position: absolute;
  width: 280px;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border: 8px solid #fffdf8;
  animation: cardStack 25s infinite cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: calc(var(--i) * -5s);
}

@keyframes cardStack {
  0%, 15% {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 5;
  }
  20%, 35% {
    opacity: 1;
    transform: scale(0.95) translateY(-30px);
    z-index: 4;
  }
  40%, 55% {
    opacity: 1;
    transform: scale(0.9) translateY(-60px);
    z-index: 3;
  }
  60%, 75% {
    opacity: 0;
    transform: scale(0.85) translateY(-90px);
    z-index: 2;
  }
  80%, 95% {
    opacity: 0;
    transform: scale(1.05) translateY(30px);
    z-index: 6;
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 5;
  }
}

@media (max-width: 900px) {
  .hero-wrap {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .lede {
    margin: 0 auto;
  }
  .waitlist-form {
    justify-content: center;
  }
  .hero-carousel.stacked-carousel {
    min-height: 500px;
    width: 100%;
    margin-top: 40px;
  }
  .stacked-img {
    width: 240px;
  }
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.video-section {
  padding: 80px 0;
  background: var(--card);
}

.video-section h2 {
  font-size: 28px;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.video-container {
  max-width: 320px;
  margin: 40px auto 0;
  border-radius: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  border: 8px solid #fff;
  outline: 1px solid var(--line);
  overflow: hidden;
  background: #000;
}

.app-video {
  width: 100%;
  display: block;
}
