/* =========================================================================
   Base Variables & Typography
   ========================================================================= */
:root {
    /* Color Palette - Warm Retro & Playful */
    --bg-color: #F8F5F0;       /* Warm off-white / Beige */
    --text-main: #2D2C2A;      /* Soft Charcoal */
    --text-muted: #64615E;     
    --color-sage: #B4CDB0;     /* Calm Green */
    --color-sage-dark: #92AA8E;
    --color-terracotta: #E88D72; /* Warm Orange/Red */
    --color-yellow: #F6D673;   /* Playful Yellow */
    --color-lavender: #C4B9D6; /* Soft Purple */
    --color-beige: #EFE9DF;    /* Slightly darker beige for cards */
    --color-white: #FFFFFF;

    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Styling */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 12px 40px rgba(45, 44, 42, 0.06);
    --shadow-hover: 0 20px 50px rgba(45, 44, 42, 0.1);
    
    --transition-snappy: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-width: 1024px;
    overflow-x: auto;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-sans);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.playfair {
    font-family: var(--font-serif);
    font-weight: 600;
}
.italic {
    font-style: italic;
}
.text-white {
    color: var(--color-white) !important;
}

.tiro-brand {
    font-family: var(--font-serif);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.02em;
    padding-right: 0.1em;
}

/* =========================================================================
   Components (Buttons, Badges)
   ========================================================================= */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(45, 44, 42, 0.15);
}

.btn-primary:hover {
    background-color: #1a1a19;
    box-shadow: 0 12px 25px rgba(45, 44, 42, 0.25);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--text-main);
    border: 1.5px solid rgba(45, 44, 42, 0.1);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--color-white);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1rem 2.25rem;
}

.bubble {
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}

/* =========================================================================
   Layout & Sections
   ========================================================================= */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Top Banner */
.top-banner {
    background-color: var(--text-main);
    color: var(--color-white);
    text-align: center;
    padding: 0.6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-download-sm {
    background-color: #ebd4ff; /* Light purple based on user image */
    color: var(--text-main);
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    box-shadow: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-download-sm:hover {
    background-color: #debeff;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem 0.6rem 1.25rem;
    position: relative;
    z-index: 100;
    max-width: 820px;
    margin: 1.5rem auto 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tiro-avatar {
    width: 24px;
    height: 24px;
}

.logo-sparkle {
    font-size: 1rem;
    color: #F8BC52;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: rgba(0,0,0,0.03);
}

.nav-links a.active {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

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

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(0,0,0,0.1);
    margin: 0 0.5rem;
}

.nav-download-btn {
    background-color: #F8E0FB; /* Light purple match from reference */
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.nav-download-btn:hover {
    background-color: #E8CCEF;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.highlight-word {
    color: var(--color-terracotta);
    position: relative;
    display: inline-block;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(232, 141, 114, 0.2);
    border-radius: 4px;
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255,255,255,0.8);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.recording-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pulse-ring {
    width: 12px;
    height: 12px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(232, 141, 114, 0.7);
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 15px rgba(232, 141, 114, 0);
    }
}

.transcription-preview {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-main);
    line-height: 1.4;
}

.floating-badge {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.badge-speed {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
    background-color: var(--color-yellow);
    border-color: transparent;
}

.badge-emotion {
    bottom: 15%;
    left: -5%;
    animation-delay: 2s;
    background-color: var(--color-sage);
    border-color: transparent;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* =========================================================================
   Workflow Section
   ========================================================================= */
.workflow-section {
    padding-top: 2rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; /* Reduced gap slightly to fit 4 distinct steps natively */
}

.workflow-step {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition-bounce);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workflow-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.workflow-visual {
    height: 240px;
    background: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.visual-theme-picker { 
    background: linear-gradient(135deg, #F0F6EF 0%, #E1EBE0 100%);
    animation: themeBgLoop 9s infinite;
}

@keyframes themeBgLoop {
    /* Sage phase */
    0%, 28% { background: linear-gradient(135deg, #F0F6EF 0%, #E1EBE0 100%); }
    /* Black/Neutral phase */
    33%, 61% { background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%); }
    /* Lavender phase */
    66%, 94% { background: linear-gradient(135deg, #F7F4FA 0%, #EFEBF5 100%); }
    /* Back to Sage */
    100% { background: linear-gradient(135deg, #F0F6EF 0%, #E1EBE0 100%); }
}

.visual-keyboard { background: linear-gradient(135deg, #FAF4EF 0%, #F3EBE1 100%); }
.visual-soundwave { background: linear-gradient(135deg, #F8FAEF 0%, #EDF3D9 100%); }
.visual-editor { background: linear-gradient(135deg, #F7F4FA 0%, #EFEBF5 100%); }

.workflow-text {
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--color-white);
}

.step-num-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Theme Picker Visual */
.theme-bubbles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.tbubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.t-sage { background: var(--color-sage); animation: dotScale1 9s infinite; }
.t-black { background: var(--text-main); animation: dotScale2 9s infinite; }
.t-lavender { background: var(--color-lavender); animation: dotScale3 9s infinite; }

@keyframes dotScale1 {
    0%, 28% { transform: scale(1.3); box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 2px solid white; }
    33%, 100% { transform: scale(1); box-shadow: none; border: none; }
}
@keyframes dotScale2 {
    0%, 28% { transform: scale(1); box-shadow: none; border: none; }
    33%, 61% { transform: scale(1.3); box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 2px solid white; }
    66%, 100% { transform: scale(1); box-shadow: none; border: none; }
}
@keyframes dotScale3 {
    0%, 61% { transform: scale(1); box-shadow: none; border: none; }
    66%, 94% { transform: scale(1.3); box-shadow: 0 4px 12px rgba(0,0,0,0.15); border: 2px solid white; }
    100% { transform: scale(1); box-shadow: none; border: none; }
}

/* Keyboard Visual */
.kb-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.kb-key {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05), inset 0 -2px 0 rgba(0,0,0,0.02);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
}
.kb-key-sm { width: 44px; height: 44px; font-size: 1rem; }
.kb-key-lg { width: 90px; height: 44px; font-size: 0.9rem; justify-content: flex-start; padding-left: 10px; }
.kb-key-xl { width: 60px; height: 60px; font-size: 1.5rem; }
.kb-key-fn {
    color: var(--color-terracotta);
    border: 2px solid rgba(232, 141, 114, 0.2);
    box-shadow: 0 8px 16px rgba(232, 141, 114, 0.15), inset 0 -3px 0 rgba(0,0,0,0.02);
    transform: translateY(-2px);
}
.mouse-pointer {
    position: absolute;
    bottom: 40px;
    left: 100px;
    animation: moveMouse 3s infinite ease-in-out;
}
@keyframes moveMouse {
    0% { transform: translate(10px, 20px); }
    50% { transform: translate(0, 0); }
    100% { transform: translate(10px, 20px); }
}

/* Soundwave Visual */
.mic-pill {
    background: white;
    padding: 1rem 1.75rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.mic-pill {
    background: white;
    padding: 1rem 1.75rem;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 10;
}
.mic-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-sage-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Floating Capsules */
.floating-mini-capsule {
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    z-index: 2;
}
.mini-cap-passion { 
    top: 30px; left: 40px; 
    animation: pulseHeart 1.5s ease-in-out infinite; 
}
.mini-cap-energy { 
    top: 60px; right: 30px; 
    animation: floatMini 3s ease-in-out infinite; 
}
.mini-cap-sad { 
    bottom: 40px; left: 60px; 
    animation: floatSad 4s ease-in-out infinite; 
}

@keyframes floatMini {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes floatSad {
    0% { transform: translateY(0); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}
.sound-bars {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
}
.sound-bars i {
    width: 4px;
    background: var(--text-main);
    border-radius: 2px;
    animation: bounceBar 1.2s infinite ease-in-out alternate;
}
.sound-bars i:nth-child(2) { animation-delay: 0.1s; }
.sound-bars i:nth-child(3) { animation-delay: 0.2s; }
.sound-bars i:nth-child(4) { animation-delay: 0.3s; }
.sound-bars i:nth-child(5) { animation-delay: 0.4s; }
.sound-bars i:nth-child(6) { animation-delay: 0.5s; }
.sound-bars i.faded { background: #E0E0E0; height: 6px; animation: none; }
@keyframes bounceBar {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

/* Editor Visual */
.editor-window {
    background: white;
    width: 85%;
    height: 140px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.editor-toolbar {
    border-bottom: 1px solid #F0F0F0;
    padding: 0.4rem 1rem;
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.editor-body {
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    flex-grow: 1;
    line-height: 1.5;
}
.editor-body strong { color: black; }
.editor-footer {
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.editor-footer .tag {
    font-size: 0.65rem;
    background: rgba(196, 185, 214, 0.2);
    color: var(--text-main);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.editor-footer .send-btn {
    color: var(--color-terracotta);
    font-size: 1rem;
}

@media (max-width: 1px) { /* disabled 1024px */
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1px) { /* disabled 600px */
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1px) { /* disabled 768px */
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Features Section
   ========================================================================= */
.features-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2rem;
}

.feature-card {
    border-radius: var(--radius-md);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.02);
}

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

.wide-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 1px) { /* disabled 1024px */
    .wide-card {
        grid-template-columns: 1fr;
    }
}

.color-sage { background-color: var(--color-sage); }
.color-terracotta { background-color: var(--color-terracotta); color: white;}
.color-yellow { background-color: var(--color-yellow); }
.color-lavender { background-color: var(--color-lavender); }
.color-beige { background-color: var(--color-beige); }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.feature-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Interactive Demos / Visuals for Cards */
.racing-visual {
    background: rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.cursor-track {
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.cursor-track .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    left: 1rem;
    z-index: 2;
}

.cursor {
    position: absolute;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-terracotta);
    animation: blink 1s step-end infinite;
}

.human-cursor { left: 80px; transition: left 1s; }
.ai-cursor { left: 90px; color: var(--color-sage-dark); transition: left 0.2s; }

/* Interactive Emotion Demo */
.interactive-demo {
    margin-top: 1.5rem;
}

.emotion-toggles {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.emotion-btn {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.emotion-btn:hover {
    background: #f0f0f0;
}

.emotion-btn.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.demo-output-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    font-family: var(--font-body);
    font-size: 1.1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
}

#demo-text {
    margin-bottom: 0;
}

.blinking-cursor {
    font-weight: 800;
    color: var(--color-terracotta);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Emotion Capsules 2x2 Grid */
.emotion-capsules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
}

.capsule-item {
    background: rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
}

.capsule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.capsule-face {
    font-size: 2rem;
    line-height: 1;
}

.capsule-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.capsule-wave {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 24px;
}

.capsule-wave span {
    display: block;
    width: 4px;
    border-radius: 2px;
    animation: capsuleWave 1.2s ease-in-out infinite;
}

/* Happy – warm terracotta */
.capsule-angry .capsule-wave span { background: var(--color-terracotta); }
.capsule-angry .capsule-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.capsule-angry .capsule-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.capsule-angry .capsule-wave span:nth-child(3) { height: 22px; animation-delay: 0.3s; }
.capsule-angry .capsule-wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.capsule-angry .capsule-wave span:nth-child(5) { height: 10px; animation-delay: 0.6s; }

/* Calm – sage green */
.capsule-calm .capsule-wave span { background: var(--color-sage); }
.capsule-calm .capsule-wave span:nth-child(1) { height: 6px; animation-delay: 0s; animation-duration: 2s; }
.capsule-calm .capsule-wave span:nth-child(2) { height: 10px; animation-delay: 0.25s; animation-duration: 2s; }
.capsule-calm .capsule-wave span:nth-child(3) { height: 8px; animation-delay: 0.5s; animation-duration: 2s; }
.capsule-calm .capsule-wave span:nth-child(4) { height: 12px; animation-delay: 0.75s; animation-duration: 2s; }
.capsule-calm .capsule-wave span:nth-child(5) { height: 7px; animation-delay: 1s; animation-duration: 2s; }

/* Excited – golden yellow */
.capsule-excited .capsule-wave span { background: var(--color-yellow); }
.capsule-excited .capsule-wave span:nth-child(1) { height: 14px; animation-delay: 0s; animation-duration: 0.6s; }
.capsule-excited .capsule-wave span:nth-child(2) { height: 22px; animation-delay: 0.08s; animation-duration: 0.6s; }
.capsule-excited .capsule-wave span:nth-child(3) { height: 18px; animation-delay: 0.16s; animation-duration: 0.6s; }
.capsule-excited .capsule-wave span:nth-child(4) { height: 24px; animation-delay: 0.24s; animation-duration: 0.6s; }
.capsule-excited .capsule-wave span:nth-child(5) { height: 16px; animation-delay: 0.32s; animation-duration: 0.6s; }

/* Focused – lavender */
.capsule-down .capsule-wave span { background: var(--color-lavender); }
.capsule-down .capsule-wave span:nth-child(1) { height: 10px; animation-delay: 0s; animation-duration: 1.5s; }
.capsule-down .capsule-wave span:nth-child(2) { height: 10px; animation-delay: 0.2s; animation-duration: 1.5s; }
.capsule-down .capsule-wave span:nth-child(3) { height: 18px; animation-delay: 0.4s; animation-duration: 1.5s; }
.capsule-down .capsule-wave span:nth-child(4) { height: 10px; animation-delay: 0.6s; animation-duration: 1.5s; }
.capsule-down .capsule-wave span:nth-child(5) { height: 10px; animation-delay: 0.8s; animation-duration: 1.5s; }

@keyframes capsuleWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

/* =========================================================================
   Vision / Roadmap Section
   ========================================================================= */
.vision-section {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    width: 90%;
    max-width: 1400px;
    padding: 5rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.vision-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.vision-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.vision-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.roadmap-item {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-color);
    transition: transform 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-5px);
    background: var(--color-beige);
}

.roadmap-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.roadmap-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.coming-soon-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--color-lavender);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    transform: rotate(3deg);
}

/* =========================================================================
   Pricing Section
   ========================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.pricing-card {
    background: transparent;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.pricing-card.popular {
    background: #fff;
    border: 2px solid var(--text-main);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Comparison Table */
.comparison-section {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.95rem;
    vertical-align: top;
    color: var(--text-main);
}

.comparison-table .category-header td {
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08); /* line directly below headers */
}

.comparison-table .feature-name {
    font-weight: 500;
}

.comparison-table tr:last-child td {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}


.pro-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: var(--color-white);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.plan-price span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.feature-list .check {
    color: var(--color-sage-dark);
    font-weight: 800;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1px) { /* disabled 1024px */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .pricing-card.pro-card {
        transform: scale(1);
    }
    
    .pricing-card.pro-card:hover {
        transform: translateY(-10px);
    }
}

/* =========================================================================
   Bottom CTA
   ========================================================================= */
.cta-section {
    padding: 4rem 5% 2rem;
}

.cta-box {
    text-align: center;
    padding: 6rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-cta {
    font-size: 1.25rem;
    padding: 1.2rem 3rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    padding: 4rem 5%;
    margin-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-contact a {
    color: var(--color-terracotta);
    text-decoration: none;
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media (max-width: 1px) { /* disabled 1024px */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .badge-emotion {
        left: 5%;
    }
    .vision-container {
        grid-template-columns: 1fr;
    }
    .top-banner {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 1px) { /* disabled 768px */
    .features-grid {
        grid-template-columns: 1fr;
    }
    .wide-card, .feature-card {
        grid-column: span 1;
    }
    .hero-title {
        font-size: 3rem;
    }
    .section-header h2 {
        font-size: 2.5rem;
    }
    .vision-section {
        padding: 3rem 2rem;
        margin: 2rem 5%;
    }
    .footer-content {
        flex-direction: column;
    }
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
}
