/* Pregnant Life landing. Layout follows the legacy Tilda page (docs/decisions.md ADR-23). */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f7f2fa;
  --text: #383b45;
  --muted: #6b6e7a;
  --accent: #939dff;
  --accent-strong: #7783fc;
  --deep: #2e3474;
  --pink: #f0c3fb;
  --card: #ffffff;
  --pill: #f3c9fb;
  --gradient: linear-gradient(135deg, #7783fc 0%, #f0c3fb 100%);
  --radius: 28px;
  --container: 1200px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", ui-rounded, -apple-system, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  /* The footer stays at the bottom of short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--deep);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

/* MARK: Top bar */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 20px var(--gutter);
  color: #fff;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.topbar__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.home .topbar__brand {
  visibility: hidden;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.lang-switch a {
  display: block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a[aria-current] {
  background: #fff;
  color: var(--deep);
}

.text .topbar {
  position: static;
  color: var(--deep);
}

.text .lang-switch {
  background: rgba(147, 157, 255, 0.18);
}

.text .lang-switch a[aria-current] {
  background: var(--accent);
  color: #fff;
}

/* MARK: Buttons and phones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(46, 52, 116, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(46, 52, 116, 0.34);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.phone {
  position: relative;
  z-index: 1;
  width: 270px;
  max-width: 100%;
  padding: 9px;
  border-radius: 48px;
  background: #16171d;
  box-shadow: 0 0 0 2px #3a3c47 inset, 0 40px 70px rgba(46, 52, 116, 0.32);
}

.phone img {
  width: 100%;
  border-radius: 39px;
}

.deco {
  position: absolute;
  pointer-events: none;
}

/* MARK: Hero */

.hero {
  position: relative;
  min-height: 920px;
  padding: 160px 0 120px;
  background: url("../img/hero-bg.svg") center bottom / max(2000px, 100%) 100% no-repeat;
  color: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero__text {
  position: relative;
}

.hero__brand {
  font-size: 74px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__title {
  margin-top: 40px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
}

.hero__lead {
  margin: 28px 0 48px;
  font-size: 20px;
  opacity: 0.92;
}

.hero__arrow {
  position: absolute;
  left: 350px;
  bottom: -18px;
  width: 300px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 600px;
}

.hero__phone {
  width: 300px;
  transform: rotate(6deg);
}

.qr {
  position: absolute;
  z-index: 2;
  display: block;
  width: 150px;
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(46, 52, 116, 0.25);
}

.hero__qr {
  left: 0;
  top: 150px;
  transform: rotate(-8deg);
}

.float-card {
  position: absolute;
  z-index: 2;
  padding: 18px 24px;
  border-radius: 22px;
  color: var(--text);
  box-shadow: 0 24px 40px rgba(46, 52, 116, 0.22);
  backdrop-filter: blur(6px);
}

.float-card--question {
  right: -40px;
  top: 300px;
  width: 300px;
  background: rgba(233, 240, 252, 0.95);
  transform: rotate(8deg);
}

.float-card__title {
  font-weight: 800;
}

.float-card__text {
  font-size: 15px;
  color: var(--muted);
}

.float-card--reminders {
  right: -10px;
  top: 410px;
  width: 290px;
  background: rgba(236, 230, 252, 0.96);
  transform: rotate(8deg);
}

.reminder {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.reminder + .reminder {
  margin-top: 14px;
}

.reminder__check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #b9b6d3;
  border-radius: 6px;
  background: #fff;
}

.reminder b {
  display: block;
  font-size: 16px;
}

.reminder span {
  display: block;
  color: var(--muted);
}

/* MARK: Sections */

.section {
  position: relative;
  padding: 70px 0;
}

.section__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.section__subtitle {
  max-width: 480px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 20px;
}

.everyday {
  padding-top: 0;
}

.everyday .section__title {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature {
  text-align: center;
}

.feature img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.feature h3 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 800;
}

.feature p {
  max-width: 300px;
  margin: 12px auto 0;
  font-size: 16px;
  color: var(--muted);
}

/* Text on one side, phones on the other. */
.split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.split--reverse .split__visual {
  order: 2;
}

.split__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 620px;
  align-items: center;
}

.split__text p {
  margin-top: 28px;
  font-size: 20px;
}

.split__text .btn {
  margin-top: 48px;
}

.science__heart,
.trust__heart {
  left: -60px;
  top: 40px;
  width: 440px;
  opacity: 0.9;
}

.science__badge-1 {
  right: 40px;
  top: 30px;
  width: 140px;
}

.science__badge-2 {
  right: 80px;
  bottom: 120px;
  width: 39px;
}

.simple__visual {
  min-height: 700px;
}

.simple__heart {
  right: -80px;
  bottom: 0;
  width: 480px;
}

.simple__phone-1 {
  width: 250px;
  transform: translate(50px, 60px) rotate(-8deg);
}

.simple__phone-2 {
  z-index: 0;
  width: 250px;
  transform: translate(-30px, -40px) rotate(8deg);
}

.questions {
  margin-top: 32px;
}

.questions li {
  position: relative;
  padding-left: 38px;
  font-size: 20px;
}

.questions li + li {
  margin-top: 16px;
}

.questions li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.baby__heart {
  left: 20px;
  top: 0;
  width: 500px;
}

.baby__badge-1 {
  left: 30px;
  top: 90px;
  width: 140px;
}

.baby__badge-2 {
  right: 10px;
  bottom: 90px;
  width: 170px;
}

.trust__badge {
  right: 90px;
  top: 70px;
  width: 39px;
}

/* MARK: Control: phone in the middle, captions around it, as in the legacy page */

.control__stage {
  position: relative;
  height: 900px;
  padding-top: 80px;
  border-radius: 73px;
  background: var(--gradient);
  text-align: center;
}

.control__title {
  color: #fff;
}

.control__btn {
  margin-top: 28px;
}

.control__phone {
  position: absolute;
  left: 50%;
  top: 300px;
  width: 250px;
  margin-left: -125px;
}

.control__lines .line {
  position: absolute;
  z-index: 0;
}

.line--26 { left: 343px; top: 383px; width: 297px; }
.line--27 { left: 347px; top: 508px; width: 305px; }
.line--28 { left: 345px; top: 598px; width: 324px; }
.line--29 { left: 348px; top: 630px; width: 348px; }
.line--30 { left: 543px; top: 423px; width: 273px; }
.line--31 { left: 544px; top: 576px; width: 273px; }
.line--32 { left: 544px; top: 615px; width: 286px; }

.pill {
  position: absolute;
  z-index: 2;
  padding: 14px 22px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: var(--pill);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.pill--tests { left: 115px; top: 340px; width: 231px; }
.pill--nutrition { left: 85px; top: 465px; width: 264px; }
.pill--symptoms { left: 116px; top: 587px; width: 231px; }
.pill--checkups { left: 55px; top: 690px; width: 295px; }
.pill--notes { left: 845px; top: 381px; width: 317px; }
.pill--checklists { left: 845px; top: 534px; width: 300px; }
.pill--weight { left: 846px; top: 685px; width: 290px; }

/* MARK: Text pages */

.page {
  max-width: 820px;
  padding-top: 40px;
  padding-bottom: 100px;
}

.page__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
}

.page__body {
  margin-top: 32px;
}

.page__body h2 {
  margin-top: 36px;
  font-size: 26px;
  font-weight: 800;
}

.page__body h3,
.page__body h4 {
  margin-top: 28px;
  font-size: 21px;
  font-weight: 800;
}

.page__body p,
.page__body ul {
  margin-top: 16px;
}

.page__body ul {
  padding-left: 24px;
  list-style: disc;
}

.page__body a {
  color: var(--deep);
}

.page__email {
  font-size: 22px;
  font-weight: 800;
}

.page__placeholder {
  color: var(--muted);
}

.page__back {
  margin-top: 48px;
  font-weight: 700;
}

.page__back a {
  color: var(--deep);
}

/* MARK: Footer */

.footer {
  padding: 70px 0;
  background: var(--deep);
  color: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 40px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 18px;
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover,
.footer__email:hover {
  text-decoration: underline;
}

.footer__copyright {
  margin-top: 18px;
  font-size: 16px;
  opacity: 0.7;
}

.footer__support {
  font-size: 18px;
}

.footer__email {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* MARK: Narrow screens */

@media (max-width: 1199px) {
  /* The legacy composition needs 1200 px; below that the captions go under the phone. */
  .control__stage {
    height: auto;
    padding: 70px 30px 60px;
  }

  .control__lines {
    display: none;
  }

  .control__phone {
    position: relative;
    left: auto;
    top: auto;
    margin: 50px auto 0;
  }

  .pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 40px auto 0;
  }

  .pills + .pills {
    margin-top: 16px;
  }

  .pill {
    position: static;
    width: auto !important;
  }
}

@media (max-width: 959px) {
  .hero {
    min-height: 0;
    padding: 110px 0 140px;
    background-size: auto 100%;
    text-align: center;
  }

  .hero__grid,
  .split__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__brand {
    font-size: 56px;
  }

  .hero__title {
    margin-top: 24px;
    font-size: 30px;
  }

  .hero__arrow {
    display: none;
  }

  .hero__visual {
    min-height: 0;
    margin-top: 30px;
  }

  .hero__qr {
    display: none;
  }

  .float-card--question {
    right: 0;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split--reverse .split__visual {
    order: 0;
  }

  .split__visual,
  .simple__visual {
    min-height: 0;
    padding: 20px 0;
  }

  .split__text {
    text-align: center;
  }

  .questions {
    display: inline-block;
    text-align: left;
  }

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

@media (max-width: 639px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 30px;
  }

  .hero__brand {
    font-size: 46px;
  }

  .hero__title {
    font-size: 25px;
  }

  .hero__lead,
  .section__subtitle,
  .split__text p,
  .questions li {
    font-size: 17px;
  }

  .hero__lead br,
  .hero__title br,
  .section__subtitle br,
  .split__text br {
    display: none;
  }

  .btn {
    min-height: 60px;
    padding: 0 28px;
    font-size: 17px;
  }

  .hero__phone {
    width: 230px;
  }

  .float-card {
    padding: 12px 16px;
  }

  .float-card--question {
    top: auto;
    bottom: 120px;
    right: -8px;
    width: 200px;
  }

  .float-card--reminders {
    display: none;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .phone {
    width: 230px;
  }

  .simple__phone-1,
  .simple__phone-2 {
    width: 180px;
  }

  .simple__phone-1 {
    transform: translate(30px, 40px) rotate(-8deg);
  }

  .simple__phone-2 {
    transform: translate(-20px, -20px) rotate(8deg);
  }

  .deco {
    max-width: 60%;
  }

  .control__stage {
    padding: 50px 16px 40px;
    border-radius: 40px;
  }

  .pills {
    grid-template-columns: minmax(0, 1fr);
  }

  .page__title {
    font-size: 34px;
  }
}

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

  .btn {
    transition: none;
  }
}
