/* ==========================================================================
   V3 Homepage — shared base + light sections (trust / built-for / final-cta).
   The four heavy sections (pillars, flow timeline, stats+testimonials,
   integrations) own their styles inside their own Blade partial <style> blocks.
   Namespaced under .v3-* so nothing collides with the theme's main.css.
   Fonts (Inter, Inter Tight, JetBrains Mono) are already enqueued globally.
   ========================================================================== */

.v3-section {
  /* Design tokens (brief §3.1) */
  --paper: #ffffff;
  --paper-2: #fafaf8;
  --paper-warm: #f6f4ee;
  --ink: #0a0e2e;
  --ink-2: #1a1d3a;
  --navy: #0a1130;
  --navy-deep: #060a24;
  --muted: #525671;
  --muted-2: #7d8199;
  --muted-3: #a7abbe;
  --line: #e8eaf0;
  --line-2: #f1f2f6;
  --blue: #2b7cff;
  --blue-bright: #2eb8ff;
  --blue-soft: #e8f1ff;
  --green: #0a7d3e;
  --amber: #b86b00;

  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.v3-section.bg-paper-2 { background: var(--paper-2); }
.v3-section.bg-paper-warm { background: var(--paper-warm); }
.v3-section.bg-navy { background: var(--navy); color: #fff; }

.v3-section.padding-top-none { padding-top: 0; }
.v3-section.padding-top-small { padding-top: clamp(32px, 4vw, 56px); }
.v3-section.padding-bottom-none { padding-bottom: 0; }
.v3-section.padding-bottom-small { padding-bottom: clamp(32px, 4vw, 56px); }

.v3-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .v3-container { padding-left: 40px; padding-right: 40px; }
}

/* ---- Typography ---------------------------------------------------------- */
.v3-h-section {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.v3-h-feature {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.v3-body { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; }
.v3-body-xl { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 8px; }
.v3-eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.v3-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---- Buttons (reference uses pill shapes) -------------------------------- */
.v3-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-btn-row--center { justify-content: center; }
.v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.v3-btn--primary { background: var(--ink); color: #fff; }
.v3-btn--primary:hover { background: #25252d; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(10,14,46,.45); }
.v3-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.v3-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.v3-btn--primary-invert { background: #fff; color: var(--ink); }
.v3-btn--primary-invert:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(255,255,255,.3); }
.v3-btn--ghost-invert { background: #10163a; color: #fff; border-color: rgba(255,255,255,.14); }
.v3-btn--ghost-invert:hover { border-color: rgba(255,255,255,.4); }

@keyframes v3fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   HERO buttons (page-header) — match V3 reference: pill, smaller,
   "Watch a 2-min tour" gets a circular play icon (no trailing arrow).
   Front-page only (this stylesheet is enqueued only on the front page).
   ========================================================================= */
.header-call-to-action { align-items: center; gap: 12px !important; }
/* the extra .home .page-header variants out-rank main.css's
   `.home .page-header .header-call-to-action .btn` (min-width:992px) rule,
   which otherwise inflates the hero buttons to 18px/16px 28px on desktop */
.header-call-to-action .btn,
.header-call-to-action .btn.btn-xl,
.home .page-header .header-call-to-action .btn,
.home .page-header .header-call-to-action .btn.btn-xl {
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}
.header-call-to-action .link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a0e2e;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 6px;
}
.header-call-to-action .link-with-icon:hover { color: #2b7cff; }
/* hide the theme's trailing arrow on this button */
.header-call-to-action .link-with-icon > svg { display: none; }
/* circular play icon before the label */
.header-call-to-action .link-with-icon::before {
  content: "";
  display: inline-block;
  width: 22px; height: 22px; flex: none;
  border-radius: 999px;
  background: #f1f2f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 4 13 8-13 8z' fill='%230a0e2e'/%3E%3C/svg%3E") no-repeat center / 9px 9px;
}

/* Hero headline responsiveness. The ACF field renders an inline font-size
   (65px) that's too large for phones — a single word ("Conversations")
   overflows its box and clips. Allow long words to wrap, and scale the size
   down on small screens (the !important is required to beat the inline style). */
.header-title { overflow-wrap: break-word; }
@media (max-width: 768px) {
  .header-title { font-size: clamp(34px, 8.5vw, 46px) !important; line-height: 1.06 !important; }

  /* Mobile hero CTAs — match the mobile template's m-btn spec:
     full-width stacked pills, 16px/600, 15px 26px padding, min 52px tall.
     Scoped to .page-header so the header drawer's .header-call-to-action
     (same class, styled in navbar-v3.css) is not affected. */
  .page-header .header-call-to-action { align-items: stretch; }
  /* repeat the .home-prefixed variants so this out-ranks the desktop-fix
     selectors above (which are 5 classes deep and otherwise win here too) */
  .page-header .header-call-to-action .btn,
  .page-header .header-call-to-action .btn.btn-xl,
  .home .page-header .header-call-to-action .btn,
  .home .page-header .header-call-to-action .btn.btn-xl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    padding: 15px 26px;
    min-height: 52px;
    line-height: 1.4;
  }
  /* "Watch a 2-min tour": text link on desktop, bordered full-width pill
     on mobile (template: m-btn m-btn-secondary m-btn-block) */
  .page-header .header-call-to-action .link-with-icon {
    justify-content: center;
    width: 100%;
    font-size: 16px;
    padding: 14px 26px;
    min-height: 52px;
    line-height: 1.4;
    border: 1px solid #e0ddd6;
    border-radius: 999px;
  }
}

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.v3-trust { padding-top: clamp(56px, 5vw, 72px); padding-bottom: clamp(56px, 5vw, 72px); }
.v3-trust .v3-trust__lead {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #888b9a;
  margin: 0 0 32px;
}
.v3-trust__logos {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 48px;
}
.v3-trust__logo {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #b6b9c4;
}
.v3-trust__logo img { height: 26px; width: auto; display: block; filter: grayscale(1); opacity: .85; }

/* Mobile — match the mobile template's trust section (m-section-sm):
   48px vertical padding, names in a 2-column grid (gap 18px 20px) at 15px.
   Seeded content is text wordmarks only, so the grid is safe; any future
   <img> logos keep their fixed 26px height inside their cell. */
@media (max-width: 768px) {
  .v3-trust { padding-top: 48px; padding-bottom: 48px; }
  .v3-trust__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
  .v3-trust__logo { font-size: 15px; text-align: center; }
  .v3-trust__logo img { margin: 0 auto; }
}

/* =========================================================================
   BUILT FOR
   ========================================================================= */
.v3-bf .v3-eyebrow { color: var(--blue); font-weight: 600; font-size: 13px; }
.v3-bf__grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) { .v3-bf__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.v3-bf__photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0eef0;
}
.v3-bf__photo {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .5s ease;
}
.v3-bf__photo.is-active { opacity: 1; }
.v3-bf__photo img { width: 100%; height: 100%; object-fit: cover; }
.v3-bf__photo.v3-tone-0 { background: linear-gradient(135deg, #2b3a67, #0a0e2e); }
.v3-bf__photo.v3-tone-1 { background: linear-gradient(135deg, #1f5a4c, #0a2e26); }
.v3-bf__photo.v3-tone-2 { background: linear-gradient(135deg, #6b4a1f, #2e1d0a); }
.v3-bf__photo.v3-tone-3 { background: linear-gradient(135deg, #5a4a8c, #1d1530); }
.v3-bf__photo.v3-tone-4 { background: linear-gradient(135deg, #8c6b3a, #2e220f); }
.v3-bf__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,46,.55) 100%);
}
.v3-bf__photo-label {
  position: absolute; left: 22px; bottom: 22px;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(10,14,46,.35);
  backdrop-filter: blur(2px);
  font-size: 11px;
  letter-spacing: .12em;
}
.v3-bf__content { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.v3-bf__list { display: flex; flex-direction: column; gap: 0; }
.v3-bf__item {
  display: flex; align-items: center; gap: 12px;
  background: transparent; border: 0;
  margin: 0; min-height: 0;
  padding: 10px 0;
  text-align: left;
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--muted-3);
  cursor: pointer;
  transition: color .18s ease;
  border-bottom: 1px solid var(--line-2);
}
.v3-bf__item:hover, .v3-bf__item.is-active { color: var(--ink); }
.v3-bf__arrow { color: var(--blue); opacity: 0; transform: translateX(-6px); transition: all .18s ease; }
.v3-bf__item.is-active .v3-bf__arrow, .v3-bf__item:hover .v3-bf__arrow { opacity: 1; transform: none; }
.v3-bf__detail { max-width: 460px; margin-top: 48px; }
.v3-bf__body { display: none; }
.v3-bf__body.is-active { display: block; }
.v3-bf__body p { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.v3-bf__count { font-size: 13px; color: var(--muted-2); margin-bottom: 28px; }

/* Mobile — match the mobile template's BUILTFOR spec (.m-section / .mbf-*):
   72px section padding on #faf9f6, red eyebrow, 340px-tall photo, 21px/700
   list items ~50px tall, 15.5px body, and a full-width m-btn-style CTA
   (16px/600, 15px 26px, min 52px tall). Desktop untouched. */
@media (max-width: 768px) {
  .v3-bf { padding-top: 72px; padding-bottom: 72px; background: #faf9f6; }
  .v3-bf .v3-eyebrow { font-size: 12.5px; }
  .v3-bf__photo-frame { aspect-ratio: auto; height: 340px; }
  .v3-bf__photo-label { font-size: 10.5px; padding: 7px 12px; }
  .v3-bf__item {
    font-size: 21px;
    font-weight: 700;
    padding: 12px 2px;
    min-height: 50px;
  }
  .v3-bf__count { font-size: 12px; }
  .v3-bf__body p { font-size: 15.5px; }
  /* CTA — template: [m-btn primary block] "Book an intro" */
  .v3-bf .v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    padding: 15px 26px;
    min-height: 52px;
    line-height: 1.4;
  }
}

/* =========================================================================
   FINAL CTA (dark)
   ========================================================================= */
.v3-finalcta {
  background: linear-gradient(135deg, #0a1130 0%, #1a2655 100%);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(80px, 9vw, 130px);
}
.v3-finalcta__glow {
  position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none;
}
.v3-finalcta__glow--1 { top: -20%; left: 8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(43,124,255,.45), transparent 60%); }
.v3-finalcta__glow--2 { bottom: -30%; right: 4%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(46,184,255,.30), transparent 60%); }
.v3-finalcta__inner { text-align: center; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.v3-finalcta .v3-h-section { color: #fff; }
.v3-finalcta .v3-body-xl { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 44px; }
.v3-finalcta__badges {
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
}
.v3-finalcta__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.v3-finalcta__badge-icon { width: 13px; height: 13px; opacity: .55; flex: none; }
