/* ════════════════════════════════════════════════════════════
   Enzo shared sections (Challenges + Why Enzo)
   Default: white surface (.enzo-sec). Modifier: .enzo-sec-warm flips to tan.
   Smooth top/bottom fades on .enzo-sec-warm so it bleeds into hero/next.
   ════════════════════════════════════════════════════════════ */
.enzo-sec {
    --enzo-text:           #2a2a2a;
    --enzo-muted:          rgba(42, 42, 42, 0.7);
    --enzo-side:           rgba(205, 160, 127, 0.5);
    --enzo-eyebrow-bg:     rgba(205, 160, 127, 0.12);
    --enzo-eyebrow-border: rgba(205, 160, 127, 0.5);
    --enzo-eyebrow-color:  #2a2a2a;
    --enzo-em-from:        #e8347a;
    --enzo-em-to:          #f472b6;

    position: relative;
    padding: 120px 0 100px;
    background: #fff;
    color: var(--enzo-text);
    overflow: hidden;
}
.enzo-sec-warm {
    --enzo-text:           #fff;
    --enzo-muted:          rgba(255, 255, 255, 0.82);
    --enzo-side:           rgba(255, 255, 255, 0.22);
    --enzo-eyebrow-bg:     rgba(255, 255, 255, 0.14);
    --enzo-eyebrow-border: rgba(255, 255, 255, 0.32);
    --enzo-eyebrow-color:  #fff;
    --enzo-em-from:        #fff;
    --enzo-em-to:          #fbcfe8;

    margin-top: -140px;
    padding-top: 280px;
    padding-bottom: 260px;
    background:
        linear-gradient(
            180deg,
            rgba(205, 160, 126, 0)   0px,
            rgba(205, 160, 126, 0)   40px,
            rgba(205, 160, 126, 1)   170px,
            rgba(205, 160, 126, 1)   calc(100% - 220px),
            rgba(255, 255, 255, 1)   100%
        );
}
.enzo-sec-warm .enzo-side {
    top: 170px;
    bottom: 220px;
}
.enzo-side {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: var(--enzo-side);
    z-index: 1;
}
.enzo-side-l { left: 16px; }
.enzo-side-r { right: 16px; }

.enzo-shell {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}
@media (min-width: 768px)  { .enzo-shell { padding: 0 56px; } }
@media (min-width: 1024px) { .enzo-shell { padding: 0 72px; } }

/* ─── Section header ─── */
.enzo-head { margin-bottom: 56px; }
.enzo-head-center {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.enzo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--enzo-eyebrow-bg);
    border: 1px solid var(--enzo-eyebrow-border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--enzo-eyebrow-color);
    margin-bottom: 22px;
}
.enzo-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8347a;
    box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.6);
    animation: enzoPing 1.8s ease-out infinite;
}
@keyframes enzoPing {
    0%   { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(232, 52, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0); }
}
.enzo-title {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--enzo-text);
    margin: 0 0 18px;
    text-wrap: balance;
}
.enzo-sub { text-wrap: pretty; }
.enzo-title em {
    font-style: italic;
    font-weight: 400;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    background: linear-gradient(135deg, var(--enzo-em-from) 0%, var(--enzo-em-to) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.enzo-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--enzo-muted);
    margin: 0 auto;
    max-width: 560px;
    font-weight: 400;
}

/* ════════════════════════════════════════════════════════════
   Live AI chat demo — chip rail + phone mockup with bubbles
   ════════════════════════════════════════════════════════════ */
.enzo-chat-stage {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1180px;
    margin: 12px auto 0;
}
@media (max-width: 1023px) {
    .enzo-chat-stage {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 540px;
    }
}

/* Chip rail */
.enzo-chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 1023px) {
    .enzo-chat-list {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding: 0 32px 8px 0;
        scroll-padding-left: 0;
        scrollbar-width: none;
    }
    .enzo-chat-list::-webkit-scrollbar { display: none; }
    .enzo-chat-list > li { scroll-snap-align: start; flex-shrink: 0; }
}
@media (max-width: 640px) {
    .enzo-chat-list { padding-right: 35%; }
    .enzo-chat-list > li { width: 65%; min-width: 220px; }
    .enzo-chat-list .enzo-chip { width: 100%; }
}
.enzo-chip {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    cursor: pointer;
    transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.enzo-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateX(4px);
}
.enzo-chip[aria-selected="true"] {
    background: #fff;
    color: #2a2a2a;
    border-color: #fff;
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.35);
    transform: translateX(4px);
}
.enzo-chip-num {
    flex-shrink: 0;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.22s ease;
}
.enzo-chip[aria-selected="true"] .enzo-chip-num { color: #cda07e; }
.enzo-chip-tag {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.enzo-chip-arrow {
    flex-shrink: 0;
    width: 20px; height: 20px;
    display: grid;
    place-items: center;
    color: currentColor;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}
.enzo-chip-arrow svg { width: 12px; height: 12px; }
.enzo-chip[aria-selected="true"] .enzo-chip-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #e8347a;
}
.enzo-chip-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px; width: 0;
    background: linear-gradient(90deg, #e8347a, #f472b6);
}
.enzo-chip[aria-selected="true"][data-cc-running="1"] .enzo-chip-progress {
    animation: enzoChipProgress 9s linear forwards;
}
@keyframes enzoChipProgress { to { width: 100%; } }

/* iMessage-style chat — frameless, system font, gray + pink bubbles */
.enzo-chat {
    position: relative;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
}
.enzo-chat-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(232, 52, 122, 0.22), transparent 65%);
    filter: blur(50px);
    z-index: 0;
    animation: enzoGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes enzoGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.8; transform: scale(1.04); }
}
.enzo-chat-sheet {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 26px 22px 32px;
    box-shadow:
        0 30px 60px -22px rgba(74, 50, 30, 0.4),
        0 12px 24px -12px rgba(74, 50, 30, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}
.enzo-chat-stamp {
    margin: 0 0 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(60, 60, 67, 0.55);
    letter-spacing: 0;
}
.enzo-chat-thread {
    position: relative;
    height: 440px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* iMessage bubbles */
.enzo-bubble {
    max-width: 78%;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    animation: enzoBubbleIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    flex-shrink: 0;
}
@keyframes enzoBubbleIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.enzo-bubble + .enzo-bubble { margin-top: 2px; }
.enzo-bubble-client {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 6px;
}
.enzo-bubble-ai {
    align-self: flex-end;
    background: linear-gradient(180deg, #ec4f8d 0%, #d62a73 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.enzo-bubble-ai strong { color: #fff; font-weight: 600; }
.enzo-bubble-ai:has(+ .enzo-bubble-ai) { border-bottom-right-radius: 20px; }
.enzo-bubble-ai + .enzo-bubble-ai { margin-top: 1px; }
.enzo-bubble-kicker { font-weight: 600; letter-spacing: -0.005em; }

.enzo-sender { display: none; }

/* Typing indicator */
.enzo-typing {
    align-self: flex-start;
    padding: 11px 14px;
    background: #e9e9eb;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: enzoBubbleIn 0.3s ease forwards;
    flex-shrink: 0;
    width: fit-content;
}
.enzo-typing.is-ai {
    align-self: flex-end;
    background: linear-gradient(180deg, #ec4f8d 0%, #d62a73 100%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 6px;
}
.enzo-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(60, 60, 67, 0.45);
    animation: enzoTypeBlink 1.2s ease-in-out infinite;
}
.enzo-typing.is-ai span { background: rgba(255, 255, 255, 0.85); }
.enzo-typing span:nth-child(2) { animation-delay: 0.18s; }
.enzo-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes enzoTypeBlink {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30%           { opacity: 1;    transform: translateY(-3px); }
}

/* ════════════════════════════════════════════════════════════
   4-card grid (Why Enzo)
   ════════════════════════════════════════════════════════════ */
.enzo-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
}
@media (min-width: 640px)  { .enzo-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .enzo-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.enzo-card {
    position: relative;
    padding: 28px 24px 26px;
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.45);
    border-radius: 18px;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease,
                box-shadow 0.28s ease;
    overflow: hidden;
}
.enzo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e8347a, #f472b6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.enzo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 52, 122, 0.45);
    box-shadow: 0 22px 48px -22px rgba(232, 52, 122, 0.28);
}
.enzo-card:hover::before { transform: scaleX(1); }
.enzo-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf2f8, #fff);
    border: 1px solid rgba(232, 52, 122, 0.28);
    color: #e8347a;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    transition: transform 0.28s ease;
}
.enzo-card:hover .enzo-card-icon { transform: scale(1.06) rotate(-3deg); }
.enzo-card-icon svg { width: 20px; height: 20px; }
.enzo-card-h {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: #2a2a2a;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.enzo-card-h em {
    font-style: italic;
    font-weight: 400;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    color: #e8347a;
    background: none;
    -webkit-text-fill-color: currentColor;
}
.enzo-card-cap {
    font-size: 12.5px;
    color: rgba(42, 42, 42, 0.55);
    margin: 0 0 14px;
    font-style: italic;
    line-height: 1.4;
}
.enzo-card-body {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.72);
    margin: 0;
}

/* CTA row under cards */
.enzo-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    text-align: center;
}
.enzo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8347a 0%, #cf2169 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(232, 52, 122, 0.5);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.enzo-cta svg { width: 16px; height: 16px; transition: transform 0.22s; }
.enzo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -14px rgba(232, 52, 122, 0.65);
}
.enzo-cta:hover svg { transform: translateX(4px); }
.enzo-cta-micro {
    font-size: 12.5px;
    color: rgba(42, 42, 42, 0.55);
    letter-spacing: 0.01em;
}

/* Mobile */
@media (max-width: 540px) {
    .enzo-sec        { padding: 80px 0 70px; }
    .enzo-sec-warm   { padding: 100px 0 140px; }
    .enzo-head       { margin-bottom: 40px; }
    .enzo-card       { padding: 22px 20px 20px; }
    .enzo-cta        { padding: 13px 22px; font-size: 13.5px; }
    .enzo-chat-sheet   { padding: 22px 18px 26px; border-radius: 24px; }
    .enzo-chat-thread  { height: 400px; }
    .enzo-chip         { padding: 14px 16px; }
    .enzo-chip-tag     { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .enzo-eyebrow-dot,
    .enzo-card,
    .enzo-card-icon,
    .enzo-cta,
    .enzo-bubble,
    .enzo-typing,
    .enzo-chat-glow,
    .enzo-chip,
    .enzo-chip-progress { animation: none !important; transition: none !important; }
}
