/* ============================================================
   TRYIO — Color overrides & new components
   Inherits base layout from ../styles.css
   ============================================================ */

/* ===== COLOR PALETTE OVERRIDE ===== */
:root {
    --primary: #10b981;
    --primary-2: #06b6d4;
    --primary-hover: #059669;
}

/* Logo gradient */
.logo {
    background: linear-gradient(to right, #10b981, #06b6d4) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #0891b2);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-testflight {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
}

.btn-testflight:hover {
    background: linear-gradient(135deg, #059669, #0891b2) !important;
}

/* Theme toggle hover */
.theme-toggle:hover {
    background: #10b981;
    border-color: #10b981;
}

/* Hero bg glow */
.hero-bg-overlay {
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.07) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

/* Manifesto highlight */
.manifesto-lines p.highlight {
    color: #10b981;
}

/* Teaser glow */
.teaser-typing {
    text-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

/* ===== HERO — COACH CARD ===== */
.hero-container {
    align-items: center;
    gap: 3rem;
}

.hero-coach-card {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    margin-right: -40px;
    z-index: 2;
}

.coach-phone {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 22px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.4s ease;
}

.coach-phone:hover {
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) scale(1.01);
}

/* Header */
.coach-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.coach-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.coach-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coach-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.coach-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.coach-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.coach-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Messages */
.coach-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.msg {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.82rem;
    line-height: 1.45;
    max-width: 88%;
    opacity: 0;
    animation: msgIn 0.4s ease forwards;
}

.msg-coach {
    background: var(--border-color);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

[data-theme="light"] .msg-coach {
    background: #f0f0f5;
}

.msg-user {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.feedback-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 6px;
    opacity: 0;
    animation: msgIn 0.4s ease forwards;
}

.feedback-chip.good {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.feedback-chip.great {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Staggered animation delays */
.anim-1 { animation-delay: 0.3s; }
.anim-2 { animation-delay: 0.9s; }
.anim-3 { animation-delay: 1.4s; }
.anim-4 { animation-delay: 2.0s; }
.anim-5 { animation-delay: 2.7s; }
.anim-6 { animation-delay: 3.2s; }
.anim-7 { animation-delay: 3.7s; }

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
    background: var(--border-color);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
    align-self: flex-start;
    opacity: 0;
    animation: msgIn 0.4s ease forwards;
}

[data-theme="light"] .typing-indicator {
    background: #f0f0f5;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* Input bar */
.coach-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--border-color);
    border-radius: 24px;
    padding: 10px 12px 10px 16px;
}

[data-theme="light"] .coach-input-bar {
    background: #f0f0f5;
}

.coach-input-bar span {
    flex: 1;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.coach-input-bar button {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coach-input-bar button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Floating pills */
.float-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: floatPill 3s ease-in-out infinite;
}

[data-theme="light"] .float-pill {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pill-1 {
    top: -18px;
    right: -20px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
    animation-delay: 0s;
}

.pill-2 {
    bottom: 30px;
    left: -30px;
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.25);
    animation-delay: 1.5s;
}

.float-pill i {
    font-size: 0.85rem;
}

@keyframes floatPill {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 840px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== FEATURES — icon wraps ===== */
.what-if .section-title h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 8rem 0;
}

.how-it-works .section-title h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
}

.step-number {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-connector {
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, #10b981, #06b6d4);
    flex-shrink: 0;
    opacity: 0.35;
    border-radius: 2px;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-coach-card {
        width: 280px;
        margin-right: -20px;
    }
}

/* Small tablet */
@media (max-width: 860px) {
    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .hero-coach-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        align-self: center;
    }

    .coach-phone {
        transform: none;
    }

    .pill-1 {
        right: -10px;
    }

    .pill-2 {
        left: -10px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        width: 2px;
        height: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-coach-card {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        width: 2px;
        height: 20px;
    }

    .step {
        width: 100%;
        padding: 1.5rem;
    }

    .how-it-works {
        padding: 5rem 0;
    }

    .feature-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Small phone */
@media (max-width: 400px) {
    .stats-grid {
        gap: 0.75rem;
    }
}
