:root {
    --cerulean: #04b4ec;
    --cerulean-light: rgba(4, 180, 236, 0.1);
    --green-vogue: #042c64;
    --azure-radiance: #0494f0;
    --cobalt: #044cac;
    --teal-blue: #045064;
    --cobalt-light: rgba(4, 76, 172, 0.1);
}

/* Generic fade-in-up animation used by various components */
@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.3s ease-out;
}

@keyframes turnstileShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-turnstile-shake {
    animation: turnstileShake 0.45s ease;
}

/* Common button styles */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

/* Primary Button */
.btn-primary {
    background-color: var(--cerulean);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-primary:hover {
    background-color: var(--azure-radiance);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--cerulean-light);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--cobalt);
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover {
    background-color: var(--azure-radiance);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--cobalt-light);
}

/* Tertiary Button (Outline) */
.btn-tertiary {
    background-color: white;
    color: var(--cerulean);
    border: 1px solid var(--cerulean);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-tertiary:hover {
    background-color: var(--cerulean-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-tertiary:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--cerulean-light);
}

/* Outline Button */
.btn-outline {
    border: 1.5px solid var(--cerulean);
    color: var(--cerulean);
    background-color: transparent;
}
.btn-outline:hover {
    background-color: var(--cerulean-light);
    border-color: var(--azure-radiance);
    color: var(--azure-radiance);
}
.btn-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--cerulean-light);
}

.btn-muted-outline {
    background-color: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
}

.btn-muted-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #4b5563;
}

.btn-muted-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.16);
}

.api-key-copy-state-button {
    gap: 0.5rem;
    min-width: 7.5rem;
    white-space: nowrap;
}

.api-key-copy-state-button.is-copied {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

/* Danger Button */
.btn-danger {
    background-color: #dc2626 !important; /* bg-red-600 */
    color: white !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.btn-danger:hover {
    background-color: #b91c1c !important; /* bg-red-700 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
.btn-danger:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; /* focus:ring-red-500 */
}

/* Input styles */
.input-primary {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.input-primary:focus {
    outline: none;
    border-color: var(--cerulean);
    box-shadow: 0 0 0 3px var(--cerulean-light);
}

/* Verification code input */
.verification-code-input {
    font-size: 1.25rem;
    letter-spacing: 0.5em;
    text-align: center;
    font-weight: 500;
}

/* Link styles */
.link-primary {
    color: var(--cerulean);
    text-decoration: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.link-primary:hover {
    color: var(--azure-radiance);
    text-decoration: underline;
}

/* Card Style */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.card-header {
    color: var(--green-vogue);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hamburger-button {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: transparent;
    transition: background-color 200ms ease;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hamburger-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.hamburger-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Navigation-specific button focus: match other nav links with white outline */
nav .btn-outline:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    border-radius: 0.375rem;
    box-shadow: none;
}

nav .btn-primary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
    border-radius: 0.375rem;
    box-shadow: none;
}

/* Enhanced focus for navigation links */
nav a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* Account dropdown button focus */
nav button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* HTMX Indicator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline-flex;
}
.htmx-request.htmx-indicator {
  display: inline-flex;
}

/* Error Page Styles */
.text-cerulean {
    color: var(--cerulean);
}

/* Pricing modal */
.purchase-section-label {
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.purchase-option-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    padding: 16px 13px 13px;
    position: relative;
    transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.purchase-options-grid {
    margin-top: 0;
}

.purchase-option-card-featured {
    background: #f0fbff;
    border-color: var(--cerulean);
    box-shadow: 0 8px 18px rgba(4, 180, 236, 0.12), 0 0 0 1px rgba(4, 180, 236, 0.22);
}

.purchase-card-heading {
    display: block;
}

.purchase-plan-label {
    color: #6b7280;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.purchase-option-card-featured .purchase-plan-label {
    color: var(--green-vogue);
}

.purchase-card-volume {
    margin-top: 0.85rem;
}

.purchase-plan-count {
    color: var(--green-vogue);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.05;
}

.purchase-plan-unit {
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
}

.purchase-plan-hint {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 0.4rem;
    min-height: 2.4rem;
}

.purchase-plan-hint-featured {
    color: var(--green-vogue);
    font-weight: 500;
}

.purchase-card-price {
    border-top: 1px solid #eef2f7;
    margin-bottom: 0.7rem;
    margin-top: 0.6rem;
    padding-top: 0.65rem;
}

.purchase-plan-price {
    color: #111827;
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.2;
}

.purchase-unit-price {
    color: #6b7280;
    font-size: 11px;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.purchase-option-card .btn {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: none;
    color: var(--green-vogue);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: auto;
    padding: 0.45rem 0.6rem;
}

.purchase-option-card .btn:hover {
    background-color: var(--cerulean-light);
    border-color: rgba(4, 180, 236, 0.7);
    box-shadow: none;
    color: var(--green-vogue);
}

.purchase-option-card-featured .btn {
    background-color: var(--green-vogue);
    border-color: var(--green-vogue);
    color: white;
}

.purchase-option-card-featured .btn:hover {
    background-color: var(--cobalt);
    border-color: var(--cobalt);
    color: white;
}

.purchase-option-card .btn:focus {
    box-shadow: 0 0 0 3px rgba(4, 180, 236, 0.15);
}

.purchase-badge {
    border-radius: 99px;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    left: 50%;
    line-height: 1;
    position: absolute;
    top: -9px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    padding: 0.25rem 0.55rem;
}

.purchase-badge.purchase-badge-best {
    background: var(--green-vogue) !important;
    color: white !important;
    box-shadow: 0 1px 2px rgba(4, 44, 100, 0.18);
}

.purchase-badge-save {
    background: #ecfdf3;
    color: #047857;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.purchase-credit-reassurance {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 400;
    margin-top: 0.7rem;
    text-align: center;
}

.purchase-pro-banner {
    background: rgba(4, 44, 100, 0.03);
    border: 1px solid rgba(4, 44, 100, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.purchase-pro-banner:hover {
    border-color: rgba(4, 180, 236, 0.35);
}

.purchase-pro-price {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.purchase-pro-banner .btn {
    border-color: rgba(4, 44, 100, 0.2);
    color: var(--green-vogue);
}

.purchase-pro-banner .btn:hover {
    background: white;
    border-color: rgba(4, 180, 236, 0.7);
    color: var(--green-vogue);
}

.purchase-consent-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.85rem 0.95rem;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.purchase-consent-card-error {
    background: #fffbeb;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.purchase-consent-checkbox {
    accent-color: var(--green-vogue);
    cursor: pointer;
    height: 1rem;
    width: 1rem;
}

.text-green-vogue {
    color: var(--green-vogue);
}

.bg-cerulean-light {
    background-color: var(--cerulean-light);
}

/* Error page animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

.content-container {
    max-width: 80rem; /* 7xl equivalent */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .content-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .content-container {
        padding: 0 2rem;
    }
}

.text-cerulean {
    color: var(--cerulean);
}

