:root {
  --burgundy: #660033;
  --ivory: #faf7f5;
  --charcoal: #1a1a1a;
  --light-gray: #f1f1f1;
  --rose: #8a3b57;
  --line: #e8dfdc;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, #fff 0%, var(--ivory) 45%, #f6efec 100%);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

main,
footer,
.floating-header {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.floating-header {
  position: sticky;
  top: 0.8rem;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  min-height: 56px;
  overflow: hidden;
}






.header-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(176px, 42vw);
  max-height: 34px;
}

.header-brand img {
  width: auto;
  max-width: 100%;
  max-height: 34px;
  height: 100%;
  display: block;
}

.back-to-top-fab {
  animation: fab-pulse 2.4s ease-in-out infinite;
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 140;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, #660033, #8a3b57);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(102, 0, 51, 0.32);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.9;
  transform: translateY(0) scale(0.96);
  pointer-events: auto;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease, box-shadow 260ms ease;
}

.back-to-top-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(138, 59, 87, 0.28);
  transform: scale(0.82);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

body.is-scrolled .back-to-top-fab {
  animation: fab-pulse 2.4s ease-in-out infinite;
  opacity: 1;
  transform: translateY(-2px) scale(1);
  pointer-events: auto;
  box-shadow: 0 18px 34px rgba(102, 0, 51, 0.4);
}

body.is-scrolled .back-to-top-fab::before {
  opacity: 1;
  transform: scale(1);
}

.back-to-top-fab:active {
  transform: translateY(0) scale(0.95);
}
.header-cta {
  margin-left: auto;
  text-decoration: none;
  color: var(--burgundy);
  background: rgba(102, 0, 51, 0.08);
  border: 1px solid rgba(102, 0, 51, 0.2);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.88rem;
}

main {
  padding: 4rem 0 4.5rem;
}

section {
  margin-top: 6rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
}


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

h1 {
  font-size: clamp(3rem, 14vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero-title {
  margin-inline: auto;
  max-width: 10ch;
}

.hero-title span {
  display: block;
}

.type-style {
  position: relative;
  display: inline-block;
  width: 5ch;
  margin-inline: auto;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.08em;
  background: linear-gradient(110deg, #4d0026 0%, #7f2a4a 46%, #b66384 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 18px rgba(102, 0, 51, 0.16);
  animation:
    typing-style 1.35s steps(5, end) 0.1s 1 both,
    shimmer-style 4s ease-in-out 1.6s infinite alternate;
}

.type-style::after {
  content: '';
  position: absolute;
  top: 0.06em;
  right: 0;
  width: 0.08em;
  height: 0.86em;
  border-radius: 999px;
  background: rgba(102, 0, 51, 0.9);
  box-shadow: 0 0 12px rgba(138, 59, 87, 0.4);
  animation: caret-glow 900ms step-end infinite;
}

.with-modario {
  white-space: normal;
}

h2 {
  font-size: clamp(2rem, 9vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
}

h3 {
  font-size: 1.2rem;
}

.hero-subtext,
.story-copy p,
.product-ui > p,
.social-proof > p,
.feature-strip > p,
.final-cta > p,
.feature p,
.testimonial p {
  margin-top: 0.8rem;
  font-size: clamp(1.02rem, 3.3vw, 1.2rem);
  line-height: 1.4;
  color: rgba(26, 26, 26, 0.8);
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.btn,
.waitlist-form button {
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary,
.waitlist-form button {
  background: var(--burgundy);
  color: #fff;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--charcoal);
  border-color: var(--line);
}

.story,
.product-ui,
.social-proof,
.feature-strip,
.final-cta {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.story-visual,
.ui-gradient-card,
.testimonial,
.feature,
.final-cta .waitlist-form {
  margin-top: 1.2rem;
}

.story-visual {
  border-radius: 20px;
  overflow: hidden;
}

.story-visual img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.mornings-gallery {
  background: transparent;
  border: 0;
  padding: 0;
}

.mornings-gallery-track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.35rem;
}

.mornings-gallery-track {
  scrollbar-width: none;
}

.mornings-gallery-track::-webkit-scrollbar {
  display: none;
}

.mornings-gallery-item {
  margin: 0;
  min-width: 100%;
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  scroll-snap-align: start;
}

.mornings-gallery-item img {
  height: 260px;
}


.mornings-gallery-controls {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.gallery-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose);
  font-size: 1rem;
  cursor: pointer;
}

.gallery-btn:hover {
  background: rgba(102, 0, 51, 0.07);
}

.ui-gradient-card {
  border-radius: 24px;
  padding: 1.4rem;
  background: linear-gradient(135deg, #660033, #8a3b57, #f2d5dc);
}

.product-ui-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.testimonial-grid,
.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.testimonial-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;
}

.testimonial-grid {
  scrollbar-width: none;
}

.testimonial-grid::-webkit-scrollbar {
  display: none;
}

.testimonial,
.feature {
  padding: 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.testimonial {
  min-width: 84%;
  scroll-snap-align: start;
}

.testimonial span {
  display: block;
  margin-top: 0.7rem;
  color: rgba(26, 26, 26, 0.62);
  font-size: 0.95rem;
}

.final-cta {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  padding: 2rem 1.1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(102, 0, 51, 0.16);
  box-shadow: 0 20px 40px rgba(102, 0, 51, 0.08);
}


.final-cta p,
.final-cta h2 {
  margin-inline: auto;
}

.final-cta .btn {
  margin-top: 1rem;
}

.waitlist-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 620px;
  margin-inline: auto;
}

.waitlist-form input {
  width: 100%;
  border-radius: 999px;
  border: 2px solid rgba(102, 0, 51, 0.28);
  background: #fff;
  padding: 1.05rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(102, 0, 51, 0.12);
}

.waitlist-form input::placeholder {
  color: rgba(26, 26, 26, 0.56);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(138, 59, 87, 0.14);
}

.waitlist-form button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status[data-state='pending'] {
  color: rgba(26, 26, 26, 0.75);
}

.form-status[data-state='success'] {
  color: #1f7a37;
}

.form-status[data-state='error'] {
  color: #9c1f1f;
}

footer {
  margin-bottom: 2rem;
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

footer span {
  font-weight: 700;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer a {
  color: rgba(26, 26, 26, 0.72);
  text-decoration: none;
}


.modal-layer[hidden],
.site-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(22, 14, 19, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-modal {
  position: relative;
  width: min(1100px, calc(100vw - 2rem));
  height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(102, 0, 51, 0.16);
  box-shadow: 0 30px 70px rgba(26, 26, 26, 0.3);
  padding: 1.25rem 1.2rem 2rem;
  text-align: left;
}



#about-modal {
  width: min(760px, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100vh - 2rem);
}
.site-modal .eyebrow,
.site-modal h2,
.site-modal p {
  margin-left: 0;
  margin-right: 0;
}

.site-modal p {
  margin-top: 0.75rem;
  max-width: none;
}

.site-modal h3 {
  margin-top: 1rem;
}

.site-modal a {
  color: var(--burgundy);
}

.modal-close {
  position: sticky;
  top: 0.35rem;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(102, 0, 51, 0.25);
  background: #fff;
  color: var(--burgundy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.8s ease forwards;
}

.reveal:nth-of-type(2) { animation-delay: 0.08s; }
.reveal:nth-of-type(3) { animation-delay: 0.14s; }
.reveal:nth-of-type(4) { animation-delay: 0.2s; }
.reveal:nth-of-type(5) { animation-delay: 0.26s; }

.card-lift {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.feature-story .story-copy,
.feature-story .story-visual {
  transition: transform 500ms ease, opacity 500ms ease;
}

.feature-story .story-copy {
  opacity: 0.4;
  transform: translateY(18px);
}

.feature-story .story-visual {
  opacity: 0.4;
  transform: translateY(18px);
}

.feature-story.is-active .story-copy,
.feature-story.is-active .story-visual {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-style {
  from { width: 0; }
  to { width: 5ch; }
}

@keyframes shimmer-style {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes fab-pulse {
  0% { box-shadow: 0 14px 28px rgba(102, 0, 51, 0.28); }
  50% { box-shadow: 0 18px 34px rgba(138, 59, 87, 0.38); }
  100% { box-shadow: 0 14px 28px rgba(102, 0, 51, 0.28); }
}

@keyframes caret-glow {
  50% {
    opacity: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card-lift,
  .type-style,
  .type-style::after {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }

  .feature-story .story-copy,
  .feature-story .story-visual {
    opacity: 1;
    transform: none;
  }

  .type-style {
    white-space: normal;
    color: var(--charcoal);
    background: none;
    text-shadow: none;
  }

  .type-style::after {
    display: none;
  }
}


@media (min-width: 700px) {
  .story.mornings-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .story.mornings-layout .story-visual {
    margin-top: 0;
    order: 1;
  }

  .story.mornings-layout .story-copy {
    order: 2;
  }
}

@media (min-width: 860px) {
  main,
  footer,
  .floating-header {
    width: min(1200px, calc(100% - 4rem));
  }

  .header-cta {
  margin-left: auto;
    padding: 10px 18px;
  }

  section {
    margin-top: 7.5rem;
  }

  .hero-cta-row {
    flex-direction: row;
  }

  .story {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .story.reverse .story-copy {
    order: 2;
  }

  .story.reverse .story-visual {
    order: 1;
  }

  .story-visual {
    margin-top: 0;
  }

  .story-visual img {
    height: 360px;
  }

  .feature-story .story-copy {
    transform: translateX(-42px);
  }

  .feature-story .story-visual {
    transform: translateX(42px);
  }

  .feature-story.reverse .story-copy {
    transform: translateX(42px);
  }

  .feature-story.reverse .story-visual {
    transform: translateX(-42px);
  }

  .mornings-gallery-controls {
    justify-content: center;
  }

  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .testimonial {
    min-width: 0;
  }

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

  .waitlist-form {
    flex-direction: row;
  }

  .waitlist-form input {
    flex: 1;
  }

  .waitlist-form button {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .back-to-top-fab {
    animation: fab-pulse 2.4s ease-in-out infinite;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    min-width: 50px;
    height: 50px;
    font-size: 0.9rem;
  }

  .modal-layer {
    padding: 0.75rem;
  }

  .site-modal {
    width: min(94vw, 760px);
    height: auto;
    max-height: calc(100vh - 1.5rem);
    border-radius: 20px;
    padding: 1rem 1rem 1.35rem;
  }

  #about-modal {
    width: min(92vw, 680px);
    height: auto;
    max-height: calc(100vh - 1.5rem);
  }
}


/* Home page */
.site-home .floating-header {
  justify-content: space-between;
  padding-inline: 1rem;
}

.brand-link {
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.top-nav a {
  text-decoration: none;
  color: rgba(26, 26, 26, 0.75);
  font-weight: 500;
  font-size: 0.92rem;
}

.home-hero {
  max-width: 920px;
  margin-inline: auto;
}

.fade-in-landing {
  opacity: 0;
  animation: landing-fade-in 1.1s ease forwards;
}

@keyframes landing-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .site-home .floating-header {
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
  }

  .top-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-home .header-cta {
    margin-left: 0;
  }
}
