
/******************************************************************************/
/* Global Styles */
/******************************************************************************/

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/fonts/Figtree-VariableFont_wght.ttf') format('truetype');
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: normal;
  font-display: swap;
  src: url('/fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
}


:root {
  --blue: #84b3e1;
  /* Light theme (default) */
  --spinner-color: #3987e6;
  --backdrop-color: #4f555d40;
  --text-color: #333;
  --background-color: #eee;
  --content-background-color: #fff;
  --input-background-color: #eee;
  --input-border-color: #ccc;
  --input-outline-color: #3987e6;
  --input-placeholder-color: #666;
  --button-padding: 10px 18px;
  --button-border-width: 2px;
  --button-border-radius: 6px;
  --button-primary-background-color: #3987e6;
  --button-primary-text-color: #fff;
  --button-secondary-background-color: #fff;
  --button-secondary-text-color: #333;
  --button-secondary-border-color: #333;
  --button-delete-background-color: #d55e5e;
  --button-delete-text-color: #fff;
  --button-delete-border-color: #d55e5e;
  --button-disabled-background-color: #ccc;
  --button-disabled-text-color: #666;
  --link-text-color: #3987e6;
  --toast-info-color: #3987e6;
  --toast-error-color: #d55e5e;
  --toast-success-color: #3bbf90;
  --toast-text-color: #fff;
  --signed-in-as-background-color: #eee;
  --authorize-header-arrow-color: #666;
  --shadow-color: #00000020;
  --behind-shadow-color: #eee;
  --toggle-color: #00000020;
  --border-color: #ccc;
  --accent-color: #3987e6;
  --accent-color-light: #77b4ff;
  --accent-color-indeterminate: #3987e6aa;
  --background-color-gradient: linear-gradient(to right, #fff, #f3f3f3);
  --table-resize-handle-background-color: #3987e680;
  --table-hover-background-color: #00000020;
  --permissionsSelectorTree-line-color: #bbb;
}

/* Dark theme */
.dark {
  --spinner-color: #3987e6;
  --backdrop-color: #13151830;
  --text-color: #eee;
  --background-color: #0d1117;
  --content-background-color: #2e3339;
  --input-background-color: #0d1117;
  --input-border-color: #0d1117;
  --input-outline-color: #3987e6;
  --input-placeholder-color: #aaa;
  --button-padding: 10px 18px;
  --button-border-width: 2px;
  --button-border-radius: 6px;
  --button-primary-background-color: #3987e6;
  --button-primary-text-color: #fff;
  --button-secondary-background-color: #0d1117;
  --button-secondary-text-color: #eee;
  --button-secondary-border-color: #484848;
  --button-delete-background-color: #d55e5e;
  --button-delete-text-color: #fff;
  --button-delete-border-color: #d55e5e;
  --button-disabled-background-color: #666;
  --button-disabled-text-color: #eee;
  --link-text-color: #3987e6;
  --toast-info-color: #3987e6;
  --toast-error-color: #d55e5e;
  --toast-success-color: #3bbf90;
  --toast-text-color: #fff;
  --signed-in-as-background-color: #0d1117;
  --authorize-header-arrow-color: #aaa;
  --shadow-color: #05070a;
  --behind-shadow-color: #2e3339;
  --toggle-color: #ffffff40;
  --border-color: #484848;
  --accent-color: #3987e6;
  --accent-color-light: #77b4ff;
  --accent-color-indeterminate: #3987e6aa;
  --background-color-gradient: linear-gradient(to right, #2e3339, #1c1f24);
  --table-resize-handle-background-color: #3987e680;
  --table-hover-background-color: #ffffff20;
  --permissionsSelectorTree-line-color: #777;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: normal;
  scrollbar-width: thin;

  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-property:
    background-color,
    color,
    border-color,
    box-shadow,
    opacity;
}

ul {
  margin: 16px 0;
  padding-left: 40px;
  line-height: 1.8;
}
p {
  margin: 16px 0;
  line-height: 1.8;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  color: var(--text-color);
  font-size: 16px;
  font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  /* Prevent mobile browsers from resizing text */
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text-color);
  background-color: var(--background-color);
}

/******************************************************************************/
/* Marketing Layout */
/******************************************************************************/
.marketing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/******************************************************************************/
/* Header / Nav */
/******************************************************************************/
.marketing-header {
  flex: none;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--background-color);
  border-width: 0 0 1px 0;
  border-image-source: linear-gradient(
    to right,
    transparent 12px,
    rgba(137, 157, 161, 0.4) 12px,
    rgba(137, 157, 161, 1) 96px,
    rgba(137, 157, 161, 1) calc(100% - 96px),
    rgba(137, 157, 161, 0.4) calc(100% - 12px),
    transparent calc(100% - 12px)
  );
  border-image-slice: 1;
  border-style: solid;
}

.marketing-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
}

.marketing-header .logo:hover {
  color: var(--text-color);
  opacity: 0.9;
}

.marketing-header .logo-image {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
}

.marketing-header .logo-text {
  font-size: 20px;
  font-weight: 600;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.marketing-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.marketing-nav .nav-link {
  padding: 10px 18px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--button-border-radius);
  transition: background-color 0.2s, color 0.2s;
}

.marketing-nav .nav-link:hover {
  color: var(--link-text-color);
  background-color: var(--table-hover-background-color);
}

.marketing-nav .nav-link.primary {
  border: 2px solid var(--button-primary-background-color);
  background-color: var(--button-primary-background-color);
  color: var(--button-primary-text-color);
}

.marketing-nav .nav-link.primary:hover {
  opacity: 0.9;
  color: var(--button-primary-text-color);
}

/* Theme toggle - same as app */
.marketing-header-actions .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  background: none;
  border: none;
  color: var(--button-secondary-text-color);
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}

.marketing-header-actions .theme-toggle:hover {
  opacity: 0.9;
}

.marketing-header-actions .theme-toggle .theme-toggle-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.marketing-header-actions .theme-toggle .sun-icon {
  display: none;
}

.dark .marketing-header-actions .theme-toggle .moon-icon {
  display: none;
}

.dark .marketing-header-actions .theme-toggle .sun-icon {
  display: inline-block;
}

/* Hamburger - hidden by default, shown on mobile */
.marketing-hamburger {
  display: none;
  border: none;
  outline: none;
  background: none;
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  padding: 8px;
  cursor: pointer;
}

/* Mobile menu overlay */
.marketing-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding: 80px 12px 24px;
  z-index: 50;
  overflow: auto;
  background-color: var(--content-background-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.marketing-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.marketing-menu .nav-link {
  display: block;
  width: 100%;
  padding: 18px 12px;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-color);
}

.marketing-menu .nav-link:visited {
  color: var(--accent-color);
}

.dark .marketing-menu .nav-link,
.dark .marketing-menu .nav-link:visited {
  color: var(--text-color);
}

.marketing-menu .nav-link:hover {
  background-color: var(--table-hover-background-color);
}

.marketing-menu .nav-link.primary {
  display: inline-block;
  margin-top: 12px;
}

/* Mobile breakpoints - same as app */
@media only screen and (max-width: 680px) {
  .marketing-nav {
    display: none;
  }
  .marketing-hamburger {
    display: block;
  }
}

@media only screen and (max-width: 400px) {
  .marketing-header .logo-image {
    height: 40px;
    width: 40px;
  }
  .marketing-header .logo-text {
    font-size: 16px;
  }
}

@media only screen and (max-width: 320px) {
  .marketing-header {
    padding: 18px;
    border-image-source: linear-gradient(
      to right,
      transparent 18px,
      rgba(137, 157, 161, 0.4) 18px,
      rgba(137, 157, 161, 1) 64px,
      rgba(137, 157, 161, 1) calc(100% - 64px),
      rgba(137, 157, 161, 0.4) calc(100% - 18px),
      transparent calc(100% - 18px)
    );
  }
  .marketing-header .logo-text {
    display: none;
  }
  .marketing-menu .nav-link {
    padding: 14px 12px;
  }
}

/******************************************************************************/
/* Parallax Hero */
/******************************************************************************/
.parallax-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Replace url() with your own baby image - e.g. url('/images/baby-hero.jpg') */
.parallax-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: linear-gradient(135deg, #e8f4fc 0%, #d4e8f7 50%, #b8d9f0 100%);
  background-image: url('/images/baby-hero-4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(-1px) scale(1.2);
  will-change: transform;
}

.dark .parallax-hero-bg {
  background-image: linear-gradient(135deg, #1a2332 0%, #0d1117 50%, #151b24 100%);
  background-image: url('/images/baby-hero-4.jpg');
}

.parallax-hero-bg.has-image {
  background-image: url('/images/baby-hero-4.jpg');
}

.parallax-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(238, 238, 238, 0.95) 100%
  );
  pointer-events: none;
}

.dark .parallax-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(13, 17, 23, 0.6) 0%,
    rgba(13, 17, 23, 0.4) 50%,
    rgba(13, 17, 23, 0.95) 100%
  );
}

.parallax-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 48px 24px;
  text-align: center;
}

@media only screen and (max-width: 400px) {
  .parallax-hero {
    min-height: 60vh;
  }
  .parallax-hero-content {
    padding: 32px 18px;
  }
}

@media only screen and (max-width: 320px) {
  .parallax-hero {
    min-height: 55vh;
  }
  .parallax-hero-content {
    padding: 24px 18px;
  }
}

.parallax-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.parallax-hero .hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}

/******************************************************************************/
/* Buttons */
/******************************************************************************/
a.primary,
button.primary,
.marketing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-padding);
  border: var(--button-border-width) solid var(--button-primary-background-color);
  border-radius: var(--button-border-radius);
  background-color: var(--button-primary-background-color);
  color: var(--button-primary-text-color);
  font-size: inherit;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}

a.primary:hover,
button.primary:hover,
.marketing-cta:hover {
  opacity: 0.9;
}

a.secondary,
button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-padding);
  border: var(--button-border-width) solid var(--button-secondary-border-color);
  border-radius: var(--button-border-radius);
  background-color: var(--button-secondary-background-color);
  color: var(--button-secondary-text-color);
  font-size: inherit;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

a.secondary:hover,
button.secondary:hover {
  opacity: 0.9;
}

/******************************************************************************/
/* Content Sections */
/******************************************************************************/
.marketing-section {
  padding: 48px 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media only screen and (max-width: 400px) {
  .marketing-section {
    padding: 36px 18px;
  }
}

@media only screen and (max-width: 320px) {
  .marketing-section {
    padding: 24px 18px;
  }
}

.marketing-section h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  margin-bottom: 18px;
}

.marketing-section li {
  margin-bottom: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  margin-top: 36px;
}

@media only screen and (max-width: 400px) {
  .features-grid {
    gap: 18px;
    margin-top: 24px;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px;
  background-color: var(--content-background-color);
  border-radius: var(--button-border-radius);
  border: 1px solid var(--border-color);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.feature-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  min-height: 0;
}

/******************************************************************************/
/* Footer */
/******************************************************************************/
.marketing-footer {
  flex: none;
  margin-top: auto;
  padding: 24px;
  border-width: 1px 0 0 0;
  border-image-source: linear-gradient(
    to right,
    transparent 12px,
    rgba(137, 157, 161, 0.4) 12px,
    rgba(137, 157, 161, 1) 96px,
    rgba(137, 157, 161, 1) calc(100% - 96px),
    rgba(137, 157, 161, 0.4) calc(100% - 12px),
    transparent calc(100% - 12px)
  );
  border-image-slice: 1;
  border-style: solid;
}

.marketing-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

@media only screen and (max-width: 400px) {
  .marketing-footer {
    padding: 18px;
  }
  .marketing-footer-inner {
    flex-direction: column;
  }
}

@media only screen and (max-width: 320px) {
  .marketing-footer {
    padding: 18px;
  }
}

.marketing-footer .nav-link {
  padding: 6px 12px;
  color: var(--text-color);
  text-decoration: none;
}

.marketing-footer .nav-link:hover {
  color: var(--link-text-color);
}

/******************************************************************************/
/* Inner Pages (About, Gifting) */
/******************************************************************************/
.inner-page main {
  flex: auto;
  padding: 48px 24px;
}

@media only screen and (max-width: 400px) {
  .inner-page main {
    padding: 36px 18px;
  }
}

@media only screen and (max-width: 320px) {
  .inner-page main {
    padding: 24px 18px;
  }
}

.inner-page .page-content {
  max-width: 720px;
  margin: 0 auto;
}

.inner-page h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 24px;
}

.inner-page .page-subheading {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.instruction-screenshot {
  margin: 32px 0;
  max-width: 100%;
}

.instruction-screenshot .screenshot-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--button-border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--content-background-color);
}

.instruction-screenshot figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-text-color, #666);
}

.instruction-screenshot figcaption code {
  font-size: 0.85em;
  padding: 2px 6px;
  background-color: var(--content-background-color);
  border-radius: 4px;
}

/******************************************************************************/
/* Parallax scroll effect */
/******************************************************************************/
@supports (transform: translateZ(0)) {
  .parallax-hero {
    perspective: 1px;
  }

  .parallax-hero-bg {
    transform: translateZ(-0.5px) scale(1.5);
  }
}

/******************************************************************************/
/* 404 Error Page */
/******************************************************************************/
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent-color);
}

.error-page .subtitle {
  font-size: clamp(18px, 4vw, 24px);
  margin-bottom: 18px;
}

.error-page p {
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.6;
}

