/* Quick Aid Tech — static site, no build */
:root {
    --accent: #2c968d;
    --accent-hover: #247a72;
    --navy: #0f172a;
    --navy-muted: #1e293b;
    --navy-light: #334155;
    --white: #ffffff;
    --off-white: #f8fafc;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --container: min(90vw, 1024px);
    --narrow: min(90vw, 640px);
    --radius: 8px;
    --radius-lg: 12px;
}

/* --- RESPONSIVE RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* CRITICAL RESPONSIVE FIX: Forces images to scale down on small screens */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden; /* Prevents accidental horizontal scrolling */
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-inline: 1.5rem;
    }
}

.narrow {
    max-width: var(--narrow);
    margin-inline: auto;
}

.narrow-center {
    margin-inline: auto;
    max-width: 36rem;
}

.section-lead-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

    .section-lead-wrap .section-lead {
        text-align: center;
        max-width: 36rem;
        margin: 0;
    }

.text-center {
    text-align: center;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    text-align: center;
    width: 100%; /* Full width on mobile by default */
}

@media (min-width: 480px) {
    .btn {
        width: auto;
    }
    /* Auto width on larger screens */
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

    .btn-primary:hover {
        background: var(--accent-hover);
        transform: translateY(-1px);
    }

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

    .btn-secondary:hover {
        background: var(--navy);
        color: var(--white);
    }

.btn-cta {
    background: var(--white);
    color: var(--accent);
    margin-top: 1.5rem;
}

    .btn-cta:hover {
        background: var(--slate-100);
    }

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--slate-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
}
.logo img {
    margin-right: 8px;
}

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy);
    text-decoration: none;
}

    .logo:hover,
    .logo:hover .logo-accent {
        color: var(--accent);
    }

.logo-accent {
    color: var(--accent);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--navy);
        border-radius: 1px;
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.nav a {
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    display: block;
}

    .nav a:hover {
        color: var(--navy);
        background: var(--slate-50);
    }

.nav-cta {
    color: var(--white) !important;
    background: var(--accent);
}

    .nav-cta:hover {
        background: var(--accent-hover) !important;
    }

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        position: absolute; /* Changed from fixed to absolute to scroll with page if needed */
        top: 4rem;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        padding: 1.5rem 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    }

        .nav.is-open {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .nav ul {
            flex-direction: column;
            align-items: stretch;
            gap: 0.5rem;
        }

        .nav a {
            padding: 1rem;
            text-align: center;
            background: var(--slate-50);
        }

    .nav-cta {
        margin-top: 1rem;
    }
}

@media (min-width: 769px) {
    .nav-toggle {
        display: none;
    }
}

/* --- HERO SECTION --- */
.hero {
    padding-block: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 60%);
}

.hero-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Slightly larger scaling */
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    margin: 0 0 1rem;
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.hero-subhead {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin: 0 0 2rem;
    max-width: 100%;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .hero-ctas {
        flex-direction: row;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

    .hero-visual div {
        width: 100%;
        max-width: 500px;
    }

/* --- SECTIONS --- */
.section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section-alt {
    background: var(--slate-50);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.flow-narrow {
    max-width: 48rem;
    margin-inline: auto;
}

/* --- GRIDS & CARDS --- */
.pillar-grid, .device-grid, .feature-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-template-columns: 1fr; /* Mobile default */
}

@media (min-width: 640px) {
    .pillar-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .device-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.pillar-card, .device-card, .feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

    .pillar-card:hover, .feature-card:hover {
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

.device-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.device-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.device-img {
    aspect-ratio: 4/3;
    background: var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .device-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Internal Card Elements */
.pillar-num {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 150, 141, 0.15);
    color: var(--accent);
    font-weight: 700;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 150, 141, 0.15);
    color: var(--accent);
    font-size: 0.875rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.pillar-card h3, .device-body h3, .feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--navy);
}

.pillar-card p, .device-body p, .feature-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.5;
}

/* --- TIMELINE --- */
.timeline {
    list-style: none;
    margin: 2rem 0 1rem;
    padding: 0;
}

.timeline-step {
    display: flex; /* Changed from grid to flex for better wrapping on tiny screens */
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.timeline-num {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--navy);
}

.timeline-step p {
    margin: 0;
    color: var(--slate-600);
}

.escalation-tagline {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1.5rem;
}

.microcopy {
    font-size: 0.9375rem;
    color: var(--slate-500);
    font-style: italic;
    margin: 0;
}

/* --- RELIABILITY SECTION --- */
.section-reliability {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-muted) 100%);
    color: var(--white);
}

    .section-title-light, .section-reliability .section-title {
        color: var(--white);
    }

    .section-lead-light, .section-reliability .section-lead {
        color: var(--slate-300);
    }

.resilience-list {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    max-width: 28rem;
    margin-inline: auto;
    text-align: left;
}

    .resilience-list li {
        display: flex;
        align-items: flex-start; /* Better alignment if text wraps */
        gap: 1rem;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius);
        margin-bottom: 0.75rem;
        color: var(--slate-200);
        line-height: 1.4;
    }

.resilience-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* --- PRIVACY --- */
.privacy-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

    .privacy-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        color: var(--slate-600);
    }

.privacy-check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* --- FAQ --- */
.faq-list {
    margin: 2rem 0 0;
    border-top: 1px solid var(--slate-200);
}

.faq-item {
    border-bottom: 1px solid var(--slate-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

    .faq-question:hover {
        color: var(--accent);
    }

    .faq-question::after {
        content: '+';
        font-size: 1.25rem;
        color: var(--accent);
        flex-shrink: 0;
        margin-left: 0.5rem;
        transition: transform 0.2s;
    }

.faq-item.is-open .faq-question::after {
    content: '−';
}

.faq-answer {
    margin: 0;
    padding: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.6;
    display: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* --- CTA BAND --- */
.cta-band {
    padding-block: clamp(3rem, 6vw, 4rem);
    background: var(--accent);
    color: var(--white);
    text-align: center;
}

.cta-band-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* --- CONTACT --- */
.contact-inner {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .contact-inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.contact-intro p {
    color: var(--slate-600);
    margin: 0 0 0.5rem;
}

.contact-direct {
    margin-top: 1rem;
}

    .contact-direct a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 500;
        word-break: break-all; /* Prevents long emails from breaking layout on small phones */
    }

        .contact-direct a:hover {
            text-decoration: underline;
        }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Increased spacing slightly */
    background: var(--white);
    padding: clamp(1.25rem, 4vw, 2rem); /* Dynamic padding */
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .contact-form label {
        font-weight: 600;
        font-size: 0.9375rem;
        color: var(--navy);
        margin-bottom: -0.25rem; /* Pull labels slightly closer to inputs */
    }

    .contact-form input,
    .contact-form textarea {
        font-family: inherit;
        font-size: 1rem;
        padding: 0.75rem;
        border: 1px solid var(--slate-200);
        border-radius: var(--radius);
        background: var(--slate-50); /* Added slight background to inputs */
        transition: border-color 0.2s, background-color 0.2s;
        width: 100%; /* Ensure inputs don't overflow */
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: var(--accent);
            background-color: var(--white);
            outline: none;
            box-shadow: 0 0 0 2px rgba(44, 150, 141, 0.2);
        }

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

        /* Add this to your CSS to show validation states */
        .contact-form input:invalid:not(:placeholder-shown),
        .contact-form textarea:invalid:not(:placeholder-shown) {
            border-color: #e74c3c;
            background-color: #fffafa;
        }

    .contact-form input:valid:not(:placeholder-shown) {
        border-color: #2c968d;
    }

    /* Ensure the city field follows existing input styling */
    .contact-form input[type="text"] {
        transition: border-color 0.2s, background-color 0.2s;
    }

/* --- FOOTER --- */
.site-footer {
    padding-block: 2.5rem;
    background: var(--navy);
    color: var(--slate-400);
    font-size: 0.9375rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

    .footer-nav a {
        color: var(--slate-400);
        text-decoration: none;
    }

        .footer-nav a:hover {
            color: var(--white);
        }

.footer-address,
.footer-copy {
    margin: 0;
}

.footer-copy {
    color: var(--slate-500);
    font-size: 0.875rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--navy);
    text-decoration: none;
}

    .logo img {
        width: 50px;
        height: 50px;
    }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .whatsapp-float:hover {
        background-color: #128c7e;
        transform: scale(1.1);
        color: #FFF;
    }

/* Ensure it doesn't overlap other elements on very small screens */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* --- UPDATED VALIDATION STYLES --- */

/* Only apply validation colors AFTER the 'was-validated' class is added by JS */
.contact-form.was-validated input:invalid,
.contact-form.was-validated textarea:invalid {
    border-color: #e74c3c;
    background-color: #fffafa;
}

.contact-form.was-validated input:valid,
.contact-form.was-validated textarea:valid {
    border-color: #2c968d;
}

/* ============================================================
   ANIMATED SVG ICONS — Pillar Cards & Feature Cards
   ============================================================ */

/* --- Shared icon wrapper --- */
.pillar-icon-wrap,
.feature-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 1.1rem;
    color: var(--accent);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
}

.pillar-svg,
.feature-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ===== PILLAR 1: Tick mark — draws itself on hover ===== */
.pi-tick {
    stroke-dasharray: 55;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                stroke-width 0.2s ease,
                stroke 0.2s ease;
}
.pillar-card:hover .pi-tick {
    stroke-dashoffset: -55;
    animation: tickDraw 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tickDraw {
    0%   { stroke-dashoffset: 55; }
    100% { stroke-dashoffset: 0; }
}

/* ===== PILLAR 2: Battery — half full at rest, charges to full on hover ===== */
.pi-battery-half {
    /* Always visible at rest as the 50% indicator */
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.pi-battery-fill {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
}
.pillar-card:hover .pi-battery-half {
    opacity: 0; /* hide half-fill once full fill animates in */
}
.pillar-card:hover .pi-battery-fill {
    clip-path: inset(0 0% 0 0);
}
.pi-bolt {
    opacity: 0;
    transition: opacity 0.25s ease 0.45s;
}
.pillar-card:hover .pi-bolt {
    opacity: 1;
}

/* ===== PILLAR 3: House — door opens, white doorway revealed ===== */
.pi-doorway {
    opacity: 0;
    transition: opacity 0.2s ease 0.15s;
}
.pi-door {
    transform-origin: 20px 41px;
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.pi-door-knob {
    transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
    transform-origin: 20px 41.5px;
}
.pillar-card:hover .pi-doorway {
    opacity: 1;
}
.pillar-card:hover .pi-door {
    transform: perspective(80px) rotateY(-70deg);
}
.pillar-card:hover .pi-door-knob {
    transform: perspective(80px) rotateY(-70deg);
}

/* ===== FEATURE 1: Physical button — press & ripple ===== */
.fi-btn {
    transform-origin: 24px 24px;
    transition: r 0.15s ease;
}
.feature-card:hover .fi-btn {
    animation: btnPress 0.5s ease forwards;
}
@keyframes btnPress {
    0%   { r: 7; }
    30%  { r: 5.5; }
    60%  { r: 7.5; }
    100% { r: 7; }
}

.fi-pulse-ring {
    transform-origin: 24px 24px;
}
.feature-card:hover .fi-ring-1 {
    animation: fripple1 1.1s ease-out 0.1s infinite;
}
.feature-card:hover .fi-ring-2 {
    animation: fripple1 1.1s ease-out 0.3s infinite;
}
.feature-card:hover .fi-ring-3 {
    animation: fripple1 1.1s ease-out 0.5s infinite;
}
@keyframes fripple1 {
    0%   { r: 13; opacity: 0.35; }
    100% { r: 23; opacity: 0; }
}

/* ===== FEATURE 2: Signal waves — stagger in on hover ===== */
.fi-wave {
    opacity: 0.25;
    transition: opacity 0.2s ease, stroke-width 0.2s ease;
}
.fi-wave-1 { transition-delay: 0s; }
.fi-wave-2 { transition-delay: 0.1s; }
.fi-wave-3 { transition-delay: 0.2s; }

.feature-card:hover .fi-wave-1 { opacity: 1; stroke-width: 2.5; }
.feature-card:hover .fi-wave-2 { opacity: 0.7; stroke-width: 2; }
.feature-card:hover .fi-wave-3 { opacity: 0.4; stroke-width: 1.5; }

/* ============================================================
   SCROLL-TRIGGERED ICON ANIMATIONS
   .is-visible is added by IntersectionObserver in script.js
   when the card reaches the vertical centre of the viewport.
   These rules mirror every :hover rule so the animation fires
   automatically on scroll, not only on mouse-over.
   ============================================================ */

/* --- Pillar 1: Tick draws itself --- */
.pillar-card.is-visible .pi-tick {
  stroke-dashoffset: -55;
  animation: tickDraw 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- Pillar 2: Battery charges to full --- */
.pillar-card.is-visible .pi-battery-half {
  opacity: 0;
}
.pillar-card.is-visible .pi-battery-fill {
  clip-path: inset(0 0% 0 0);
}
.pillar-card.is-visible .pi-bolt {
  opacity: 1;
}

/* --- Pillar 3: Door opens --- */
.pillar-card.is-visible .pi-doorway {
  opacity: 1;
}
.pillar-card.is-visible .pi-door {
  transform: perspective(80px) rotateY(-70deg);
}
.pillar-card.is-visible .pi-door-knob {
  transform: perspective(80px) rotateY(-70deg);
}

/* --- Feature 1: Button press + ripple --- */
.feature-card.is-visible .fi-btn {
  animation: btnPress 0.5s ease forwards;
}
.feature-card.is-visible .fi-ring-1 {
  animation: fripple1 1.1s ease-out 0.1s infinite;
}
.feature-card.is-visible .fi-ring-2 {
  animation: fripple1 1.1s ease-out 0.3s infinite;
}
.feature-card.is-visible .fi-ring-3 {
  animation: fripple1 1.1s ease-out 0.5s infinite;
}

/* --- Feature 2: Signal waves stagger in --- */
.feature-card.is-visible .fi-wave-1 { opacity: 1; stroke-width: 2.5; }
.feature-card.is-visible .fi-wave-2 { opacity: 0.7; stroke-width: 2; }
.feature-card.is-visible .fi-wave-3 { opacity: 0.4; stroke-width: 1.5; }

/* --- Feature 3: Heartbeat draws + dot pulses --- */
.feature-card.is-visible .fi-heartbeat {
  stroke-dashoffset: 0;
}
.feature-card.is-visible .fi-pulse-dot {
  animation: dotPulse 0.8s ease 0.5s infinite;
}

.fi-heartbeat-bg {
    /* Faded trace always visible */
    opacity: 0.2;
}
.fi-heartbeat {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    opacity: 1;
    transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover .fi-heartbeat {
    stroke-dashoffset: 0;
}

.fi-pulse-dot {
    transform-origin: 38px 14px;
    transition: transform 0.2s ease;
}
.feature-card:hover .fi-pulse-dot {
    animation: dotPulse 0.8s ease 0.5s infinite;
}
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.5; }
}

