/* ============================================================
   Solstice — sections.css
   How / Features / Gallery / Stories / Safety / FAQ / CTA / Footer
   ============================================================ */

/* ---------- How it works ---------- */
.how {
  position: relative;
  overflow: hidden;
}

/* Faint heart line-art, drifting in the top-left corner */
.how::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -40px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88C24 66 8 51 8 33 8 20 18 11 30 11c8 0 15 4 20 11 5-7 12-11 20-11 12 0 22 9 22 22 0 18-16 33-42 55z' fill='none' stroke='%23E4573D' stroke-opacity='0.09' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Faint sun line-art, anchoring the bottom-right */
.how::after {
  content: "";
  position: absolute;
  bottom: -46px;
  right: -30px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='54' r='17' fill='none' stroke='%23E9A13B' stroke-opacity='0.13' stroke-width='1.3'/%3E%3Cg stroke='%23E9A13B' stroke-opacity='0.13' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M50 28v-9M50 89v-9M24 54h-9M85 54h-9M32 36l-7-7M75 79l-7 7M68 36l7-7M25 79l7 7'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-warm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 26, 18, 0.12);
}

.step-num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 42px;
  font-weight: 500;
  color: rgba(228, 87, 61, 0.22);
  line-height: 1;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(228, 87, 61, 0.1);
  color: var(--coral);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15.5px;
  color: var(--cocoa-soft);
}

/* ---------- Features bento ---------- */
.features {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #f8f0e4 100%);
}

/* Soft peach blob breathing in the upper right */
.features::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(246, 201, 168, 0.5) 0%, rgba(246, 201, 168, 0) 68%);
  filter: blur(30px);
}

/* Faint amber corner light, lower left */
.features::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 161, 59, 0.16) 0%, rgba(233, 161, 59, 0) 66%);
  filter: blur(30px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "big a b"
    "big c d";
  gap: 22px;
}

.bento-card {
  position: relative;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-warm);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 26, 18, 0.12);
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(228, 87, 61, 0.1);
  color: var(--coral);
  margin-bottom: 18px;
}

.bento-card h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 15px;
  color: var(--cocoa-soft);
}

.bento-big {
  grid-area: big;
  display: flex;
  flex-direction: column;
  background: var(--night);
  border-color: rgba(255, 255, 255, 0.06);
}

.bento-big:hover {
  box-shadow: 0 22px 50px rgba(33, 23, 18, 0.35);
}

.bento-big-copy {
  position: relative;
  z-index: 2;
}

.bento-big .bento-icon {
  background: rgba(246, 201, 168, 0.14);
  color: var(--peach);
}

.bento-big h3 {
  color: #f7efe4;
  font-size: 26px;
}

.bento-big p {
  color: rgba(247, 239, 228, 0.75);
  max-width: 300px;
}

.bento-chip {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--peach);
  padding: 6px 12px;
  border-radius: 999px;
}

.bento-big-media {
  position: relative;
  margin-top: 26px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transform: rotate(-1.2deg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.bento-big-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  overflow: hidden;
  /* Warm band transition — the section glows softly against the cream page */
  background: linear-gradient(180deg, transparent 0%, rgba(246, 201, 168, 0.16) 14%, rgba(244, 235, 221, 0.85) 30%, rgba(244, 235, 221, 0.85) 74%, transparent 100%);
}

.gallery::before {
  content: "";
  position: absolute;
  top: 8%;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(228, 87, 61, 0.10) 0%, rgba(228, 87, 61, 0) 66%);
  filter: blur(20px);
}
.polaroid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
}

.polaroid {
  background: #fffdf9;
  border-radius: 14px;
  padding: 10px 10px 0;
  box-shadow: 0 14px 34px rgba(36, 26, 18, 0.12);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 8px;
}

.polaroid figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--cocoa-soft);
  padding: 12px 4px 14px;
  text-align: center;
}

.tilt-l2 { transform: rotate(-2.4deg); }
.tilt-l1 { transform: rotate(-1.2deg); margin-top: 34px; }
.tilt-r1 { transform: rotate(1.6deg); margin-top: 18px; }
.tilt-r2 { transform: rotate(2.6deg); margin-top: 40px; }

.polaroid:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 22px 48px rgba(36, 26, 18, 0.18);
  z-index: 2;
}

/* ---------- Stories ---------- */
.stories {
  position: relative;
  overflow: hidden;
}

/* Golden corner glows framing the testimonial wall */
.stories::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(246, 201, 168, 0.55) 0%, rgba(246, 201, 168, 0) 66%);
  filter: blur(26px);
}

.stories::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -110px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(228, 87, 61, 0.09) 0%, rgba(228, 87, 61, 0) 64%);
  filter: blur(26px);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-warm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 26, 18, 0.12);
}

.story-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.story-card:nth-child(2) img {
  transform: rotate(1.4deg) scale(1.01);
}

.story-card blockquote {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cocoa);
  margin-bottom: 16px;
}

.story-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-card footer strong {
  font-size: 15px;
}

.story-card footer span {
  font-size: 13.5px;
  color: var(--cocoa-soft);
}

/* ---------- Safety ---------- */
.safety {
  background:
    radial-gradient(720px 340px at 82% -8%, rgba(228, 87, 61, 0.16), transparent 65%),
    var(--night);
  border-radius: 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.safety-item {
  background: rgba(247, 239, 228, 0.05);
  border: 1px solid rgba(247, 239, 228, 0.1);
  border-radius: 20px;
  padding: 26px 22px;
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}

.safety-item:hover {
  background: rgba(247, 239, 228, 0.09);
  transform: translateY(-4px);
}

.safety-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(246, 201, 168, 0.13);
  color: var(--peach);
  margin-bottom: 16px;
}

.safety-item h3 {
  color: #f7efe4;
  font-size: 18.5px;
  margin-bottom: 8px;
}

.safety-item p {
  font-size: 14.5px;
  color: rgba(247, 239, 228, 0.68);
}

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  overflow: hidden;
}

/* A whisper of amber in the top-right corner */
.faq::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 161, 59, 0.14) 0%, rgba(233, 161, 59, 0) 66%);
  filter: blur(26px);
}

/* Faint heart line-art peeking from the bottom-left */
.faq::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -50px;
  width: 260px;
  height: 260px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 88C24 66 8 51 8 33 8 20 18 11 30 11c8 0 15 4 20 11 5-7 12-11 20-11 12 0 22 9 22 22 0 18-16 33-42 55z' fill='none' stroke='%23E4573D' stroke-opacity='0.08' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 24px;
  box-shadow: 0 6px 18px rgba(36, 26, 18, 0.05);
  transition: box-shadow 0.3s;
}

.faq-item[open] {
  box-shadow: 0 12px 30px rgba(36, 26, 18, 0.09);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18.5px;
  color: var(--cocoa);
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(228, 87, 61, 0.1);
  position: relative;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}

.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--coral);
  transform: translate(-50%, -50%);
}

.faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(0deg);
  background: rgba(228, 87, 61, 0.14);
}

.faq-item[open] .faq-chevron::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-body {
  padding: 2px 0 20px;
}

.faq-body p {
  font-size: 15.5px;
  color: var(--cocoa-soft);
  max-width: 640px;
}

/* ---------- Final CTA ---------- */
.cta-final {
  background:
    radial-gradient(560px 320px at 14% 110%, rgba(228, 87, 61, 0.2), transparent 65%),
    radial-gradient(420px 260px at 88% -10%, rgba(246, 201, 168, 0.12), transparent 70%),
    var(--night);
  overflow: hidden;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.cta-appicon {
  display: inline-block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-appicon img {
  display: block;
  width: 76px;
  height: 76px;
}

.cta-copy h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  color: #f7efe4;
  margin-bottom: 18px;
}

.cta-copy p {
  font-size: 18px;
  color: rgba(247, 239, 228, 0.75);
  max-width: 480px;
  margin-bottom: 30px;
}

.cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.cta-note {
  font-size: 14px !important;
  color: rgba(247, 239, 228, 0.55) !important;
  margin-bottom: 0 !important;
}

.cta-avatars {
  position: relative;
  height: 380px;
}

.cta-ava {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(247, 239, 228, 0.14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.a1 { width: 150px; height: 150px; top: 6%; left: 34%; }
.a2 { width: 108px; height: 108px; top: 52%; left: 8%; }
.a3 { width: 96px; height: 96px; top: 58%; right: 12%; }
.a4 { width: 120px; height: 120px; top: 0; right: 4%; }

.cta-spark {
  position: absolute;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
}

.s1 { width: 10px; height: 10px; top: 18%; left: 20%; }
.s2 { width: 7px; height: 7px; top: 44%; right: 6%; background: var(--peach); }
.s3 { width: 12px; height: 12px; bottom: 10%; left: 46%; opacity: 0.6; }

/* ---------- Footer ---------- */
.site-footer {
  background: #170f0b;
  color: rgba(247, 239, 228, 0.72);
  padding: 64px 0 56px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: #f7efe4;
  margin: 16px 0 14px;
}

.footer-copy {
  font-size: 13.5px;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7efe4;
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 15px;
  opacity: 0.78;
  transition: opacity 0.2s, color 0.2s;
  padding: 4px 0;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--peach);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-card,
  .hero-sun,
  .hero-bokeh {
    animation: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    padding-top: 10px;
  }

  .match-card { left: 2%; }
  .msg-card { right: 2%; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "big big"
      "a b"
      "c d";
  }

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

  .stories-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .polaroid-row {
    grid-template-columns: 1fr 1fr;
  }

  .tilt-l1, .tilt-r2 { margin-top: 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(251, 246, 239, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links a {
    font-size: 22px;
    font-family: var(--font-serif);
    padding: 14px 0;
  }

  .nav-links-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-coral);
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .lede {
    font-size: 17px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .store-badge {
    min-height: 50px;
    padding: 8px 16px;
  }

  .store-badge-text strong {
    font-size: 17px;
  }

  .iphone {
    width: 268px;
    border-radius: 44px;
    padding: 9px;
  }

  .iphone-screen {
    border-radius: 35px;
  }

  .float-card {
    transform: scale(0.86);
    transform-origin: left center;
  }

  .match-card { top: 10%; left: 0; }
  .msg-card { right: 0; transform-origin: right center; }

  .proofbar-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 12px;
  }

  .press-row {
    gap: 10px 22px;
    margin-top: 30px;
  }

  .press-mark { font-size: 14.5px; }
  .press-mark.serif { font-size: 16px; }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "big" "a" "b" "c" "d";
  }

  .bento-big-media { aspect-ratio: 16 / 11; }

  .polaroid-row {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .tilt-l2, .tilt-l1, .tilt-r1, .tilt-r2 {
    margin-top: 0;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-avatars {
    height: 300px;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .a1 { width: 128px; height: 128px; left: 30%; }
  .a2 { width: 92px; height: 92px; }
  .a3 { width: 84px; height: 84px; right: 6%; }
  .a4 { width: 104px; height: 104px; right: 2%; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .nav-cta .btn {
    display: none;
  }

  /* Calm the ambient decorations on small screens */
  .hero-sun {
    right: -36%;
    width: 330px;
    height: 330px;
  }

  .hero-bokeh.b2,
  .hero-bokeh.b4 {
    display: none;
  }

  .how::before,
  .how::after,
  .faq::after {
    width: 180px;
    height: 180px;
  }

  .features::before,
  .features::after,
  .stories::before,
  .stories::after,
  .faq::before {
    filter: blur(18px);
    opacity: 0.85;
  }
}

@media (hover: none) {
  .step-card:hover,
  .bento-card:hover,
  .story-card:hover,
  .polaroid:hover,
  .safety-item:hover {
    transform: none;
  }
}

/* ============================================================
   VIBE BUILDER (interactive pool)
   ============================================================ */
.vibe {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 88% 12%, rgba(246, 201, 168, 0.16), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(251, 246, 239, 0.6) 100%);
}

.vibe::before,
.vibe::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.vibe::before {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(233, 161, 59, 0.2), transparent 70%);
}

.vibe::after {
  width: 340px;
  height: 340px;
  right: -110px;
  top: 40%;
  background: radial-gradient(circle, rgba(228, 87, 61, 0.12), transparent 70%);
}

.vibe-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(720px 420px at 50% 108%, rgba(246, 201, 168, 0.18), transparent 72%);
  pointer-events: none;
}

.vibe-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 64px;
  align-items: center;
}

.vibe-copy .section-head {
  margin-bottom: 26px;
}

.vibe-perks {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.vibe-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(36, 26, 18, 0.78);
}

.vibe-perk-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--coral);
  background: rgba(228, 87, 61, 0.1);
  border: 1px solid rgba(228, 87, 61, 0.16);
}

/* --- Wizard card --- */
.vibe-card {
  background: #fffdf9;
  border: 1px solid rgba(36, 26, 18, 0.07);
  border-radius: 28px;
  padding: 34px 34px 30px;
  box-shadow:
    0 24px 60px rgba(36, 26, 18, 0.1),
    0 4px 14px rgba(228, 87, 61, 0.06);
}

.vibe-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.vibe-progress[hidden] {
  display: none;
}

.vibe-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(36, 26, 18, 0.14);
  transition: background var(--ease-out) 0.25s, transform var(--ease-out) 0.25s;
}

.vibe-dot.is-active {
  background: var(--coral);
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(228, 87, 61, 0.14);
}

.vibe-dot.is-done {
  background: rgba(228, 87, 61, 0.5);
}

.vibe-track {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(36, 26, 18, 0.1);
}

.vibe-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: none;
}

.vibe-step.is-active {
  display: block;
  animation: vibeStepIn 0.4s var(--ease-out) both;
}

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

.vibe-q {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cocoa);
  margin-bottom: 18px;
  padding: 0;
}

.vibe-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(36, 26, 18, 0.55);
  margin: 18px 0 9px;
}

.vibe-input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS Safari zoom-on-focus */
  color: var(--cocoa);
  background: #fff;
  border: 1.5px solid rgba(36, 26, 18, 0.14);
  border-radius: 14px;
  padding: 13px 16px;
  min-height: 48px;
  outline: none;
  transition: border-color var(--ease-out) 0.2s, box-shadow var(--ease-out) 0.2s;
}

.vibe-input::placeholder {
  color: rgba(36, 26, 18, 0.35);
}

.vibe-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(228, 87, 61, 0.12);
}

.vibe-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vibe-opts-col {
  flex-direction: column;
  align-items: stretch;
}

.vibe-opt {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: rgba(36, 26, 18, 0.8);
  background: #fff;
  border: 1.5px solid rgba(36, 26, 18, 0.14);
  border-radius: 999px;
  padding: 11px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--ease-out) 0.2s, background var(--ease-out) 0.2s,
    color var(--ease-out) 0.2s, transform var(--ease-out) 0.2s;
}

.vibe-opts-col .vibe-opt {
  border-radius: 16px;
  text-align: left;
  padding-left: 18px;
}

.vibe-opt:hover {
  border-color: rgba(228, 87, 61, 0.5);
  transform: translateY(-1px);
}

.vibe-opt.is-selected {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 6px 16px rgba(228, 87, 61, 0.28);
}

.vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.vibe-chip {
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(36, 26, 18, 0.78);
  background: rgba(246, 201, 168, 0.18);
  border: 1.5px solid rgba(233, 161, 59, 0.25);
  border-radius: 999px;
  padding: 10px 17px;
  min-height: 44px;
  cursor: pointer;
  transition: background var(--ease-out) 0.2s, border-color var(--ease-out) 0.2s,
    color var(--ease-out) 0.2s, transform var(--ease-out) 0.2s;
}

.vibe-chip:hover {
  border-color: rgba(233, 161, 59, 0.55);
  transform: translateY(-1px);
}

.vibe-chip.is-selected {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  box-shadow: 0 6px 16px rgba(228, 87, 61, 0.28);
}

.vibe-hint {
  font-size: 14.5px;
  color: rgba(36, 26, 18, 0.6);
  margin: 0 0 14px;
}

.vibe-error {
  font-size: 14px;
  font-weight: 500;
  color: #b3402a;
  background: rgba(228, 87, 61, 0.09);
  border: 1px solid rgba(228, 87, 61, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 16px 0 0;
}

.vibe-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.vibe-actions-end {
  justify-content: flex-end;
}

.vibe-actions .btn {
  min-height: 48px;
}

/* --- Result blueprint --- */
.vibe-result {
  animation: vibeStepIn 0.45s var(--ease-out) both;
}

.vibe-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a15c14;
  background: rgba(233, 161, 59, 0.14);
  border: 1px solid rgba(233, 161, 59, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

.vibe-result-title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cocoa);
  margin-bottom: 10px;
}

.vibe-result-line {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(36, 26, 18, 0.75);
  margin-bottom: 22px;
}

.vibe-summary {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 18px;
  align-items: baseline;
  border-top: 1px solid rgba(36, 26, 18, 0.09);
  padding-top: 20px;
  margin: 0 0 22px;
}

.vibe-summary dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(36, 26, 18, 0.45);
}

.vibe-summary dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--cocoa);
}

.vibe-meter {
  background: rgba(246, 201, 168, 0.16);
  border: 1px solid rgba(233, 161, 59, 0.22);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.vibe-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: rgba(36, 26, 18, 0.72);
  margin-bottom: 10px;
}

.vibe-meter-head strong {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--coral);
}

.vibe-meter-track {
  height: 8px;
  border-radius: 8px;
  background: rgba(36, 26, 18, 0.1);
  overflow: hidden;
}

.vibe-meter-track span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #e9a13b, var(--coral));
  transition: width 0.9s var(--ease-out);
}

.vibe-meter-note {
  font-size: 13.5px;
  color: rgba(36, 26, 18, 0.6);
  margin: 10px 0 0;
}

.vibe-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.vibe-privacy {
  font-size: 12.5px;
  color: rgba(36, 26, 18, 0.45);
  margin: 16px 0 0;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .vibe-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vibe::before,
  .vibe::after {
    width: 220px;
    height: 220px;
    filter: blur(50px);
    opacity: 0.85;
  }
}

@media (max-width: 640px) {
  .vibe-card {
    padding: 26px 20px 24px;
    border-radius: 22px;
  }

  .vibe-q {
    font-size: 20px;
  }

  .vibe-opts .vibe-opt {
    flex: 1 1 auto;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  .vibe-opts-col .vibe-opt {
    text-align: left;
    padding-left: 16px;
  }

  .vibe-summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .vibe-summary dd {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-step.is-active,
  .vibe-result {
    animation: none;
  }

  .vibe-meter-track span {
    transition: none;
  }
}
