/**
 * Copyright 2026 oh826
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     https://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* ===================================
   PRICING PAGE STYLES - EYECERITY
   Design System: Light Mode (Matching index.html)
   =================================== */

:root {
    --color-primary: #06B6D4;
    --color-primary-dark: #0891B2;
    --color-accent: #10B981;
    --color-accent-light: #6EE7B7;
    --color-bg-cyan: #ECFEFF;
    --color-bg-green: #F0FDF4;
    --color-surface: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text: #0F172A;
    --color-text-muted: #64748B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-bg-cyan);
    color: var(--color-text);
    line-height: 1.5;
}

.font-display { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* ===================================
   NAVIGATION (Shared Styles)
   =================================== */

.nav-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 1px 3px rgba(6, 182, 212, 0.1);
}

.logo-gradient {
    background: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
}

.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.h-16 { height: 4rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.text-white { color: #ffffff; }
.font-bold { font-weight: 700; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.tracking-tight { letter-spacing: -0.025em; }
.text-slate-900 { color: #0f172a; }
.text-slate-600 { color: #475569; }
.text-cyan-600 { color: #0891b2; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.hover\:text-cyan-600:hover { color: #0891b2; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.bg-slate-900 { background-color: #0f172a; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.font-semibold { font-weight: 600; }
.hidden { display: none; }
.p-2 { padding: 0.5rem; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.bg-white { background-color: #ffffff; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.block { display: block; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-center { text-align: center; }

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
}

/* ===================================
   PILL BADGE
   =================================== */

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #ECFEFF, #F0FDF4);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0891B2;
}

/* ===================================
   HERO SECTION
   =================================== */

.pricing-hero {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDF4 100%);
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.max-w-2xl {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }

.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.leading-tight { line-height: 1.25; }

@media (min-width: 768px) {
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing-section {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
    }
}

/* ===================================
   PRICING CARDS
   =================================== */

.pricing-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15);
}

/* Featured Card (Pro) - 10% Larger */
.pricing-card-featured {
    border-color: var(--color-primary);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.5) 0%, rgba(240, 253, 244, 0.5) 100%);
    transform: scale(1);
}

@media (min-width: 1024px) {
    .pricing-card-featured {
        transform: scale(1.05);
    }
    
    .pricing-card-featured:hover {
        transform: scale(1.08);
    }
}

/* Dark Card (Yearly) */
.pricing-card-dark {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-color: #334155;
    color: #F8FAFC;
}

.pricing-card-dark .plan-name,
.pricing-card-dark .price-amount,
.pricing-card-dark .plan-description {
    color: #F8FAFC;
}

.pricing-card-dark .price-period {
    color: #94A3B8;
}

.pricing-card-dark .feature-item {
    color: #CBD5E1;
}

.pricing-card-dark .feature-icon {
    color: #10B981;
}

.pricing-card-dark .plan-footer-note {
    color: #94A3B8;
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-badge svg {
    width: 1rem;
    height: 1rem;
}

/* Card Header */
.card-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.pricing-card-dark .card-header {
    border-bottom-color: #334155;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-right: 0.25rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.price-period {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

.savings-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.plan-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Features List */
.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.6;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* CTA Buttons */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.5);
}

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

.btn-secondary:hover {
    background: var(--color-bg-cyan);
    border-color: var(--color-accent);
}

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

.plan-footer-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===================================
   FREE TIER CALLOUT
   =================================== */

.free-tier-callout {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
}

.callout-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.callout-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.callout-content > div {
    flex: 1;
    min-width: 250px;
}

.callout-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.callout-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.btn-callout {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn-callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    background: white;
    border-top: 2px solid var(--color-border);
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.mb-12 { margin-bottom: 3rem; }

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--color-text);
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
    animation: slideDown 0.3s ease-out;
}

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

.faq-answer p {
    margin: 0;
}

/* ===================================
   FOOTER
   =================================== */

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-cyan-50 {
    --tw-gradient-from: #ecfeff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(236, 254, 255, 0));
}

.to-emerald-50 {
    --tw-gradient-to: #f0fdf4;
}

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.border-t-2 { border-top-width: 2px; }
.border-cyan-200 { border-color: #a5f3fc; }
.gap-6 { gap: 1.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-slate-500 { color: #64748b; }
.justify-center { justify-content: center; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }

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

/* ===================================
   FOCUS VISIBILITY (WCAG 2.4.7)
   =================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #0891B2;
    outline-offset: 2px;
}

/* ===================================
   SKIP LINK (WCAG 2.4.1)
   =================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0891B2;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.text-cyan-800 { color: #155e75; }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .pricing-card-featured {
        transform: scale(1);
    }
    
    .pricing-card-featured:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .callout-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-callout {
        width: 100%;
    }
}