/* =======================================
   THEME TOKENS
   ======================================= */
/* Light is the new theme, designed here for the first time; Dark is
   pixel-identical to the site's original (only, always-on) palette so
   switching to Dark never changes anything visitors already know. Every
   name below already existed before theming and is used throughout the
   other CSS files unchanged - only the values now vary per class on
   <html>, driven by js/theme.js. */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.2);
    --primary-on-solid: #4f46e5;
    --primary-text-on-dark: #4338ca;
    --bg-main: #f7f9fb;
    --bg-subtle: #eef1f4;
    --bg-card: #ffffff;
    --text-primary: #191c1e;
    --text-secondary: #45464d;
    --border-color: #c6c6cd;
    --header-bg: rgba(247, 249, 251, 0.85);
    --nav-panel-bg: rgba(247, 249, 251, 0.95);
    --calc-card-bg: #ffffff;
    --calc-card-border: #e2e8f0;
    --hover-border-tint: rgba(0, 0, 0, 0.12);
    --subtle-wash: rgba(0, 0, 0, 0.02);
    --pricing-card-bg: #ffffff;
    --pricing-card-bg-highlight: #eef9fb;
    --pricing-card-border: #dbe2ea;
    /* Form-confirmation accent (.form-success in components.css). Per
       theme for the same contrast reason --primary-on-solid is: this
       green is rendered as text/iconography, not just as a border. */
    --success-accent: #047857;
    --success-border: #10b981;
    --success-wash: rgba(16, 185, 129, 0.07);
    --success-wash-strong: rgba(16, 185, 129, 0.15);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --transition-speed: 0.2s;
}

.dark {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);
    /* WCAG 2.2 AA text-contrast pass for the two specific contexts where
       --primary is rendered as text rather than a background/border/glow:
       solid-fill button labels and the badge-pill label. Kept as separate
       tokens rather than changing --primary itself, so every other use of
       the brand colour (borders, focus rings, glows, the badge dot) is
       completely unaffected. */
    --primary-on-solid: #6164ec; /* white text on this bg: 4.62:1 (was 4.47:1) */
    --primary-text-on-dark: #7c7ef3; /* this text on dark app backgrounds: 4.68-5.22:1 (was 2.96-3.99:1) */
    --bg-main: #090d16;
    --bg-subtle: #111827;
    --bg-card: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: #374151;
    --header-bg: rgba(9, 13, 22, 0.85);
    --nav-panel-bg: rgba(9, 13, 22, 0.95);
    --success-accent: #34d399;
    --success-border: #34d399;
    --success-wash: rgba(52, 211, 153, 0.08);
    --success-wash-strong: rgba(52, 211, 153, 0.16);
    --calc-card-bg: #0f0f11;
    --calc-card-border: #222222;
    --hover-border-tint: rgba(255, 255, 255, 0.15);
    --subtle-wash: rgba(255, 255, 255, 0.03);
    --pricing-card-bg: #161922;
    --pricing-card-bg-highlight: #1a1e29;
    --pricing-card-border: #232836;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.375rem 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

::selection {
    background-color: var(--primary);
    color: #ffffff;
}

/* =======================================
   SaaS Waste Calculator Component
   ======================================= */
.calc-intro {
    max-width: 650px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Outer Bounded Container with Border */
.calc-container {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--calc-card-bg);
    border: 1px solid var(--calc-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.calc-controls, 
.calc-results {
    padding: 2.5rem;
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
}

.slider-header label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.slider-header span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Range Input Base */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
    display: block;
}

input[type=range]:focus {
    outline: none;
}

/* Webkit Track */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 3px;
    border: none;
}

/* Webkit Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--accent-blue, #3b82f6);
    margin-top: -6px; 
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Firefox Track */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    border: none;
}

/* Firefox Thumb */
input[type=range]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--accent-blue, #3b82f6);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.calc-results .cta-text a {
    color: var(--accent-blue, #3b82f6);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.calc-results .cta-text a:hover {
    opacity: 0.85;
}

/* ================================================================= */
/* PRICING SECTION STYLES - SOLVANTRA ENTERPRISE IGA                   */
/* ================================================================= */

.pricing-section {
    padding: 6rem 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    position: relative;
}

.pricing-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.pricing-header h1 {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-secondary, #94A3B8);
    line-height: 1.6;
}

/* Pricing Grid Layout */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Base Card Styling */
.pricing-card {
    background-color: var(--pricing-card-bg);
    border: 1px solid var(--pricing-card-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-4px);
}

/* Highlighted (Growth) Card */
.pricing-card.highlighted {
    background-color: var(--pricing-card-bg-highlight);
    border: 2px solid var(--accent-color, #00E5FF);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.1);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.pricing-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary, #94A3B8);
    min-height: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Pricing Display */
.pricing-card .price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.pricing-card hr {
    border: none;
    border-top: 1px solid var(--pricing-card-border);
    margin-bottom: 1.75rem;
}

/* Feature Checklist */
.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex-grow: 1;
}

.pricing-card .feature-list li {
    font-size: 0.925rem;
    color: var(--text-primary, #E2E8F0);
    margin-bottom: 0.85rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

/* Architectural Checkmark Bullet Customization */
.pricing-card .feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color, #00E5FF);
    border-radius: 50%;
}

/* Badge Styling */
.badge {
    background-color: var(--accent-color, #00E5FF);
    color: #0F1115;
    font-size: 0.675rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Action Buttons inside Cards */
/* Pricing-card CTAs intentionally override the sitewide .btn-primary/.btn-secondary
   treatment defined in components.css with their own cyan/dark colour pair
   (var(--accent-color)/#0F1115) rather than the indigo brand colour used
   elsewhere. This is a deliberate visual distinction for the pricing page,
   not an accidental cascade collision - do not "fix" it by removing this
   override or by pointing it at --primary-on-solid. */
.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pricing-card .btn-primary {
    background-color: var(--accent-color, #00E5FF);
    color: #0F1115;
}

.pricing-card .btn-primary:hover {
    background-color: #33ecff;
}

.pricing-card .btn-secondary {
    background-color: transparent;
    border: 1px solid var(--pricing-card-border);
    color: var(--text-primary);
}

.pricing-card .btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--subtle-wash);
}