:root {
  --bg: #f3faf4;
  --bg-soft: #edf7ef;
  --ink: #4e6b80;
  --muted: #5e7484;
  --deep: #496a80;
  --mint: #eaf7ec;
  --mint-strong: #d8f1dc;
  --cream: #fffdf6;
  --peach: #f8e7d9;
  --line: rgba(78, 107, 128, 0.1);
  --shadow: 0 28px 58px rgba(72, 91, 83, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, "Nunito Fallback", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 78%, rgba(255, 248, 225, 0.68), transparent 22rem),
    radial-gradient(circle at 88% 14%, rgba(221, 244, 226, 0.8), transparent 28rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 80px 0 auto;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 2;
}

main {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

button,
input {
  font: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  color: var(--deep);
  font-size: 0.45rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-top {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #cbf2d6, #e1f8e7);
  box-shadow: 0 10px 24px rgba(94, 135, 111, 0.14);
}

.brand-footer .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.sprout,
.sprout::before,
.sprout::after {
  position: absolute;
  display: block;
}

.sprout {
  top: 10px;
  left: 27px;
  width: 2px;
  height: 11px;
  background: #62836a;
  border-radius: 999px;
}

.sprout::before,
.sprout::after {
  content: "";
  top: -2px;
  width: 13px;
  height: 8px;
  border: 1.5px solid #62836a;
  border-radius: 999px 999px 999px 0;
}

.sprout::before {
  right: 1px;
  transform: rotate(32deg);
}

.sprout::after {
  left: 1px;
  transform: scaleX(-1) rotate(32deg);
}

.bloom-face {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  border: 2px solid #537985;
  border-radius: 48% 48% 54% 54%;
  background: #f6bea9;
  box-shadow:
    -6px -4px 0 -3px #fbe2d6,
    6px -4px 0 -3px #fbe2d6;
}

.bloom-face::before,
.bloom-face::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #537985;
}

.bloom-face::before {
  left: 23px;
}

.bloom-face::after {
  right: 23px;
}

.section {
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(32rem, 0.95fr) minmax(28rem, 1fr);
  align-items: end;
  gap: clamp(2rem, 3.8vw, 4rem);
  padding-top: 7rem;
  padding-bottom: clamp(3rem, 9vh, 5.5rem);
}

.hero-copy {
  max-width: 40rem;
  padding-bottom: 2.2rem;
  z-index: 1;
}

h1,
h2 {
  color: var(--deep);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 6.1vw, 5.2rem);
}

h2 {
  font-size: clamp(2.55rem, 4vw, 4rem);
}

.hero-copy p,
.feature-copy p,
.story p,
.cta-card p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.6;
}

.hero-copy p {
  max-width: 35rem;
  margin-top: 2rem;
}

.signup-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.signup-form input {
  width: min(100%, 19rem);
  height: 56px;
  padding: 0 1.6rem;
  border: 1px solid rgba(78, 107, 128, 0.11);
  border-radius: 999px;
  outline: none;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 8px 17px rgba(82, 92, 84, 0.11), inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.signup-form input::placeholder {
  color: #748594;
}

.signup-form input:focus {
  border-color: rgba(73, 106, 128, 0.35);
  box-shadow: 0 0 0 4px rgba(73, 106, 128, 0.09), 0 8px 17px rgba(82, 92, 84, 0.1);
}

.signup-form button {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0 1.25rem 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: #fffdf8;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(73, 106, 128, 0.16);
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  min-height: 35rem;
  filter: drop-shadow(0 24px 28px rgba(79, 103, 91, 0.17));
}

.phone {
  position: relative;
  border: 7px solid rgba(241, 242, 235, 0.92);
  border-radius: 34px;
  background: linear-gradient(180deg, #fffff8 0%, #fff8ed 100%);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(79, 107, 128, 0.08);
  border-radius: 27px;
  pointer-events: none;
}

.speaker {
  width: 58px;
  height: 10px;
  margin: 12px auto 18px;
  border-radius: 999px;
  background: rgba(78, 107, 128, 0.1);
}

.phone-main {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 260px;
  height: 470px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.memory-heart {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--deep);
  font-size: 3rem;
  line-height: 1;
}

.phone-main p {
  font-size: 1.24rem;
  font-weight: 600;
}

.phone-main span {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.phone-side {
  position: absolute;
  width: 230px;
  height: 390px;
  padding: 0.3rem 1rem;
  opacity: 0.74;
}

.phone-left {
  right: 43%;
  bottom: 4.5rem;
  transform: rotate(-12deg);
}

.phone-right {
  right: -4%;
  bottom: 1.8rem;
  transform: rotate(12deg);
}

.phone-title {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.soft-block {
  width: 100%;
  height: 96px;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.soft-block.short {
  height: 86px;
}

.mint,
.photo.mint {
  background: var(--mint);
}

.peach,
.photo.peach {
  background: var(--peach);
}

.milestone-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 50px;
  margin-bottom: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  background: var(--mint);
  font-size: 0.95rem;
}

.milestone-pill span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(73, 106, 128, 0.12);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1fr);
  align-items: center;
  min-height: 36rem;
  gap: clamp(2rem, 10vw, 9rem);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.feature-row-reverse {
  grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 0.9fr);
}

.feature-copy {
  max-width: 33rem;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.6rem;
  border-radius: 16px;
  background: #e3f7e8;
  color: var(--deep);
  font-size: 2rem;
  font-weight: 700;
}

.feature-copy p {
  margin-top: 1.35rem;
}

.feed-phone,
.milestones-phone,
.logs-phone {
  justify-self: center;
  width: min(100%, 330px);
  min-height: 500px;
  padding: 0.25rem 1.15rem 1.3rem;
}

.feed-header,
.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.dots {
  display: flex;
  gap: 0.25rem;
}

.dots i {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-strong);
}

.feed-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  margin-bottom: 1rem;
  border: 1px solid rgba(78, 107, 128, 0.07);
  border-radius: 16px;
  background: rgba(255, 253, 246, 0.75);
}

.photo {
  height: 92px;
}

.feed-card p {
  padding: 0.7rem 0.75rem 0.15rem;
}

.feed-card span {
  display: block;
  padding-left: 0.75rem;
  font-size: 0.82rem;
}

.feed-card small {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  font-size: 0.84rem;
}

.milestones-phone {
  min-height: 315px;
  padding-inline: 1.25rem;
}

.timeline-item,
.log-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-item {
  margin-bottom: 0.9rem;
}

.timeline-item b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--deep);
  color: white;
  font-size: 0.95rem;
}

.timeline-item.soon b {
  background: #dce7e5;
  color: var(--ink);
}

.timeline-item p,
.log-item p {
  display: grid;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-item span,
.log-item span,
.log-header small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.logs-phone {
  min-height: 405px;
}

.log-item {
  min-height: 62px;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 16px;
  background: var(--mint);
}

.log-item b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 4px 10px rgba(83, 107, 93, 0.08);
  font-size: 1.3rem;
}

.log-item strong {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
}

.add-entry {
  display: grid;
  place-items: center;
  height: 56px;
  border: 1px dashed rgba(78, 107, 128, 0.21);
  border-radius: 18px;
  background: rgba(255, 253, 246, 0.45);
  color: var(--muted);
  font-weight: 600;
}

.story {
  min-height: 26rem;
  display: grid;
  place-content: center;
  text-align: center;
}

.story h2 {
  max-width: 54rem;
}

.story p {
  margin-top: 1.7rem;
}

.cta {
  padding-top: 3.2rem;
  padding-bottom: 4.5rem;
}

.cta-card {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.4rem, 7vw, 6rem);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 20%, rgba(241, 255, 226, 0.9), transparent 17rem),
    radial-gradient(circle at 88% 88%, rgba(249, 230, 210, 0.9), transparent 15rem),
    rgba(232, 247, 232, 0.78);
  text-align: center;
}

.cta-card p {
  margin-top: 1rem;
}

.cta-card .signup-form {
  justify-content: center;
}

footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3.5rem 3rem;
  color: var(--muted);
}

footer p {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  body::before {
    top: 74px;
  }

  .hero,
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding-top: 9rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 33rem;
  }

  .phone-main {
    right: 50%;
    transform: translateX(50%);
  }

  .phone-left {
    left: 3%;
    right: auto;
  }

  .phone-right {
    right: 3%;
  }

  .feature-row {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .feature-row-reverse .feature-copy {
    order: -1;
  }

  footer {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding-inline: 1.25rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.7rem;
  }

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

  .signup-form input,
  .signup-form button {
    width: 100%;
  }

  .hero-visual {
    min-height: 28rem;
    transform: scale(0.86);
    transform-origin: top center;
  }

  .phone-side {
    width: 200px;
  }

  .phone-left {
    left: -14%;
  }

  .phone-right {
    right: -14%;
  }

  .cta-card {
    border-radius: 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
