:root {
    --ink: #1a1e21;
    --ink-muted: #5e666b;
    --paper: #fdfbf7;
    --paper-overlay: rgba(255, 255, 255, 0.7);
    --accent: #e04f24;
    --accent-hover: #c63d15;
    --accent-secondary: #0f5c4e;
    --stroke: #e6e0d6;
    --stroke-strong: #d1c7b8;
    --surface: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.6);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.03);
    --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
    --font-body: "Newsreader", Georgia, serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(at 100% 0%, rgba(224, 79, 36, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(15, 92, 78, 0.08) 0px, transparent 50%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    overflow-wrap: break-word;
    /* Prevent overflow */
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--ink);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

p {
    font-size: 1.125rem;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Layout */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 6rem;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Contain floats/margins */
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(224, 79, 36, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 79, 36, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--stroke-strong);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--ink);
}

/* Header */
header {
    position: relative;
    /* For mobile menu positioning */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    padding: 0.5rem;
    order: 1;
    /* Ensure it stays near logo if needed */
}



.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
}

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

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-width: 0;
    /* Prevent grid blowout */
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.tag-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(224, 79, 36, 0.1);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.trust-card {
    background: var(--surface-translucent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--stroke);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
    max-width: 100%;
    /* Ensure it fits */
}

.trust-card:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Sections */
section {
    margin-bottom: 8rem;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly smaller minmax */
    gap: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--stroke-strong);
    transform: translateY(-4px);
}

/* Form & Steps Container */
.form-container,
.steps-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Default desktop */
    gap: 4rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--stroke);
}

/* Specific override for Steps Container to match previous inline styles */
.steps-container {
    background: transparent;
    box-shadow: none;
    border: none;
    grid-template-columns: 1fr 1fr;
}

.form-main {
    padding: 3rem;
    min-width: 0;
    /* Prevent grid blowout */
}

.form-sidebar {
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF5EF 100%);
    padding: 3rem;
    border-left: 1px solid var(--stroke);
    min-width: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--ink);
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--stroke-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 79, 36, 0.1);
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Steps */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    background: rgba(15, 92, 78, 0.1);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.steps-sidebar-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--stroke);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.steps-sidebar-card:hover {
    transform: rotate(0deg);
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--stroke);
    color: var(--ink-muted);
    font-size: 0.9rem;
    width: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Media Queries */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-container,
    .steps-container {
        grid-template-columns: 1fr;
        /* Force 1 column on tablets/mobile */
        gap: 2rem;
    }

    .form-sidebar {
        border-left: none;
        border-top: 1px solid var(--stroke);
    }

    .steps-container .form-sidebar {
        border: 1px solid var(--stroke);
        /* Add border back for steps card on mobile */
        border-radius: var(--radius-lg);
    }

    .steps-sidebar-card {
        transform: none;
        /* Disable rotation on mobile/tablet */
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .page-wrapper {
        padding: 1.5rem 1rem 4rem;
        /* Reduce padding */
    }

    header {
        padding-bottom: 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        gap: 1.5rem;
        align-items: center;
        border-bottom: 1px solid var(--stroke);
        border-radius: 0 0 16px 16px;
    }

    .btn {
        width: 100%;
    }

    /* Hide Header CTA on mobile to fit Logo + Hamburger on one line */
    header .btn {
        display: none;
    }

    header {
        flex-wrap: nowrap;
        padding-bottom: 1rem;
    }

    .form-main,
    .form-sidebar {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    /* Make sure step items wrap if needed or scale down */
    .step-item {
        gap: 1rem;
    }
}

/* Sticky Bottom CTA for Mobile */
.sticky-cta {
    display: none;
    /* Hidden by default on desktop */
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 1000;
    width: calc(100% - 2rem);
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 0.75rem 0.75rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
    justify-content: space-between;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.show {
    transform: translateX(-50%) translateY(0);
}

.sticky-cta-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

@media (max-width: 768px) {
    .sticky-cta {
        display: flex;
        /* Activate flex layout on mobile */
    }
}

/* Notification Stack Styles */
.notification-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.3s ease;
    position: relative;
}

.notification-item:hover {
    transform: scale(1.02) translateY(-2px);
    z-index: 10;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-content strong {
    display: block;
    font-family: var(--font-display);
    margin-bottom: 2px;
    color: var(--ink);
}

.notif-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Variants */
.notification-item.error .notif-icon {
    background: #fee2e2;
    color: #dc2626;
}

.notification-item.warning .notif-icon {
    background: #fef3c7;
    color: #d97706;
}

.notification-item.success .notif-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* Pulse Animation for Primary Button */
@keyframes pulse-subtle {
    0% {
        box-shadow: 0 4px 12px rgba(224, 79, 36, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(224, 79, 36, 0.5);
    }

    100% {
        box-shadow: 0 4px 12px rgba(224, 79, 36, 0.3);
    }
}


.btn-primary {
    animation: pulse-subtle 3s infinite ease-in-out;
}

/* Quick Start Hero Input */
.quick-start-wrap {
    margin-top: 2rem;
    max-width: 480px;
}

.input-group {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(224, 79, 36, 0.15), 0 0 0 2px var(--accent);
}

.input-group input {
    border: none;
    background: transparent;
    padding: 0 0 0 1.5rem;
    font-size: 1.05rem;
    box-shadow: none;
    width: 100%;
}

.input-group input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.input-group .btn {
    padding: 0.8rem 1.5rem;
    flex-shrink: 0;
}

.tiny-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    opacity: 0.8;
}

@media (max-width: 500px) {
    .input-group {
        flex-direction: column;
        padding: 1rem;
        border-radius: 16px;
        gap: 1rem;
    }

    .input-group input {
        padding: 0.5rem 0;
        text-align: center;
        border-bottom: 1px solid var(--stroke);
        border-radius: 0;
    }

    .input-group .btn {
        width: 100%;
    }
}

/* Pain Tags in Form */
.pain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pain-tag {
    background: var(--paper);
    border: 1px solid var(--stroke-strong);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-display);
}

.pain-tag:hover {
    background: white;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pain-tag.active {
    background: rgba(224, 79, 36, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Cost Chips */
.cost-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cost-tag {
    background: white;
    border: 2px solid var(--stroke);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex: 1;
    text-align: center;
    min-width: 120px;
}

.cost-tag:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.cost-tag.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(224, 79, 36, 0.4);
}

/* Live Activity Counter */
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 0.8rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Optional Field Label */
.optional-label {
    font-weight: 400;
    color: var(--ink-muted);
    font-size: 0.85em;
}

/* Quick Starters */
.quick-starters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.starter-btn {
    background: transparent;
    border: 1px dashed var(--stroke-strong);
    color: var(--ink-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.starter-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* Floating Animations for Notifications */
@keyframes float-chaos-1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes float-chaos-2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes float-chaos-3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.floating-1 {
    rotate: -1deg;
    /* Static rotation */
    animation: float-chaos-1 7s ease-in-out infinite;
    will-change: transform;
    /* Hardware acceleration */
}

.floating-2 {
    rotate: -0.5deg;
    /* Static rotation */
    animation: float-chaos-2 8s ease-in-out infinite;
    animation-delay: 0.3s;
    will-change: transform;
}

.floating-3 {
    rotate: -1deg;
    /* Static rotation */
    animation: float-chaos-3 7.5s ease-in-out infinite;
    animation-delay: 0.7s;
    will-change: transform;
}

/* Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid #fff;
    cursor: pointer;
    margin-top: -12px;
    box-shadow: 0 4px 10px rgba(224, 79, 36, 0.4);
    transition: transform 0.2s, background 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e2e8f0;
    /* Default neutral gray */
    border-radius: 99px;
    border: 1px solid var(--stroke-strong);
}

input[type=range]:focus {
    outline: none;
}

/* Firefox Support */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 99px;
    border: 1px solid var(--stroke-strong);
}

input[type=range]::-moz-range-thumb {
    height: 32px;
    width: 32px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(224, 79, 36, 0.4);
}

/* Utilities */
@media (max-width: 600px) {
    .hide-mobile {
        display: none;
    }
}

/* Swipe Pre-filter Styling */
.swipe-container {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    width: 100%;
    /* Use dynamic height for game feel */
    min-height: 600px;
    flex: 1;
}

.swipe-card-stack {
    position: relative;
    width: 420px;
    /* Bigger on desktop */
    height: 560px;
    /* Bigger on desktop */
    max-width: 90vw;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
    user-select: none;
    cursor: grab;
    transform-origin: 50% 100%;
    touch-action: none;
    /* Critical for touch drag */
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.swiping-left {
    transform: translateX(-150%) rotate(-20deg);
    opacity: 0;
}

.swipe-card.swiping-right {
    transform: translateX(150%) rotate(20deg);
    opacity: 0;
}

.swipe-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--ink);
    line-height: 1.3;
}

.swipe-card p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--ink-muted);
}

.swipe-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.swipe-controls {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
    z-index: 10;
}

.btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-no {
    color: #e04f24;
    border: 3px solid #e04f24;
}

.btn-yes {
    color: #0f5c4e;
    border: 3px solid #0f5c4e;
}

/* Specific Card Styles */
.welcome-card {
    z-index: 100;
    /* Always on top initially */
}

.welcome-card p {
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 2rem;
    line-height: 1.5;
    opacity: 0.8;
}

.welcome-card .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(224, 79, 36, 0.3);
    border-radius: 99px;
    animation: pulseWelcome 3s infinite;
}

@keyframes pulseWelcome {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(224, 79, 36, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(224, 79, 36, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(224, 79, 36, 0);
    }
}

@media(max-width: 600px) {
    .swipe-container {
        padding: 1rem 0;
        min-height: auto;
        height: 100%;
        /* Fill available space */
    }

    .swipe-card-stack {
        width: 85vw;
        height: 55vh;
        /* Proportional height */
        max-height: 500px;
    }

    .swipe-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .swipe-card h3 {
        font-size: 1.4rem;
    }

    .swipe-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .swipe-controls {
        gap: 2rem;
        margin-top: 2rem;
    }

    .btn-circle {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
}

.social-toast {
    position: fixed;
    bottom: 120px;
    /* Above controls */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 30, 33, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: var(--font-display);
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Skip Button */
#btn-skip {
    background: #f1f5f9;
    color: var(--ink-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

#btn-skip:hover {
    background: #e2e8f0;
    color: var(--ink);
    transform: translateY(-1px);
}

#btn-skip:active {
    transform: translateY(0);
}

/* Tutorial Demo Card Animation */
.tutorial-demo-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 180px;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
}

.swipe-container.tutorial-active .tutorial-demo-card {
    opacity: 1;
    animation: tutorialSwipeDemo 4s ease-in-out infinite;
}

.demo-card-inner {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.demo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.demo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}

.demo-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.demo-indicator-left {
    left: -50px;
}

.demo-indicator-right {
    right: -50px;
}

/* Keyframes for the tutorial demo */
@keyframes tutorialSwipeDemo {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Pause at center */
    10% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Swipe RIGHT - Green */
    20% {
        transform: translate(calc(-50% + 80px), -50%) rotate(8deg);
    }

    25% {
        transform: translate(calc(-50% + 80px), -50%) rotate(8deg);
    }

    /* Return to center */
    35% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Pause */
    45% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Swipe LEFT - Red */
    55% {
        transform: translate(calc(-50% - 80px), -50%) rotate(-8deg);
    }

    60% {
        transform: translate(calc(-50% - 80px), -50%) rotate(-8deg);
    }

    /* Return to center */
    70% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Rest */
    80% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Color tint sync with animation */
.swipe-container.tutorial-active .demo-card-inner {
    animation: tutorialColorTint 4s ease-in-out infinite;
}

@keyframes tutorialColorTint {

    0%,
    10%,
    35%,
    45%,
    70%,
    100% {
        background-color: white;
    }

    20%,
    25% {
        background-color: #d4edda;
        /* Green tint */
    }

    55%,
    60% {
        background-color: #f8d7da;
        /* Red tint */
    }
}

/* Show indicators during swipe */
.swipe-container.tutorial-active .demo-indicator-right {
    animation: showRightIndicator 4s ease-in-out infinite;
}

.swipe-container.tutorial-active .demo-indicator-left {
    animation: showLeftIndicator 4s ease-in-out infinite;
}

@keyframes showRightIndicator {

    0%,
    15%,
    30%,
    100% {
        opacity: 0;
    }

    20%,
    25% {
        opacity: 1;
    }
}

@keyframes showLeftIndicator {

    0%,
    50%,
    65%,
    100% {
        opacity: 0;
    }

    55%,
    60% {
        opacity: 1;
    }
}

/* Tutorial instruction on welcome card */
.tutorial-instruction {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink-muted);
}

.instruction-arrow {
    font-size: 1.5rem;
    opacity: 0.6;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.instruction-arrow-left {
    animation-delay: 0s;
}

.instruction-arrow-right {
    animation-delay: 0.75s;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(var(--arrow-offset, 5px));
    }
}

.instruction-arrow-left {
    --arrow-offset: -5px;
}

.instruction-arrow-right {
    --arrow-offset: 5px;
}

.instruction-text {
    font-size: 0.9rem;
}

/* Hide demo on mobile - simpler experience */
@media (max-width: 600px) {
    .tutorial-demo-card {
        display: none;
    }

    .tutorial-instruction {
        margin: 1rem 0;
    }
}