/* Stem Plus v2 components — layered on tokens.css */

/* Offer strip + top strip */
.offer { background: linear-gradient(90deg, #B07264, #C98D7E 45%, #E2BDB2); color: #fff; font-size: 14px; font-weight: 600; }
.offer .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; height: 44px; }
.offer .cd { display: inline-flex; gap: 6px; }
.offer .cd b { background: rgba(21,36,52,.28); border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; font-weight: 800; }
.offer a { text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.topstrip { background: var(--navy); color: #B7C6D9; font-size: 13px; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topstrip .grp { display: flex; gap: 22px; align-items: center; }
.topstrip b { color: #fff; font-weight: 700; }
.topstrip .stars { color: #F5C451; letter-spacing: 1px; }

/* Header v2 */
.header .wrap { height: 78px; gap: 28px; }
.nav { gap: 2px; }
.nav a { font-size: 15px; padding: 8px 13px; }
.header-actions .btn--primary { height: 46px; }

/* Rating badge */
.g-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--navy); }
.g-badge .g { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 17px; }
.g-badge .g span { background: conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-badge b { font-size: 20px; font-weight: 800; }
.g-badge .stars { color: #F5B301; letter-spacing: 1px; font-size: 15px; }
.g-badge small { display: block; font-size: 12px; color: var(--slate); }
.g-badge.dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.g-badge.dark small { color: #B7C6D9; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.tag--teal { background: var(--teal); color: #fff; }
.tag--coral { background: var(--coral); color: #fff; }
.tag--gold { background: #F3E3B5; color: #7A5A12; }
.tag--ice { background: var(--ice); color: var(--teal-600); }
.tag--research { background: #FFF1D6; color: #8A5A00; }
.confirm { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; background: #FFF1D6; border: 1px dashed #E2B65C; border-radius: 6px; padding: 2px 6px; vertical-align: middle; }

/* Glass card on dark */
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); backdrop-filter: blur(12px); }

/* Chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { height: 40px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--slate); }
.chips span.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Big number */
.bignum b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 1.05; letter-spacing: -.02em; }
.bignum span { color: var(--slate); font-size: 15px; }

/* Steps row (numbered pills with arrows) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps3 .st { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.steps3 .st .n { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 18px; }
.steps3 .st:not(:last-child)::after { content: ''; position: absolute; right: -16px; top: 50%; width: 12px; height: 12px; border-top: 2.5px solid var(--teal); border-right: 2.5px solid var(--teal); transform: translateY(-50%) rotate(45deg); }
.steps3 .st p { color: var(--slate); font-size: 15px; margin-top: 6px; }

/* Journey timeline (horizontal) */
.journey { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.journey::before { content: ''; position: absolute; left: 4%; right: 4%; top: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), #A9CDE2); }
.journey .j { position: relative; text-align: center; padding: 0 8px; }
.journey .j i { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); color: var(--teal); font-style: normal; font-weight: 800; }
.journey .j b { display: block; font-size: 15px; }
.journey .j small { color: var(--slate); font-size: 13px; }

/* Review cards */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.review .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.review .stars { color: #F5B301; letter-spacing: 1px; }
.review .gsrc { margin-left: auto; font-size: 12px; color: var(--slate-400); font-weight: 600; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.tbl th, .tbl td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { background: var(--ice-50); font-size: 14px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .us { background: rgba(47,126,168,.06); font-weight: 700; color: var(--teal-600); }
.yes { color: var(--teal); font-weight: 800; }
.no { color: #B9C4D1; }

/* Forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; }
.field .in { height: 54px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--slate-400); background: #fff; }
.field .in.val { color: var(--navy); }
.field .in.focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,126,168,.12); color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--slate); }
.check i { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--teal); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; }

/* Modal */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(21,36,52,.62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; }
.modal { position: relative; width: 880px; max-width: 100%; display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.modal .side { position: relative; background: var(--navy); color: #fff; padding: 40px 36px; overflow: hidden; }
.modal .side .bio-bg { position: absolute; inset: 0; opacity: .8; }
.modal .side > * { position: relative; }
.modal .body { padding: 40px 40px 32px; }
.modal .x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--ice-50); display: grid; place-items: center; color: var(--slate); font-size: 20px; z-index: 2; }

/* Feature list with ticks */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; }
.ticks li::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--ice); color: var(--teal); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.section--navy .ticks li::before, .modal .side .ticks li::before { background: rgba(169,205,226,.18); color: #A9CDE2; }

/* Accordion */
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; margin-bottom: 12px; }
.qa .q { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-weight: 700; font-size: 16px; }
.qa .q i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ice-50); display: grid; place-items: center; font-style: normal; color: var(--teal); font-size: 18px; }
.qa.open { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.qa.open .q i { background: var(--teal); color: #fff; }
.qa .a { padding: 0 24px 22px; color: var(--slate); font-size: 15px; }

/* Final CTA */
.final { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(120deg, #152434, #1F3347 50%, #26688C); color: #fff; padding: 72px; text-align: center; }
.final .bio-bg { position: absolute; inset: 0; opacity: .7; }
.final > * { position: relative; }
.final .h2 { font-size: 48px; margin-bottom: 14px; }
.final p { color: #C3D1E2; font-size: 18px; }
.final .actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* Subtle animation (live HTML only) */
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.06); opacity: .85 } }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.flow-line { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
.floaty { animation: floaty 5s ease-in-out infinite; }

@media (max-width: 760px) {
  .offer .wrap { height: auto; padding: 10px 20px; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
  .topstrip { display: none; }
  .header .wrap { height: 66px; gap: 12px; }
  .header-actions .btn--primary { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 .st:not(:last-child)::after { right: 50%; top: auto; bottom: -15px; transform: translateX(50%) rotate(135deg); }
  .journey { grid-auto-flow: row; gap: 18px; }
  .journey::before { left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .journey .j { display: grid; grid-template-columns: 46px 1fr; gap: 14px; text-align: left; align-items: center; }
  .journey .j i { margin: 0; }
  .tbl th, .tbl td { padding: 12px 10px; font-size: 13px; }
  .modal { grid-template-columns: 1fr; }
  .modal .side { padding: 28px 24px; }
  .modal .body { padding: 28px 24px 24px; }
  .final { padding: 44px 24px; }
  .final .h2 { font-size: 32px; }
  .bignum b { font-size: 38px; }
}

/* Real logo + photo backgrounds (assets from the current StemPlus site) */
.logo-img { height: 46px; width: auto; display: block; }
.footer .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; }
.footer .logo-chip .logo-img { height: 40px; }
.page-hero.photo { background: #152434; }
.page-hero.photo .photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .32; filter: saturate(.9); }
.page-hero.photo .photo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #152434 15%, rgba(21,36,52,.55) 60%, rgba(21,36,52,.2)); }
.img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.has-img { background: #1F3347; }
.our-lab { position: absolute; left: 14px; bottom: 14px; z-index: 2; background: rgba(255,255,255,.95); color: var(--navy); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; }
@media (max-width: 760px) { .logo-img { height: 38px; } }
.chips span { cursor: pointer; }

/* Logo v2: redrawn stem cell mark + wordmark (no legal name / tagline) */
.logo { gap: 10px; }
.logo .logo-mark { width: 40px; height: 46px; }
.logo-word { font-family: var(--font-body); font-weight: 800; font-size: 25px; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.logo-word span { color: var(--teal); margin-left: 3px; }
.logo--dark .logo-word { color: #fff; }
.logo--dark .logo-word span { color: #A9CDE2; }
@media (max-width: 760px) { .logo .logo-mark { width: 34px; height: 40px; } .logo-word { font-size: 22px; } }

/* Calm offer strip */
.offer { background: #F3EAE5; color: #6E4F45; }
.offer .cd b { background: #fff; color: #6E4F45; box-shadow: inset 0 0 0 1px #E6D6CE; }
.offer a { color: #6E4F45; }
.offer .confirm { background: #fff; }

/* Social-proof toast (bottom-left, every page) */
.toast { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: toastIn .5s ease-out 6s both; }
.toast .t-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ice); color: var(--teal); display: grid; place-items: center; font-weight: 900; }
.toast b { display: block; font-size: 14px; line-height: 1.35; }
.toast small { font-size: 12px; color: var(--slate-400); }
.toast .t-x { align-self: flex-start; color: var(--slate-400); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } }
@media (max-width: 760px) { .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Real form controls (go-live) */
.field input, .field select { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--navy); background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B6B7B' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }
.field input::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(47,126,168,.12); }
.field input:user-invalid { border-color: #C0574A; }
.check { cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); cursor: pointer; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn:disabled { opacity: .7; cursor: wait; }
.form-ok { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--ice-50); border: 1px solid var(--teal-100); color: var(--navy); }
.form-ok > span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 900; }
.form-ok b { font-size: 17px; }
.form-ok p { font-size: 14px; color: var(--slate); margin-top: 4px; }
.form-ok a { color: var(--teal); font-weight: 700; }
.crumbs a { color: inherit; }

/* Mobile menu */
button.burger { background: #fff; color: var(--navy); cursor: pointer; }
.mnav { display: none; }
@media (max-width: 760px) {
  .header.menu-open .mnav { display: grid; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .mnav > a:not(.btn) { padding: 14px 4px; font-weight: 700; font-size: 17px; color: var(--navy); border-bottom: 1px solid var(--line); }
  .mnav > a.active { color: var(--teal); }
  .mnav .btn { margin-top: 10px; }
}
