/* Babyhours website.
 *
 * Tokens are copied from the app's src/theme/colors.ts and src/theme/tokens.ts,
 * with the --babyhours- prefix decision D1 sets for CSS. The contrast notes are
 * the app's own measurements: keep each colour on the surface it is paired with
 * here. #e65b60 (accent) is 3.48:1 on white and never carries text.
 *
 * No inline styles anywhere: the Content-Security-Policy in _headers allows
 * this stylesheet and nothing else.
 */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* surfaces */
  --babyhours-bg: #f6f1ed;
  --babyhours-bg-alt: #efe5de;
  --babyhours-card: #ffffff;
  --babyhours-surface-muted: #f8f4f1;
  --babyhours-border: #efe6df;
  --babyhours-border-strong: #e2d9d4;
  /* text */
  --babyhours-ink: #1c1719;
  --babyhours-muted: #686665; /* mutedStrong: 5.71:1 on white, 4.61:1 on bg-alt */
  /* accent */
  --babyhours-accent-strong: #cf4046; /* buttons, text on white: 4.69:1 */
  --babyhours-accent-deep: #b32d32; /* accent text on the page and on tints: 5.61:1 */
  --babyhours-accent-ink: #822124;
  --babyhours-accent-soft: #f8d7d9;
  /* feature tints: soft fill + chip-strength foreground */
  --babyhours-amber-soft: #f6e6c8;
  --babyhours-amber-chip: #875e1e;
  --babyhours-sage-soft: #d7eee4;
  --babyhours-sage: #3f6d59;
  --babyhours-blue-soft: #d7e7f4;
  --babyhours-blue-chip: #3f698b;
  --babyhours-teal-soft: #d2efe7;
  --babyhours-teal-chip: #317263;
  --babyhours-rose-soft: #f3d9df;
  --babyhours-rose-chip: #a73d4f;
  --babyhours-steel-soft: #e0e6ef;
  --babyhours-steel-chip: #5a6577;
  /* shape */
  --babyhours-radius-card: 20px;
  --babyhours-radius-modal: 24px;
  --babyhours-radius-pill: 999px;
  --babyhours-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --babyhours-shadow-md: 0 6px 12px rgba(0, 0, 0, 0.06);
  --babyhours-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  /* type: the app's own faces first (built into iPhones and Macs), then the
     self-hosted look-alikes */
  --babyhours-font-display: Didot, "Bodoni Moda", "Bodoni 72", serif;
  --babyhours-font-body: "Avenir Next", Avenir, "Nunito Sans", -apple-system, sans-serif;
  --babyhours-gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--babyhours-bg);
  color: var(--babyhours-ink);
  font-family: var(--babyhours-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--babyhours-accent-deep);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--babyhours-accent-ink);
}
:focus-visible {
  outline: 3px solid var(--babyhours-accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--babyhours-gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  background: var(--babyhours-card);
  color: var(--babyhours-ink);
  padding: 10px 16px;
  border-radius: var(--babyhours-radius-pill);
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}

/* ── type ──────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--babyhours-accent-deep);
}
.label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--babyhours-muted);
}
.display {
  font-family: var(--babyhours-font-display);
  font-weight: 400;
  font-size: clamp(2.375rem, 5vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.page-title {
  font-family: var(--babyhours-font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.title {
  font-family: var(--babyhours-font-display);
  font-weight: 400;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  text-wrap: balance;
}
.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 32em;
}
.muted {
  color: var(--babyhours-muted);
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--babyhours-radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.button--primary {
  background: var(--babyhours-accent-strong);
  color: #ffffff;
}
.button--primary:hover {
  background: var(--babyhours-accent-deep);
  color: #ffffff;
}
.button--secondary {
  border: 1.5px solid var(--babyhours-border-strong);
  color: var(--babyhours-ink);
}
.button--secondary:hover {
  border-color: var(--babyhours-ink);
  color: var(--babyhours-ink);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--babyhours-border);
}
.site-header__row {
  min-height: 88px;
  padding-block: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--babyhours-ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--babyhours-ink);
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand__name {
  font-family: var(--babyhours-font-display);
  font-size: 1.625rem;
  line-height: 1;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  color: var(--babyhours-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--babyhours-accent-deep);
}
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--babyhours-accent-strong);
}

/* ── home: hero ────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 72px 96px;
}
.hero__text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__text .button-row {
  padding-top: 4px;
}
.hero__status {
  font-size: 0.875rem;
  color: var(--babyhours-muted);
}
.hero__demo {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.log-card {
  background: var(--babyhours-card);
  border-radius: var(--babyhours-radius-card);
  box-shadow: var(--babyhours-shadow-lg);
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.log-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.log-card__title {
  font-family: var(--babyhours-font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}
.log-card__date {
  font-size: 0.8125rem;
  color: var(--babyhours-muted);
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: var(--babyhours-radius-pill);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.pill--sage {
  background: var(--babyhours-sage-soft);
  color: var(--babyhours-sage);
}
.pill__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--babyhours-radius-pill);
  background: currentColor;
}
.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--babyhours-border);
}
.log-entry__body {
  flex: 1 1 auto;
  min-width: 0;
}
.log-entry__what {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}
.log-entry__who,
.log-entry__time {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--babyhours-muted);
}
.log-entry__time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.icon-dot {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--babyhours-radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-dot svg {
  width: 20px;
  height: 20px;
}
.icon-dot--lg {
  width: 44px;
  height: 44px;
}
.icon-dot--lg svg {
  width: 22px;
  height: 22px;
}
.tint-amber {
  background: var(--babyhours-amber-soft);
  color: var(--babyhours-amber-chip);
}
.tint-sage {
  background: var(--babyhours-sage-soft);
  color: var(--babyhours-sage);
}
.tint-blue {
  background: var(--babyhours-blue-soft);
  color: var(--babyhours-blue-chip);
}
.tint-teal {
  background: var(--babyhours-teal-soft);
  color: var(--babyhours-teal-chip);
}
.tint-rose {
  background: var(--babyhours-rose-soft);
  color: var(--babyhours-rose-chip);
}
.tint-steel {
  background: var(--babyhours-steel-soft);
  color: var(--babyhours-steel-chip);
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.widget {
  flex: 0 0 168px;
  height: 168px;
  background: var(--babyhours-card);
  border-radius: 28px;
  box-shadow: var(--babyhours-shadow-sm);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.widget__value {
  font-family: var(--babyhours-font-display);
  font-size: 2.125rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.widget__sub {
  font-size: 0.8125rem;
  color: var(--babyhours-muted);
}
.widget__chip {
  width: fit-content;
  border-radius: var(--babyhours-radius-pill);
  padding: 3px 10px;
  background: var(--babyhours-accent-soft);
  color: var(--babyhours-accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
}
.handoff {
  /* 160px lets it sit beside the 168px widget on a 390px phone */
  flex: 1 1 160px;
  min-width: 0;
  background: var(--babyhours-card);
  border-radius: var(--babyhours-radius-card);
  box-shadow: var(--babyhours-shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.handoff__who {
  font-size: 0.9375rem;
  font-weight: 700;
}
.handoff__note {
  font-size: 0.875rem;
  line-height: 1.5;
}
.handoff__meta {
  font-size: 0.75rem;
  color: var(--babyhours-muted);
}

/* ── home: features ────────────────────────────────────────────────────── */

.band {
  background: var(--babyhours-card);
  border-block: 1px solid var(--babyhours-border);
}
.band__inner {
  padding-block: 88px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.section-head {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-head p:last-child {
  font-size: 1.0625rem;
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.feature {
  background: var(--babyhours-surface-muted);
  border-radius: var(--babyhours-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}
.feature p {
  font-size: 0.9375rem;
  color: var(--babyhours-muted);
}

/* ── home: privacy callout and company ─────────────────────────────────── */

.callout-section {
  padding-top: 88px;
}
.callout {
  background: var(--babyhours-card);
  border-radius: var(--babyhours-radius-modal);
  box-shadow: var(--babyhours-shadow-md);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.callout__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callout__quote {
  font-family: var(--babyhours-font-display);
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.2;
  text-wrap: balance;
}
.company {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 64px;
  padding-block: 88px 96px;
}
.company__head {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.company__body {
  flex: 2 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
  font-size: 1.0625rem;
}
.company__body a {
  font-weight: 700;
}

/* ── inner pages ───────────────────────────────────────────────────────── */

.page {
  padding-block: 72px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page-head {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}
.card {
  min-width: 0;
  background: var(--babyhours-card);
  border-radius: var(--babyhours-radius-card);
  box-shadow: var(--babyhours-shadow-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--company {
  flex: 1 1 320px;
}
.card--email {
  flex: 2 1 480px;
}
.card__name {
  font-family: var(--babyhours-font-display);
  font-size: 1.75rem;
  line-height: 1.15;
}
.email-big {
  width: fit-content;
  max-width: 100%;
  color: var(--babyhours-accent-strong);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-big:hover {
  color: var(--babyhours-accent-deep);
  text-decoration: underline;
}
.card__note {
  border-top: 1px solid var(--babyhours-border);
  padding-top: 14px;
  font-size: 0.875rem;
  color: var(--babyhours-muted);
}

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: var(--babyhours-gutter);
  padding-block: 72px 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.prose section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose h2 {
  font-family: var(--babyhours-font-display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.2;
}
.summary {
  background: var(--babyhours-card);
  border-radius: var(--babyhours-radius-card);
  box-shadow: var(--babyhours-shadow-sm);
  padding: 24px 28px;
  font-size: 1rem;
}
.summary strong {
  font-weight: 800;
}

.notfound {
  padding-block: 112px 128px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.notfound .button-row {
  padding-top: 8px;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--babyhours-bg-alt);
  border-top: 1px solid var(--babyhours-border-strong);
  font-size: 0.875rem;
}
.site-footer__inner {
  padding-block: 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.site-footer__brand {
  flex: 2 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__brand .brand {
  gap: 10px;
  min-height: 0;
}
.site-footer__brand .brand img {
  width: 32px;
  height: 32px;
}
.site-footer__brand .brand__name {
  font-size: 1.375rem;
}
.site-footer__brand p {
  max-width: 30em;
  color: var(--babyhours-muted);
}
.site-footer__col {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col a {
  color: var(--babyhours-ink);
}
.site-footer__col a:hover {
  color: var(--babyhours-accent-deep);
}
.footer-nav {
  flex: 1 1 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.footer-nav .label {
  padding-bottom: 2px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--babyhours-ink);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--babyhours-accent-deep);
}
.site-footer__legal {
  border-top: 1px solid var(--babyhours-border-strong);
  padding-top: 18px;
  font-size: 0.8125rem;
  color: var(--babyhours-muted);
}

/* ── small screens ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .site-header__row {
    min-height: 72px;
  }
  .hero {
    gap: 40px;
    padding-block: 48px 64px;
  }
  .band__inner {
    padding-block: 64px;
  }
  .callout-section {
    padding-top: 64px;
  }
  .company {
    padding-block: 64px 72px;
  }
  .page,
  .prose {
    padding-block: 48px 72px;
  }
  .notfound {
    padding-block: 72px 96px;
  }
}
