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

:root {
  --navy: #2C4A67;
  --navy-deep: #1B3149;
  --cream: #F2EDE4;
  --cream-dark: #E9E3D8;
  --sage: #6E8C72;
  --sage-light: #9AB8A4;
  --powder: #A4BBCA;
  --powder-light: #C5D5DF;
  --taupe: #C0AE9A;
  --text: #2C4A67;
  --text-muted: #7E8E9E;
  --white: #fdfcfa;
  --texture: url('./folds.png');
  --folds: url('./folds.png');
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  background-image: url('./folds.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  overflow-x: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ─── NAV ─────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 74, 103, 0.08);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo-mark {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo span { color: var(--sage); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-links .nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  border: none;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.nav-links .nav-cta:hover {
  background: var(--navy-deep);
  color: var(--cream);
}

/* ─── HERO ────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(242, 237, 228, 0.82);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 480px auto;
  background-repeat: repeat;
  opacity: 0.06;
  mix-blend-mode: multiply;
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-logo {
  width: 240px;
  height: auto;
  margin-bottom: 0;
  animation: fadeUp 0.6s ease both;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-headline em {
  font-style: italic;
  color: var(--sage);
}

.hero-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 3rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-steps span {
  color: var(--navy);
  font-weight: 500;
  font-size: 1.05rem;
}

.hero-steps .dot {
  margin: 0 0.75rem;
  color: var(--taupe);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-social-proof {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stars {
  color: var(--taupe);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.proof-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-text strong { color: var(--navy); }

/* ─── BUTTONS ─────────────────────────────────────────────────────── */

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem 2.2rem;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  appearance: none;
}

.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 74, 103, 0.22);
}

.btn-primary svg {
  width: 18px; height: 18px;
  transition: transform 0.2s;
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-primary.btn-sm {
  font-size: 0.9rem;
  padding: 0.8rem 1.6rem;
}

.btn-secondary {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.btn-secondary:hover { opacity: 1; }

/* ─── SHARED SECTION ──────────────────────────────────────────────── */

section { padding: 6rem 4rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ─── HOW IT WORKS ────────────────────────────────────────────────── */

.how {
  background-color: rgba(197, 213, 223, 0.88);
  position: relative;
  overflow: hidden;
}

.how::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 480px auto;
  background-repeat: repeat;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.how > * {
  position: relative;
  z-index: 1;
}

.how-deco { display: none; }

.how .section-label { color: var(--sage); }
.how .section-title { color: var(--navy); }
.how .section-sub { color: var(--text-muted); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44,74,103,0.12), rgba(44,74,103,0.12), transparent);
}

.step {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(4) { transition-delay: 0.3s; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.step:hover .step-num {
  transform: translateY(-4px);
}

.step-icon {
  width: 68px; height: 68px;
  color: var(--sage);
  flex-shrink: 0;
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ─── PRICING ─────────────────────────────────────────────────────── */

.pricing {
  background-color: rgba(233, 227, 216, 0.88);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 520px auto;
  background-repeat: repeat;
  opacity: 0.07;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.pricing-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.price-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(44, 74, 103, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(44, 74, 103, 0.1);
}

.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
}

.price-card:nth-child(2) { transition-delay: 0.1s; }

.featured-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--taupe);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
}

.card-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.price-card.featured .card-label { color: var(--sage-light); }

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.price-card.featured .card-name { color: var(--cream); }

.card-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 500;
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.price-card.featured .price-amount { color: var(--cream); }

.price-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.price-card.featured .price-unit { color: rgba(242, 237, 228, 0.55); }

.card-promo {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.price-card.featured .card-promo { color: var(--gold); }

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(44, 74, 103, 0.07);
}

.price-card.featured .card-desc {
  color: rgba(242, 237, 228, 0.55);
  border-bottom-color: rgba(242, 237, 228, 0.1);
}

.card-features { list-style: none; }

.card-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(44, 74, 103, 0.05);
}

.price-card.featured .card-features li {
  color: rgba(242, 237, 228, 0.8);
  border-bottom-color: rgba(242, 237, 228, 0.07);
}

.card-features li:last-child { border-bottom: none; }

.check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(122, 158, 142, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--sage);
}

.price-card.featured .check {
  background: rgba(168, 197, 184, 0.2);
  color: var(--sage-light);
}

.card-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding: 0.9rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  appearance: none;
}

.card-btn:hover {
  background: var(--navy);
  color: var(--cream);
}

.price-card.featured .card-btn {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.price-card.featured .card-btn:hover {
  background: var(--powder-light);
  border-color: var(--powder-light);
}

/* ─── BEDDING ADD-ON ──────────────────────────────────────────────── */

.bedding-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(44, 74, 103, 0.07);
  gap: 1rem;
  flex-wrap: wrap;
}

.bedding-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.bedding-icon {
  width: 20px; height: 20px;
  color: var(--sage);
  flex-shrink: 0;
}

.bedding-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bedding-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.bedding-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── CTA ─────────────────────────────────────────────────────────── */

.cta-section {
  background-color: rgba(242, 237, 228, 0.88);
  position: relative;
  text-align: center;
  padding: 8rem 4rem;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 158, 142, 0.14) 0%, transparent 65%);
  z-index: 1;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  background-size: 440px auto;
  background-repeat: repeat;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.cta-title em {
  font-style: italic;
  color: var(--sage);
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy);
  color: var(--cream);
  padding: 1.15rem 2.8rem;
  border-radius: 3rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(44, 74, 103, 0.2);
  border: none;
  appearance: none;
}

.cta-btn:hover {
  background: var(--navy-deep);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(44, 74, 103, 0.28);
}

.cta-btn svg { width: 18px; height: 18px; }

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cta-note a {
  color: var(--sage);
  text-decoration: none;
}

.cta-bag {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.cta-bag img {
  width: 420px;
  max-width: 90%;
  height: auto;
  border-radius: 1rem;
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */

footer {
  background: rgba(27, 49, 73, 0.93);
  color: rgba(242, 237, 228, 0.5);
  padding: 3rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.footer-logo span { color: var(--sage-light); }

footer p { font-size: 0.8rem; }

footer a {
  color: var(--sage-light);
  text-decoration: none;
  font-size: 0.8rem;
}

/* ─── ANIMATIONS ──────────────────────────────────────────────────── */


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  nav { padding: 1.25rem 2rem; }
  .nav-links { display: none; }
  section { padding: 4rem 2rem; }
  .hero { padding: 7rem 2rem 4rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps-grid::before { display: none; }
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-intro { flex-direction: column; align-items: flex-start; }
  footer { padding: 2.5rem 2rem; }
  .cta-section { padding: 5rem 2rem; }
}

/* ─── MODAL ─────────────────────────────────────────────────────── */

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 49, 73, 0.6);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.2s ease;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--cream);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideUp 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--cream-dark);
  color: var(--navy);
}

.modal-plan-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.5rem;
}

.modal-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.field-optional {
  font-weight: 300;
  color: var(--text-muted);
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(44, 74, 103, 0.18);
  border-radius: 0.6rem;
  background: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--powder);
  box-shadow: 0 0 0 3px rgba(164, 187, 202, 0.2);
}

.form-row input::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.modal-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-error {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #c0392b;
  text-align: center;
}

.form-error a { color: inherit; }

.modal-success-state {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(122, 158, 142, 0.12);
  border: 1.5px solid var(--sage);
  color: var(--sage);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.success-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}
