:root {
  color-scheme: light;
  --brand: #028199;
  --brand-dark: #0088FF;
  --background: #F2F2F7;
  --foreground: #172033;
  --muted: #667085;
  --card: #ffffff;
  --soft: #f6f8fb;
  --border: #e5e7eb;
  --tool-feed: #ff8d28;
  --tool-diaper: #00c0e8;
  --tool-sleep: #6155f5;
  --tool-pumping: #ff2d55;
  --tool-activity: #34c759;
  --tool-milestones: #00c8b3;
  --tool-growth: #34c759;
  --tool-moments: #00c3d0;
  --tool-medication: #ff8d28;
  --tool-temperature: #ff3b3c;
  --tool-symptoms: #ff8d28;
  --tool-vaccines: #0088ff;
  --tool-edit: #8e8e93;
  --tool-food: #ffcc00;
  --language-ui: #1f1f1f;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
}

.site-header-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #2c2c2e;
  pointer-events: auto;
}

.site-brand img {
  width: 34px;
  height: 34px;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.site-nav-toggle:hover {
  background: #f2f2f7;
}

.site-nav-toggle img {
  width: 20px;
  height: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--foreground);
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.site-nav-link:hover {
  background: #f2f2f7;
  color: #03C3D1;
}

.language-switcher {
  position: relative;
  pointer-events: auto;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.language-button:hover {
  background: #f2f2f7;
}

.language-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-button span {
  white-space: nowrap;
}

#current-language {
  color: var(--language-ui);
  font-size: 13px;
  font-weight: 600;
}

.language-icon {
  width: 17px;
  height: 17px;
}

.language-chevron {
  width: 16px;
  height: 16px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}

.language-menu-item {
  width: 100%;
  padding: 9px 10px;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease;
}

.language-menu-item:hover,
.language-menu-item[data-active="true"] {
  background: #f2f4f7;
}

.language-menu-item[data-active="true"] {
  color: #03C3D1; /*0088ff*/
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 94px 0 72px;
  color: var(--foreground);
  background: var(--background);
  overflow: hidden;
}

.hero-inner,
.features,
.tools,
.showcase {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

.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;
}

.phone-frame {
  width: min(300px, 72vw);
  padding: 10px;
  justify-self: center;
  background: #111;
  border-radius: 40px; /*image border*/
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

body.no-phone-frame .phone-frame {
  width: min(300px, 72vw);
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: #fff;
}

body.no-phone-frame .phone-frame img {
  border-radius: 32px; /*image border*/
  box-shadow:
    0 3px 6px rgba(16, 24, 40, 0.08),
    0 8px 16px rgba(16, 24, 40, 0.12),
    0 16px 28px rgba(16, 24, 40, 0.14);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-brand img {
  width: 54px;
  height: 54px;
}

.hero-logo {
  width: min(284px, 78vw);
  height: auto;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.store-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.store-badge-image {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
}

.features {
  width: 100%;
  padding: 112px max(24px, calc((100vw - 1120px) / 2));
  color: #fff;
  background: #2C2C2E;
  /*background: rgba(3, 195, 209, 0.2);*/
  border-top: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.feature-grid {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: block;
  min-height: 218px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.feature-card:hover {
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  background: #03C3D1;
  border-radius: 8px;
}

.feature-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.25;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.04);
  color: var(--foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tools {
  width: 100%;
  padding: 112px max(24px, calc((100vw - 1120px) / 2));
  color: #fff;
  background: #2C2C2E;
  scroll-margin-top: 24px;
}

.section-heading-light p {
  color: rgba(255, 255, 255, 0.74);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 32px 20px;
  max-width: 980px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.tool-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.tool-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: inherit;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  transform: translateY(-2px);
}

.tool-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 8px;
  border-radius: 18px;
}

.tool-tile {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.tool-tile img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.tool-feed {
  background: var(--tool-feed);
}
.tool-diaper {
  background: var(--tool-diaper);
}
.tool-sleep {
  background: var(--tool-sleep);
}
.tool-pumping {
  background: var(--tool-pumping);
}
.tool-activity {
  background: var(--tool-activity);
}
.tool-milestones {
  background: var(--tool-milestones);
}
.tool-growth {
  background: var(--tool-growth);
}
.tool-moments {
  background: var(--tool-moments);
}
.tool-medication {
  background: var(--tool-medication);
}
.tool-temperature {
  background: var(--tool-temperature);
}
.tool-symptoms {
  background: var(--tool-symptoms);
}
.tool-vaccines {
  background: var(--tool-vaccines);
}
.tool-edit-tools {
  background: var(--tool-edit);
}
.tool-food {
  background: var(--tool-food);
}

.showcase {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: center;
  padding: 112px max(24px, calc((100vw - 1120px) / 2));
  /*background: #f3f4f6;*/
  background: var(--background);
  scroll-margin-top: 24px;
}

.showcase + .showcase {
  border-top: 1px solid var(--border);
}

.showcase-alt {
  grid-template-columns: 0.8fr 1fr;
}

.showcase-alt .showcase-copy {
  grid-column: 2;
}

.showcase-alt .phone-frame {
  grid-column: 1;
  grid-row: 1;
}

.showcase-copy {
  max-width: 560px;
}

.showcase h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}

.showcase-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.phone-frame-small {
  width: min(260px, 66vw);
}

.site-footer {
  width: 100%;
  padding: 56px 0 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.site-footer-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(160px, 0.75fr) minmax(
      190px,
      0.8fr
    );
  gap: 42px;
  padding-bottom: 42px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
}

.footer-brand img {
  width: min(220px, 62vw);
  height: auto;
}

.footer-brand-column p {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links-column h2,
.footer-app-column h2 {
  margin: 0 0 14px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-actions a:hover {
  color: var(--brand-dark);
}

.footer-store-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-store-actions .store-badge-image {
  height: 44px;
}

.site-footer-bottom {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer-bottom p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 940px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .site-header-left {
    order: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .language-switcher {
    order: 1;
    margin-left: auto;
  }

  .hero-inner,
  .showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase-alt {
    grid-template-columns: 1fr;
  }

  .showcase-alt .showcase-copy,
  .showcase-alt .phone-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-copy {
    order: -1;
  }

  .hero-logo,
  .store-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .store-actions {
    justify-content: center;
  }

  .hero-copy p,
  .showcase-copy {
    margin-inline: auto;
  }

  .language-button {
    padding-inline: 14px;
  }

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

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

  .site-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }

  .footer-brand {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    width: min(100% - 32px, 520px);
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
  }

  .site-header-left {
    position: relative;
    width: auto;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-brand img {
    width: 32px;
    height: 32px;
  }

  .language-switcher {
    max-width: 100%;
  }

  .language-button {
    max-width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }

  .language-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(180px, calc(100vw - 36px));
  }

  .hero-inner {
    width: min(100% - 36px, 520px);
  }

  .hero {
    min-height: auto;
    padding: 72px 0 56px;
  }

  .phone-frame {
    width: min(230px, 74vw);
    padding: 8px;
    border-radius: 32px;
  }

  body.no-phone-frame .phone-frame {
    padding: 0;
    border-radius: 0;
  }

  .phone-frame img {
    border-radius: 24px;
  }

  body.no-phone-frame .phone-frame img {
    border-radius: 24px;
  }

  .hero-brand img {
    width: 40px;
    height: 40px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

  .hero-logo {
    width: min(220px, 72vw);
    margin-bottom: 14px;
  }

  .store-badge-image {
    height: 54px;
  }

  .features,
  .showcase {
    padding: 72px max(18px, calc((100vw - 1120px) / 2));
  }

  .feature-grid {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 36px;
  }

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

  .feature-card {
    min-height: auto;
  }

  .tools {
    padding-block: 72px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .site-footer-main,
  .site-footer-bottom {
    width: min(100% - 36px, 520px);
  }

  .site-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }

  .footer-store-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-store-actions .store-badge-image {
    height: 42px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .site-header-left {
    position: static;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    width: auto;
    padding: 22px 32px 28px;
    background: #fff;
    border-top: 1px solid rgba(229, 231, 235, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
    align-items: stretch;
    justify-content: stretch;
    z-index: 40;
  }

  .site-nav[data-open="true"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .site-nav-link {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1.15;
  }
}

/* Prevent body scroll when nav is open */
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* Navigation backdrop overlay */
.site-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.site-nav-backdrop[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

