/* HOME v2 — matches Figma "HOME — Current (Breathing)" */

/* Page background */
.page-home {
  position: relative;
}

/* ---- Section tag (eyebrow label) ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(127, 84, 238, 0.09);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--accent-strong, #6636d4);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---- Section head (tag + title + subtitle) ---- */
.section-head {
  max-width: 792px;
  margin: 0 auto;
  text-align: center;
}
.section-head h2 {
  font-size: var(--fs-h2, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight, -0.4px);
  color: var(--text-primary);
  margin: 16px 0 0;
}
.section-head p {
  font-size: var(--fs-body-lg, 16px);
  line-height: 1.5;
  color: var(--text-secondary, #5a575e);
  margin: 16px auto 0;
  max-width: var(--measure, 60ch);
}

/* ---- Shared section spacing ---- */
.s-section {
  padding: 80px var(--pad-x);
  overflow: hidden;
}
@media (max-width: 991px) {
  .s-section { padding: 48px 24px; }
}

/* ---- Hero ---- */
.hero-v2 {
  position: relative;
  padding: 120px var(--pad-x);
  overflow: hidden;
}
.hero-v2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-v2__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-v2__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(-85deg, rgba(51,49,53,0) 39%, rgb(51,49,53) 98%);
}
.hero-v2__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.hero-v2__content h1 {
  font-size: var(--fs-h1, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: var(--tracking-tight, -0.5px);
  color: #fff;
  margin: 0;
}
.hero-v2__content .hero-sub {
  font-size: 16px;
  line-height: 24px;
  color: rgba(255,255,255,0.92);
  margin: 24px 0 0;
  max-width: 520px;
}
@media (max-width: 991px) {
  .hero-v2 { padding: 64px 24px; }
  .hero-v2__content h1 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 767px) {
  .hero-v2 {
    padding: 0;
    background: #333135;
    border-radius: 0;
  }
  .hero-v2__bg { display: none; }
  .hero-v2__content {
    max-width: 100%;
    padding: 48px 24px;
  }
  .hero-v2__content h1 { font-size: 28px; line-height: 36px; }
  .btn-cta--hero { width: 100%; }
}

/* ---- CTA Button ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 44px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-cta:hover { transform: translateY(-1px); }

.btn-cta--primary {
  background: linear-gradient(180deg, #8c5ef5 14.6%, #6c3ae2 85.4%);
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(91,43,214,0.28), 0 1px 2px rgba(91,43,214,0.22);
}
.btn-cta--primary:hover { color: #fff; }

.btn-cta--hero {
  box-shadow: 0 8px 18px -2px rgba(20,8,56,0.45), 0 2px 4px rgba(13,5,31,0.55);
  margin-top: 24px;
}

.btn-cta--outline {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  box-shadow: 2px 2px 4px rgba(117,104,184,0.2);
}
.btn-cta--outline:hover { color: var(--text-primary); }

/* Light ghost CTA for use on the dark hero (F-10 secondary CTA) */
.btn-cta--ghost-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-cta--ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Hero CTA row (F-10) */
.hero-v2__cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-v2__cta .btn-cta { margin-top: 0; }
@media (max-width: 767px) {
  .hero-v2__cta { flex-direction: column; }
  .hero-v2__cta .btn-cta { width: 100%; }
}

/* ---- Trust strip ---- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px 80px;
  background: var(--accent);
  opacity: 0.9;
  flex-wrap: wrap;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
}
.trust-strip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px;
    background: #333135;
  }
  .trust-strip__item { font-size: 14px; }
  .trust-strip__dot { background: var(--accent, #7f54ee); }
}

/* ---- Trust (slim) — demoted homepage nod to /trust (F-06) ---- */
.trust-slim__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.trust-slim__copy h2 {
  font-size: var(--fs-h2, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight, -0.4px);
  color: var(--text-primary);
  margin: 12px 0 0;
}
.trust-slim__copy p {
  color: var(--text-secondary);
  margin: 16px 0 0;
  max-width: 60ch;
}
.trust-slim__link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--accent-strong, #6636d4);
  text-decoration: none;
}
.trust-slim__link:hover { text-decoration: underline; }
.trust-slim__points {
  list-style: none;
  margin: 0;
  padding: 24px;
  display: grid;
  gap: 16px;
  background: var(--surface-tint);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
}
.trust-slim__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.trust-slim__points img { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 767px) {
  .trust-slim__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Cap long body copy for readability (F-13) */
.about-copy p { max-width: 68ch; }

/* ---- Glass Card (shared) ---- */
.glass-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-hairline, rgba(26,22,38,0.08));
  box-shadow: var(--shadow-md);
  background: var(--surface-page, #fff);
  transition: transform var(--dur, 250ms) var(--ease-out), box-shadow var(--dur, 250ms) var(--ease-out);
  flex: 1 0 0;
  min-width: 0;
}
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.glass-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.glass-card__icon img { height: 72px; width: 72px; object-fit: contain; }
.glass-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.glass-card p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0;
}

.card-grid {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 991px) {
  .card-grid { flex-direction: column; }
}

/* ---- Trust section ---- */
.trust-grid {
  display: flex;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 991px) {
  .trust-grid { flex-direction: column; }
}

.trust-badge {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl, 16px);
  border: 1px solid var(--border-hairline, rgba(26,22,38,0.08));
  box-shadow: var(--shadow-md);
  background: var(--surface-page, #fff);
}
.trust-badge h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.trust-badge h4 img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
.trust-badge p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  margin: 0;
}
.trust-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HIPAA control chips (homepage trust proof) */
.trust-controls {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trust-controls__caption {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary, #5a575e);
  margin: 0;
  max-width: 60ch;
}
.trust-controls__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-controls__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #5a575e);
}
.trust-controls__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-controls__chips span {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--border-medium, #d1cdd6);
  border-radius: var(--radius-full, 9999px);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-primary, #333135);
  background: rgba(255, 255, 255, 0.5);
}

/* Dark safeguards panel */
.safeguards-panel {
  flex: 1;
  min-width: 0;
  padding: 24px;
  border-radius: 24px;
  background: #333135;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.safeguards-panel h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
}
.safeguards-panel .sg-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #aba7b2;
  margin: 0 0 4px;
}
.safeguards-panel .sg-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

/* ---- ROI section ---- */
.roi-section {
  display: flex;
  gap: 80px;
  align-items: center;
}
@media (max-width: 991px) {
  .roi-section { flex-direction: column; gap: 48px; }
}
.roi-left { flex: 1; min-width: 0; }
.roi-left .roi-price {
  font-size: 44px;
  font-weight: 600;
  line-height: 52px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 8px 0 0;
}
.roi-left .roi-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
  margin: 24px 0;
}
.roi-chips {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.roi-chip {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #aba7b2;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(51,49,53,0.72);
}
.roi-disclaimer {
  font-size: 14px;
  line-height: 20px;
  color: rgba(51,49,53,0.92);
  margin: 0 0 24px;
}

.roi-cards {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-row {
  display: flex;
  gap: 16px;
}
@media (max-width: 767px) {
  .roi-row { flex-direction: column; }
}

.mini-card {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-hairline, rgba(26,22,38,0.08));
  box-shadow: var(--shadow-sm);
  background: var(--surface-page, #fff);
}
.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mini-card__head h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
}
.mini-card__head img { height: 36px; width: 36px; object-fit: contain; }
.mini-card p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
  margin: 0;
}

/* ---- About section ---- */
.about-section {
  display: flex;
  gap: 80px;
  align-items: center;
}
@media (max-width: 991px) {
  .about-section { flex-direction: column; gap: 48px; }
}
.about-photo {
  flex: 1;
  min-width: 0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 22px 44px -18px rgba(20,16,40,0.11);
}
.about-copy {
  flex: 1;
  min-width: 0;
}
.about-copy h2 {
  font-size: var(--fs-h2, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight, -0.4px);
  color: var(--text-primary);
  margin: 16px 0 0;
}
.about-copy p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-primary);
  margin: 24px 0 0;
}

/* ---- New Footer (v2) ---- */
.footer-v2 {
  background: var(--surface-footer);
  padding: 80px var(--pad-x);
  color: rgba(255,255,255,0.8);
}
@media (max-width: 991px) {
  .footer-v2 { padding: 48px 24px; }
}
.footer-v2__top {
  display: flex;
  justify-content: space-between;
  gap: 72px;
}
@media (max-width: 991px) {
  .footer-v2__top { flex-direction: column; gap: 48px; }
}
.footer-v2__brand { flex: 1; min-width: 0; }
.footer-v2__brand .f-tagline {
  font-size: 16px;
  line-height: 24px;
  margin: 24px 0 0;
  max-width: 490px;
}
.footer-v2__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.footer-v2__badge {
  display: inline-flex;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255,255,255,0.92);
}
/* The Paubox badge is a self-contained white rounded mark (opaque body, rounded corners).
   Show it as-is — no wrapper chip — so we don't double up rounded containers. */
.footer-v2__badge--paubox {
  padding: 0;
  background: transparent;
  border: none;
  align-items: center;
}
.footer-v2__badge--paubox img {
  display: block;
  height: 40px;
  width: auto;
}
.footer-v2__cols {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 40px;
}
@media (max-width: 767px) {
  .footer-v2__cols { flex-wrap: wrap; gap: 32px; }
}
.footer-v2__col { flex: 1; min-width: 100px; }
.footer-v2__col h4 {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fff;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.footer-v2__col a {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-v2__col a:hover { color: #fff; }
.footer-v2__divider {
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin: 48px 0 32px;
}
.footer-v2__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-v2__recaptcha {
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255,255,255,0.5);
}

/* ========== MOBILE (≤767px) ========== */
@media (max-width: 767px) {
  .s-section { padding: 32px 20px; }
  .section-head h2 { font-size: 24px; line-height: 32px; }
  .section-head p { font-size: 14px; }

  .card-grid { gap: 16px; }
  .glass-card { padding: 20px; }

  .roi-section { gap: 32px; }
  .roi-left .roi-price { font-size: 32px; line-height: 40px; }
  .roi-chips { flex-wrap: wrap; }

  .about-section { gap: 32px; }
  .about-copy h2 { font-size: 24px; line-height: 32px; }

  .footer-v2 { padding: 32px 20px; }
  .footer-v2__top { gap: 32px; }
  .footer-v2__cols { flex-direction: column; gap: 24px; }
  .footer-v2__bottom { flex-direction: column; align-items: flex-start; }
}
