/* SECTION 3 · What OneSelf takes off your mind
   A light section to change the rhythm after the dark story. Benefit first, feature name second. */

.value {
  background: var(--cream);
  color: var(--night);
  padding: clamp(65.6px, 9.8vw, 123px) var(--pad);
  border-radius: 28px 28px 0 0;
}
.value .eyebrow { color: rgba(10,24,34,.6); }
.value h2 { color: var(--night); }
.value h2 em { color: #2A62C9; }

.value-top {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .value-top { grid-template-columns: 1.4fr 1fr; gap: 64px; } }

/* the phone with the app tour */
.phone { margin: 0; justify-self: center; text-align: center; }
.phone-frame {
  width: min(270px, 70vw);
  aspect-ratio: 540 / 1148;
  border-radius: 40px;
  padding: 9px;
  background: #0B0F14;
  box-shadow: 0 0 0 1px rgba(10,24,34,.08), 0 40px 70px -30px rgba(10,24,34,.55), 0 0 0 10px rgba(74,134,236,.08);
}
.phone-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: #10232F; }
.phone figcaption {
  margin-top: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(10,24,34,.55);
}
.value-head h2 { font-size: clamp(40px, 6.2vw, 80px); max-width: 15ch; }
.value-lede {
  margin: 22px 0 0; max-width: 38ch;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: rgba(10,24,34,.72);
}

.value-grid {
  max-width: 1240px; margin: clamp(32.8px, 4.9vw, 59px) auto 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 760px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

.vcard {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 26px 24px 28px;
  box-shadow: 0 1px 0 rgba(10,24,34,.04), 0 18px 40px -30px rgba(10,24,34,.35);
}
.vtag {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #2A62C9;
}
.vcard h3 {
  font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--night);
}
.vcard p:not(.vtag):not(.bubble):not(.chat-note) {
  margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: rgba(10,24,34,.7);
}

/* the lead card: Cleo, with a short scripted chat */
.vcard-lead {
  background: #780000; color: var(--cream);
  display: grid; gap: 22px;
}
.vcard-lead h3 { color: var(--cream); }
.vcard-lead .vtag { color: #F3C9C2; }
.vcard-lead .vcard-text p:not(.vtag) { color: var(--cream-soft) !important; }
@media (min-width: 760px) { .vcard-lead { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; padding: 36px; } }
@media (min-width: 1100px) { .vcard-lead { grid-template-columns: 1fr 1.1fr; padding: 44px 48px; } }

.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble {
  margin: 0; max-width: 88%;
  padding: 12px 16px; border-radius: 18px;
  font-size: 16px; line-height: 1.4;
}
.bubble.me { align-self: flex-end; background: #003049; color: #fff; border-bottom-right-radius: 6px; }
.bubble.cleo { align-self: flex-start; background: rgba(255,255,255,.14); color: var(--cream); border-bottom-left-radius: 6px; }
.chat-note { margin: 4px 0 0; font-size: 12px; color: var(--cream-soft); }

/* the documents card: a reminder chip */
.chip {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: #EEF3FC; color: #1F4FA8;
  font-size: 14px; font-weight: 600;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #2A62C9; flex: none; }

/* closing ask */
.value-cta { max-width: 1240px; margin: clamp(36.1px, 4.9vw, 59px) auto 0; text-align: center; }
.value-cta-line { margin: 0 0 20px; font-size: 18px; font-weight: 500; color: rgba(10,24,34,.7); }
.value .btn-primary { background: var(--night); color: var(--cream); }
.value .btn-primary:hover { background: var(--navy); }
.value .btn-ghost { color: var(--night); border-color: rgba(10,24,34,.35); }
.value .btn-ghost:hover { border-color: var(--night); }

.value-lede, .vcard h3 { text-wrap: balance; }


/* illustrated cards */
.vart {
  margin: -6px -4px 18px;
  aspect-ratio: 5 / 4;
  border-radius: 16px; overflow: hidden;
  background: var(--art, #FFFFFF);
  display: flex; align-items: flex-end; justify-content: center;
}
.vart img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 1.2s var(--ease); }
.vcard-art:hover .vart img { transform: scale(1.03); }

/* small line icons beside some tags */
.vtag { display: flex; align-items: center; gap: 8px; }
.vicon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* community card with a sample post */
.post {
  margin-top: 18px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; background: #F6F2EB;
  font-size: 15px; line-height: 1.45; color: rgba(10,24,34,.75);
}
.post strong { display: block; color: var(--night); font-weight: 600; margin-bottom: 2px; }
.post-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #780000; color: #fff; font-weight: 600; font-size: 14px;
}

/* the last two cards share a row on large screens */
@media (min-width: 1100px) { .vcard-half { grid-column: span 2; } }

.vcard-navy { background: #003049; }
.vcard-navy h3 { color: var(--cream); }
.vcard-navy .vtag { color: #9CC3E0; }
.vcard-navy p:not(.vtag) { color: var(--cream-soft) !important; }
.sessions { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sessions li {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: var(--cream);
  font-size: 14px; font-weight: 500;
}

.vlink {
  display: inline-block; margin-top: 18px;
  font-weight: 600; font-size: 16px; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px;
}
.vlink:hover { border-color: #fff; }

.value-close-h { font-size: clamp(38.0px, 4.9vw, 59px); max-width: 16ch; margin: 0 auto; }
.value-cta-line { margin-top: 16px !important; }

/* ---------- Floating sales bar ---------- */
.float-cta {
  position: fixed; z-index: 40;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(10,24,34,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(243,237,228,.12);
  color: var(--cream);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 24px);
}
.float-cta.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.float-cta-text { font-size: 14px; font-weight: 500; white-space: nowrap; }
.float-cta .btn-primary { background: var(--cream); color: var(--night); }
.float-cta .btn-ghost { color: var(--cream); border-color: rgba(243,237,228,.35); }
@media (max-width: 560px) {
  .float-cta { padding: 8px; gap: 8px; }
  .float-cta-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .float-cta { transition: opacity .2s; } }

/* Cleo standing beside her card text */
.vcard-lead {
  grid-template-columns: 38% 1fr;
  grid-template-areas: "cleo text" "chat chat";
  column-gap: 18px; row-gap: 22px; align-items: end;
  overflow: hidden;
}
.lead-cleo { grid-area: cleo; align-self: end; margin-bottom: -28px; }
.lead-cleo img { display: block; width: 100%; height: auto; }
.vcard-lead .vcard-text { grid-area: text; align-self: center; }
.vcard-lead .chat { grid-area: chat; }
@media (min-width: 760px) {
  .vcard-lead { grid-template-columns: 200px 1fr 1fr; grid-template-areas: "cleo text chat"; column-gap: 36px; padding-bottom: 0 !important; }
  .lead-cleo { margin-bottom: 0; }
  .vcard-lead .chat { padding-bottom: 36px; }
}
@media (min-width: 1100px) { .vcard-lead { grid-template-columns: 240px 1fr 1.1fr; } }

/* small Cleo avatar beside her chat bubble */
.cleo-row { display: flex; align-items: flex-end; gap: 10px; }
.cleo-av { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.cleo-row .bubble { max-width: none; }

/* Self Care card with Cleo meditating */
.vcard-self { padding: 0; overflow: hidden; display: grid; }
.self-art { aspect-ratio: 4 / 3; overflow: hidden; }
.self-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.self-text { padding: 24px 24px 28px; }
@media (min-width: 760px) {
  .vcard-self { grid-template-columns: 42% 1fr; }
  .self-art { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .self-text { padding: 32px 30px; align-self: center; }
}
@media (min-width: 760px) {
  .vcard-lead { align-items: center; padding-top: 28px !important; }
  .vcard-lead .chat { padding-bottom: 0; align-self: center; }
  .lead-cleo { align-self: end; display: flex; justify-content: center; }
  .lead-cleo img { width: auto; max-width: 100%; max-height: 400px; }
}
