/*
 * Common Path — Marketing Site
 * Organic Vermont earth/forest palette
 * Standalone (no Tailwind/Metronic dependency)
 */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Cabin:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
    --cp-sage: #658068;
    --cp-sage-light: #8CA38F;
    --cp-sage-mist: #D4DDD5;
    --cp-sage-wash: #EFF3F0;
    --cp-deep-forest: #3D5040;
    --cp-brown: #A69380;
    --cp-light-tan: #C4B5A5;
    --cp-parchment: #E8E0D8;
    --cp-linen: #F6F3F0;
    --cp-cream: #FAF8F5;
    --cp-near-black: #2D2D2A;
    --cp-dark-gray: #4A4A46;
    --cp-medium-gray: #7A7A74;
    --cp-warm-white: #FAFAF7;
    --cp-forest-tint: #EEF2EE;
    --cp-font-display: 'Libre Baskerville', Georgia, serif;
    --cp-font-body: 'Cabin', sans-serif;
    --cp-font-ui: 'Montserrat', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cp-font-body);
    color: var(--cp-near-black);
    background: var(--cp-linen);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--cp-sage);
    text-decoration: none;
    transition: color 200ms;
}

a:hover {
    color: var(--cp-deep-forest);
}

/* ── Container ── */
.cp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.cp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: transparent;
    transition: background 400ms, box-shadow 400ms, padding 300ms;
}

.cp-nav.scrolled {
    background: rgba(246, 243, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    border-bottom: 1px solid var(--cp-parchment);
}

.cp-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-nav-logo {
    display: flex;
    align-items: center;
}

.cp-nav-logo img {
    height: 40px;
    width: auto;
    transition: filter 300ms;
}

.cp-nav.scrolled .cp-nav-logo img {
    filter: none;
}

.cp-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cp-nav-link {
    font-family: var(--cp-font-ui);
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 200ms;
    letter-spacing: 0.3px;
}

.cp-nav.scrolled .cp-nav-link {
    color: var(--cp-dark-gray);
}

.cp-nav-link:hover {
    color: #fff;
}

.cp-nav.scrolled .cp-nav-link:hover {
    color: var(--cp-sage);
}

.cp-nav-cta {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 13px;
    background: var(--cp-sage);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 200ms, transform 200ms;
}

.cp-nav-cta:hover {
    background: var(--cp-deep-forest);
    color: #fff;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.cp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1538625500198-9cd88b11e14b?q=80&w=3087&auto=format&fit=crop') center/cover no-repeat;
}

.cp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45, 45, 42, 0.55) 0%, rgba(61, 80, 64, 0.65) 60%, rgba(61, 80, 64, 0.8) 100%);
}

.cp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 140px 0 120px;
}

.cp-hero h1 {
    font-family: var(--cp-font-display);
    font-size: clamp(32px, 5vw, 72px);
    line-height: 1.3;
    color: #fff;
    margin-bottom: 24px;
}

.cp-hero .cp-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 50px;
    max-width: 700px;
    font-weight: 500;
}

.cp-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cp-btn-primary {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 15px;
    background: var(--cp-sage);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 200ms;
}

.cp-btn-primary:hover {
    background: var(--cp-deep-forest);
    color: #fff;
    transform: translateY(-1px);
}

.cp-phone-link {
    font-family: var(--cp-font-ui);
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.cp-phone-link:hover {
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   WAVE-BRUSH SHAPE DIVIDER
   ═══════════════════════════════════════════════════ */
.cp-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.cp-wave-divider svg {
    display: block;
    width: calc(100% + 2px);
    margin-left: -1px;
    height: 60px;
    transform: scaleY(-1);
}

.cp-wave-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.cp-wave-divider-top svg {
    display: block;
    width: calc(100% + 2px);
    margin-left: -1px;
    height: 60px;
}

/* ═══════════════════════════════════════════════════
   SECTIONS — SHARED
   ═══════════════════════════════════════════════════ */
.cp-section {
    position: relative;
    padding: 120px 0;
}

/* Extra top clearance when a wave divider sits at the top edge */
.cp-section:has(.cp-wave-divider-top) {
    padding-top: 150px;
}

.cp-section-label {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cp-sage);
    margin-bottom: 12px;
    text-align: center;
}

.cp-section-title {
    font-family: var(--cp-font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: center;
}

.cp-section-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--cp-dark-gray);
    max-width: 600px;
    margin: 0 auto 64px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS — 3 STEPS
   ═══════════════════════════════════════════════════ */
.cp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cp-step {
    text-align: center;
    padding: 40px 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--cp-parchment);
    transition: transform 300ms, box-shadow 300ms;
}

.cp-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.cp-step-icon {
    font-size: 48px;
    color: var(--cp-sage);
    margin-bottom: 16px;
    line-height: 1;
}

.cp-step-number {
    font-family: var(--cp-font-display);
    font-size: 14px;
    color: var(--cp-sage);
    margin-bottom: 8px;
}

.cp-step h3 {
    font-family: var(--cp-font-ui);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 12px;
}

.cp-step p {
    color: var(--cp-dark-gray);
    font-size: 15px;
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════
   SERVICE SECTION (Chatbot + Automations)
   ═══════════════════════════════════════════════════ */
.cp-service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 56px;
}

.cp-service-row.reverse {
    direction: rtl;
}

.cp-service-row.reverse>* {
    direction: ltr;
}

.cp-service-text h3 {
    font-family: var(--cp-font-display);
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.cp-service-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--cp-dark-gray);
    margin-bottom: 16px;
}

.cp-service-text ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.cp-service-text ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--cp-dark-gray);
}

.cp-service-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cp-sage);
    font-weight: 700;
}

/* ── Chatbot Demo Mockup ── */
.cp-chat-demo {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--cp-parchment);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cp-chat-demo-header {
    background: var(--cp-deep-forest);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-chat-demo-dots {
    display: flex;
    gap: 6px;
}

.cp-chat-demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cp-chat-demo-dots span:nth-child(1) {
    background: #e74c3c;
}

.cp-chat-demo-dots span:nth-child(2) {
    background: #f39c12;
}

.cp-chat-demo-dots span:nth-child(3) {
    background: #27ae60;
}

.cp-chat-demo-title {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--cp-font-ui);
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.cp-chat-demo-body {
    padding: 24px 20px;
    min-height: 320px;
}

.cp-chat-demo-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
}

.cp-chat-demo.animate .cp-chat-demo-msg {
    animation: cp-msg-in 400ms forwards;
}

.cp-chat-demo.animate .cp-chat-demo-msg:nth-child(1) {
    animation-delay: 0.5s;
}

.cp-chat-demo.animate .cp-chat-demo-msg:nth-child(2) {
    animation-delay: 2s;
}

.cp-chat-demo-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--cp-font-ui);
    overflow: hidden;
}

.cp-chat-demo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-chat-demo-avatar.user {
    background: var(--cp-brown);
    color: #fff;
}

.cp-chat-demo-avatar.ai {
    background: none;
    border-radius: 0;
    height: auto;
    align-items: start;
}

.cp-chat-demo-avatar.ai img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cp-chat-demo-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 85%;
}

.cp-chat-demo-msg.from-ai .cp-chat-demo-bubble {
    max-width: 100%;
    flex: 1;
}

.cp-chat-demo-msg.from-user .cp-chat-demo-bubble {
    background: var(--cp-linen);
    color: var(--cp-near-black);
}

.cp-chat-demo-msg.from-ai .cp-chat-demo-bubble {
    background: var(--cp-sage-wash);
    color: var(--cp-near-black);
}

.cp-chat-demo-citation {
    margin-top: 8px;
    margin-left: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #ebebeb;
    font-size: 12px;
    color: var(--cp-medium-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    opacity: 0;
}

.cp-chat-demo.animate .cp-chat-demo-citation {
    animation: cp-msg-in 400ms forwards;
    animation-delay: 3.5s;
}

.cp-chat-demo-citation-source {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cp-chat-demo-citation-link {
    font-family: var(--cp-font-ui);
    font-size: 11px;
    font-weight: 500;
    color: var(--cp-sage);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 200ms;
}

.cp-chat-demo-citation-link:hover {
    opacity: 1;
    color: var(--cp-deep-forest);
}

/* ── Automation Visual ── */
.cp-auto-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 24px;
}

.cp-auto-flow {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.cp-auto-node {
    background: #fff;
    border: 2px solid var(--cp-sage-mist);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    min-width: 130px;
    transition: all 300ms;
    opacity: 0;
    animation: cp-node-in 500ms forwards;
}

.cp-auto-node:nth-child(1) {
    animation-delay: 0.3s;
}

.cp-auto-node:nth-child(3) {
    animation-delay: 0.6s;
    border-color: var(--cp-sage);
    background: var(--cp-sage-wash);
}

.cp-auto-node:nth-child(5) {
    animation-delay: 0.9s;
}

.cp-auto-node-icon {
    font-size: 32px;
    margin-bottom: 6px;
    color: var(--cp-sage);
}

.cp-auto-node-label {
    font-family: var(--cp-font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--cp-near-black);
}

.cp-auto-arrow {
    font-size: 20px;
    color: var(--cp-sage-light);
    padding: 0 4px;
    opacity: 0;
    animation: cp-msg-in 300ms forwards;
}

.cp-auto-arrow:nth-child(2) {
    animation-delay: 0.45s;
}

.cp-auto-arrow:nth-child(4) {
    animation-delay: 0.75s;
}

.cp-auto-examples-label {
    font-family: var(--cp-font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cp-brown);
    text-align: center;
    margin-top: 24px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.cp-auto-examples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cp-auto-example-trigger {
    font-weight: 700;
}

.cp-auto-example {
    background: #fff;
    border: 1px solid var(--cp-parchment);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--cp-dark-gray);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cp-auto-example-icon {
    font-size: 22px;
    flex-shrink: 0;
    color: var(--cp-sage);
}

/* ═══════════════════════════════════════════════════
   INTRO / POSITIONING
   ═══════════════════════════════════════════════════ */
.cp-intro {
    padding: 100px 0 110px;
}

.cp-intro-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cp-intro-headline {
    font-family: var(--cp-font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.35;
    color: var(--cp-near-black);
    margin-bottom: 40px;
    position: relative;
}

.cp-intro-headline::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cp-sage);
    margin: 28px auto 0;
    border-radius: 2px;
}

.cp-intro-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--cp-dark-gray);
}

.cp-intro-body p {
    margin-bottom: 12px;
}

.cp-intro-lead {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 19px !important;
    color: var(--cp-near-black) !important;
    margin-bottom: 8px !important;
}

.cp-intro-list {
    font-style: italic;
    color: var(--cp-medium-gray) !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 0 12px;
    line-height: 1.9 !important;
}

/* Pain point icon grid */
.cp-pain-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin: 28px auto 12px;
    max-width: 820px;
}

.cp-pain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px 12px;
    min-width: 100px;
    border-radius: 10px;
    transition: background 200ms;
}

.cp-pain-item:hover {
    background: rgba(101, 128, 104, 0.06);
}

.cp-pain-item .material-symbols-outlined {
    font-size: 26px;
    color: var(--cp-sage);
    opacity: 0.7;
}

.cp-pain-item>span:last-child {
    font-family: var(--cp-font-ui);
    font-size: 12px;
    font-weight: 500;
    color: var(--cp-dark-gray);
    text-align: center;
    line-height: 1.3;
}

.cp-intro-closer {
    font-family: var(--cp-font-ui);
    font-weight: 700;
    font-size: 19px !important;
    color: var(--cp-deep-forest) !important;
    margin-top: 20px !important;
    padding-top: 8px;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS (light green section with topo pattern)
   ═══════════════════════════════════════════════════ */
.cp-how-works {
    background-color: #e2ebe4;
    background-image: url('/assets/img/contours.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* ═══════════════════════════════════════════════════
   ABOUT / LOCAL TRUST
   ═══════════════════════════════════════════════════ */
.cp-about-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--cp-parchment);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.cp-about-card p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--cp-dark-gray);
    margin-bottom: 16px;
}

.cp-about-card p:last-of-type {
    margin-bottom: 24px;
}

.cp-about-signature {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 43px;
}

.cp-about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.cp-about-name {
    font-family: var(--cp-font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--cp-near-black);
}

.cp-about-location {
    font-size: 14px;
    color: var(--cp-brown);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   CTA FOOTER
   ═══════════════════════════════════════════════════ */
.cp-cta-footer {
    background: var(--cp-deep-forest);
    color: #fff;
    padding: 140px 0 100px;
    position: relative;
}

.cp-cta-footer h2 {
    font-family: var(--cp-font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.cp-cta-footer .cp-cta-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.cp-contact-info h3 {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cp-sage-light);
    margin-bottom: 20px;
}

.cp-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.cp-contact-item a {
    color: #fff;
}

.cp-contact-item a:hover {
    color: var(--cp-sage-light);
}

.cp-contact-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Contact Form */
.cp-contact-form h3 {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cp-sage-light);
    margin-bottom: 20px;
}

.cp-form-group {
    margin-bottom: 14px;
}

.cp-form-group input,
.cp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--cp-font-body);
    font-size: 14px;
    transition: border-color 200ms;
}

.cp-form-group input::placeholder,
.cp-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cp-form-group input:focus,
.cp-form-group textarea:focus {
    outline: none;
    border-color: var(--cp-sage);
    background: rgba(255, 255, 255, 0.12);
}

.cp-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.cp-form-submit {
    font-family: var(--cp-font-ui);
    font-weight: 600;
    font-size: 14px;
    background: var(--cp-sage);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 200ms;
    width: 100%;
}

.cp-form-submit:hover {
    background: var(--cp-sage-light);
}

.cp-form-success {
    background: rgba(101, 128, 104, 0.2);
    border: 1px solid var(--cp-sage);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.cp-form-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.cp-footer {
    text-align: center;
    padding: 32px 0;
    background: #2A3A2D;
    border-top: none;
}

.cp-footer-logo {
    height: 32px;
    margin-bottom: 12px;
}

.cp-footer-text {
    font-size: 13px;
    color: var(--cp-sage-light);
}

/* ═══════════════════════════════════════════════════
   MATERIAL SYMBOLS COLOR OVERRIDES
   ═══════════════════════════════════════════════════ */
.cp-chat-demo-citation .material-symbols-outlined {
    color: var(--cp-sage);
}

.cp-contact-icon.material-symbols-outlined {
    color: var(--cp-sage-light);
    font-size: 22px;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes cp-msg-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cp-node-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered fade-in */
.cp-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.cp-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .cp-steps {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .cp-service-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cp-service-row.reverse {
        direction: ltr;
    }

    .cp-contact-grid {
        grid-template-columns: 1fr;
    }

    .cp-auto-examples {
        grid-template-columns: 1fr;
    }

    .cp-pain-grid {
        gap: 4px 8px;
    }

    .cp-pain-item {
        padding: 10px 12px 8px;
        min-width: 85px;
    }
}

@media (max-width: 768px) {
    .cp-hero-content {
        padding: 120px 0 100px;
    }

    .cp-hero h1 {
        font-size: 28px;
    }

    .cp-hero .cp-subtitle {
        font-size: 17px;
    }

    .cp-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cp-section {
        padding: 64px 0;
    }

    /* ── Intro / Positioning ── */
    .cp-intro {
        padding: 64px 0 56px;
    }

    .cp-intro-headline {
        margin-bottom: 28px;
    }

    .cp-intro-headline::after {
        margin-top: 20px;
    }

    .cp-intro-lead {
        font-size: 17px !important;
    }

    .cp-intro-closer {
        font-size: 17px !important;
    }

    .cp-intro-body {
        font-size: 15px;
    }

    /* ── Pain grid: 3 columns on tablet, tight ── */
    .cp-pain-grid {
        gap: 2px 4px;
        margin: 20px auto 8px;
    }

    .cp-pain-item {
        padding: 10px 8px 8px;
        min-width: 80px;
    }

    .cp-pain-item .material-symbols-outlined {
        font-size: 22px;
    }

    .cp-pain-item>span:last-child {
        font-size: 11px;
    }

    /* ── Chat demo ── */
    .cp-chat-demo-body {
        padding: 16px 14px;
        min-height: auto;
    }

    .cp-chat-demo-bubble {
        font-size: 13px;
    }

    .cp-chat-demo-citation {
        margin-left: 38px;
        font-size: 11px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .cp-chat-demo-citation-link {
        font-size: 10px;
    }

    /* ── About card ── */
    .cp-about-card {
        padding: 32px 24px;
    }

    /* ── Nav ── */
    .cp-nav-links {
        display: none;
    }

    /* ── Wave dividers ── */
    .cp-wave-divider svg,
    .cp-wave-divider-top svg {
        height: 36px;
    }

    /* ── Automation visual ── */
    .cp-auto-flow {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .cp-auto-node {
        min-width: 100px;
        padding: 12px 14px;
    }

    .cp-auto-node-icon {
        font-size: 26px;
    }

    .cp-auto-arrow {
        font-size: 16px;
    }

    .cp-auto-examples-label {
        margin-top: 16px;
        font-size: 10px;
    }

    .cp-auto-example {
        padding: 12px 14px;
        font-size: 12px;
    }

    .cp-auto-example-icon {
        font-size: 18px !important;
    }

    /* ── How It Works (topo section) ── */
    .cp-how-works {
        padding: 64px 0;
    }

    .cp-section-subtitle {
        margin-bottom: 40px;
    }

    /* ── CTA Footer ── */
    .cp-cta-footer {
        padding: 100px 0 80px;
    }

    .cp-cta-footer h2 {
        font-size: 24px;
        padding: 0 16px;
    }

    .cp-cta-footer .cp-cta-sub {
        font-size: 15px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .cp-hero h1 {
        font-size: 24px;
    }

    .cp-hero .cp-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }

    .cp-intro-headline {
        font-size: 22px;
    }

    .cp-intro-lead {
        font-size: 15px !important;
    }

    .cp-intro-closer {
        font-size: 15px !important;
    }

    /* Pain grid: tighter for small phones */
    .cp-pain-grid {
        gap: 0;
    }

    .cp-pain-item {
        min-width: 70px;
        padding: 8px 6px 6px;
    }

    .cp-pain-item .material-symbols-outlined {
        font-size: 20px;
    }

    .cp-pain-item>span:last-child {
        font-size: 10px;
    }

    /* Chat demo: full-width citation */
    .cp-chat-demo-citation {
        margin-left: 0;
    }

    .cp-chat-demo-body {
        padding: 14px 12px;
    }

    /* Steps */
    .cp-step {
        padding: 28px 20px;
    }

    /* Section titles */
    .cp-section-title {
        font-size: 22px;
    }

    .cp-section-subtitle {
        font-size: 15px;
    }

    /* Footer */
    .cp-footer-text {
        font-size: 11px;
    }
}