/* Peepal — peepalapp.com
   Phone first: everything below is the 390px layout. One breakpoint at 900px
   at the bottom of the file. Palette and leaf ages from ADR 0039. */

:root {
  --bg: #0B0F0C;
  --surface: #121A14;
  --tile: #1E4A27;
  --accent: #9FD48F;
  --text: #F4F1EA;
  --muted: #A8B0A6;

  /* leaf ages: days since you talked, new to long silent */
  --leaf-new: #C9785A;
  --leaf-fresh: #7FB646;
  --leaf-set: #4F9A3C;
  --leaf-mature: #2F6B34;
  --leaf-turning: #A8A63A;
  --leaf-yellow: #E2B93B;

  --serif: "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --hair: 1px solid rgba(244, 241, 234, 0.12);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}
.skip:focus {
  left: var(--gutter);
  z-index: 10;
  background: var(--tile);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  border-bottom: var(--hair);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
}

.mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(159, 212, 143, 0.45);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}
.nav-cta:hover { background: rgba(159, 212, 143, 0.1); }

/* ---------- hero ---------- */

.hero {
  padding: 28px var(--gutter) 8px;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 8.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- waitlist form ---------- */

.form-slot { margin-top: 22px; }

.waitlist label[for="email"] {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}

.field-row { display: grid; gap: 10px; }

#email {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(244, 241, 234, 0.2);
  border-radius: 10px;
}
#email::placeholder { color: rgba(168, 176, 166, 0.7); }
#email:focus { border-color: var(--accent); }

.waitlist button {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: #0B0F0C;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.waitlist button:hover { background: #B4E0A5; }

.form-note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.form-note.is-error { color: var(--leaf-yellow); }

.joined {
  margin: 0;
  padding: 18px 20px;
  background: var(--tile);
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 22px;
}

/* honeypot: off-screen, never display:none */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- phone mockup ---------- */

.hero-shot {
  margin: 34px auto 0;
  max-width: 320px;
}

.phone {
  position: relative;
  border: 9px solid #050706;
  border-radius: 38px;
  background: #050706;
  box-shadow: 0 0 0 1px rgba(159, 212, 143, 0.22), 0 26px 60px -24px rgba(159, 212, 143, 0.35);
}

.phone::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 20px;
  background: #050706;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  padding: 10px 14px 16px;
  font-size: 14px;
  overflow: hidden;
}

.ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 2px 4px 14px;
}
.ph-dots {
  width: 34px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 7px);
  opacity: 0.6;
}

.ph-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}

.ph-avatar {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tile);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
}

.ph-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}
.ph-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.age-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  background: var(--leaf-set);
}
.age-fresh { background: var(--leaf-fresh); }
.age-set { background: var(--leaf-set); }
.age-turning { background: var(--leaf-turning); }

.ph-section {
  margin: 4px 0 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ph-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 4px 10px 10px 4px;
  margin-bottom: 18px;
}
.ph-note p { margin: 0; font-size: 14px; line-height: 1.45; }
.ph-tick {
  width: 7px; height: 7px;
  margin-top: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.ph-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: var(--hair);
}
.ph-row > .age-dot { margin-top: 6px; }
.ph-row-name { margin: 0; font-size: 14px; }
.ph-row-note { margin: 1px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.ph-foot {
  margin: 16px 0 0;
  font-size: 10px;
  color: rgba(168, 176, 166, 0.7);
}

/* ---------- three blocks ---------- */

.blocks { padding: 46px var(--gutter) 10px; }

.block {
  padding: 22px 0;
  border-top: var(--hair);
}

.block h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
}

.block p {
  color: var(--muted);
  max-width: 34em;
}

.block-leaf {
  display: block;
  width: 22px; height: 22px;
  background: currentColor;
  color: var(--leaf-set);
  -webkit-mask: url("/assets/leaf.svg") no-repeat center / contain;
  mask: url("/assets/leaf.svg") no-repeat center / contain;
}
.leaf-fresh { color: var(--leaf-fresh); }
.leaf-set { color: var(--leaf-set); }
.leaf-turning { color: var(--leaf-turning); }

/* ---------- story band ---------- */

.story {
  margin: 38px var(--gutter);
  padding: 26px 20px;
  background: var(--surface);
  border-radius: 16px;
}

.story-scale {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.story-scale span {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: var(--c);
}

.story h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.22;
}
.story p { color: var(--muted); }

/* ---------- privacy, faq, founder ---------- */

.privacy, .faq, .founder { padding: 0 var(--gutter) 38px; }

.privacy h2, .faq h2, .founder h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.22;
}

.privacy p, .founder p { color: var(--muted); max-width: 36em; }

.faq details { border-top: var(--hair); }
.faq details:last-of-type { border-bottom: var(--hair); }

.faq summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 28px 8px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--accent);
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 36em;
}

/* ---------- footer ---------- */

.foot {
  padding: 22px var(--gutter) 34px;
  border-top: var(--hair);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0 0 6px; }
.foot a { display: inline-block; min-height: 30px; }

/* ---------- 900px and up ---------- */

@media (min-width: 900px) {
  body { font-size: 18px; }

  .nav, .hero, .blocks, .story, .privacy, .faq, .founder, .foot {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav { padding: 14px 40px; }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    padding: 72px 40px 40px;
  }

  .hero-shot { margin: 0; max-width: 340px; justify-self: end; }

  .field-row { grid-template-columns: 1fr auto; }
  .waitlist button { width: auto; }

  .blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 72px 40px 24px;
  }

  .story {
    margin: 24px auto 64px;
    padding: 44px 48px;
  }
  .story h2 { font-size: 34px; max-width: 18em; }

  .privacy, .faq, .founder { padding: 0 40px 56px; }
  .privacy h2, .faq h2, .founder h2 { font-size: 30px; }

  .foot {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px 48px;
  }
  .foot p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
