:root {
  --pink: #fbcfe8;
  --rose: #be185d;
  --light-rose: #f8bbd9;
  --ink: #3d2b2b;
  --shadow: rgba(0,0,0,0.15);
}
body {
  margin:0;
  font-family:'Georgia', serif;
  background: linear-gradient(135deg,#fdf2f8,#fce7f3,#fbcfe8);
  color:var(--ink);
  overflow-x:hidden;
}
header {
  padding: 16px 0;
  background: rgba(255,255,255,0.7);
  border-bottom:1px solid #f8bbd9;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-logo {
  font-size: 26px;
  font-weight: bold;
  color: var(--rose);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.header-logo:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--rose);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s, opacity 0.2s;
  padding: 4px 0;
}

.header-nav a:hover {
  color: #831843;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .header-logo {
    font-size: 22px;
  }
  
  .header-nav {
    gap: 12px;
    font-size: 15px;
    justify-content: center;
  }
}
.hero {
  text-align:center;
  padding:30px 20px 20px;
}
.hero h1 {
  font-size: 56px;
  color: #be185d;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 strong {
  font-weight: 900;
}

.hero h1 .highlight-pink {
  color: #be185d;
}
.hero p {
  font-size:18px;
  color:#831843;
  max-width:600px;
  margin:0 auto 30px;
}
h2 {
  color:var(--rose);
}
section p {
  font-size:18px;
  color:#831843;
  max-width:600px;
  margin:0 auto 30px;
}
a.cta {
  position: relative;
  overflow: hidden;
  display: inline-block; /* IMPORTANT so padding + hover scale work */

  background: linear-gradient(90deg,var(--rose),#f472b6);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s;
}

a.cta:hover { 
  transform: scale(1.05);
}

/* shine effect */
a.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 45%,
    rgba(255,255,255,0) 90%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine 2.2s infinite ease-in-out;
}

@keyframes shine {
  0% { left: -150%; }
  60% { left: 150%; }
  100% { left: 150%; }
}


section {
  text-align:center;
  padding:20px 20px;
}

/* Envelope preview */
.envelope-container {
  position:relative;
  width:420px;
  aspect-ratio:3/2;
  margin:0 auto;
}
.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  cursor:pointer;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 10px 30px var(--shadow);
  background: linear-gradient(135deg, var(--light-rose), var(--rose));
  outline:1px solid rgba(255,255,255,.35);
}
.envelope-liner{
  position:absolute;inset:0 0 50% 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 8px, rgba(255,255,255,.12) 8px 16px),
    linear-gradient(135deg,#ffd6ea,#e28ab6);
  clip-path:polygon(0 0,100% 0,50% 100%);
  z-index:1;
}
.envelope-flap {
  position:absolute;top:0;left:0;width:100%;padding-top:50%;
  background: var(--rose);
  clip-path: polygon(0 0,50% 100%,100% 0);
  transform-origin: top center;
  transition: transform 1.4s ease-in-out;
  z-index:3;
}
.envelope-bottom-flap {
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:46%;
  background:linear-gradient(135deg,#c53a79,#92134b);
  clip-path:polygon(0 100%,50% 0,100% 100%);
  z-index:1;
  box-shadow:0 -2px 0 rgba(0,0,0,.12) inset;
}
.sparkle{position:absolute;width:12px;height:12px;background:#f59e0b;border-radius:50%;animation:sparkle 2s infinite;}
@keyframes sparkle{0%,100%{opacity:0;transform:scale(0)}50%{opacity:1;transform:scale(1)}}

.heart{position:fixed;bottom:-20px;color:#f472b6;font-size:14px;pointer-events:none;user-select:none;animation:floatUp 4s linear forwards;}
@keyframes floatUp{0%{transform:translateY(0) scale(1);opacity:1}100%{transform:translateY(-100vh) scale(0.8);opacity:0}}

.envelope.opening .envelope-flap{transform:rotateX(180deg);}
.letter-content{
  position:absolute;
  top:20%;left:6%;right:6%;bottom:6%;
  padding:28px 26px 24px 26px;
  border-radius:10px;
  overflow:auto;
  z-index:5;
  color:var(--ink);

  /* Put the grid layers first so they sit above the paper textures */
  background:
    /* Layer 1: Horizontal Grid */
    repeating-linear-gradient(90deg, rgba(0,0,0,.02) 0 2px, transparent 2px 4px),
    /* Layer 2: Vertical Grid */
    repeating-linear-gradient(0deg, rgba(0,0,0,.01) 0 2px, transparent 2px 4px),
    /* All other existing background layers */
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.96)),
    repeating-linear-gradient(180deg, rgba(190,24,93,.08) 0 1px, transparent 1px 28px),
    radial-gradient(1200px 600px at 30% 20%, rgba(0,0,0,.03) 0 45%, transparent 46%),
    radial-gradient(900px 450px at 75% 80%, rgba(0,0,0,.025) 0 45%, transparent 46%);

  /* Apply FIXED attachment to the first two layers (the grid) 
     and LOCAL attachment to the remaining layers (paper textures) */
  background-attachment: fixed, fixed, local, local, local, local;

  /* Optional styling to make the grid look like your original pseudo-element */
  background-blend-mode: multiply, multiply, normal, normal, normal, normal;
  opacity:.35; /* This opacity will now affect the whole element, adjust as needed */

  /* optional fine tuning */
  background-repeat: repeat, repeat, no-repeat, repeat, no-repeat, no-repeat;
  box-shadow:
    inset 0 0 0 1px #f3c3d8,
    inset 0 20px 40px rgba(190,24,93,.06),
    0 10px 30px rgba(0,0,0,.18);
  transform:scale(.9) translateY(50px);
  opacity:0;
  transition:transform 1.2s ease-out, opacity 1.2s ease-out;
}

.letter-content::after{
  content:"♥";
  position:absolute;
  left:50%;top:52%;
  transform:translate(-50%,-50%) rotate(-10deg);
  font-size:180px;
  color:#be185d;
  opacity:.04;
  pointer-events:none;
}
.envelope.opening .letter-content{
  transform: scale(1) translateY(0);
  opacity:1;
  z-index:4;
}
.header{text-align:center;border-bottom:2px solid #f8bbd9;padding-bottom:12px;margin-bottom:18px;}
.title{color: var(--rose); font-size:24px; margin-bottom:6px;}
.content{ line-height:1.8;font-size:18px;}
.signature{text-align:right;margin-top:22px;font-style:italic;color:var(--rose);}
.signature-black{text-align:left;margin-top:22px;font-style:italic;}

/* How it works */
.how-it-works {
  display:flex;
  flex-direction:column;
  gap:40px;
  align-items:center;
}
.how-it-works img {
  max-width:340px;
  border-radius:12px;
  box-shadow:0 8px 24px var(--shadow);
}
/* footer {
  background: linear-gradient(90deg,var(--rose),#f472b6);
  color:white;
  text-align:center;
  padding:40px 10px;
  font-size:20px;
  font-weight:bold;
} */
@media(max-width:600px){
  .hero h1 {
    font-size: 36px;
  }
  
  .hero h1 .highlight-pink {
    display: block;
  }
  
  .envelope-container{width:340px;}
}




/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.feature {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.feature img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 8px;
  display: block;
}

.feature h3 {
  color: #be185d;
  margin-bottom: 12px;
  font-size: 1.3em;
  text-align: center;
}

.feature p {
  color: #6b3a4c;
  line-height: 1.6;
  font-size: 1em;
  text-align: center;
  margin: 0;
}



.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: #fff5fa;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cta-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #be185d;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
}

/* BASE BUTTON */
a.cta-button {
  display: inline-block;
  position: relative;
  overflow: hidden;

  padding: 14px 26px;
  background: linear-gradient(90deg, var(--rose), #f472b6); /* upgraded to your gradient */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: transform .2s, opacity .2s;
}

/* HOVER GROW */
a.cta-button:hover {
  transform: scale(1.05);
  opacity: .9;
}

/* SHINE EFFECT */
a.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.35) 45%,
    rgba(255,255,255,0) 90%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine 2.2s infinite ease-in-out;
}

/* SHINE KEYFRAMES */
@keyframes shine {
  0% { left: -150%; }
  60% { left: 150%; }
  100% { left: 150%; }
}








.site-footer {
  background: linear-gradient(90deg, var(--rose), #f472b6);
  color: white;
  text-align: center;
  padding: 40px 10px;
  font-size: 18px;
  font-weight: bold;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
}

.footer-social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity .2s;
}

.footer-social a:hover {
  opacity: 1;
}

/* Footer Styles (matching component) */
.site-footer {
  background: linear-gradient(90deg, var(--rose), #f472b6);
  color: white;
  text-align: center;
  padding: 20px 10px 16px;
  font-size: 18px;
  font-weight: bold;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
}

.footer-brand {
  text-align: center;
}

.footer-brand strong {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.footer-description {
  max-width: 600px;
  margin: 2px auto 0;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.3;
  text-align: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  margin: 4px 0;
  align-items: start;
}

.footer-badges-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.footer-badges-column h3 {
  text-align: center;
  width: 100%;
}

.footer-badges-column .badge-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-column h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: white;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.9;
  transition: opacity 0.2s, padding-left 0.2s;
  padding-left: 0;
}

.footer-column a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-social {
  text-align: center;
  margin: 2px 0;
}

.footer-social h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: white;
}

.footer-social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.9;
  transition: opacity 0.2s;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.footer-social-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.badge-item {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: inline-block;
}

.badge-item.active {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
}

.footer-bottom {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2px;
}

.footer-bottom a {
  color: white;
  text-decoration: underline;
  opacity: 0.95;
}

.footer-bottom a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 2px 0;
  }
  
  .footer-badges-column {
    grid-column: 1 / -1;
  }
  
  .footer-social-links {
    gap: 6px;
  }
  
  .footer-social-links a {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .footer-inner {
    gap: 10px;
  }
  
  .site-footer {
    padding: 16px 10px 12px;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .footer-description {
    font-size: 12px;
  }
  
  .site-footer {
    padding: 14px 10px 10px;
  }
  
  .footer-inner {
    gap: 8px;
  }
}

/* FAQ Section */
.faq-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 50px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-section h2 {
  text-align: center;
  color: var(--rose);
  font-size: 36px;
  margin-bottom: 40px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(248, 187, 217, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(248, 187, 217, 0.6);
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.1);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Georgia', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--rose);
  transition: color 0.2s;
}

.faq-question:hover {
  color: #831843;
}

.faq-question span:first-child {
  flex: 1;
  text-align: left;
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--rose);
  transition: transform 0.3s ease, color 0.2s;
  margin-left: 16px;
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #831843;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: #831843;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: var(--rose);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.faq-answer a:hover {
  opacity: 0.8;
}

.faq-contact {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-contact p {
  color: #831843;
  font-size: 16px;
  margin: 0;
  text-align: center;
  width: 100%;
}

.faq-contact a {
  color: var(--rose);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.faq-contact a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 0;
  }
  
  .faq-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }
  
  .faq-answer {
    padding: 0 20px;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 16px;
  }
  
  .faq-answer p {
    font-size: 15px;
  }
}





