/* 
   Sparkatz Design System 2026 
   Colors: Yellow (#FDB913) + Anthracite (#1F2933)
   Theme: "Premium Local Hero" (Glassmorphism, Organic, Trust)
*/

:root {
    /* Brand Colors */
    --color-primary: #FDB913;
    /* Sparkatz Yellow */
    --color-primary-hover: #e5a70f;
    --color-dark: #1F2933;
    /* Deep Anthracite */
    --color-darkh: #020617;
    /* Darkest Slate/Black */
    --color-light: #F9FAFB;
    /* Background Light */
    --color-white: #FFFFFF;
    --color-gray: #6B7280;
    --color-gray-soft: #E5E7EB;

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Dark Glass */
    --glass-dark-bg: rgba(2, 6, 23, 0.6);
    --glass-dark-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    /* Increased for breathing room */
    --spacing-xl: 10rem;

    /* UI Tokens */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-pill: 999px;

    /* Shadows - Softer & Colored */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 25px rgba(253, 185, 19, 0.4);
    --shadow-card-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(253, 185, 19, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Removed height: 100% to allow body to grow with content */
}

/* Ensure main content expands if we wrap it, otherwise flex-direction column on body handles the stacking.
   But we need the footer to push down. */

.service-promise-grid {
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.local-card {
    background: #020617 !important;
    /* Force Dark Blue */
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glow effect removed as per user request ("sieht schmutzig aus") */
/* .local-card::before { ... } */

.remote-card {
    background: var(--color-white);
    position: relative;
}

.service-list li {
    font-size: 1.05rem;
}

.service-list.text-dark li {
    color: var(--color-dark);
}

.service-list strong {
    font-weight: 700;
    margin-left: 0.5rem;
    /* Gap between prefix and keyword */
}

/* Pulse Animation for Local Towns */
.text-pulse {
    display: inline-block;
    color: var(--color-primary);
    animation: city-pulse 3s infinite ease-in-out;
}

@keyframes city-pulse {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 0 rgba(253, 185, 19, 0);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(253, 185, 19, 0.6);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-darkh);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.75rem;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title span {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-xs);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-darkh);
    box-shadow: 0 4px 15px rgba(253, 185, 19, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-darkh);
    color: var(--color-darkh);
}

.btn-secondary:hover {
    background-color: var(--color-darkh);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* Glassmorphism Cards */
.card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Extremely subtle border */
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-dark-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(253, 185, 19, 0.2), rgba(253, 185, 19, 0.05));
    border-radius: 20px;
    color: var(--color-darkh);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    /* More transparency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between to allow split logic */
    gap: 3rem;
    /* Space between logo and menu */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    color: var(--color-white);
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 44px;
    width: auto;
    border-radius: 999px;
    background: var(--color-white);
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    /* Allows using margin-left: auto for split */
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.mobile-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    /* Prepare for gradient border trick or focus state */
    background-color: #F3F4F6;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-dark);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.15);
}

/* Footer */
.footer {
    background: var(--color-darkh);
    color: var(--color-gray);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    /* Sticky Footer: Pushes footer to bottom */
}

/* Decorative Footer Wave (SVG would be better, but gradient for now) */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card.local-card h3 {
    color: var(--color-white) !important;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
    /* Micro-interaction */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
    font-size: 0.875rem;
}

/* Utility */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-dark {
    color: var(--color-dark);
}

.bg-dark {
    background-color: var(--color-darkh);
    color: var(--color-white);
    position: relative;
}

/* Organic blobs for dark background */
.bg-dark::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(253, 185, 19, 0.03), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-white {
    background-color: var(--color-white);
}

/* Generic Hover Item for other lists */
.hover-item {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.hover-item:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Force text and icons to light up on hover, overriding inline styles */
.hover-item:hover p,
.hover-item:hover span,
.hover-item:hover h4,
.hover-item:hover div {
    color: var(--color-white) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Optional: Add a glow to the icons specifically if they are text/emojis */
.hover-item:hover .card-icon,
.hover-item:hover span:first-child {
    text-shadow: 0 0 10px rgba(253, 185, 19, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .mobile-toggle {
        display: block;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero-wrapper {
        flex-direction: column-reverse;
    }

    .section-title span {
        letter-spacing: 2px;
    }
}

/* --- Brand Personality & Micro-Interactions --- */

/* 1. Paw Print Bullets (replaces standard checks if class applied) */
.list-dynamic {
    padding: 0;
    margin: 0;
}

/* List with Dynamic Icons (Paw or Check) */
.list-dynamic li {
    padding-left: 2.5rem;
    /* Space for the icon */
    position: relative;
    list-style: none;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.list-dynamic li:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-dynamic li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Variant 1: Paw Icon */
.list-dynamic li.icon-paw::before {
    background-image: url("../img/cat-paw-cursor-contrast.png");
    opacity: 0.8;
}

.list-dynamic li.icon-paw:hover::before {
    transform: translateY(-50%) scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 5px rgba(253, 185, 19, 0.8));
    opacity: 1;
}

/* Variant 2: Check Icon (Standard) */
.list-dynamic li.icon-check::before {
    content: '✓';
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 800;
}

.list-dynamic li.icon-check:hover::before {
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 0 5px rgba(253, 185, 19, 0.6);
}

/* 2. Button "Pounce" Animation */
.btn-pounce {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy transition */
}

.btn-pounce:active {
    transform: scale(0.92) translateY(2px);
}

.btn-pounce:hover {
    transform: translateY(-4px) scale(1.02);
}

/* 3. Global Card "Purr" Effect on Icon */
@keyframes purr-shiver {
    0% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.15) rotate(8deg);
    }

    50% {
        transform: scale(1.15) rotate(-6deg);
    }

    75% {
        transform: scale(1.15) rotate(4deg);
    }

    100% {
        transform: scale(1.1) rotate(0);
    }
}

.card:hover .card-icon {
    animation: purr-shiver 0.5s ease-out forwards;
    background: rgba(253, 185, 19, 0.25);
    box-shadow: 0 0 15px rgba(253, 185, 19, 0.3);
}

/* 4. Paw Cursor on Interactive Elements */
a,
button,
.btn,
input[type="submit"] {
    cursor: url("../img/cat-cursor-standing-outlined.png"), auto;
    /* Fallback to simple pointer if image fails */
    cursor: url("../img/cat-cursor-standing-outlined.png") 1 1, pointer;
}

/* 5. Click Paw Animation */
/* 5. Click Paw Animation */
.click-paw-anim {
    position: absolute;
    width: 48px;
    /* Matched to the refined PNG size */
    height: 48px;
    /* High quality refined png */
    background-image: url("../img/cat-paw-cursor-contrast.png");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9999;
    /* Longer, "heavier" animation */
    animation: paw-press 1.2s ease-out forwards;
    transform-origin: center;
}

@keyframes paw-press {
    0% {
        transform: scale(0.8) rotate(var(--paw-rotation, 0deg));
        opacity: 0;
    }

    10% {
        /* Pressing down: slight overshoot scale */
        transform: scale(1.1) rotate(var(--paw-rotation, 0deg));
        opacity: 1;
    }

    30% {
        /* Settle: stays darker and visible for a moment */
        transform: scale(1.0) rotate(var(--paw-rotation, 0deg));
        opacity: 0.9;
    }

    100% {
        /* Fade out slowly */
        transform: scale(1.0) rotate(var(--paw-rotation, 0deg));
        opacity: 0;
    }
}

/* 4. Cat Eye Glow (Focus State) */
.input-cat-eye:focus {
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.2), 0 0 15px rgba(253, 185, 19, 0.3);
    border-color: var(--color-primary);
}

/* NEW TYPOGRAPHY & LAYOUT FIXES */
/* Responsive Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Typography Adjustments for Ablauf */
#ablauf .card h3 {
    font-size: 0.95rem;
    /* Reduced to fit single line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    #ablauf .card h3 {
        white-space: normal;
        font-size: 1.25rem;
    }
}

/* --- Tariff Calculator Brand Infusion --- */

/* 1. Yarn Ball Progress Bar */
/* 2. Sparky Mascot Container */
/* 2. Sparky Mascot Container */
.sparky-container {
    position: absolute;
    /* To be placed relative to sections */
    width: 60px;
    height: 60px;
    z-index: 10;
    pointer-events: auto;
    /* Allow hover */
    /* Default hidden state managed by specific classes or transforms */
    /* Default hidden state managed by specific classes or transforms */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease-in;
    /* Fast retreat & fade out */
    opacity: 0;
    /* Default hidden = transparent */
}

/* Default Bottom Peek State (Hidden) */
.sparky-peek-bottom {
    transform: translateX(-50%) translateY(200%);
    /* Start hidden WAY down (200%) to ensure fully invisible */
}

/* New: Peek from Top (Upside Down) */
.sparky-peek-top {
    top: 0;
    /* Reset from -60px to 0 to align with edge */
    /* MATCH ACTIVE STATE ORDER: Rotate first, then Translate */
    transform: translateX(-50%) rotate(180deg) translateY(200%);
    /* 200% = Deeply hidden UP into the header */
}

/* Active State Defaults */
/* Ensure no generic transform overrides the specific ones */

/* Sparky Container Z-Index Boost */
.sparky-container {
    z-index: 9999 !important;
    /* Force on top of everything (Hero, Waves, etc.) */
}

/* Specific Active State for Bottom (Peeking Up) */
.sparky-peek-bottom.sparky-visible {
    /* Only show top of head (forehead/eyes) */
    /* GEOMETRY FIX: 
       Mascot Height = 200 units. Nose starts at Y=125.
       Peeking from Bottom (Y=200 aligns with edge).
       To hide nose (Y=125 -> >200), need shift > 75 units.
       75/200 = 37.5%.
       Set to 40% (80 units). Nose -> 205 (Hidden). Eyes (Y=100) -> 180 (Visible). */
    transform: translateX(-50%) translateY(40%) !important;
    opacity: 1 !important;
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease-out;
    /* Slow slide out, fast fade in */
}

/* FIX: Specific override for the Contact Fixed Mascot */
/* Corrected Logic: 
   Now that mascot is physically at the section bottom (not floating in container),
   40% is the correct math to hide nose (125+80=205) but show eyes (100+80=180).
   70% would hide the eyes (100+140=240). */
#sparky-contact-fixed.sparky-visible {
    transform: translateX(-50%) translateY(40%) !important;
}

/* Specific Active State for Top (Peeking Down) */
.sparky-peek-top.sparky-visible {
    /* Only show top of head (forehead/eyes) */
    /* MATCH ORDER: Rotate first, then Translate */
    /* 99% hidden works here due to rotation geometry/inversion. */
    transform: translateX(-50%) rotate(180deg) translateY(99%) !important;
    opacity: 1 !important;
    transition: transform 3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease-out;
    /* Slow slide out, fast fade in */
}

/* Shy Behavior: Retreat on Hover */
/* Default / Bottom Peeker: Retreats DOWN */
.sparky-peek-bottom:hover {
    /* transform: handled by JS for randomness, but css fallback: */
    /* transform: translateX(-50%) translateY(100%); */
    cursor: none;
}

/* Top Peeker: Retreats UP (Maintains Rotation) */
.sparky-peek-top:hover {
    /* transform: translateX(-50%) translateY(-100%) rotate(180deg); */
    cursor: none;
}


/* --- Tariff Calculator Brand Infusion --- */

/* 1. Yarn Ball Progress Bar */
.yarn-progress-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 4px;
    background: #E5E7EB;
    margin: 0 auto 3rem auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.yarn-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 4px;
}

.yarn-ball {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23FDB913' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
    /* Placeholder checkmark icon as 'ball' for now, or just a round ball style */
    background: var(--color-primary);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-primary);
    border-radius: 50%;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s ease;
    z-index: 5;
}

/* Rolling animation for the ball */
.yarn-ball::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: roll 2s linear infinite;
}

@keyframes roll {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Steps */
.step-progress-1 .yarn-line {
    width: 10%;
}

.step-progress-1 .yarn-ball {
    left: 10%;
}

.step-progress-2 .yarn-line {
    width: 50%;
}

.step-progress-2 .yarn-ball {
    left: 50%;
}

.step-progress-3 .yarn-line {
    width: 100%;
}

.step-progress-3 .yarn-ball {
    left: 100%;
}

/* 2. Sparky Reaction in Calculator */
/* 2. Sparky Reaction in Calculator */
.sparky-calc-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    /* Center it like index.html */
    width: 120px;
    /* Slightly larger for the 'event' */
    transform: translateX(-50%) translateY(100%);
    /* Start hidden below screen */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
}

.sparky-calc-show {
    transform: translateX(-50%) translateY(10%);
    /* Pop up (10% to hide bottom slightly or 0 for full) */
}

/* Specific adjustment for the bubble in this centered layout */
.sparky-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    width: max-content;
    text-align: center;
}

.sparky-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--color-white) transparent transparent transparent;
}

.sparky-calc-show .sparky-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    transition-delay: 0.3s;
}

/* 5. FAQ Accordion Styles */
details.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

details.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

summary.faq-question {
    padding: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
    transition: transform 0.3s ease;
}

details.faq-item[open] summary.faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

details.faq-item[open] .faq-answer {
    border-top-color: var(--color-gray-soft);
    padding-top: 1rem;
}