/* Built from the Paper file "Nura", page "Website": a warm-paper hero with the
   phone and an Ask Douli card, a white benefits band, a deep-ink closing band,
   and a QR "Get the app" dialog on desktop. Light only, as designed.
   Colours are the Douli Lavender brand (DouliKit Palette, "MARK: Brand").
   The phone mock keeps the design's own category colours. */
:root {
  --paper: #FBF7F1;
  --white: #FFFFFF;
  --ink: #30254F;
  --body: #645B72;
  --lavender: #8873C5;
  --lavender-ink: #77618F;
  --line: #E9E2EF;
  --on-ink: #E6DDF4;
  --close-bg: #F1EBF5;
  --scrim: rgba(30, 24, 43, 0.46);

  /* The phone mock */
  --mock-screen: #F5F2F8;
  --mock-card: #FDFDFD;
  --mock-sunken: #F4F4F4;
  --mock-ink: #2B2A24;
  --mock-muted: #8B9196;
  --mock-feed: #D14876;
  --mock-sleep: #44618F;
  --mock-diaper: #4F7A3F;
  --bezel: #302D36;

  --display: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(88px, env(safe-area-inset-left, 0px));
  padding-right: max(88px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; text-wrap: balance; }

/* Brand mark: the petal symbol beside the drawn wordmark. */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-symbol { width: 40px; height: 36px; flex: none; }
.brand-wordmark { width: 99px; height: 36px; flex: none; fill: var(--ink); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover { transform: translateY(-1px); }
.button svg { width: 21px; height: 24px; flex: none; }

.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: #241B3E; }
.button-paper { background: var(--paper); color: var(--ink); font-weight: 600; }
.button-paper:hover { background: var(--white); }

.button-sm { padding: 14px 23px; font-size: 14px; line-height: 20px; }
.button-lg { padding: 19px 27px; font-size: 16px; line-height: 22px; }
.button-xl { padding: 21px 30px; font-size: 16px; line-height: 22px; }

.badge { display: none; flex: none; }
.badge img { width: 100%; height: auto; }

.text-link { font-size: 14px; font-weight: 500; line-height: 20px; color: #000000; text-decoration: none; }
.hero-how { display: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding-block: 24px;
  padding-left: max(64px, env(safe-area-inset-left, 0px));
  padding-right: max(64px, env(safe-area-inset-right, 0px));
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > a:not(.button) { font-size: 14px; font-weight: 500; line-height: 20px; color: #000000; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Hero */

.paper { background: var(--paper); }

.hero {
  display: flex;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 54px;
  min-height: 744px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 570px;
  min-width: 0;
  padding-top: 36px;
  /* The headline sizes itself to this column (cqi), so it stays on two lines
     however narrow the column gets. */
  container-type: inline-size;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--body);
  font-size: clamp(14px, 0.1vw + 13.6px, 15px);
  font-weight: 500;
  line-height: 1.45;
}

.dot { width: 6px; height: 6px; border-radius: 99px; background: var(--lavender); flex: none; }

h1 {
  margin-top: 24px;
  /* Fluid between phone and desktop instead of stepping at breakpoints:
     57px on a 390-wide phone, 84px from 1440 up. */
  /* "A calmer way" runs about 5.4× the font size, so 18cqi keeps it on one line. */
  font-size: min(clamp(50px, 2.57vw + 47px, 84px), 18cqi);
  line-height: 1.05;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.lede { margin: 26px 0 0; max-width: 470px; color: var(--body); font-size: clamp(16px, 0.28vw + 15px, 19px); line-height: 1.58; }

.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; color: var(--body); font-size: 13px; line-height: 20px; }

/* The art is drawn at the design's own size (630 × 652) and zoomed to fit. */

.hero-art {
  position: relative;
  flex: 0 0 630px;
  width: 630px;
  height: 652px;
}

/* The symbol stands upright, centred on the phone and raised so its round
   top rises above the device while the two petals open out on either side. */
.hero-petals {
  position: absolute;
  left: 7px;
  top: -80px;
  width: 600px;
  height: 540px;
  opacity: 0.6;
}

.phone {
  position: absolute;
  left: 154px;
  top: 0;
  width: 306px;
  height: 652px;
  border: 5px solid var(--bezel);
  border-radius: 46px;
  background: var(--bezel);
  box-shadow: 0 24px 60px rgba(48, 37, 79, 0.125);
  overflow: hidden;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  background: var(--mock-screen);
  overflow: hidden;
}

.island { position: absolute; left: 105px; top: 9px; width: 87px; height: 23px; border-radius: 18px; background: #151416; }

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px 50px;
}

.status-time { font-family: -apple-system, system-ui, sans-serif; font-size: 12.9px; font-weight: 600; line-height: 16.7px; color: #000000; }
.status-icons { width: 82px; height: 22px; fill: #000000; }

.app-bar { display: flex; align-items: center; gap: 9px; padding: 3px 12px 0; }
.app-menu { width: 24px; height: 24px; margin: 4.7px; color: var(--mock-ink); flex: none; }
.app-title { flex: 1; text-align: center; font-size: 15.2px; font-weight: 600; letter-spacing: -0.02em; line-height: 18.2px; color: var(--mock-ink); }
.app-cal { display: grid; place-items: center; width: 33.4px; height: 33.4px; border-radius: 999px; background: var(--mock-card); color: var(--mock-ink); flex: none; }
.app-cal svg { width: 22px; height: 22px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px 12px 24px; }

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 12px;
  border-radius: 15px;
  background: var(--mock-card);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12.2px;
  font-weight: 600;
  line-height: 15.2px;
  color: var(--mock-ink);
}

.tile svg { width: 24px; height: 24px; }
.c-feed { color: var(--mock-feed); }
.c-sleep { color: var(--mock-sleep); }
.c-diaper { color: var(--mock-diaper); }

.today { margin: 0 0 3px; padding: 0 17.5px; font-family: -apple-system, system-ui, sans-serif; font-size: 18.2px; font-weight: 600; letter-spacing: -0.02em; line-height: 21.3px; color: var(--mock-ink); }

.rows { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 6px; }

.rows li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54.7px;
  padding: 9px;
  border-radius: 15px;
  background: var(--mock-card);
}

.row-icon { display: grid; place-items: center; width: 33.4px; height: 33.4px; border-radius: 9px; background: var(--mock-sunken); flex: none; }
.row-icon svg { width: 20px; height: 20px; }
.row-text { flex: 1; min-width: 0; font-size: 12.2px; line-height: 16.7px; color: var(--mock-ink); }
.row-age { padding-right: 6px; font-size: 9.9px; font-weight: 500; line-height: 12.2px; color: var(--mock-muted); }

.ask-card {
  position: absolute;
  left: -12px;
  top: 434px;
  width: 279px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(48, 37, 79, 0.063);
  transform: rotate(-3deg);
  transform-origin: 0 0;
}

.ask-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lavender-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 16px;
  text-transform: uppercase;
}

.ask-label svg { width: 16px; height: 16px; color: var(--lavender); flex: none; }
.ask-question { margin: 12px 0 0; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 22px; }

/* Benefits */

.benefits { background: var(--white); padding-block: 76px 88px; }

.benefits-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.benefits-head h2 { font-size: 44px; line-height: 48px; letter-spacing: -0.04em; color: var(--ink); }
.benefits-head p { flex: 0 0 332px; margin: 0; color: var(--body); font-size: 17px; line-height: 27px; }

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

.benefit { display: flex; flex-direction: column; align-items: flex-start; padding-top: 28px; border-top: 1px solid var(--line); }
.benefit-icon { width: 30px; height: 30px; color: var(--lavender); }
.benefit h3 { margin-top: 22px; font-size: 25px; line-height: 32px; letter-spacing: -0.025em; color: var(--ink); }
.benefit p { margin: 12px 0 0; max-width: 358px; color: var(--body); font-size: 16px; line-height: 26px; }

/* Closing */

.closing { background: var(--ink); color: var(--paper); }

.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 76px; }
.closing-copy { display: flex; flex-direction: column; gap: 20px; }
.m-break { display: none; }
.closing h2 { font-size: 56px; line-height: 62px; letter-spacing: -0.04em; color: var(--paper); }
.closing p { margin: 0; color: var(--on-ink); font-size: 18px; line-height: 28px; }

/* Footer */

.site-footer { background: var(--paper); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 35px;
  padding-left: max(64px, env(safe-area-inset-left, 0px));
  padding-right: max(64px, env(safe-area-inset-right, 0px));
}

.footer-brand { display: flex; align-items: center; gap: 24px; color: var(--body); font-size: 13px; line-height: 20px; }
.footer-wordmark { width: 76px; height: 27px; fill: var(--ink); flex: none; }
.footer-links { display: flex; align-items: center; gap: 28px; color: var(--body); font-size: 13px; line-height: 20px; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { margin-left: 22px; }

/* Get the app dialog */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: var(--scrim); }

.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 480px;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 40px 40px 36px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(23, 16, 29, 0.21);
  text-align: center;
}

.brand-modal { gap: 8px; }
.brand-modal .brand-symbol { width: 36px; height: 33px; }
.brand-modal .brand-wordmark { width: 88px; height: 32px; }

.modal-card h2 { margin-top: 28px; font-size: 38px; line-height: 44px; letter-spacing: -0.04em; color: var(--ink); }
.modal-card p { margin: 16px 0 0; color: var(--body); font-size: 16px; line-height: 25px; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--close-bg);
  color: var(--body);
  cursor: pointer;
}

.modal-close svg { width: 16px; height: 16px; }

.qr { margin-top: 24px; padding: 2px; border: 1px solid var(--on-ink); border-radius: 16px; background: var(--white); overflow: hidden; }
.qr svg { display: block; width: 220px; height: 220px; }

.badge-modal { display: block; width: 144px; margin-top: 24px; }

/* Long-form pages (privacy) share the header, footer and type. */

.prose { max-width: 720px; padding-block: 24px 96px; }
.prose h1 { margin: 0 0 12px; font-size: 52px; line-height: 56px; letter-spacing: -0.045em; }
.prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 32px; letter-spacing: -0.025em; }
.prose p, .prose li { color: var(--body); font-size: 16px; line-height: 26px; }
.prose a { color: var(--ink); }
.prose .updated { color: var(--body); font-size: 14px; }

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

/* Narrower desktops: keep the hero's two columns, zoom the art down. */

@media (max-width: 1360px) {
  .wrap { padding-left: max(64px, env(safe-area-inset-left, 0px)); padding-right: max(64px, env(safe-area-inset-right, 0px)); }
  .hero { gap: 40px; }
  .hero-copy { flex-basis: 520px; }
  .hero-art { zoom: 0.88; }
}

@media (max-width: 1180px) {
  .hero-copy { flex: 1 1 auto; }
  .hero-art { zoom: 0.74; }
  .benefit-grid { gap: 28px; }
  .closing h2 { font-size: 48px; line-height: 54px; }
}

/* Too narrow for two columns: the copy above, the art centred below. */
@media (max-width: 960px) {
  .hero { flex-direction: column; gap: 40px; min-height: 0; padding-top: 56px; }
  .hero-copy { flex: none; padding-top: 0; }
  .hero-art { align-self: center; zoom: 0.8; }
  /* One column: the headline and lede run to the right edge instead of
     breaking where the two-column design did. */
  .hero h1 br, .lede br { display: none; }
  .hero h1 { text-wrap: wrap; }
  .lede { max-width: none; }
  .benefits-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .benefits-head p { flex: none; }
  .benefits-head br { display: none; }
  .benefits-head h2 { text-wrap: wrap; }
}

/* Phones: the Mobile artboard. One column, App Store badges in place of the
   Get the app buttons and dialog. */

@media (max-width: 760px) {
  .wrap, .site-header, .footer-inner {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }

  .site-header { min-height: 0; padding-block: 12px 16px; }
  .brand { gap: 8px; }
  .brand-symbol { width: 30px; height: 27px; }
  .brand-wordmark { width: 79px; height: 28px; }
  /* The section link moves under the hero's button. */
  .site-nav { display: none; }
  .hero-how { display: inline-flex; }
  .badge-nav { display: block; width: 120px; }

  .hero { flex-direction: column; gap: 42px; min-height: 0; padding-top: 44px; padding-bottom: 0; }
  .hero-copy { flex: none; padding-top: 0; }
  .dot { display: none; }
  h1 { margin-top: 20px; letter-spacing: -0.05em; }
  .lede { margin-top: 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 30px; }
  .hero-actions .button:not(.hero-how) { display: none; }
  .hero-actions { align-items: stretch; align-self: stretch; }
  .hero-actions .soon,
  .hero-actions .hero-how {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    padding-block: 0;
    justify-content: center;
  }
  .badge-hero { display: block; width: 180px; }
  .hero-note { display: none; }

  /* The mobile preview: 390 wide, phone at 0.85 of the desktop one, centred,
     with the petals level behind it and the card over its lower left. */
  .hero-art {
    zoom: 1;
    flex: none;
    align-self: center;
    width: 390px;
    max-width: calc(100% + 48px);
    height: 654px;
    margin-inline: -24px;
    overflow: hidden;
  }

  .hero-petals { left: 31px; top: 0; width: 360px; height: 324px; opacity: 0.55; }
  .phone { left: 95px; top: 82px; zoom: 0.85; }
  .ask-card { left: 24px; top: 436px; width: 259px; padding: 20px; }

  .benefits { padding-block: 60px; }
  .benefits-head h2 { font-size: 36px; line-height: 40px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .benefit { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; padding-top: 28px; }
  .benefit h3 { margin-top: 0; font-size: 22px; line-height: 28px; }
  .benefit p { grid-column: 1 / -1; margin-top: 12px; max-width: none; }

  .closing-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 56px; }
  .closing h2 { font-size: 44px; line-height: 48px; }
  .m-break { display: inline; }
  .closing .button { display: none; }
  .badge-closing { display: block; width: 180px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 36px; }
  .footer-links { flex-wrap: wrap; gap: 16px 24px; }
  .footer-copy { margin-left: 0; flex-basis: 100%; }

  .prose h1 { font-size: 40px; line-height: 44px; }
}

/* Before launch (body.coming-soon): no way to get the app yet, so every
   "Get the app" button and App Store badge is hidden and a quiet pill says
   it's coming. */
.soon { display: none; }
.coming-soon [data-get-app], .coming-soon .badge, .coming-soon .modal { display: none !important; }
.coming-soon .soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}
.coming-soon .soon-on-ink { background: transparent; border-color: rgba(230, 221, 244, 0.35); color: var(--paper); }
