/* ==========================================================================
   Helper Agent — site.css (design 1d)
   Shared styles for all pages. Loaded by includes/header.php.
   ========================================================================== */

:root {
  --indigo: #5157DD;
  --indigo-dark: #4046C8;
  --lavender: #EEF0FB;
  --ink: #23243A;
  --ink-2: #2A2B3D;
  --body: #4C4E63;
  --slate: #3A3B4E;
  --muted: #7A7C93;
  --faint: #9C9DB0;
  --line: #ECEDF5;
  --line-2: #E4E5F0;
  --dashed: #C6C9E8;
  --green: #8DC63F;
  --green-light: #BCE380;
  --green-deep: #6FA82B;
  --green-bg: #F2F9E4;
  --gold: #F2B01E;
  --shadow-card: 0 14px 36px rgba(35,36,58,.10);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
img { max-width: 100%; }

.wrap { max-width: 1220px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 104px 0; }
.section-lavender { background: var(--lavender); }
.section-indigo { background: var(--indigo); }

/* Two-tone section headings: <h2 class="tt">Recent Outcomes <span>From Our Clients</span></h2> */
.tt { font-size: 44px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; text-wrap: pretty; }
.tt span { color: var(--green); }
.tt.sm { font-size: 40px; line-height: 1.2; }
.tt.center { text-align: center; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 2px; color: var(--indigo); }
.kicker.center { text-align: center; }
.sub { font-size: 16px; line-height: 1.7; color: var(--muted); }
.lead-body { font-size: 16px; line-height: 1.75; color: var(--body); text-wrap: pretty; margin-top: 14px; }
strong { color: var(--ink); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600; transition: background .15s ease, color .15s ease; }
.btn-primary { background: var(--indigo); color: #fff; padding: 17px 34px; font-size: 16px; box-shadow: 0 6px 16px rgba(81,87,221,.28); }
.btn-primary:hover { background: var(--indigo-dark); color: #fff; }
.btn-primary.btn-sm { padding: 12px 26px; font-size: 14px; box-shadow: none; }
.btn-pill { background: var(--indigo); color: #fff; padding: 13px 26px; font-size: 14px; margin-top: 26px; }
.btn-pill:hover { background: var(--indigo-dark); color: #fff; }
.btn-light { background: #fff; color: var(--indigo); padding: 18px 38px; font-size: 17px; }
.btn-light:hover { background: var(--lavender); color: var(--indigo-dark); }

/* ---- Header / Footer ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.site-header .logo img { height: 34px; display: block; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--indigo); }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.site-footer .logo img { height: 26px; display: block; }
.footer-meta { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal a { text-decoration: none; }
.footer-legal .sep { color: var(--dashed); }
.footer-copy { color: var(--muted); }

/* ---- Hero ---- */
.hero { background: var(--indigo); padding: 120px 0 110px; text-align: center; }
.hero h1 { max-width: 1080px; margin: 0 auto; font-size: 72px; font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; color: #fff; text-wrap: pretty; }
.hero h1 .accent { color: var(--green-light); }
.hero .sub-hero { max-width: 720px; margin: 32px auto 0; font-size: 21px; line-height: 1.6; color: rgba(255,255,255,.88); text-wrap: pretty; }
.hero .cta-row { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 40px; }
.hero .cta-alt { font-size: 16px; font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .cta-alt:hover { color: var(--green-light); }
.hero .source { margin-top: 30px; font-size: 13px; font-style: italic; color: rgba(255,255,255,.62); }

/* ---- The Problem (icon tab rail + rollover panels) ---- */
.ptabs-grid { display: grid; grid-template-columns: 210px 1fr; gap: 64px; align-items: center; }
.ptab-rail { display: flex; flex-direction: column; gap: 22px; }
.ptab { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; border-radius: 14px; background: #fff; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); text-align: center; opacity: .55; transition: all .25s ease; }
.ptab img { height: 52px; width: auto; }
.ptab.active { opacity: 1; box-shadow: 0 16px 40px rgba(35,36,58,.16); transform: scale(1.05); }
.ppanel { display: none; }
.ppanel.active { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; min-height: 480px; }
.ppanel .photo { width: 100%; height: 460px; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 44px rgba(35,36,58,.14); }
.ppanel .picon { height: 46px; width: auto; }
.ppanel h3 { margin-top: 18px; font-size: 30px; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.ppanel h3 span { color: var(--green); }
.ppanel p { margin-top: 16px; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.ppanel ul { margin: 14px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.8; color: var(--body); }

/* ---- Answers-first split ---- */
.answers { display: grid; grid-template-columns: 1fr .85fr; gap: 64px; align-items: center; }
.answers .statement { font-family: var(--font-head); font-weight: 800; font-size: 40px; line-height: 1.25; letter-spacing: -.5px; color: var(--ink); text-wrap: pretty; }
.answers .statement .accent { color: var(--indigo); }
.answers .kicker-line { margin-top: 20px; font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--muted); }
.figure { display: flex; flex-direction: column; gap: 10px; }
.figure figcaption { font-size: 13px; font-style: italic; color: var(--muted); text-align: center; }

/* ---- Image placeholders (swap for real photos) ---- */
.img-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; background: repeating-linear-gradient(45deg, #F4F5FB, #F4F5FB 14px, #EDEFF9 14px, #EDEFF9 28px); border: 2px dashed var(--dashed); border-radius: 20px; color: var(--faint); font-size: 15px; padding: 20px; }
.img-placeholder.full-bleed { border-radius: 0; border-left: 0; border-right: 0; }

/* ---- Staggered icon-card grids (usecases, outcomes) ---- */
.split { display: grid; gap: 72px; align-items: center; }
.split.text-left { grid-template-columns: .9fr 1.1fr; }
.split.cards-left { grid-template-columns: 1.15fr .85fr; align-items: start; }
.stagger { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.stagger .col { display: flex; flex-direction: column; gap: 24px; }
.stagger .col.offset { margin-top: 64px; }
.icon-card { background: #fff; border-radius: 16px; padding: 28px 26px; box-shadow: var(--shadow-card); }
.icon-card img { height: 46px; width: auto; }
.icon-card h3 { margin-top: 14px; font-size: 18px; font-weight: 600; }
.icon-card p { margin-top: 10px; font-size: 14px; line-height: 1.6; }

/* ---- Testimonials carousel ---- */
.t-card { max-width: 900px; margin: 48px auto 0; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(35,36,58,.10); padding: 56px 64px 48px; text-align: center; }
.t-stars { color: var(--gold); font-size: 40px; letter-spacing: 5px; }
.t-quote { display: none; }
.t-quote.active { display: block; }
.t-quote p { max-width: 660px; margin: 22px auto 0; font-size: 19px; line-height: 1.65; color: var(--ink); min-height: 95px; text-wrap: pretty; }
.t-quote .who { margin-top: 14px; min-height: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.t-quote .who .name { color: var(--green); }
.t-quote .who .role { color: var(--muted); font-weight: 500; }
.t-avatars { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 26px; }
.t-av { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; cursor: pointer; opacity: .7; transition: all .25s ease; }
.t-av.active { transform: scale(1.18); box-shadow: 0 10px 24px rgba(81,87,221,.35); opacity: 1; }
.t-divider { height: 1px; background: var(--line); margin: 38px auto 0; max-width: 660px; }
.t-logos { max-width: 620px; width: 100%; margin: 30px auto 0; display: block; }

/* ---- 21X stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 36px 36px 0 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 36px; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -2px; color: var(--indigo); }
.stat .num.green { color: var(--green); }
.stat .desc { margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.stat .source { margin-top: 12px; font-size: 12px; font-style: italic; color: var(--faint); }

/* ---- Chat test-drive ---- */
.lead.center { max-width: 720px; margin: 20px auto 0; text-align: center; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.chat-card { max-width: 640px; margin: 52px auto 0; background: #fff; border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 18px 48px rgba(35,36,58,.12); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--ink); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff; }
.chat-head .name { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #fff; }
.chat-head .status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.bubble { max-width: 82%; padding: 12px 16px; font-size: 15px; line-height: 1.5; }
.bubble.user { align-self: flex-end; max-width: 78%; background: var(--indigo); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble.agent { align-self: flex-start; background: #F1F2F8; color: var(--ink); border-radius: 16px 16px 16px 4px; }
.chat-input { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.chat-input .field { flex: 1; background: #F1F2F8; border-radius: 999px; padding: 12px 18px; font-size: 14px; color: var(--faint); }
.chat-input .send { width: 42px; height: 42px; border-radius: 50%; background: var(--indigo); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }

/* ---- Guarantee ---- */
.guarantee { display: grid; grid-template-columns: 380px 1fr; gap: 88px; align-items: center; max-width: 1060px; margin: 0 auto; }
.guarantee img { width: 100%; height: auto; }
.guarantee p { margin-top: 22px; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.guarantee .promise { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }

/* ---- Two futures ---- */
.futures { display: grid; grid-template-columns: 1fr 1fr; }
.future { padding: 72px 80px; }
.future h3 { font-size: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.future p { margin-top: 20px; font-size: 20px; line-height: 1.65; text-wrap: pretty; }
.future.without { background: var(--ink-2); }
.future.without h3 { color: rgba(255,255,255,.5); }
.future.without p { color: rgba(255,255,255,.85); }
.future.with { background: var(--green-bg); }
.future.with h3 { color: var(--green-deep); }
.future.with p { color: var(--ink); }
.futures-tagline { padding: 52px 0 0; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--ink); }
.futures-tagline .arrow { color: var(--green); }

/* ---- Be the hero prose ---- */
.prose { max-width: none; margin: 0 auto; text-align: center; }
.prose h2 { font-size: 44px; font-weight: 800; letter-spacing: -.5px; text-wrap: pretty; }
.prose p { margin-top: 16px; font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.prose p:first-of-type { margin-top: 26px; }
.prose .aside { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 20px; }

/* ---- Journey band + Book a demo ---- */
.journey-band { max-width: 1000px; margin: 0 auto; background: var(--green); border-radius: 20px; padding: 60px 56px; text-align: center; }
.journey-band h3 { font-size: 30px; font-weight: 700; line-height: 1.35; color: #fff; text-wrap: pretty; }
.journey-band .btn { margin-top: 30px; box-shadow: none; }
.embed-placeholder { max-width: none; margin: 36px auto 0; border: 2px dashed var(--dashed); border-radius: 16px; padding: 72px 32px; background: #F7F8FD; text-align: center; }
.embed-placeholder p { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--indigo); }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq > h2 { font-size: 44px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle { color: var(--indigo); font-size: 22px; line-height: 1; transition: transform .15s ease; }
.faq details[open] summary .toggle { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; font-size: 15px; line-height: 1.65; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero .sub-hero { font-size: 18px; }
  .hero .cta-row { flex-direction: column; gap: 18px; }
  .tt, .prose h2, .faq > h2 { font-size: 32px; }
  .tt.sm { font-size: 28px; }
  .site-nav { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a:not(.btn) { font-size: 14px; }
  .ptabs-grid, .answers, .split.text-left, .split.cards-left, .futures, .guarantee { grid-template-columns: 1fr; }
  .ptabs-grid { gap: 36px; }
  .ptab-rail { flex-direction: row; }
  .ptab { flex: 1; padding: 16px 8px; font-size: 13px; }
  .ptab img { height: 38px; }
  .ppanel.active { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .ppanel .photo { height: 320px; }
  .answers { gap: 40px; }
  .answers .statement { font-size: 30px; }
  .stagger .col.offset { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0 0; border-left: none; border-top: 1px solid var(--line); }
  .stats .stat:first-child { border-top: none; padding-top: 0; }
  .t-card { padding: 36px 24px; }
  .future { padding: 48px 32px; }
  .guarantee { gap: 40px; max-width: 480px; }
  .futures-tagline { font-size: 22px; }
  .journey-band { padding: 44px 28px; }
  .journey-band h3 { font-size: 24px; }
  .site-footer .wrap, .footer-meta { flex-direction: column; gap: 12px; text-align: center; }
}
