/* Home page (index.php) — customer-relationship layout.
   Loaded after styles.css and module-styles.css; uses their tokens. */

.home-hero .hero-copy > p { font-size: 19px; color: #3c5057; }
.home-hero .hero-proof strong { font-size: 24px; }
.home-hero .hero-proof span { font-size: 14px; color: #4b5f66; }
.home-hero .hero-actions { flex-wrap: wrap; }

/* Customer 360 card (hero visual) */
.c360 { position: relative; background: #fff; border: 1px solid #d8e3e0; box-shadow: 0 35px 70px #0f39432b; padding: 26px; }
.c360-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.c360-avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 18px var(--display); }
.c360-head b { display: block; font: 700 19px var(--display); color: var(--navy); }
.c360-head small { display: block; font-size: 14px; color: var(--muted); }
.c360-tag { margin-left: auto; padding: 5px 11px; background: var(--mint); color: #067a72; font-size: 13px; font-weight: 700; white-space: nowrap; }
.c360-owner { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.c360-owner span { color: var(--muted); }
.c360-owner b { color: var(--navy); }
.c360-owner .due { color: #b25e00; }
.c360-timeline { list-style: none; margin: 0; padding: 8px 0 0; }
.c360-timeline li { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.c360-timeline li:last-child { border-bottom: 0; }
.c360-timeline i { width: 38px; height: 38px; display: grid; place-items: center; font: 800 12px var(--display); font-style: normal; color: #fff; }
.c360-timeline .ch-wa { background: #25a35a; }
.c360-timeline .ch-q  { background: #2b6cb0; }
.c360-timeline .ch-s  { background: var(--teal); }
.c360-timeline .ch-r  { background: #c77624; }
.c360-timeline b { display: block; font-size: 16px; color: var(--ink); }
.c360-timeline small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.c360-timeline time { font-size: 13px; font-weight: 700; color: var(--muted); }
.home-hero .card-message { left: -40px; bottom: -6px; }

/* Pain points */
.pain-section { background: #fff; }
.pain-section .section-heading { max-width: 860px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-grid article { padding: 30px 26px; background: #fbf8f3; border-top: 4px solid #e0a458; }
.pain-grid span { font: 800 14px var(--display); color: #b25e00; letter-spacing: .1em; }
.pain-grid h3 { font-size: 21px; margin: 14px 0 10px; color: var(--navy); letter-spacing: -.02em; }
.pain-grid p { font-size: 16px; color: var(--muted); margin: 0; }

/* Shared split blocks */
.home-split { grid-template-columns: 1.05fr .95fr; }
.home-copy h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--navy); margin: 15px 0; }
.home-copy > p { font-size: 18px; color: var(--muted); }
.home-shot { margin: 0; padding: 7px; background: #f5f8f7; border: 1px solid #dce6e3; box-shadow: 0 24px 50px #1536401e; }
.home-shot img { display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: top left; }
.home-shot.wide { margin-top: 44px; }
.home-shot.wide img { max-height: 480px; }
.c360-section { background: var(--cream); }
.check-grid { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.check-grid li, .check-list li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink); }
.check-grid li:before, .check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li { padding-top: 8px; padding-bottom: 8px; }
.check-list b { color: var(--navy); }
.text-arrow { display: inline-block; margin-top: 6px; font-size: 16px; font-weight: 800; color: #067a72; }
.text-arrow:hover { text-decoration: underline; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button-outline-light { background: transparent; color: #fff; border-color: #ffffff99; }
.button-outline-light:hover { background: #ffffff1a; border-color: #fff; }

/* Lifecycle */
.lifecycle-section { background: #fff; }
.lifecycle-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: none; }
.lifecycle-grid li { padding: 34px 30px; background: #fff; display: flex; flex-direction: column; }
.lifecycle-grid li:nth-child(2) { background: var(--mint); }
.lifecycle-grid .stage { font: 800 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.lifecycle-grid h3 { font-size: 23px; color: var(--navy); margin: 14px 0 10px; letter-spacing: -.02em; }
.lifecycle-grid p { font-size: 16px; color: var(--muted); margin: 0 0 18px; flex: 1; }
.stage-links { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-links a { padding: 6px 12px; border: 1px solid #bfd6d2; font-size: 14px; font-weight: 700; color: #067a72; }
.stage-links a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Conversations (reuses .ai-section) */
.ai-section .ai-copy > p { color: #d3e0e3; font-size: 18px; }
.ai-section .steps b { font-size: 17px; }
.ai-section .steps small { font-size: 15px; color: #c2d2d5; }
.ai-section .ai-badge b { font-size: 15px; }
.ai-section .ai-badge small { font-size: 13px; color: var(--muted); }

/* Follow-up */
.followup-section { background: #eff7f5; }
.followup-section .home-split { grid-template-columns: .95fr 1.05fr; }

/* Manager insight */
.insight-section { background: #fff; }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight-grid article { padding: 26px 26px 22px; border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.insight-grid b { font: 700 20px var(--display); color: var(--navy); }
.insight-grid p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

/* Who it's for / FAQ */
.roles h2, .faq-section h2 { font-size: clamp(32px, 3.6vw, 46px); color: var(--navy); margin: 15px 0; }
.roles p, .faq-section p { font-size: 17px; }
.role-list summary { font-size: 20px; color: var(--navy); }
.role-list details p { font-size: 16px; color: var(--muted); }
.faq-section { background: var(--cream); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-section a { color: #067a72; font-weight: 700; }

/* CTA */
.cta-section p { font-size: 18px; }

@media (max-width: 1100px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .lifecycle-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .home-split, .followup-section .home-split, .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-hero .card-message { left: 10px; }
}
@media (max-width: 640px) {
  .home-hero .hero-copy > p { font-size: 17px; }
  .home-hero .hero-proof strong { font-size: 19px; }
  .c360 { padding: 18px; }
  .c360-tag { display: none; }
  .pain-grid, .lifecycle-grid, .insight-grid, .check-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 30px; }
}

/* Tidy-ups after first review */
.home-hero .integration-strip > span { max-width: 210px; }
.pain-section .section-heading h2 { font-size: clamp(30px, 3.4vw, 44px); }
.bizcloud-home .bizcloud-copy h2 { font-size: clamp(32px, 3.6vw, 46px); }
.home-shot.wide img { max-height: 400px; }
.home .directory-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .home .directory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .home .directory-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai-section .ai-badge { right: 0; bottom: -16px; } }
/* width/height attrs on the inbox screenshot reserve space; keep its aspect ratio */
.ai-section .ai-visual img { height: auto; }

/* Custom modules page (custom-modules.php) */
.custom-modules-page .home-hero .breadcrumbs { margin-bottom: 18px; font-size: 15px; }
.fit-card { padding: 26px 28px; }
.fit-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.fit-head span { display: block; font: 800 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.fit-head b { display: block; margin-top: 8px; font: 700 21px var(--display); color: var(--navy); }
.fit-head small { font-size: 15px; color: var(--muted); }
.fit-list { list-style: none; margin: 0; padding: 6px 0; }
.fit-list li { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.fit-list b { display: block; font-size: 16px; color: var(--ink); }
.fit-list small { display: block; font-size: 14px; color: var(--muted); }
.fit { flex: none; padding: 5px 11px; font-size: 13px; font-weight: 700; font-style: normal; }
.fit.std { background: #e3f6ef; color: #0f7a52; }
.fit.cfg { background: #fff2dc; color: #9a5a00; }
.fit.cus { background: #e5efff; color: #1f5fb3; }
.fit-legend { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 14px; font-size: 14px; color: var(--muted); }
.fit-legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.fit-legend i.std { background: #36b37e; } .fit-legend i.cfg { background: #e0a458; } .fit-legend i.cus { background: #4c86d6; }
.benefit-grid article { border-top-color: var(--teal); background: #f4faf8; }
.benefit-grid span { color: var(--teal); }
.custom-modules-page .lifecycle-grid li:nth-child(2) { background: var(--mint); }
.base-chips { margin-top: 24px; }
.example-card { align-self: center; padding: 38px; background: var(--navy); color: #fff; }
.example-card .stage { font: 800 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #5ee0d4; }
.example-card h3 { font-size: 30px; margin: 14px 0 12px; color: #fff; }
.example-card p { font-size: 17px; color: #d3e0e3; }
.example-card .text-arrow { color: #5ee0d4; }
.requirement-list { margin: 0; }
.requirement-list li { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid #d2e3df; font-size: 17px; }
@media (max-width: 640px) {
  .fit-card { padding: 18px; }
  .fit-list li { flex-wrap: wrap; }
  .example-card { padding: 26px; }
}
.custom-modules-page .hero-proof strong { font-size: 20px; }
@media (min-width: 641px) { .custom-modules-page .hero-proof strong { white-space: nowrap; } }
.custom-modules-page .hero-copy { min-width: 0; }

/* Homepage custom-modules feature (priority section under the hero) */
.hero-custom-link { display: inline-block; margin-top: 18px; font-size: 16px; color: #067a72; }
.hero-custom-link b { color: var(--navy); }
.hero-custom-link:hover { text-decoration: underline; }
.custom-feature { position: relative; overflow: hidden; padding: 120px 0; background: linear-gradient(135deg, #0d2a34 0%, #123f4a 55%, #0b6f68 100%); color: #fff; }
.custom-feature:before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, #15c8b933 0, transparent 65%); }
.custom-feature-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.custom-feature h2 { font-size: clamp(38px, 4.4vw, 58px); color: #fff; margin: 18px 0; }
.custom-feature h2 em { font-style: normal; color: #5ee0d4; }
.custom-feature-copy > p { font-size: 19px; line-height: 1.7; color: #d7e4e7; max-width: 640px; }
.custom-steps { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 18px; }
.custom-steps li { display: flex; gap: 16px; align-items: flex-start; }
.custom-steps li > span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: #5ee0d4; color: var(--navy); font: 800 17px var(--display); }
.custom-steps b { display: block; font-size: 18px; color: #fff; }
.custom-steps small { display: block; font-size: 16px; color: #c2d4d8; }
.custom-feature .button-light { font-size: 16px; padding: 16px 26px; }
.custom-feature .fit-card { box-shadow: 0 40px 90px #02121780; }
@media (max-width: 980px) { .custom-feature { padding: 80px 0; } .custom-feature-grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 640px) { .custom-feature { padding: 64px 0; } .custom-feature-copy > p { font-size: 17px; } }

/* Messaging channel pages (partials/channel-template.php) */
.channel-page .home-hero .breadcrumbs { margin-bottom: 18px; font-size: 15px; }
.channel-page .hero-proof strong { font-size: 21px; }
.msg-mock { position: relative; max-width: 560px; margin-left: auto; background: #fff; border: 1px solid #d8e3e0; box-shadow: 0 35px 70px #0f39432b; }
.msg-mock-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--navy); color: #fff; }
.msg-mock-bar b { display: block; font-size: 16px; }
.msg-mock-bar small { display: block; font-size: 13px; color: #b9ccd0; }
.msg-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); font: 800 13px var(--display); }
.msg-thread { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; }
.bubble { max-width: 82%; padding: 10px 14px; font-size: 15px; line-height: 1.45; border-radius: 12px; }
.bubble em { display: block; margin-bottom: 3px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .03em; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid #e3e9e8; border-top-left-radius: 3px; }
.bubble.out { align-self: flex-end; background: #dcf8c6; border-top-right-radius: 3px; }
.bubble.out.ai em { color: #067a72; }
.bubble.out.agent em { color: #1f5fb3; }
.bubble.out.tpl { background: #fff6e0; }
.bubble.out.tpl em { color: #9a5a00; }
.wa-mock .msg-mock-bar { background: #075e54; }
.wa-mock .msg-avatar { background: #25d366; color: #073b34; }
.wa-mock .msg-thread { background: #ece5dd; }
.sms-mock .msg-thread { background: #f3f5f7; }
.bubble.sms { align-self: flex-start; max-width: 90%; background: #e5e9ee; border-top-left-radius: 3px; }
.msg-campaign { display: grid; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--line); }
.msg-campaign div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.msg-campaign span { color: var(--muted); }
.msg-campaign b { color: var(--navy); text-align: right; }
.msg-campaign .ok { color: #0f7a52; }
.email-head { padding: 14px 20px; background: #f5f8f7; border-bottom: 1px solid var(--line); }
.email-head div { display: flex; gap: 12px; padding: 4px 0; font-size: 15px; }
.email-head span { flex: none; width: 64px; color: var(--muted); }
.email-head b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-body { padding: 20px 24px 24px; font-size: 16px; }
.email-body p { margin: 10px 0; color: var(--ink); }
.email-banner { padding: 26px 20px; background: linear-gradient(120deg, var(--navy), #0b6f68); color: #fff; font: 800 22px var(--display); }
.email-btn { display: inline-block; margin: 6px 0 14px; padding: 10px 18px; background: var(--teal); color: #fff; font-weight: 700; font-size: 15px; }
.email-attach { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.channel-steps li:nth-child(2) { background: #fff; }
.channel-pricing { background: #fff; }
.rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rate-grid article { padding: 28px 26px; border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.rate-grid span { font: 800 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.rate-grid b { display: block; margin-top: 12px; font: 800 34px var(--display); color: var(--navy); letter-spacing: -.02em; }
.rate-grid small { font-size: 14px; color: var(--muted); }
.rate-grid p { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.rate-note { margin-top: 26px; text-align: center; font-size: 17px; color: var(--muted); }
.rate-note a { color: #067a72; font-weight: 700; }
.channel-related { background: #eff7f5; }
.related-channels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.related-channels a { display: flex; flex-direction: column; padding: 24px 22px; background: #fff; border: 1px solid #d2e3df; transition: .2s; }
.related-channels a:hover { border-color: var(--teal); transform: translateY(-2px); }
.related-channels b { font: 700 18px var(--display); color: var(--navy); }
.related-channels span { flex: 1; margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.related-channels i { font-style: normal; font-weight: 800; font-size: 15px; color: #067a72; }
@media (max-width: 1100px) { .rate-grid { grid-template-columns: repeat(2, 1fr); } .related-channels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) { .msg-mock { margin: 0 auto; } }
@media (max-width: 640px) { .rate-grid, .related-channels { grid-template-columns: 1fr; } .bubble { max-width: 92%; font-size: 14px; } .email-head span { width: 56px; } }
.channel-page .home-hero, .custom-modules-page .home-hero { padding-bottom: 80px; }
.channel-page .hero-copy, .channel-page .hero-visual, .email-head b { min-width: 0; }
.channel-page .hero-visual { width: 100%; }

/* Homepage channel hub (replaces the plain integration strip) */
.channel-hub { position: relative; z-index: 2; margin-top: 70px; padding: 44px 0 64px; border-top: 1px solid #d7e5e2; }
.channel-hub-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.channel-hub-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #cfe5e0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #067a72; }
.channel-hub-pill i { width: 8px; height: 8px; border-radius: 50%; background: #1fc79a; box-shadow: 0 0 0 0 #1fc79a88; animation: hubPulse 2s infinite; }
.channel-hub-head h2 { margin: 16px 0 8px; font-size: clamp(28px, 3vw, 38px); color: var(--navy); }
.channel-hub-head p { margin: 0; font-size: 18px; color: var(--muted); }
.channel-row { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
/* The "data line" behind the cards */
.channel-row:before { content: ""; position: absolute; left: 3%; right: 3%; top: 50px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #1faa59, #0a7cff, #e08a00, #5b5bd6, #2f6fe0, #00a99d, #8a4fe0); opacity: .35; }
.channel-row:after { content: ""; position: absolute; left: 3%; right: 3%; top: 49px; height: 5px; border-radius: 5px;
  background: linear-gradient(90deg, transparent 0, transparent 40%, #ffffff 50%, transparent 60%, transparent 100%) 0 0 / 40% 100% no-repeat;
  animation: hubFlow 3.6s linear infinite; mix-blend-mode: overlay; }
.ch-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 12px 20px;
  background: #fff; border: 1px solid #dbe8e5; border-radius: 16px; box-shadow: 0 10px 30px #0f39430f;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ch-card:before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); opacity: 0; transition: opacity .25s; }
.ch-ico { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); transition: background .25s, color .25s, transform .25s; }
.ch-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ch-card b { margin-top: 14px; font: 700 16px/1.25 var(--display); color: var(--navy); }
.ch-card small { margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.ch-card:hover, .ch-card:focus-visible { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 22px 44px color-mix(in srgb, var(--c) 22%, transparent); outline: none; }
.ch-card:hover:before, .ch-card:focus-visible:before { opacity: 1; }
.ch-card:hover .ch-ico, .ch-card:focus-visible .ch-ico { background: var(--c); color: #fff; transform: scale(1.06); }
@keyframes hubFlow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes hubPulse { 0% { box-shadow: 0 0 0 0 #1fc79a88; } 70% { box-shadow: 0 0 0 8px #1fc79a00; } 100% { box-shadow: 0 0 0 0 #1fc79a00; } }
@media (max-width: 1180px) {
  .channel-row { grid-template-columns: repeat(4, 1fr); }
  .channel-row:before, .channel-row:after { display: none; }
}
@media (max-width: 640px) {
  .channel-hub { margin-top: 40px; padding: 34px 0 44px; }
  .channel-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ch-card { padding: 18px 10px 16px; }
  .ch-ico { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .channel-row:after, .channel-hub-pill i { animation: none; }
  .ch-card, .ch-ico { transition: none; }
}
/* Browsers without color-mix(): plain tints */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .ch-ico { background: #f0f5f4; }
  .ch-card:hover { box-shadow: 0 22px 44px #0f394322; }
}
.channel-row:before { height: 4px; opacity: .6; } .channel-row:after { top: 48.5px; height: 7px; }
@media (max-width: 1180px) {
  .channel-row { display: flex; flex-wrap: wrap; justify-content: center; }
  .ch-card { flex: 0 1 calc(25% - 12px); }
}
@media (max-width: 640px) { .ch-card { flex-basis: calc(50% - 6px); } }
