html {
    scroll-behavior: smooth;
}

/* Hero gradient — dark navy */
.hero-gradient {
    background: linear-gradient(160deg, #001F4D 0%, #002D62 40%, #003D70 70%, #0A3B76 100%);
}

/* App card 3D perspective */
.app-card {
    transform: perspective(800px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.4s ease;
}

.app-card:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

/* Feature cards with gradient top border */
.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid transparent;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(10, 59, 118, 0.14);
}

.feature-card-orange {
    border-image: linear-gradient(135deg, #E16521, #FF9305) 1;
}

.feature-card-teal {
    border-image: linear-gradient(135deg, #02939B, #02D6C3) 1;
}

.feature-card-navy {
    border-image: linear-gradient(135deg, #0A3B76, #0D4A94) 1;
}

.feature-card-yellow {
    border-image: linear-gradient(135deg, #FDBF22, #FF9305) 1;
}

/* Subtle dot grid texture */
.dot-texture {
    background-image: radial-gradient(circle, #CBD5E1 0.75px, transparent 0.75px);
    background-size: 24px 24px;
}

/* Subtle depth gradients for flat sections */
.section-gradient-light {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9F9FF 50%, #FFFFFF 100%);
}

.section-gradient-surface {
    background: linear-gradient(180deg, #002D62 0%, #003D70 50%, #002D62 100%);
}

/* Light teal-tint section */
.section-teal-tint {
    background: linear-gradient(180deg, #F0FAFA 0%, #E8F7F8 50%, #F0FAFA 100%);
}

/* Bottom CTA gradient mesh */
.cta-gradient {
    background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(2, 147, 155, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 147, 5, 0.3) 0%, transparent 60%),
    linear-gradient(160deg, #002D62 0%, #0A3B76 60%, #002D62 100%);
}

/* Power feature horizontal cards */
.power-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.power-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px -6px rgba(10, 59, 118, 0.1);
}

.table-row:nth-child(even) {
    background-color: #F8FAFC;
}

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

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(2, 147, 155, 0.25);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(2, 147, 155, 0);
    }
}

.pill-pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Device frame for phone mockups */
.device-frame {
    background: #1A1A2E;
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 24px 64px -12px rgba(0, 45, 98, 0.5),
    0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

.device-frame-inner {
    border-radius: 18px;
    overflow: hidden;
}

/* Gradient CTA button (teal → orange) */
.btn-gradient {
    background: linear-gradient(135deg, #02939B 0%, #FF9305 100%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-gradient:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Step number circle */
.step-number {
    background: linear-gradient(135deg, #02939B 0%, #FF9305 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Connector line between steps */
.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #02939B, #FF9305);
    opacity: 0.3;
}

/* Comparison table Tabello column highlight */
.tabello-col {
    background: linear-gradient(180deg, rgba(2, 147, 155, 0.07) 0%, rgba(2, 147, 155, 0.03) 100%);
}

.nav-link.active {
    color: #0A3B76;
    border-bottom-color: #02939B;
}


/* Help layout styles */
.help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 180px;
    min-height: calc(100vh - 120px);
}

@media (max-width: 1023px) {
    .help-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .help-layout {
        grid-template-columns: 1fr;
    }
}

.help-sidebar {
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .help-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        z-index: 40;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .help-sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-link {
    display: block;
    padding: 6px 16px 6px 20px;
    font-size: 0.8125rem;
    color: #4b5563;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    color: #02939B;
    background: #F0FAFA;
}

.sidebar-link.active {
    color: #02939B;
    font-weight: 600;
    border-left-color: #02939B;
    background: #F0FAFA;
}

.help-toc {
    position: sticky;
    top: 65px;
    height: fit-content;
}

@media (max-width: 1023px) {
    .help-toc {
        display: none;
    }
}

.toc-link {
    display: block;
    padding: 4px 0 4px 12px;
    font-size: 0.8125rem;
    color: #6b7280;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.15s ease;
}

.toc-link:hover {
    color: #02939B;
}

.toc-link.active {
    color: #02939B;
    font-weight: 600;
    border-left-color: #02939B;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 39;
    display: none;
}

.sidebar-backdrop.open {
    display: block;
}

/* Legal page content styles */
.legal-content {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.75;
    color: #374151;
}

.legal-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0.25rem;
}

.legal-content a {
    color: #2563eb;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #1d4ed8;
}

.legal-content strong {
    font-weight: 600;
    color: #111827;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.legal-content th, .legal-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.legal-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

.legal-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #6b7280;
    font-style: italic;
}

.legal-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.legal-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}
