/* Moment — moment-screentime.app */

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

:root {
  --color-light: #FEF7E3;
  --color-medium: #FCEC7C;
  --color-dark: #F2A93B;
  --color-dark-top: #FFCD43;
  --color-dark-bottom: #FF9B00;
  --gradient-dark: linear-gradient(180deg, var(--color-dark-top), var(--color-dark-bottom));
  --text-on-light: #1a1a1a;
  --text-on-light-secondary: rgba(26, 26, 26, 0.66);
  --text-on-dark: #FEF7E3;
  --text-on-dark-secondary: rgba(254, 247, 227, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --corner-radius: 30px;
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-serif: 'New York', 'Iowan Old Style', Georgia, serif;

  /* Added for full-feature site */
  --surface-elevated: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(26, 26, 26, 0.12);
  --focus-ring: 0 0 0 3px rgba(242, 169, 59, 0.6);
  --max-width-wide: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-light);
  color: var(--text-on-light);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 1rem;
  box-shadow: var(--focus-ring);
  outline: none;
}

/* ---- Floating nav pill ---- */
.nav-pill {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 0.5rem 0.5rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.nav-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-pill__link {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-on-light);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-pill__link:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nav-pill__link[aria-current="true"] {
  background: rgba(242, 169, 59, 0.25);
}

.nav-pill__link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Curve Separators ---- */
.curve-separator {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.curve-separator svg {
  display: block;
  width: 100%;
  height: 30px;
}

/* ---- Hero ---- */
.hero {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.hero-cream {
  background: var(--color-light);
  text-align: center;
  padding: 6rem 2rem 3rem;
}

.hero-curve {
  line-height: 0;
  background: var(--color-light);
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 30px;
}

.hero-orange {
  background: var(--gradient-dark);
  text-align: center;
  padding: 4rem 2rem 5rem;
}

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: scale(0.9);
  animation: hero-fade-in 1s ease-out forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  opacity: 0;
  animation: hero-fade-in 1s ease-out 0.2s forwards;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-on-dark-secondary);
  max-width: 480px;
  margin: 1rem auto 0;
  line-height: 1.5;
  opacity: 0;
  animation: hero-fade-in 1s ease-out 0.4s forwards;
}

.hero-cta {
  margin-top: 2.5rem;
  opacity: 0;
  animation: hero-fade-in 1s ease-out 0.6s forwards;
}

.hero-scroll-hint {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-dark-secondary);
  text-decoration: none;
  opacity: 0;
  animation: hero-fade-in 1s ease-out 0.8s forwards;
}

.hero-scroll-hint:hover {
  color: var(--text-on-dark);
}

.hero-scroll-hint:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

@keyframes hero-fade-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- App Store badge ---- */
.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

.app-store-badge:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.app-store-badge img {
  width: 220px;
  height: auto;
  display: block;
}

/* ---- Sections ---- */
section {
  padding: 6rem 2rem;
  scroll-margin-top: 5rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subhead {
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

.bg-light .section-heading { color: var(--text-on-light); }
.bg-light .section-subhead { color: var(--text-on-light-secondary); }
.bg-dark .section-heading { color: var(--text-on-dark); }
.bg-dark .section-subhead { color: var(--text-on-dark-secondary); }

/* ---- Section Backgrounds ---- */
.bg-light {
  background: var(--color-light);
  color: var(--text-on-light);
}

.bg-dark {
  background: var(--gradient-dark);
  color: var(--text-on-dark);
}

/* ---- Problem Statement ---- */
.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass-bg);
  border-radius: var(--corner-radius);
  padding: 2rem 2.5rem;
}

.problem-card p {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-on-light);
}

/* ---- Reveal animation (no-JS safe: visible by default; JS adds .js to <html>) ---- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.4s; }
.reveal-delay-2 { transition-delay: 0.8s; }

/* ---- Three Pillars ---- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  text-align: center;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-on-light);
}

.pillar-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-light-secondary);
}

/* ---- Feature showcase (composite image + bullet cards) ---- */
.feature-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.feature-showcase__media {
  width: 100%;
  max-width: 1100px;
}

.feature-showcase__media img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-showcase__media--small {
  max-width: 720px;
}

.feature-bullets {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  grid-template-columns: 1fr;
}

.bullet-card {
  padding: 1.75rem 2rem;
}

.bullet-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.bg-light .bullet-card h3 { color: var(--text-on-light); }
.bg-dark .bullet-card h3 { color: var(--text-on-light); }

.bullet-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bullet-card li {
  font-size: 1rem;
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-on-light);
  font-weight: 500;
}

.bullet-card li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.bullet-card__cta {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.bullet-card__cta a {
  color: var(--color-dark);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.bullet-card__cta a:hover {
  text-decoration-thickness: 2px;
}

.bullet-card__cta a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---- Built with care (privacy + accessibility) ---- */
.built-with-care {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.built-with-care__col {
  display: flex;
  flex-direction: column;
}

.built-with-care__col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-on-light);
}

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-list li {
  font-size: 1.05rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-on-light);
  font-weight: 500;
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-dark);
}

.accessibility-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 0.5rem;
}

.accessibility-features li {
  background: rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-on-light);
  font-weight: 500;
}

/* ---- Privacy & Quote ---- */
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 1rem;
  color: var(--text-on-dark-secondary);
  text-align: center;
}

.quote-attribution {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-on-dark-secondary);
  text-align: center;
  display: block;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem 2.25rem;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-on-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.testimonial-card cite {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-light-secondary);
  font-style: normal;
  display: block;
}

/* ---- Team ---- */
.team .section-inner {
  text-align: center;
  max-width: 640px;
}

.team-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.team-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bg-light .team-heading { color: var(--text-on-light); }
.bg-light .team-text { color: var(--text-on-light-secondary); }
.bg-dark .team-heading { color: var(--text-on-dark); }
.bg-dark .team-text { color: var(--text-on-dark-secondary); }

/* ---- Team CTA (App Store badge below Made by Humans) ---- */
.team-cta {
  margin-top: 2rem;
}

/* ---- Footer ---- */
footer {
  background: var(--color-light);
  color: var(--text-on-light);
  text-align: center;
  padding: 4rem 2rem 3rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: var(--text-on-light);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-on-light-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-on-light-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .nav-pill {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0.4rem;
  }

  .nav-pill::-webkit-scrollbar {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  section {
    padding: 4rem 1.25rem;
  }

  .glass-card {
    padding: 1.5rem 1.75rem;
  }

  .bullet-card {
    padding: 1.5rem 1.75rem;
  }

  .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }

  .hero-cream {
    padding: 4rem 1.25rem 2rem;
  }

  .hero-orange {
    padding: 3rem 1.25rem 4rem;
  }

  .app-store-badge img {
    width: 190px;
    height: auto;
  }

  .feature-showcase {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .feature-bullets--cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }

  .feature-bullets--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-bullets--single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .built-with-care {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }

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

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-light: #FFB739;
    --color-medium: #FCF065;
    --color-dark: #01081C;
    --color-dark-top: #01081C;
    --color-dark-bottom: #01081C;
    --text-on-light: #01081C;
    --text-on-light-secondary: rgba(1, 8, 28, 0.66);
    --text-on-dark: #FFB739;
    --text-on-dark-secondary: rgba(255, 183, 57, 0.8);
    --glass-bg: rgba(28, 28, 30, 0.66);
    --surface-elevated: rgba(28, 28, 30, 0.85);
    --border-subtle: rgba(255, 183, 57, 0.18);
    --focus-ring: 0 0 0 3px rgba(255, 183, 57, 0.6);
  }

  .app-icon {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .nav-pill__link {
    color: var(--text-on-light);
  }

  .nav-pill__link[aria-current="true"] {
    background: rgba(255, 183, 57, 0.25);
  }

  .nav-pill__link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .accessibility-features li {
    background: rgba(1, 8, 28, 0.12);
  }

  .privacy-list li::before {
    color: var(--color-dark);
  }

}

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

  .app-icon,
  .hero-title,
  .hero-tagline,
  .hero-cta,
  .hero-scroll-hint {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-pill {
    transition: none;
  }

  .pillar-card,
  .app-store-badge {
    transition: none;
  }
}
