/* ===================================
   Design Tokens — Koee Landing Page
   Warm Editorial Palette
   =================================== */

/* Cabinet Grotesk — Self-hosted */
@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('/assets/fonts/CabinetGrotesk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('/assets/fonts/CabinetGrotesk-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('/assets/fonts/CabinetGrotesk-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('/assets/fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
    font-style: normal;
}

:root {
    /* ---- Colors: Warm Editorial ---- */

    /* Cream (backgrounds) */
    --color-cream: #F5F3ED;
    --color-cream-light: #FAF9F5;
    --color-cream-dark: #ECE9E0;

    /* Charcoal (text, dark sections — teal-tinted) */
    --color-charcoal: #242E30;
    --color-charcoal-light: #3D4A4D;
    --color-charcoal-muted: #5F6E71;

    /* Teal (primary accent) */
    --color-teal: #0891B2;
    --color-teal-light: #06B6D4;
    --color-teal-dark: #0E7490;
    --color-teal-bg: rgba(8, 145, 178, 0.08);

    /* Amber (highlights) */
    --color-amber: #D97706;
    --color-amber-bg: rgba(217, 119, 6, 0.08);

    /* Danger (loss / error) */
    --color-danger: #DC2626;
    --color-danger-bg: rgba(220, 38, 38, 0.08);

    /* Warm neutral scale */
    --neutral-50: #FAFAF7;
    --neutral-100: #F5F5F0;
    --neutral-200: #E8E8E0;
    --neutral-300: #D4D4CB;
    --neutral-400: #A8A89E;
    --neutral-500: #7A7A71;
    --neutral-600: #5C5C54;
    --neutral-700: #3A4547;
    --neutral-800: #242E30;
    --neutral-900: #161D1F;

    /* Semantic */
    --color-bg: var(--color-cream);
    --color-surface: var(--color-cream-light);
    --color-border: var(--color-cream-dark);
    --color-text: var(--color-charcoal);
    --color-text-secondary: var(--color-charcoal-light);
    --color-text-muted: var(--color-charcoal-muted);
    --color-accent: var(--color-teal);
    --color-accent-hover: var(--color-teal-light);
    --white: #FFFFFF;

    /* ---- Typography ---- */
    --font-display: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Fluid type scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);     /* 12-13px */
    --text-sm: clamp(0.8125rem, 0.77rem + 0.2vw, 0.875rem);     /* 13-14px */
    --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);        /* 15-16px */
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);         /* 16-18px */
    --text-xl: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);      /* 18-20px */
    --text-2xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);      /* 22-26px */
    --text-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);          /* 28-36px */
    --text-4xl: clamp(2.25rem, 1.8rem + 1.8vw, 3rem);           /* 36-48px */
    --text-5xl: clamp(2.75rem, 2rem + 3vw, 4rem);               /* 44-64px */

    /* Tracking */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;

    /* Leading */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    /* ---- Spacing ---- */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-padding: clamp(1rem, 0.5rem + 2vw, 1.5rem);

    /* Section padding */
    --section-padding: clamp(3rem, 2rem + 4vw, 5rem);

    /* ---- Shadows (warm-tinted) ---- */
    --shadow-sm: 0 1px 2px rgba(44, 46, 42, 0.04);
    --shadow-md: 0 2px 8px rgba(44, 46, 42, 0.06);
    --shadow-lg: 0 4px 16px rgba(44, 46, 42, 0.08);
    --shadow-xl: 0 8px 32px rgba(44, 46, 42, 0.12);

    /* ---- Borders ---- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ---- Timing ---- */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --stagger-step: 0.1s;

    /* ---- Z-index ---- */
    --z-header: 1000;
    --z-mobile-menu: 999;
    --z-overlay: 900;
}
/* ===================================
   Base Styles — Reset + Globals
   =================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Lenis overrides native scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* Typography — Display (Cabinet Grotesk) */
.display-xl {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

.display-lg {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 600; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl); font-weight: 600; }

p {
    line-height: var(--leading-relaxed);
}

/* Section spacing */
section {
    padding: var(--section-padding) 0;
}

/* Utility: visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ===================================
   Components — Buttons, Cards, Badges, Accordion
   =================================== */

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
    text-decoration: none;
    line-height: 1.4;
}

.btn:active {
    transform: translateY(0) !important;
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
}

/* Primary — Teal solid */
.btn-primary {
    background-color: var(--color-teal);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--color-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

/* Secondary — Charcoal outline */
.btn-secondary {
    background: transparent;
    color: var(--color-charcoal);
    border: 1.5px solid var(--color-charcoal);
}

.btn-secondary:hover {
    background-color: var(--color-charcoal);
    color: var(--color-cream);
    transform: translateY(-2px);
}

/* Ghost — Text only */
.btn-ghost {
    background: transparent;
    color: var(--color-teal);
    padding-left: 4px;
    padding-right: 4px;
}

.btn-ghost:hover {
    color: var(--color-teal-light);
    background-color: var(--color-teal-bg);
    padding-left: 16px;
    padding-right: 16px;
}

/* ---- Cards ---- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-8);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--elevated {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Pricing cards */
.pricing-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: var(--space-10);
    text-align: center;
    position: relative;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border: 2px solid var(--color-teal);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pricing-card--featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-teal);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: var(--space-8);
}

.pricing-label {
    display: inline-block;
    background: var(--color-teal-bg);
    color: var(--color-teal);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.pricing-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-value .currency {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
}

.pricing-value .amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.pricing-value .period {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

.pricing-agents {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-8);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: var(--text-sm);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--color-teal);
    flex-shrink: 0;
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.badge--teal {
    background: var(--color-teal-bg);
    color: var(--color-teal);
}

.badge--amber {
    background: var(--color-amber-bg);
    color: var(--color-amber);
}

.badge--neutral {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

/* ---- Text Highlight — Hand-drawn marker stroke ---- */
.text-highlight {
    position: relative;
    display: inline;
}

.text-highlight::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0;
    height: 0.18em;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C20 3, 40 10, 60 6 S100 2, 130 7 S170 10, 198 5' stroke='%230891B2' stroke-width='8' fill='none' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* ---- WhatsApp Conversation ---- */
.wa-conversation {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.wa-header {
    background: #075E54;
    color: var(--white);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #128C7E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
}

.wa-header__info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.wa-header__name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.wa-header__label {
    font-size: 11px;
    opacity: 0.8;
}

.wa-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #ECE5DD;
    min-height: 120px;
}

.wa-bubble {
    background: var(--white);
    padding: 8px 12px;
    border-radius: 8px 8px 8px 0;
    max-width: 85%;
    font-size: var(--text-sm);
    color: #303030;
    line-height: 1.45;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}

.wa-bubble--sent {
    background: #DCF8C6;
    border-radius: 8px 8px 0 8px;
    align-self: flex-end;
}

.wa-time {
    font-size: 10px;
    color: #8C8C8C;
    text-align: right;
    margin-top: 2px;
}

.wa-gap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 8px auto;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #8C8C8C;
}

.wa-alert {
    background: var(--color-danger-bg);
    border-left: 3px solid var(--color-danger);
    padding: 10px 14px;
    margin: 8px 0 0;
    border-radius: 0 8px 8px 0;
    font-size: var(--text-sm);
    color: var(--color-danger);
    font-weight: 600;
    line-height: 1.4;
}

.wa-alert__sub {
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

/* ---- WhatsApp Typing Indicator ---- */
.wa-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    padding: 10px 14px;
    border-radius: 8px 8px 8px 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    width: fit-content;
}

.wa-typing__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #999;
    animation: wa-typing-bounce 1.4s infinite ease-in-out;
}

.wa-typing__dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wa-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Hidden state for chat animation */
.wa-bubble--hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    overflow: hidden;
}

/* ---- Koee Analysis Panel ---- */
.koee-analysis {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    max-width: 420px;
    width: 100%;
}

.koee-analysis__header {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.koee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
}

.koee-item__icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.koee-item__content {
    flex: 1;
}

.koee-item__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
}

.koee-item__value {
    font-size: var(--text-sm);
    color: var(--color-text);
    margin-top: 2px;
    display: block;
}

/* ---- Dead Tag ---- */
.dead-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* ---- Accordion ---- */
.accordion-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.accordion-trigger:hover {
    color: var(--color-teal);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--color-teal);
    transition: transform var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
}

.accordion-inner {
    padding: 0 var(--space-6) var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* ---- Floating Metric Cards (Hero) ---- */
.hero-float {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 150px;
    z-index: 10;
    will-change: transform, width, height;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-float__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-float__badge {
    font-size: 9px;
    background: var(--color-teal);
    color: var(--white);
    padding: 2px 7px;
    border-radius: 8px;
    font-weight: 700;
    margin-left: auto;
}

.hero-float__value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: var(--tracking-tight);
}

.hero-float__value--teal {
    color: var(--color-teal);
}

.hero-float__unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-500);
}

.hero-float__detail {
    font-size: 11px;
    color: var(--neutral-400);
    margin-top: 4px;
}

.hero-float__trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.hero-float__trend--up {
    color: var(--color-teal);
}

/* Card positions (desktop) — at viewport edges, partially off-screen */
.hero-float--conversas  { top: 14%;  left: -1%;  transform: rotate(-3deg); }
.hero-float--score      { top: 10%;  right: -2%; transform: rotate(2.5deg); }
.hero-float--resposta   { bottom: 14%; right: 3%;  transform: rotate(-2deg); }
.hero-float--sentimento { bottom: 4%;  left: -2%;  transform: rotate(2.5deg); min-width: 180px; }
.hero-float--resolucao  { top: 52%; right: -1%;  transform: rotate(-1.5deg); min-width: 120px; }

/* Mini bar chart (sentimento card) */
.hero-float__mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
    margin: 8px 0 6px;
}

.mini-bar {
    width: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: flex-end;
}

.mini-bar__pos { background: #10b981; border-radius: 1px; display: block; }
.mini-bar__neu { background: #f59e0b; border-radius: 1px; display: block; }
.mini-bar__neg { background: #ef4444; border-radius: 1px; display: block; }

.hero-float__legend {
    display: flex;
    gap: 8px;
    font-size: 9px;
    color: var(--neutral-500);
    align-items: center;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot--pos { background: #10b981; }
.legend-dot--neu { background: #f59e0b; }
.legend-dot--neg { background: #ef4444; }

/* ---- Dashboard Window (Koee app mockup) ---- */
.dashboard-window {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 1060px;
    width: 92%;
    margin: 0 auto;
    overflow: hidden;
}

.dashboard-chrome {
    display: flex;
    gap: 7px;
    padding: 14px 18px;
    background: var(--neutral-50);
    border-bottom: 1px solid var(--color-border);
}

.chrome-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.chrome-dot--red    { background: #ff5f57; }
.chrome-dot--yellow { background: #febc2e; }
.chrome-dot--green  { background: #28c840; }

.dashboard-body {
    display: flex;
    min-height: 420px;
}

.dashboard-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: var(--neutral-50);
    border-right: 1px solid var(--color-border);
    padding: 20px 0;
}

.dashboard-sidebar__logo {
    padding: 0 16px 18px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
}

.dashboard-sidebar__logo img {
    height: 26px;
    width: auto;
}

.dashboard-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral-500);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.sidebar-link--active {
    background: var(--color-teal-bg);
    color: var(--color-teal);
    font-weight: 600;
}

.sidebar-link svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.dashboard-main {
    flex: 1;
    padding: 22px 26px;
    overflow: hidden;
}

.dashboard-main__greeting {
    margin-bottom: 18px;
}

.dashboard-main__greeting h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.dashboard-main__greeting p {
    font-size: 13px;
    color: var(--neutral-400);
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
    margin-bottom: 14px;
}

/* Sentimento spans 2 columns on row 2 */
.dashboard-kpi-slot[data-slot="sentimento"] {
    grid-column: 1 / 3;
}

.dashboard-kpi-slot {
    border-radius: var(--radius-lg);
    min-height: 120px;
}

/* Static KPI content — hidden on desktop (animated cards fill slots instead) */
.kpi-static {
    display: none;
}

@media (max-width: 1024px) {
    .kpi-static {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 16px;
        background: var(--neutral-50);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        height: 100%;
    }

    .kpi-static__label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--neutral-500);
        margin-bottom: 6px;
    }

    .kpi-static__value {
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 800;
        color: var(--color-text);
        line-height: 1;
    }

    .kpi-static__value--teal {
        color: var(--color-teal);
    }

    .kpi-static__value small {
        font-size: 14px;
        font-weight: 600;
        color: var(--neutral-500);
    }

    .dashboard-kpi-slot {
        min-height: auto;
    }
}

.dashboard-insight {
    background: linear-gradient(135deg, #f0faf8, #f5fbfa);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border: 1px solid #e0f2ef;
    font-size: 12px;
    color: var(--neutral-600);
    line-height: 1.5;
}

.dashboard-insight__icon {
    flex-shrink: 0;
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dashboard-chart {
    background: var(--neutral-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.dashboard-chart h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

/* ---- Feature Cards (Bento Grid) ---- */
.feature-card-wrapper {
    position: relative;
}

.feature-card {
    background: var(--neutral-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 300px;
    transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card--featured {
    background: #eef8fa;
    border-color: #d5eef3;
}

.feature-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    flex-shrink: 0;
    transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card__illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    min-height: 0;
}

.feature-card__avatar {
    width: 160px;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.55;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-shrink: 0;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                margin 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 0;
}

/* Active state — card grows upward, description slides in */
.feature-card-wrapper.is-active .feature-card {
    height: 420px;
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.12), 0 6px 16px rgba(0, 0, 0, 0.04);
    border-color: var(--color-teal);
    background: var(--color-teal-bg);
}

.feature-card-wrapper.is-active .feature-card--featured {
    background: #daf0f5;
}

.feature-card-wrapper.is-active .feature-card__title {
    color: var(--color-teal);
}

.feature-card-wrapper.is-active .feature-card__avatar {
    transform: translateY(-4px);
}

.feature-card-wrapper.is-active .feature-card__description {
    opacity: 1;
    max-height: 140px;
    margin-top: 16px;
}
/* ===================================
   Header — Sticky Nav + Mobile Menu
   =================================== */

/* Beta top banner */
.beta-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-header) + 1);
    background: var(--color-teal);
    color: var(--white);
    text-align: center;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .beta-top-banner { font-size: var(--text-xs); padding: 6px 12px; }
}

/* Logo BETA badge */
.logo-beta-badge {
    background: var(--color-teal);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}

.header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(245, 243, 237, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow var(--duration-fast) ease,
                background-color var(--duration-fast) ease;
}

.header.is-scrolled {
    box-shadow: 0 1px 8px rgba(44, 46, 42, 0.06);
    background: rgba(245, 243, 237, 0.95);
}

/* Nav layout */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: var(--space-8);
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--duration-fast) ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Header CTA */
.header .btn-primary {
    flex-shrink: 0;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.mobile-menu-btn.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav dropdown */
.nav-dropdown-trigger {
    position: relative;
}

.nav-dropdown-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--duration-fast) ease;
}

.nav-dropdown-label svg {
    transition: transform var(--duration-fast) ease;
}

.nav-dropdown-trigger:hover .nav-dropdown-label,
.nav-dropdown-trigger.is-open .nav-dropdown-label {
    color: var(--color-text);
}

.nav-dropdown-trigger:hover .nav-dropdown-label svg,
.nav-dropdown-trigger.is-open .nav-dropdown-label svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-fast) ease,
                visibility var(--duration-fast) ease,
                transform var(--duration-fast) ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown-trigger:hover .nav-dropdown,
.nav-dropdown-trigger.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    transition: background var(--duration-fast) ease;
}

.nav-dropdown__item:hover {
    background: rgba(8, 145, 178, 0.06);
}

.nav-dropdown__item + .nav-dropdown__item {
    margin-top: 2px;
}

.nav-dropdown__title {
    display: block;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.3;
}

.nav-dropdown__desc {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 2px;
}

.nav-dropdown__item:hover .nav-dropdown__title {
    color: var(--color-teal);
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-links,
    .header .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav.is-open .nav-links {
        display: flex;
        position: absolute;
        top: 72px; /* relative to .nav, not affected by banner offset */
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-cream);
        padding: var(--space-6);
        gap: var(--space-4);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .nav.is-open .nav-links a,
    .nav.is-open .nav-dropdown-label {
        font-size: var(--text-base);
        padding: var(--space-2) 0;
    }

    .nav-dropdown-trigger {
        position: static;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        display: none;
    }

    .nav-dropdown-trigger.is-open .nav-dropdown {
        display: block;
        padding-left: var(--space-4);
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown__item {
        padding: var(--space-1) 0;
        border-radius: 0;
    }

    .nav-dropdown__item + .nav-dropdown__item {
        margin-top: 0;
    }

    .nav-dropdown__desc {
        display: none;
    }

    .nav-dropdown__title {
        font-weight: 500;
    }

    .nav.is-open .btn-primary {
        display: inline-flex;
        margin-top: var(--space-2);
    }
}
/* ===================================
   Section Layouts — 7 Acts + Footer
   =================================== */

/* ---- Shared Act Styles ---- */
.act {
    position: relative;
    overflow: hidden;
}

.text-teal {
    color: var(--color-teal);
}

/* ---- ACT 1: Hero ---- */
.act-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAF8F2 0%, #f0ede3 40%, #e8f4f6 100%);
    padding-top: 72px;
    position: relative;
    overflow: visible;
}

/* Hero centered layout */
.hero-centered {
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-centered__text {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-teal-bg);
    color: var(--color-teal);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.act-hero__subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-top: var(--space-6);
    line-height: var(--leading-relaxed);
}

.act-hero__ctas {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-8);
    justify-content: center;
}

/* Dashboard reveal (overlay on hero, initially hidden by GSAP) */
.dashboard-reveal {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: 80px 0 40px;
    opacity: 0;
    pointer-events: none;
}

.dashboard-reveal__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-charcoal);
    text-align: center;
    letter-spacing: var(--tracking-tight);
}

/* ---- ACT 2: Problems (Dark) ---- */
.act-problems {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.06) 0%, transparent 60%),
        var(--color-charcoal);
    color: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-problems h2 {
    color: var(--color-cream);
}

.act-problems__headline {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-problems__headline h2 {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
}

.act-problems__scene {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-8);
    position: relative;
}

.act-problems__wa {
    flex-shrink: 0;
}

/* Real-time timeline */
.realtime-timeline {
    max-width: 280px;
    width: 100%;
    padding-top: var(--space-4);
}

.realtime-timeline__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-teal-light);
    margin-bottom: var(--space-6);
    padding-left: 28px;
}

.realtime-timeline__header svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Timeline items with vertical line */
.timeline-item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 24px;
}

/* Vertical line */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Hide line on last item */
.timeline-item:last-child::before {
    display: none;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.timeline-item__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-cream);
    display: block;
    line-height: 1.3;
}

.timeline-item__detail {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 3px;
    display: block;
    line-height: 1.4;
}

/* Warning */
.timeline-item--warning .timeline-dot {
    background: rgba(217, 119, 6, 0.4);
    border-color: #fbbf24;
}
.timeline-item--warning .timeline-item__label {
    color: #fbbf24;
}

/* Danger */
.timeline-item--danger .timeline-dot {
    background: rgba(239, 68, 68, 0.4);
    border-color: #f87171;
}
.timeline-item--danger .timeline-item__label {
    color: #f87171;
}

/* Teal (optimization) */
.timeline-item--teal .timeline-dot {
    background: rgba(8, 145, 178, 0.4);
    border-color: var(--color-teal-light);
}
.timeline-item--teal .timeline-item__label {
    color: var(--color-teal-light);
}

/* ---- ACT 3: How It Works ---- */
.act-how {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-how__title {
    text-align: center;
    margin-bottom: var(--space-12);
    font-size: var(--text-4xl);
}

.act-how__track {
    position: relative;
}

.act-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.act-how__step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    position: relative;
}

.act-how__step-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.act-how__step h3 {
    margin-bottom: var(--space-3);
}

.act-how__step p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ---- ACT 4: Features (Bento Grid) ---- */
.act-features {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-features__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-features__header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.act-features__header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

.act-features__bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
    height: 420px;
    align-items: end;
}

/* ---- ACT 5: Trust + Pricing ---- */
.act-trust {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

/* Stats section */
.act-trust__stats-section {
    margin-bottom: var(--space-20);
}

.act-trust__stats-heading {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-10);
}

.act-trust__stats-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

/* Stats row */
.act-trust__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.act-trust__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--color-teal);
    line-height: 1;
    display: block;
}

.act-trust__stat-unit {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-top: var(--space-1);
}

.act-trust__stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: block;
    margin-top: var(--space-2);
}

/* Pricing header */
.act-trust__pricing-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.act-trust__pricing-header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.act-trust__pricing-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.act-trust__no-card {
    display: inline-flex;
    gap: 6px;
    margin-top: var(--space-4);
    padding: 6px 16px;
    font-size: var(--text-sm);
}

/* Pricing grid */
.act-trust__pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

/* Coming soon teaser */
.act-trust__coming-soon {
    text-align: center;
    margin-top: var(--space-12);
    padding: var(--space-6);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.act-trust__coming-soon p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
}

/* ---- ACT 6: FAQ ---- */
.act-faq {
    background: var(--color-cream);
    padding: var(--section-padding) 0;
}

.act-faq__title {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-12);
}

.act-faq__list {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* ---- ACT 7: Final CTA (Dark) ---- */
.act-cta {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 50%),
        var(--color-charcoal);
    padding: var(--section-padding) 0;
    text-align: center;
}

.act-cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.act-cta h2 {
    font-size: var(--text-4xl);
    color: var(--color-cream);
    margin-bottom: var(--space-4);
}

.act-cta p {
    font-size: var(--text-xl);
    color: var(--neutral-400);
    margin-bottom: var(--space-8);
}

/* Footer styles moved to css/footer.css */

/* ---- Avatars ---- */
.avatar {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.avatar--elephant {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    top: 8%;
    left: 5%;
    opacity: 0.85;
    transform: scaleX(-1);
}


.avatar--bird {
    position: static;
    width: clamp(80px, 10vw, 160px);
    height: auto;
    margin: 0 auto var(--space-4);
    display: block;
    animation: bounce-subtle 2s ease-out infinite;
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    /* Hero → stacked on tablets */
    .hero-centered {
        min-height: auto;
        flex-direction: column;
        padding: var(--space-10) 0;
    }

    .hero-float {
        display: none;
    }

    .hero-centered__text {
        order: -1;
        margin-bottom: var(--space-8);
    }

    /* Dashboard → static preview on tablets/mobile (no pin animation) */
    .dashboard-reveal {
        position: static;
        opacity: 1 !important;
        pointer-events: auto;
        padding: 0 var(--space-4) var(--space-10);
    }

    .dashboard-reveal__title {
        opacity: 1 !important;
        font-size: var(--text-2xl);
        margin-bottom: var(--space-4);
    }

    /* Force all dashboard elements visible (JS won't set initial states) */
    .dashboard-window,
    [data-dash-el],
    .dashboard-insight,
    .dashboard-charts-row,
    .dashboard-chart {
        opacity: 1 !important;
        transform: none !important;
    }

    .dashboard-window {
        width: 100%;
        max-width: 100%;
    }

    /* Hide sidebar on mobile — too narrow */
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-body {
        min-height: auto;
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-kpi-slot[data-slot="sentimento"] {
        grid-column: 1 / -1;
    }

    /* How It Works → vertical */
    .act-how__steps {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* Features → stacked */
    .act-features__bento {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        height: auto;
    }

    /* On mobile: auto height, descriptions always visible */
    .feature-card {
        height: auto;
    }

    .feature-card__description {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }

    /* Stats → 2 cols */
    .act-trust__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Pricing → horizontal scroll with snap */
    .act-trust__pricing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding-top: 20px;
        padding-bottom: var(--space-4);
        -webkit-overflow-scrolling: touch;
        max-width: none;
        margin: -20px calc(-1 * var(--space-4)) 0;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Hide scrollbar but keep scrollable */
    .act-trust__pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .act-trust__pricing-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .act-trust__pricing-grid .pricing-card {
        flex-shrink: 0;
        width: 80%;
        min-width: 280px;
        scroll-snap-align: center;
    }

    .pricing-card--featured {
        transform: none;
        order: 0;
    }

}

@media (max-width: 768px) {
    /* Hero — extra 36px to compensate for beta top banner */
    .act-hero {
        min-height: auto;
        padding: 156px 0 0;
    }

    /* Dashboard simplified on mobile */
    .dashboard-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard-main {
        padding: 16px;
    }

    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }

    /* Problems scene → stack */
    .act-problems__scene {
        flex-direction: column;
        align-items: center;
    }

    .act-problems__wa {
        max-width: 100%;
    }

    .realtime-timeline {
        max-width: 100%;
    }

    /* Stats → stacked */
    .act-trust__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* FAQ */
    .accordion-trigger {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-5);
    }

    .accordion-inner {
        padding: 0 var(--space-5) var(--space-4);
        font-size: var(--text-sm);
    }

    /* Avatars */
    .avatar--elephant {
        display: none;
    }

    .avatar--bird {
        width: clamp(60px, 8vw, 100px);
    }
}

@media (max-width: 480px) {
    .act-hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .act-hero__ctas .btn {
        width: 100%;
    }

    .act-trust__stats {
        grid-template-columns: 1fr;
    }

    .act-trust__pricing-grid .pricing-card {
        width: 88%;
        min-width: 260px;
        padding: var(--space-8) var(--space-6);
    }

    /* Dashboard: single column KPIs on small phones */
    .dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-slot[data-slot="sentimento"] {
        grid-column: auto;
    }
}

/* ===================================
   Use Case Page — Extra Sections
   =================================== */

/* ---- Provocative Questions ---- */
.uc-provocative {
    padding: var(--space-16) 0;
    background: var(--color-charcoal);
}

.uc-provocative__title {
    color: #fff;
    text-align: center;
    margin-bottom: var(--space-10);
}

.uc-provocative__list {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.provoc-scenario {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.provoc-scenario:last-child {
    border-bottom: none;
}

.provoc-scenario__emoji {
    flex-shrink: 0;
    font-size: 1.6rem;
    line-height: 1;
}

.provoc-scenario__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-lg);
    line-height: 1.65;
    font-weight: 400;
    margin: 0;
}

.uc-provocative__cta {
    text-align: center;
    color: var(--color-teal-light, #06B6D4);
    font-weight: 500;
    margin-top: var(--space-10);
    font-size: var(--text-base);
}

/* ---- Metrics Grid ---- */
.uc-metrics {
    padding: var(--space-16) 0;
}

.uc-metrics__header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.uc-metrics__header p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    max-width: 560px;
    margin-inline: auto;
}

.uc-metrics__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.uc-metric-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-6) var(--space-6) var(--space-5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
}

.uc-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.uc-metric-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-cream, #F5F1E4);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.uc-metric-card__label {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.uc-metric-card__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.uc-metric-card__example {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-teal);
    font-weight: 500;
    font-style: italic;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .uc-metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .uc-metrics__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Platform Screens ---- */
.uc-platform {
    padding: var(--space-16) 0;
    background: var(--color-charcoal);
}

.uc-platform__header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.uc-platform__header h2 {
    color: #fff;
}

.uc-platform__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-base);
    margin-bottom: var(--space-10);
}

.uc-platform__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.uc-screen {
    position: relative;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: transform var(--duration-fast) ease;
}

.uc-screen:hover {
    transform: translateY(-4px);
}

.uc-screen__topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--color-cream, #F5F1E4);
    border-bottom: 1px solid var(--color-border);
}

.uc-screen__topbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
}

.uc-screen__topbar-dot:first-child { background: #FF5F57; }
.uc-screen__topbar-dot:nth-child(2) { background: #FFBD2E; }
.uc-screen__topbar-dot:nth-child(3) { background: #28CA41; }

.uc-screen__body {
    padding: var(--space-6);
}

.uc-screen__number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.uc-screen h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-charcoal);
}

.uc-screen p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

.uc-screen__placeholder {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--color-cream, #F5F1E4);
    border-radius: 8px;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

@media (min-width: 640px) {
    .uc-platform__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Related Section ---- */
.uc-related {
    padding: var(--space-12) 0;
}

.uc-related__block {
    margin-bottom: var(--space-8);
}

.uc-related__block h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.uc-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.uc-related__links .seo-related__link {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    background: var(--color-cream-light, #FAF8F2);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: border-color var(--duration-fast) ease,
                color var(--duration-fast) ease;
}

.uc-related__links .seo-related__link:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}
/* ===================================
   Footer
   =================================== */

.footer {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(8, 145, 178, 0.04) 0%, transparent 50%),
        var(--color-charcoal);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--neutral-700);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand .logo-icon {
    height: 40px;
}

.footer-brand p {
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-20);
}

.footer-column h4 {
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--neutral-500);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    transition: color var(--duration-fast) ease;
}

.footer-column a:hover {
    color: var(--color-cream);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    color: var(--neutral-500);
    transition: color var(--duration-fast) ease;
}

.social-links a:hover {
    color: var(--color-teal-light);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-700);
    text-align: center;
}

.footer-bottom p {
    color: var(--neutral-500);
    font-size: var(--text-sm);
}

/* ---- Footer Responsive ---- */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-12);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-10);
    }
}
/* ===================================
   Animation Classes — Scroll + Transitions
   =================================== */

/* Entrance animation states (before GSAP reveals) */
[data-anim] {
    opacity: 0;
    will-change: transform, opacity;
}

[data-anim="fade-up"] {
    transform: translateY(40px);
}

[data-anim="fade-in"] {
    transform: none;
}

[data-anim="fade-left"] {
    transform: translateX(-40px);
}

[data-anim="fade-right"] {
    transform: translateX(40px);
}

/* Revealed state (set by GSAP) */
[data-anim].is-visible {
    opacity: 1;
    transform: none;
}

/* Parallax transition zones */
.parallax-transition {
    position: relative;
}

/* Micro-interactions (CSS-only) */
.btn {
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                padding var(--duration-normal) var(--ease-out);
}

.card,
.pricing-card {
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

/* Accordion animation placeholder — GSAP handles height */
.accordion-content {
    overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1;
        transform: none;
    }

    .btn,
    .card,
    .pricing-card {
        transition: none;
    }

    .wa-anim-msg,
    .wa-anim-gap,
    .wa-anim-alert,
    .wa-anim-tag,
    .wa-anim-analysis,
    .wa-anim-analysis-item,
    .hero-wa__msg,
    .hero-wa__gap,
    .hero-wa__alert {
        opacity: 1;
        transform: none;
    }

    .wa-typing {
        display: none;
    }

    .wa-bubble--hidden {
        max-height: none;
        opacity: 1;
        padding-top: revert;
        padding-bottom: revert;
        margin: revert;
        overflow: visible;
    }

    /* Hero floating cards — show immediately, no parallax */
    .hero-float {
        opacity: 1;
        transform: none !important;
    }

    /* Dashboard — show immediately */
    .dashboard-reveal {
        opacity: 1;
    }

    .dashboard-window,
    [data-dash-el],
    .dashboard-chart,
    .dashboard-insight,
    .dashboard-charts-row {
        opacity: 1;
        transform: none;
    }

    /* Feature cards — always expanded */
    .feature-card__description {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }

    .feature-card {
        transition: none;
    }

    .avatar--bird {
        animation: none;
    }
}
/* ===================================
   Product Showcase — "Veja na prática"
   Scroll-triggered pinned product demo
   =================================== */

/* ---- Section Container ---- */
.product-showcase {
    background: var(--color-cream);
    padding: 0;
    overflow: visible; /* override .act overflow:hidden — required for sticky */
}

/* Desktop: section needs extra height so the sticky element has scroll room */
@media (min-width: 1025px) {
    .product-showcase {
        height: 250vh; /* 100vh viewport + 150vh scroll distance */
    }

    .product-showcase > .container {
        height: 100%;
    }
}

/* Sticky wrapper — fills viewport and centers content */
.product-showcase__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1025px) {
    .product-showcase__pin {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.product-showcase__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.product-showcase__header h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.product-showcase__header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* ---- Two-Column Pinned Layout ---- */
.product-showcase__body {
    display: flex;
    gap: var(--space-12);
    align-items: flex-start;
    max-width: 1080px;
    margin: 0 auto;
}

/* ---- Left: Feature Labels ---- */
.product-showcase__features {
    width: 260px;
    flex-shrink: 0;
    padding-top: var(--space-4);
}

.product-showcase__feature {
    padding-left: var(--space-5);
    margin-bottom: var(--space-8);
    border-left: 3px solid var(--neutral-200);
    transition: border-color var(--duration-normal) var(--ease-out);
}

.product-showcase__feature-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--neutral-400);
    letter-spacing: var(--tracking-tight);
    transition: color var(--duration-normal) var(--ease-out),
                font-weight var(--duration-normal) var(--ease-out);
}

.product-showcase__feature-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
    margin-top: var(--space-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--duration-normal) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out),
                margin-top var(--duration-normal) var(--ease-out);
}

/* Active state */
.product-showcase__feature--active {
    border-left-color: var(--color-teal);
}

.product-showcase__feature--active .product-showcase__feature-title {
    color: var(--color-charcoal);
    font-weight: 700;
}

.product-showcase__feature--active .product-showcase__feature-desc {
    max-height: 80px;
    opacity: 1;
}

/* ---- Right: App Mockup Window ---- */
.product-showcase__mockup {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Chrome: Top bar */
.ps-chrome-header {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.ps-chrome-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ps-chrome-logo__icon {
    width: 26px;
    height: 26px;
    background: var(--color-teal);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.ps-chrome-logo__text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-charcoal);
}

.ps-chrome-search {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 var(--space-8);
}

.ps-chrome-search__input {
    background: var(--neutral-100);
    border-radius: var(--radius-sm);
    padding: 5px 16px;
    font-size: 12px;
    color: var(--neutral-400);
    min-width: 160px;
    text-align: center;
}

.ps-chrome-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--neutral-200);
    flex-shrink: 0;
}

/* Chrome: Body with sidebar */
.ps-chrome-body {
    display: flex;
    min-height: 420px;
}

/* Chrome: Sidebar */
.ps-chrome-sidebar {
    width: 160px;
    flex-shrink: 0;
    background: var(--neutral-50);
    border-right: 1px solid var(--neutral-200);
    padding: var(--space-3) 0;
}

.ps-chrome-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 12px;
    color: var(--neutral-500);
    transition: color var(--duration-fast), background var(--duration-fast);
}

.ps-chrome-nav-item--active {
    color: var(--color-teal);
    font-weight: 600;
    background: var(--color-teal-bg);
    border-radius: var(--radius-sm);
    margin: 0 8px;
    padding: 7px 8px;
}

.ps-chrome-nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.ps-chrome-nav-item--active .ps-chrome-nav-icon {
    opacity: 1;
}

/* Chrome: Content area */
.ps-chrome-content {
    flex: 1;
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}

/* ---- Screen Panels (one per feature) ---- */
.ps-screen {
    position: absolute;
    inset: 0;
    padding: var(--space-5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ps-screen--active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* ---- Screen 1: Relatórios ---- */
.ps-screen__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-4);
}

/* Score area chart card */
.ps-chart-card {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.ps-chart-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.ps-chart-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.ps-chart-card__legend {
    display: flex;
    gap: var(--space-3);
    font-size: 10px;
    color: var(--neutral-500);
}

.ps-chart-card__legend-dot {
    display: inline-block;
    width: 8px;
    height: 2px;
    border-radius: 1px;
    margin-right: 4px;
    vertical-align: middle;
}

.ps-chart-card__legend-dot--teal {
    background: var(--color-teal);
}

.ps-chart-card__legend-dot--dark {
    background: var(--color-charcoal);
}

/* SVG chart container */
.ps-area-chart {
    width: 100%;
    height: 80px;
    display: block;
}

.ps-area-chart__line {
    fill: none;
    stroke: var(--color-teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-area-chart__fill {
    fill: url(#ps-area-gradient);
    opacity: 0;
}

.ps-area-chart__baseline {
    fill: none;
    stroke: var(--color-charcoal);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    opacity: 0.3;
}

/* AI insight banner */
.ps-ai-insight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px var(--space-3);
    background: rgba(8, 145, 178, 0.06);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
    font-size: 11px;
    color: var(--neutral-600);
    line-height: 1.5;
}

.ps-ai-insight__icon {
    flex-shrink: 0;
    font-size: 12px;
}

/* Two-column charts row */
.ps-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

/* Bar chart */
.ps-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    padding-top: var(--space-2);
}

.ps-bar-chart__group {
    flex: 1;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 100%;
}

.ps-bar-chart__bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
}

.ps-bar-chart__bar--primary {
    background: var(--color-teal);
}

.ps-bar-chart__bar--secondary {
    background: var(--color-teal-light);
    opacity: 0.4;
}

/* Stacked bar chart (sentiment) */
.ps-stacked-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: flex-end;
    height: 100%;
}

.ps-stacked-bar__segment {
    border-radius: 2px;
    transform-origin: bottom;
    transform: scaleY(0);
}

.ps-stacked-bar__segment--positive {
    background: #10B981;
}

.ps-stacked-bar__segment--neutral {
    background: #F59E0B;
}

.ps-stacked-bar__segment--negative {
    background: #EF4444;
}

/* ---- Screen 2: Análise da Conversa ---- */

/* KPI strip */
.ps-kpi-strip {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.ps-kpi-mini {
    flex: 1;
    background: var(--neutral-50);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.ps-kpi-mini__label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.ps-kpi-mini__value {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.2;
}

.ps-kpi-mini__value--teal {
    color: var(--color-teal);
}

.ps-kpi-mini__value--amber {
    color: var(--color-amber);
}

.ps-kpi-mini__value--danger {
    color: var(--color-danger);
}

/* Radar + response time row */
.ps-analysis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.ps-analysis-card {
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.ps-analysis-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-3);
}

/* Radar chart */
.ps-radar-chart {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.ps-radar-chart__grid {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 1;
}

.ps-radar-chart__axis {
    stroke: var(--neutral-200);
    stroke-width: 0.5;
}

.ps-radar-chart__shape {
    fill: rgba(8, 145, 178, 0.15);
    stroke: var(--color-teal);
    stroke-width: 1.5;
    transform-origin: center;
    transform: scale(0);
}

.ps-radar-chart__dot {
    fill: var(--color-teal);
    r: 3;
    transform-origin: center;
    transform: scale(0);
}

.ps-radar-chart__label {
    font-size: 9px;
    fill: var(--neutral-500);
    text-anchor: middle;
}

/* Response time metrics */
.ps-response-metric {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ps-response-metric:last-child {
    margin-bottom: 0;
}

.ps-response-metric__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-teal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-teal);
    font-size: 14px;
}

.ps-response-metric__label {
    font-size: 11px;
    color: var(--neutral-500);
}

.ps-response-metric__value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.2;
}

/* Positive/negative cards */
.ps-feedback-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.ps-feedback-card {
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.ps-feedback-card--positive {
    background: rgba(16, 185, 129, 0.06);
}

.ps-feedback-card--negative {
    background: rgba(239, 68, 68, 0.06);
}

.ps-feedback-card__title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.ps-feedback-card__title--positive {
    color: #10B981;
}

.ps-feedback-card__title--negative {
    color: #EF4444;
}

.ps-feedback-card__item {
    font-size: 10px;
    color: var(--neutral-600);
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
    margin-bottom: 2px;
}

.ps-feedback-card__item::before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 9px;
}

.ps-feedback-card--positive .ps-feedback-card__item::before {
    content: '✓';
    color: #10B981;
}

.ps-feedback-card--negative .ps-feedback-card__item::before {
    content: '✕';
    color: #EF4444;
}

/* ---- Screen 3: Atendentes ---- */

/* Agent header */
.ps-agent-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ps-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--neutral-600);
}

.ps-agent-info {
    flex: 1;
}

.ps-agent-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-charcoal);
}

.ps-agent-meta {
    font-size: 11px;
    color: var(--neutral-500);
    margin-top: 2px;
}

.ps-agent-meta__score {
    color: var(--color-teal);
    font-weight: 600;
}

/* Period selector */
.ps-period-selector {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    flex-shrink: 0;
}

.ps-period-pill {
    padding: 4px 12px;
    font-size: 11px;
    color: var(--neutral-500);
    background: transparent;
}

.ps-period-pill--active {
    background: var(--color-teal);
    color: var(--white);
    font-weight: 600;
}

/* Tabs */
.ps-tabs {
    display: flex;
    gap: var(--space-5);
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: var(--space-4);
    padding-bottom: 0;
}

.ps-tab {
    font-size: 12px;
    color: var(--neutral-400);
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.ps-tab--active {
    color: var(--color-charcoal);
    font-weight: 600;
    border-bottom-color: var(--color-charcoal);
}

.ps-tab--disabled {
    color: var(--neutral-300);
}

/* KPI cards row */
.ps-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.ps-kpi-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 12px;
}

.ps-kpi-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.ps-kpi-card__label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--neutral-500);
}

.ps-ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--color-teal-bg);
    color: var(--color-teal);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.ps-kpi-card__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-2);
}

.ps-kpi-card__value--teal {
    color: var(--color-teal);
}

.ps-kpi-card__comparison {
    font-size: 10px;
    color: var(--neutral-500);
    line-height: 1.5;
}

.ps-kpi-card__comparison-up {
    color: #10B981;
}

.ps-kpi-card__comparison-down {
    color: #EF4444;
}

/* Insights section */
.ps-insights-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.ps-insights-header__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-charcoal);
}

.ps-insights-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.ps-insight-card {
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.ps-insight-card--strengths {
    background: rgba(16, 185, 129, 0.06);
}

.ps-insight-card--opportunities {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
}

.ps-insight-card__title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-2);
}

.ps-insight-card__title--strengths {
    color: #10B981;
}

.ps-insight-card__title--opportunities {
    color: var(--color-amber);
}

.ps-insight-card__text {
    font-size: 10px;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .ps-bar-chart__bar,
    .ps-stacked-bar__segment {
        transform: scaleY(1);
    }

    .ps-area-chart__fill {
        opacity: 1;
    }

    .ps-radar-chart__shape,
    .ps-radar-chart__dot {
        transform: scale(1);
    }

    .ps-screen {
        position: relative;
        opacity: 1;
        pointer-events: auto;
    }

    .product-showcase__feature-desc {
        max-height: 80px;
        opacity: 1;
    }
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .product-showcase__pin {
        min-height: auto;
    }

    /* Switch to vertical stacked layout, no pinning */
    .product-showcase__body {
        flex-direction: column;
        gap: 0;
    }

    .product-showcase__features {
        display: none;
    }

    /* Mobile: show all screens stacked */
    .product-showcase__mockup {
        box-shadow: none;
        background: none;
        border-radius: 0;
    }

    .ps-chrome-header {
        display: none;
    }

    .ps-chrome-body {
        flex-direction: column;
        min-height: auto;
    }

    .ps-chrome-sidebar {
        display: none;
    }

    .ps-chrome-content {
        padding: 0;
    }

    /* All screens visible and stacked */
    .ps-screen {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        margin-bottom: var(--space-12);
    }

    /* Mobile feature headers (shown only on mobile) */
    .ps-screen__mobile-header {
        display: block;
        margin-bottom: var(--space-4);
    }

    .ps-screen__mobile-title {
        font-family: var(--font-display);
        font-size: var(--text-2xl);
        font-weight: 700;
        color: var(--color-charcoal);
        letter-spacing: var(--tracking-tight);
        margin-bottom: var(--space-2);
    }

    .ps-screen__mobile-desc {
        font-size: var(--text-base);
        color: var(--color-text-muted);
    }

    /* Wrap each screen in a card on mobile */
    .ps-screen__content-wrap {
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: var(--space-5);
    }

    .ps-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ps-kpi-strip {
        flex-wrap: wrap;
    }

    .ps-kpi-mini {
        min-width: calc(50% - var(--space-2));
    }
}

@media (min-width: 1025px) {
    .ps-screen__mobile-header {
        display: none;
    }
}

@media (max-width: 480px) {
    .ps-kpi-row {
        grid-template-columns: 1fr 1fr;
    }

    .ps-analysis-row {
        grid-template-columns: 1fr;
    }

    .ps-feedback-row {
        grid-template-columns: 1fr;
    }

    .ps-insights-row {
        grid-template-columns: 1fr;
    }

    .ps-kpi-strip {
        flex-direction: column;
    }

    .ps-kpi-mini {
        min-width: 100%;
    }
}
