/* =========================================
   MedRemind - Premium Healthcare SaaS Styles
   ========================================= */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-primary: #00BCD4;
    --color-primary-dark: #00A0B8;
    --color-primary-light: #4DD0E1;
    --color-secondary: #0D47A1;
    --color-secondary-dark: #0A3680;
    --color-secondary-light: #1565C0;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00BCD4 0%, #0D47A1 100%);
    --gradient-hero: linear-gradient(135deg, #E8F5F9 0%, #E3F2FD 50%, #F3E5F5 100%);
    --gradient-cta: linear-gradient(135deg, #00BCD4 0%, #0D47A1 50%, #1A237E 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    /* Neutrals */
    --color-white: #FFFFFF;
    --color-bg: #FAFBFC;
    --color-bg-alt: #F5F7FA;
    --color-text: #1A2B3C;
    --color-text-light: #5A6B7C;
    --color-text-lighter: #8A9BAC;
    --color-border: #E1E8EF;
    --color-border-light: #F0F4F8;
    /* Status */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 8px 24px rgba(0, 188, 212, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* =========================================
   Typography
   ========================================= */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--font-size-4xl);
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 188, 212, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

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

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

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

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

.btn-white {
    background: var(--color-white);
    color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav {
    display: none;
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }
}

/* ===============================
   Premium Navigation Polish
================================= */

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ===============================
   Premium Navigation Links
================================= */

.nav-link {
    position: relative;
    display: inline-block;
    font-weight: 600;              /* clean professional weight */
    font-size: 18px;
    letter-spacing: 0.2px;
    color: #0D47A1;
    padding: 10px 0;
    transition: color 0.25s ease, transform 0.2s ease;
}

/* Smooth animated underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00BCD4, #0D47A1);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Hover */
.nav-link:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Active state */
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* Slight spacing polish */
.header-container {
    padding: 0 32px;
}

/* Optional subtle nav fade-in */
.nav {
    animation: navFade 0.6s ease forwards;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.btn-header {
    display: none;
}

@media (min-width: 768px) {
    .btn-header {
        display: inline-flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger span:nth-child(1) {
    width: 100%;
}

.hamburger span:nth-child(2) {
    width: 75%;
}

.hamburger span:nth-child(3) {
    width: 50%;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav.mobile-open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    padding: var(--space-8);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav.mobile-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
}

.nav.mobile-open .nav-link {
    font-size: var(--font-size-xl);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: calc(80px + var(--space-16)) 0 var(--space-24);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 188, 212, 0.3);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(13, 71, 161, 0.2);
    bottom: 100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(156, 39, 176, 0.2);
    top: 50%;
    left: 50%;
}

.hero-container {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-6);
}

.hero-badge svg {
    color: var(--color-primary);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-6xl);
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
}

.hero-ctas {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    align-items: center;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-light);
}

.trust-badge svg {
    color: var(--color-primary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.hero-phone {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 8px solid var(--color-text);
    border-radius: 40px;
}

.phone-screen {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: var(--space-4);
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-4);
}

.phone-time {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.phone-icons {
    display: flex;
    gap: var(--space-2);
    color: var(--color-text);
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.reminder-card {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(0, 188, 212, 0.2);
    }
}

.reminder-icon {
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reminder-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reminder-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reminder-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-text);
}

.reminder-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.reminder-actions {
    display: flex;
    gap: var(--space-2);
}

.call-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.call-btn:hover {
    transform: scale(1.1);
}

.call-btn.decline {
    background: #FEE2E2;
    color: #EF4444;
}

.call-btn.accept {
    background: #D1FAE5;
    color: #10B981;
}

.med-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.med-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.med-pill {
    width: 12px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.med-pill.blue {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.med-pill.pink {
    background: linear-gradient(180deg, #EC4899 0%, #BE185D 100%);
}

.med-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.med-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.med-time {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

.med-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-check.done {
    background: var(--color-success);
    color: var(--color-white);
}

.med-check.pending {
    border: 2px solid var(--color-border);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--color-white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: -30px;
    animation-delay: 1.5s;
}

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

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* =========================================
   Social Proof
   ========================================= */
.social-proof {
    padding: var(--space-12) 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
}

.social-proof-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    text-align: center;
}

@media (min-width: 1024px) {
    .social-proof-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

@media (min-width: 1024px) {
    .rating-display {
        flex-direction: row;
        gap: var(--space-4);
    }
}

.stars {
    display: flex;
    gap: 2px;
}

.rating-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
}

.review-snippets {
    display: none;
}

@media (min-width: 768px) {
    .review-snippets {
        display: flex;
        align-items: center;
        gap: var(--space-6);
    }
}

.review-snippet p {
    font-size: var(--font-size-sm);
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.review-snippet span {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

.trusted-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

/* =========================================
   Benefits Section – Premium Version
========================================= */

.benefits {
    padding: var(--space-24) 0;
    background: linear-gradient(
        180deg,
        var(--color-bg) 0%,
        #f9fcff 100%
    );
}

/* Grid */
.benefits-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   Benefit Card
========================================= */

.benefit-card {
    position: relative;
    background: var(--color-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}

/* Hover */
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    border-color: rgba(0,188,212,0.35);
}

/* Top accent strip */
.benefit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    margin-right:8px;
    margin-left:8px;
    background: transparent;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    transition: background var(--transition-base);
}

.benefit-card:hover::before {
    background: var(--gradient-primary);
}

/* =========================================
   Header (Icon + Title Side-by-Side)
========================================= */

.benefit-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: var(--space-5);
}

/* Icon */
.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(
        135deg,
        rgba(0,188,212,0.12),
        rgba(13,71,161,0.12)
    );
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.benefit-icon svg {
    width: 26px;
    height: 26px;
}

/* Icon Hover */
.benefit-card:hover .benefit-icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,188,212,0.25);
    background: var(--gradient-primary);
    color: var(--color-white);
}

/* Title */
.benefit-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0;
    color:#0D47A1;
}

/* Description */
.benefit-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.75;
}
/* =========================================
   How It Works
   ========================================= */
/* =========================================
   How It Works – Final Premium Version
   ========================================= */

.how-it-works {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

.timeline {
    display: grid;
    gap: var(--space-10);
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* Remove old center line */
.timeline-line {
    display: none !important;
}

/* =========================================
   HOW IT WORKS – FINAL ENTERPRISE VERSION
========================================= */

.how-it-works {
    padding: var(--space-24) 0;
    background: linear-gradient(
        180deg,
        var(--color-white) 0%,
        #f9fcff 100%
    );
    position: relative;
}

/* 3 Column Layout */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: var(--space-16);
}

/* =========================================
   Step Card
========================================= */

.step-card {
    position: relative;
    background: var(--color-white);
    padding: 60px 40px 44px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover */
.step-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 188, 212, 0.35);
}

/* Top accent line */
.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    margin-right:8px;
    margin-left:8px;
    background: transparent;
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    transition: background var(--transition-base);
}

.step-card:hover::before {
    background: var(--gradient-primary);
}

/* =========================================
   Step Number Badge (On Border)
========================================= */

.step-number-badge {
    position: absolute;
    top: -14px;
    left: 32px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 188, 212, 0.25);
}

/* =========================================
   Header Section
========================================= */

.step-card-header {
    margin-bottom: 28px;
}

.step-header-main {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Icon */
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(0,188,212,0.15),
        rgba(13,71,161,0.15)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

/* Icon hover glow */
.step-card:hover .step-icon {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 188, 212, 0.28);
}

/* Title */
.step-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.35;
    margin: 0;
    color:#0D47A1;
}

/* =========================================
   Content Section
========================================= */

.step-card-content {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 24px;
}

.step-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-light);
    margin: 0;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =========================================
   Steps Animated Connector
========================================= */

.steps-grid {
    position: relative;
}

/* Connector Wrapper */
.steps-connector {
    position: absolute;
    top: 140px;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* SVG */
.steps-connector svg {
    width: 100%;
    height: 100%;
}

/* Animated dashed flow */
.flow-line {
    stroke-dashoffset: 0;
    animation: flowMove 8s linear infinite;
}

/* Dash animation */
@keyframes flowMove {
    to {
        stroke-dashoffset: -200;
    }
}

/* Make cards appear above connector */
.step-card {
    position: relative;
    z-index: 2;
}

/* Hide connector on mobile */
@media (max-width: 1024px) {
    .steps-connector {
        display: none;
    }
}
/* =========================================
   Features Section
   ========================================= */
.features {
    padding: var(--space-24) 0;
    background: var(--color-bg);
}

.features-content {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .features-content {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-16);
    }
}

.features-text .section-label,
.features-text .section-title,
.features-text .section-subtitle {
    text-align: left;
    margin-left: 0;
}

.features-text .section-subtitle {
    margin-bottom: var(--space-8);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

/* Dashboard Mockup */
.features-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
}

.dashboard-dots {
    display: flex;
    gap: var(--space-2);
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-dots span:nth-child(1) {
    background: #EF4444;
}

.dashboard-dots span:nth-child(2) {
    background: #F59E0B;
}

.dashboard-dots span:nth-child(3) {
    background: #10B981;
}

.dashboard-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-light);
}

.dashboard-content {
    display: flex;
    min-height: 300px;
}

.dashboard-sidebar {
    width: 180px;
    background: var(--color-bg);
    padding: var(--space-4);
    display: none;
}

@media (min-width: 640px) {
    .dashboard-sidebar {
        display: block;
    }
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.sidebar-item.active {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.dashboard-main {
    flex: 1;
    padding: var(--space-6);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--color-bg);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    display: block;
    margin-bottom: var(--space-2);
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-3);
}

.stat-bar {
    height: 6px;
    background: var(--color-border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.stat-fill.high {
    background: var(--color-success);
}

.upcoming-section {
    background: var(--color-bg);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.upcoming-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-4);
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.upcoming-item:last-child {
    border-bottom: none;
}

.upcoming-time {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-primary);
    min-width: 70px;
}

.upcoming-med {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.upcoming-status {
    font-size: var(--font-size-xs);
    color: var(--color-text-lighter);
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

.pricing-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal width buttons */
    align-items: center;
    margin-bottom: var(--space-12);
    position: relative;
    background: var(--color-bg);
    padding: var(--space-1);
    border-radius: var(--radius-full);
    width: 320px; /* Fixed clean width */
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content */
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
    white-space: nowrap; /* Prevent wrap */
}

.toggle-btn.active {
    color: var(--color-white);
}

.toggle-bg {
    position: absolute;
    top: var(--space-1);
    bottom: var(--space-1);
    left: var(--space-1);
    width: calc(50% - var(--space-1));
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base);
    z-index: 1;
}

.pricing-toggle[data-active="annual"] .toggle-bg {
    transform: translateX(100%);
}

.save-badge {
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-cards {
    display: grid;
    gap: var(--space-8);
    justify-content: center;
}

/* Tablet */
@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(2, minmax(320px, 420px));
        justify-content: center;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 420px);
    }
}

.pricing-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border-light);
    transition: all var(--transition-base);
    position: relative;
    width: 100%;
    max-width: 420px;
}

.pricing-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.06);
}


@media (min-width: 768px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: var(--space-6);
}

.plan-name {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.plan-desc {
    font-size: var(--font-size-base);
    color: #00BCD4;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-bottom: var(--space-6);
}

.currency {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-text-light);
}

.price {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-base);
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials {
    padding: var(--space-24) 0;
    background: var(--color-bg);
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 var(--space-4);
}

.testimonial-content {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-6);
}

.testimonial-content .stars {
    margin-bottom: var(--space-6);
}

.testimonial-content blockquote p {
    font-size: var(--font-size-xl);
    line-height: 1.7;
    color: var(--color-text);
    font-style: normal;
}

@media (min-width: 768px) {
    .testimonial-content blockquote p {
        font-size: var(--font-size-2xl);
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-left: var(--space-8);
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    font-style: normal;
}

.author-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.slider-btn {
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.slider-dots {
    display: flex;
    gap: var(--space-2);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    border-radius: 50%;
    transition: all var(--transition-fast);
    padding: 0;
}

.dot.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: var(--radius-full);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq {
    padding: var(--space-24) 0;
    background: var(--color-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

.faq-icon {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-answer p {
    padding-bottom: var(--space-6);
    color: var(--color-text-light);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    position: relative;
    padding: var(--space-24) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-cta);
    z-index: -1;
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    color: var(--color-white);
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--font-size-4xl);
    }
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.cta-note {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    }
}

.footer-brand .logo {
    margin-bottom: var(--space-4);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-desc {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-primary);
}

.footer-links h3,
.footer-contact h3 {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-3);
}

.footer-contact a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-6);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-bottom: var(--space-4);
}

.footer-legal a {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--color-primary-light);
}

.hipaa-notice {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-copyright {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-copyright a:hover {
    color: var(--color-primary-light);
}

/* =========================================
   Install Banner
   ========================================= */
.install-banner {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    z-index: var(--z-fixed);
    animation: slideUp 0.5s ease;
}

@media (min-width: 640px) {
    .install-banner {
        left: auto;
        right: var(--space-6);
        max-width: 400px;
    }
}

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

.install-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.install-content svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.install-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.install-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

/* =========================================
   Animations
   ========================================= */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Utilities
   ========================================= */
[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Print Styles
   ========================================= */
@media print {
    .header,
    .install-banner,
    .testimonial-nav,
    .cta-section {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* =========================================
   Reduced Motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .logo-img {
        height: 32px;
    }
}
