@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #faf9f6;
  --ink: #283d35;
  --muted: #69756c;
  --sage: #e8eee5;
  --line: #dfe3da;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 'DM Sans', sans-serif;
}

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

button {
  font: inherit;
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #a47c4e;
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Header */

header {
  max-width: 1240px;
  height: 112px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 32px 'Manrope', sans-serif;
  letter-spacing: -2px;
}

.brand-icon {
  display: block;
  width: 50px;
  height: 44px;
  object-fit: contain;
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}

nav a:hover,
footer a:hover {
  opacity: 0.6;
}

.nav-cta {
  padding: 12px 21px;
  border: 0;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}

.wrap {
  max-width: 1160px;
  margin: auto;
}

/* Main introduction */

.hero {
  display: block;
  padding: 40px 0 90px;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}

.hero .eyebrow {
  justify-content: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d9475;
}

h1 {
  margin: 24px 0;
  font: 500 clamp(48px, 5.4vw, 76px)/1.08 'Manrope', sans-serif;
  letter-spacing: -4px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 80px);
}

h1 em {
  color: #819477;
  font-style: normal;
}

.hero-copy > p {
  max-width: 550px;
  margin: auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* App Store button */

.store {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
  padding: 12px 24px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: white;
  text-align: left;
  box-shadow: 0 7px 15px #263d3510;
  transition: transform 0.2s;
}

.store:hover {
  transform: translateY(-3px);
  background: #385345;
}

.store svg {
  width: 27px;
  height: 32px;
  fill: currentColor;
}

.store small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}

.store strong {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

/* Highlights */

.intro-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #596b60;
  font-size: 12px;
}

.intro-strip span {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Features */

.features {
  padding: 90px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 38px;
}

h2 {
  font: 500 38px/1.2 'Manrope', sans-serif;
  letter-spacing: -1.6px;
}

.section-head p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  min-height: 170px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.feature:first-child {
  border-color: #edf1e8;
  background: #edf1e8;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.feature p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

/* After birth */

.beyond {
  display: block;
  overflow: hidden;
  margin-bottom: 85px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.beyond-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 70px;
  padding: 48px 0;
}

.beyond-copy .eyebrow {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.beyond-copy h2 {
  grid-column: 1;
  grid-row: 2 / 4;
  margin: 18px 0;
  font-size: 32px;
}

.beyond-copy p {
  max-width: 355px;
  color: var(--muted);
  font-size: 13px;
}

.beyond-copy > p {
  grid-column: 2;
  grid-row: 2;
  margin-top: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.beyond-copy .tags {
  grid-column: 2;
  grid-row: 3;
  margin-top: 17px;
}

.tags span {
  padding: 5px 11px;
  border: 1px solid #d8d5ca;
  border-radius: 20px;
  font-size: 10px;
}

/* Final download section */

.last {
  padding: 5px 20px 80px;
  text-align: center;
}

.last h2 {
  font-size: 44px;
}

.last > p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
}

.languages {
  margin-top: 22px !important;
  font-size: 10px !important;
  word-spacing: 5px;
}

/* Footer */

footer {
  padding: 33px 0 23px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-main .logo {
  font-size: 24px;
}

.footer-main .brand-icon {
  width: 38px;
  height: 34px;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  color: #7b827a;
  font-size: 10px;
}

/* Privacy and support pages */

.page {
  max-width: 800px;
  margin: 55px auto 100px;
}

.page h1 {
  font-size: 56px;
  letter-spacing: -2.5px;
}

.page .lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
}

.page h2 {
  margin: 35px 0 12px;
  font-size: 23px;
  letter-spacing: -0.5px;
}

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

.notice {
  margin: 30px 0;
  padding: 20px 24px;
  border: 1px solid #e1d4c4;
  border-radius: 15px;
  background: #f0e9df;
}

.notice strong {
  font-size: 13px;
}

.notice p {
  margin-top: 6px;
  font-size: 12px;
}

.contact-card {
  margin: 32px 0;
  padding: 30px;
  border-radius: 22px;
  background: var(--sage);
}

.contact-card a {
  display: inline-block;
  margin-top: 15px;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-card p {
  margin-top: 10px;
}

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

summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

summary::after {
  content: '+';
  font-size: 23px;
  line-height: 1;
}

details[open] summary::after {
  content: '−';
}

details p {
  padding: 14px 20px 0 0;
}

details a {
  text-decoration: underline;
}

.back {
  color: var(--muted);
  font-size: 12px;
}

/* Download dialog */

dialog {
  width: calc(100% - 32px);
  max-width: 410px;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop {
  background: #22362966;
  backdrop-filter: blur(4px);
}

dialog h2 {
  font-size: 28px;
}

dialog p {
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

dialog .close {
  position: absolute;
  top: 10px;
  right: 16px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 25px;
}

dialog a {
  font-size: 12px;
  text-decoration: underline;
}

body:has(dialog[open]) {
  overflow: hidden;
}

/* Smaller screens */

@media (max-width: 1250px) {
  .wrap {
    margin-left: 40px;
    margin-right: 40px;
  }
}

/* Mobile */

@media (max-width: 760px) {
  header {
    height: 85px;
    padding: 0 23px;
  }

  nav {
    gap: 19px;
  }

  .nav-cta {
    display: none;
  }

  .logo {
    font-size: 28px;
  }

  .brand-icon {
    width: 43px;
    height: 38px;
  }

  .wrap {
    margin: 0 24px;
  }

  .hero {
    padding: 25px 0 60px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    font-size: 9px;
  }

  h1 {
    margin: 20px 0;
    font-size: 53px;
    letter-spacing: -2.8px;
  }

  .hero h1 {
    font-size: 51px;
  }

  .hero-copy > p {
    max-width: 550px;
    margin: auto;
    font-size: 15px;
  }

  .intro-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    font-size: 10px;
  }

  .intro-strip span {
    gap: 6px;
  }

  .features {
    padding: 60px 0;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .section-head p {
    margin-top: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    display: block;
    min-height: unset;
    padding: 24px;
  }

  .feature h3 {
    margin-bottom: 7px;
  }

  .beyond {
    margin-bottom: 60px;
  }

  .beyond-copy {
    display: block;
    padding: 32px 0;
  }

  .beyond-copy .eyebrow {
    justify-content: flex-start;
  }

  .beyond-copy h2 {
    margin: 20px 0;
  }

  .beyond-copy > p {
    margin-top: 0;
  }

  .last {
    padding-bottom: 55px;
  }

  .last h2 {
    font-size: 33px;
  }

  .languages {
    line-height: 2.2;
  }

  .footer-main {
    align-items: flex-start;
  }

  .footer-main .brand-icon {
    width: 33px;
    height: 29px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 13px;
    max-width: 240px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
  }

  .page {
    margin: 35px 24px 65px;
  }

  .page h1 {
    font-size: 43px;
  }

  .page .eyebrow {
    justify-content: flex-start;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-card a {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}

/* Reduced motion */

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

  * {
    transition: none !important;
  }
}
