/**
 * Compliance Cover Design System
 * British Institutional Modernism - Trust, authority, heritage with sharp modern execution
 * Designed for UK compliance SaaS
 */

/* =========================================
   CSS Variables & Root
   ========================================= */
:root {
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

    /* Navy primary palette - deeper, richer */
    --primary: 213 58% 18%;
    --primary-light: 213 45% 28%;
    --primary-foreground: 40 33% 98%;

    /* Sage/Emerald accent - more British, less tech-startup */
    --accent: 158 64% 36%;
    --accent-light: 158 50% 48%;
    --accent-foreground: 0 0% 100%;

    /* Gold accent for highlights and premium CTAs */
    --accent-warm: 38 92% 50%;
    --accent-warm-foreground: 220 13% 13%;

    /* Background & surfaces - warm off-white instead of pure white */
    --background: 40 33% 98%;
    --background-pure: 0 0% 100%;
    --foreground: 220 13% 13%;

    /* Muted surfaces */
    --muted: 40 20% 96%;
    --muted-cool: 220 20% 97%;
    --muted-foreground: 220 10% 46%;

    /* Cards */
    --card: 40 33% 99%;
    --card-foreground: 220 13% 13%;

    /* Popover */
    --popover: 40 33% 99%;
    --popover-foreground: 220 13% 13%;

    /* Secondary */
    --secondary: 40 20% 96%;
    --secondary-foreground: 213 58% 18%;

    /* Borders */
    --border: 220 13% 88%;
    --border-subtle: 220 10% 92%;
    --input: 220 13% 88%;
    --ring: 213 58% 18%;

    /* Destructive - warmer red */
    --destructive: 0 72% 51%;
    --destructive-light: 0 60% 97%;
    --destructive-foreground: 0 0% 100%;

    /* Success */
    --success: 158 64% 36%;
    --success-light: 158 50% 96%;

    /* Radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;

    /* Custom brand tokens */
    --navy: 213 58% 18%;
    --navy-light: 213 45% 28%;
    --navy-dark: 213 62% 12%;
    --sage: 158 64% 36%;
    --sage-light: 158 50% 48%;
    --gold: 38 92% 50%;
    --gold-dark: 38 85% 42%;

    /* Enhanced shadows */
    --shadow-sm: 0 1px 2px 0 hsl(220 13% 13% / 0.04);
    --shadow-md: 0 4px 6px -1px hsl(220 13% 13% / 0.07), 0 2px 4px -2px hsl(220 13% 13% / 0.05);
    --shadow-lg: 0 10px 15px -3px hsl(220 13% 13% / 0.08), 0 4px 6px -4px hsl(220 13% 13% / 0.04);
    --shadow-xl: 0 20px 25px -5px hsl(220 13% 13% / 0.08), 0 8px 10px -6px hsl(220 13% 13% / 0.04);
    --shadow-card: 0 1px 3px 0 hsl(220 13% 13% / 0.06), 0 1px 2px -1px hsl(220 13% 13% / 0.04);
    --shadow-card-hover: 0 4px 12px -2px hsl(220 13% 13% / 0.1), 0 2px 6px -2px hsl(220 13% 13% / 0.06);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: hsl(var(--border));
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--font-body);
    font-feature-settings: "rlig" 1, "calt" 1;
}

body {
    margin: 0;
    line-height: inherit;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display typography - Serif for headlines */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    color: hsl(var(--primary));
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: hsl(var(--primary));
    letter-spacing: -0.015em;
}

/* Hero headline class for extra large serif headlines */
.headline-display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

/* Subheadline with serif italic for elegance */
.subhead-elegant {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

p {
    line-height: 1.75;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    cursor: pointer;
    background-color: transparent;
    background-image: none;
}

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

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Space between children */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-16 { top: 4rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.-top-2 { top: -0.5rem; }
.-top-4 { top: -1rem; }
.-right-2 { right: -0.5rem; }
.-right-4 { right: -1rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* =========================================
   Spacing
   ========================================= */
/* Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-4 { padding-left: 1rem; }
.pr-4 { padding-right: 1rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-15 { margin-top: 3.75rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* =========================================
   Sizing
   ========================================= */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-56 { width: 14rem; }
.w-80 { width: 20rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xs { max-width: 20rem; }

.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-80 { height: 20rem; }
.min-h-screen { min-height: 100vh; }
.max-h-\[90vh\] { max-height: 90vh; }

/* =========================================
   Typography
   ========================================= */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* =========================================
   Colors
   ========================================= */
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-popover { background-color: hsl(var(--popover)); }
.bg-border { background-color: hsl(var(--border)); }
.bg-transparent { background-color: transparent; }

/* Background with opacity */
.bg-background\/95 { background-color: hsl(var(--background) / 0.95); }
.bg-background\/60 { background-color: hsl(var(--background) / 0.60); }
.bg-foreground\/50 { background-color: hsl(var(--foreground) / 0.50); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.10); }
.bg-accent\/10 { background-color: hsl(var(--accent) / 0.10); }
.bg-accent\/20 { background-color: hsl(var(--accent) / 0.20); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.50); }
.bg-muted\/80 { background-color: hsl(var(--muted) / 0.80); }
.bg-primary-foreground\/10 { background-color: hsl(var(--primary-foreground) / 0.10); }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-white { background-color: #ffffff; }

.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.80); }
.text-primary-foreground\/70 { color: hsl(var(--primary-foreground) / 0.70); }
.text-primary-foreground\/90 { color: hsl(var(--primary-foreground) / 0.90); }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-yellow-600 { color: #ca8a04; }
.text-blue-600 { color: #2563eb; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-border { border-color: hsl(var(--border)); }
.border-accent { border-color: hsl(var(--accent)); }
.border-l-accent { border-left-color: hsl(var(--accent)); }
.border-primary-foreground\/20 { border-color: hsl(var(--primary-foreground) / 0.20); }
.border-accent\/20 { border-color: hsl(var(--accent) / 0.20); }
.border-accent\/30 { border-color: hsl(var(--accent) / 0.30); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-red-200 { border-color: #fecaca; }
.border-green-200 { border-color: #bbf7d0; }

/* =========================================
   Border Radius
   ========================================= */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* =========================================
   Shadows
   ========================================= */
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* =========================================
   Transitions
   ========================================= */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* =========================================
   Effects
   ========================================= */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.invisible { visibility: hidden; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* =========================================
   Interactivity
   ========================================= */
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.peer:checked ~ .peer-checked\:bg-accent { background-color: hsl(var(--accent)); }
.peer:checked ~ .peer-checked\:after\:translate-x-full::after { transform: translateX(100%); }

/* =========================================
   Hover States
   ========================================= */
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:bg-muted\/80:hover { background-color: hsl(var(--muted) / 0.80); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-accent\/90:hover { background-color: hsl(var(--accent) / 0.90); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }
.hover\:border-accent\/30:hover { border-color: hsl(var(--accent) / 0.30); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:no-underline:hover { text-decoration-line: none; }
.underline { text-decoration-line: underline; }
.no-underline { text-decoration-line: none; }
.hover\:shadow-\[var\(--shadow-md\)\]:hover { box-shadow: var(--shadow-md); }

/* Group hover */
.group:hover .group-hover\:bg-accent { background-color: hsl(var(--accent)); }
.group:hover .group-hover\:text-accent-foreground { color: hsl(var(--accent-foreground)); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }

/* =========================================
   Component Classes
   ========================================= */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Section backgrounds with subtle gradients - not flat colors */
.section-grey {
    background: linear-gradient(
        180deg,
        hsl(var(--muted)) 0%,
        hsl(40 15% 95%) 100%
    );
}

.section-navy {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Hero section with grain texture overlay */
.section-hero {
    position: relative;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
}

.section-hero > * {
    position: relative;
    z-index: 2;
}

/* Warm gradient for CTAs and feature sections */
.section-warm {
    background: linear-gradient(
        135deg,
        hsl(var(--background)) 0%,
        hsl(40 40% 97%) 100%
    );
}

/* Trust statement styling - replaces generic checkmarks */
.trust-statement {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-statement .trust-icon {
    font-style: normal;
    font-size: 1.25rem;
}

/* Process/How-it-works vertical list styling */
.process-step {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid hsl(var(--border-subtle));
}

.process-step:last-child {
    border-bottom: none;
}

.process-number {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: hsl(var(--accent));
    opacity: 0.8;
}

/* Icon boxes with improved styling */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-back);
}

.icon-box-sm {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-box-md {
    width: 3rem;
    height: 3rem;
}

.icon-box-lg {
    width: 4rem;
    height: 4rem;
}

.icon-box-accent {
    background-color: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

.icon-box-primary {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.group:hover .icon-box-accent {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    transform: scale(1.05);
}

/* Base card with improved hover */
.card-elevated {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo),
                border-color 0.3s ease;
}

.card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* Feature/Module cards - left accent border */
.card-feature {
    background-color: hsl(var(--card));
    border-radius: 0 var(--radius) var(--radius) 0;
    border: 1px solid hsl(var(--border));
    border-left: 3px solid hsl(var(--accent));
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo),
                border-left-color 0.3s ease;
}

.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-left-color: hsl(var(--accent-warm));
}

/* Quote/Testimonial cards - editorial feel */
.card-quote {
    position: relative;
    background: linear-gradient(135deg, hsl(var(--muted)) 0%, hsl(var(--background)) 100%);
    border-radius: var(--radius-lg);
    border: none;
    padding: 2rem 2.5rem;
}

.card-quote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: hsl(var(--accent));
    opacity: 0.2;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
}

/* Pricing cards - top accent border with featured variant */
.card-pricing {
    background-color: hsl(var(--card));
    border-radius: var(--radius-lg);
    border: 1px solid hsl(var(--border));
    border-top: 4px solid hsl(var(--primary));
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.card-pricing:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-pricing.featured {
    border-top-color: hsl(var(--accent-warm));
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
    z-index: 1;
    position: relative;
}

.card-pricing.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.card-pricing.featured .price-amount {
    color: hsl(var(--accent-warm));
}

/* Problem/Challenge cards - warm subtle red */
.card-problem {
    background: linear-gradient(135deg, hsl(var(--destructive-light)) 0%, hsl(40 33% 98%) 100%);
    border-radius: var(--radius);
    border: 1px solid hsl(0 50% 92%);
    padding: 1.25rem;
}

/* Success/Solution cards */
.card-success {
    background: linear-gradient(135deg, hsl(var(--success-light)) 0%, hsl(40 33% 98%) 100%);
    border-radius: var(--radius);
    border: 1px solid hsl(158 40% 90%);
    padding: 1.25rem;
}

.text-balance {
    text-wrap: balance;
}

/* =========================================
   Gradient Backgrounds
   ========================================= */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, hsl(var(--primary))));
}

/* Combined gradient class for hero - navy gradient */
.bg-gradient-to-br.from-primary.via-primary.to-primary\/95 {
    background-image: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary)), hsl(var(--primary) / 0.95));
}

/* Fallback single classes */
.from-primary {
    --tw-gradient-from: hsl(var(--primary));
}

.via-primary {
    --tw-gradient-via: hsl(var(--primary));
}

.to-primary\/95 {
    --tw-gradient-to: hsl(var(--primary) / 0.95);
}

/* =========================================
   Animations - Handcrafted Motion System
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Subtle float for decorative elements - NOT bounce */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s var(--ease-out-expo) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s var(--ease-out-expo) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.7s var(--ease-out-expo) forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.7s var(--ease-out-expo) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.7s var(--ease-out-expo) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s var(--ease-out-expo) forwards;
}

.animate-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* Staggered animation delays - use on children */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* For elements that start invisible before animating */
.animate-on-scroll {
    opacity: 0;
}

/* Remove the generic bounce - replace with float */
.animate-bounce {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* =========================================
   Form Inputs
   ========================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

input::placeholder,
textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

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

/* Hero Search Input (larger variant) */
.search-input-hero {
    padding: 1.5rem 2.5rem 1.5rem 3rem;
    font-size: 1rem;
    line-height: 1.5rem;
    border-radius: var(--radius);
}

/* Filter Buttons */
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
    background-color: hsl(var(--primary-foreground) / 0.2);
    color: hsl(var(--primary-foreground));
    border: none;
    cursor: pointer;
}

.filter-btn:hover {
    background-color: hsl(var(--primary-foreground) / 0.3);
}

.filter-btn.active,
.filter-btn[data-active="true"] {
    background-color: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
}

/* Range Slider (shadcn style) */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    background: hsl(var(--secondary));
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--primary));
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

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

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

input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

input[type="range"]::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: hsl(var(--background));
    border: 2px solid hsl(var(--primary));
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
    background: hsl(var(--secondary));
    height: 0.5rem;
    border-radius: 9999px;
}

/* =========================================
   Toggle Switch Component (shadcn style)
   ========================================= */
.toggle-switch {
    position: relative;
    display: inline-flex;
    height: 1.5rem;
    width: 2.75rem;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    border-radius: 9999px;
    border: 2px solid transparent;
    background-color: hsl(var(--input));
    transition: background-color 0.2s ease;
}

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

.toggle-switch-thumb {
    pointer-events: none;
    display: block;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    background-color: hsl(var(--background));
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    transform: translateX(2px);
}

.toggle-switch input:checked + .toggle-switch-thumb {
    transform: translateX(calc(2.75rem - 1.25rem - 2px));
}

.toggle-switch:has(input:checked) {
    background-color: hsl(var(--accent));
}

/* Focus ring for accessibility */
.toggle-switch:focus-within {
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.error-message {
    font-size: 0.75rem;
    color: hsl(var(--destructive));
    margin-top: 0.25rem;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--muted-foreground) / 0.3);
}

.btn-lg {
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* Hero button with shine sweep micro-interaction */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s var(--ease-out-back),
                box-shadow 0.3s var(--ease-out-expo),
                background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.btn-hero:hover::before {
    transform: translateX(100%);
}

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

/* Gold variant for premium CTAs */
.btn-hero-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: hsl(var(--accent-warm));
    color: hsl(var(--accent-warm-foreground));
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s var(--ease-out-back),
                box-shadow 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-hero-gold::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.btn-hero-gold:hover::before {
    transform: translateX(100%);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
    background-color: transparent;
    border: 2px solid hsl(var(--primary-foreground) / 0.3);
    color: hsl(var(--primary-foreground));
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: transform 0.3s var(--ease-out-back),
                background-color 0.2s ease,
                border-color 0.2s ease;
}

.btn-hero-outline:hover {
    transform: translateY(-2px);
    background-color: hsl(var(--primary-foreground) / 0.1);
    border-color: hsl(var(--primary-foreground) / 0.5);
}

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

/* Transform utilities */
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }

/* Additional accent backgrounds */
.bg-accent\/5 { background-color: hsl(var(--accent) / 0.05); }

/* =========================================
   Supports Queries
   ========================================= */
@supports (backdrop-filter: blur(8px)) {
    .supports-\[backdrop-filter\]\:bg-background\/60 {
        background-color: hsl(var(--background) / 0.60);
    }
}

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

/* sm: 640px */
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:text-left { text-align: left; }
}

/* md: 768px */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:block { display: block; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:gap-8 { gap: 2rem; }
    .md\:gap-10 { gap: 2.5rem; }
    .md\:gap-12 { gap: 3rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .md\:mb-16 { margin-bottom: 4rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-left { text-align: left; }
    .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .lg\:text-left { text-align: left; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:justify-end { justify-content: flex-end; }
    .container-padding { padding-left: 2rem; padding-right: 2rem; }
}

/* xl: 1280px */
@media (min-width: 1280px) {
    .xl\:w-96 { width: 24rem; }
    .xl\:h-96 { height: 24rem; }
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
}

/* =========================================
   Tooltip Component
   ========================================= */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    max-width: 200px;
    width: max-content;
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--shadow-md);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.tooltip-trigger::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: hsl(var(--foreground));
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:focus::after,
.tooltip-trigger:hover::before,
.tooltip-trigger:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Cursor helper for tooltip triggers */
.cursor-help {
    cursor: help;
}
