/* Breathflow Connection - Custom Styles (Tailwind companion) */

/* ========================================
   GLOBAL RESETS
   ======================================== */

/* Sharp corners everywhere - the raw aesthetic */
* { border-radius: 0 !important; }

/* Selection color */
::selection { background: rgba(86, 196, 224, 0.25); color: #E8EDF3; }

/* ========================================
   ANIMATIONS
   ======================================== */

/* Hero image breathing effect */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Scroll indicator pulse */
@keyframes pulse-line {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* FAQ accordion */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
details[open] .faq-answer { animation: fadeSlide 0.3s ease; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* ========================================
   GRAIN OVERLAY
   ======================================== */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-scrolled {
    background: rgba(10, 14, 23, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(86, 196, 224, 0.08);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.mobile-menu.open {
    max-height: 500px;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
}

/* ========================================
   GRADIENT TEXT
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, #2EAAD4 0%, #56C4E0 50%, #78D8EC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PROSE STYLING (blog + legal pages)
   ======================================== */

/* Dark background prose */
.prose-dark h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #E8EDF3; }
.prose-dark h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #E8EDF3; }
.prose-dark p { margin-bottom: 1rem; line-height: 1.75; color: rgba(232, 237, 243, 0.7); }
.prose-dark ul, .prose-dark ol { margin-bottom: 1rem; padding-left: 1.5rem; color: rgba(232, 237, 243, 0.7); }
.prose-dark li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose-dark strong { color: #E8EDF3; }
.prose-dark a { color: #56C4E0; text-decoration: underline; }
.prose-dark a:hover { color: #78D8EC; }
.prose-dark hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 3rem 0; }

/* Light background prose */
.prose-light h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #0A0E17; }
.prose-light h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #0A0E17; }
.prose-light p { margin-bottom: 1rem; line-height: 1.75; color: rgba(10, 14, 23, 0.7); }
.prose-light ul, .prose-light ol { margin-bottom: 1rem; padding-left: 1.5rem; color: rgba(10, 14, 23, 0.7); }
.prose-light li { margin-bottom: 0.5rem; line-height: 1.75; }
.prose-light strong { color: #0A0E17; }
.prose-light a { color: #2EAAD4; text-decoration: underline; }
.prose-light a:hover { color: #1B7A94; }
.prose-light hr { border: none; border-top: 1px solid #e5e7eb; margin: 3rem 0; }

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ========================================
   NO-JS FALLBACK
   ======================================== */
.no-js .fade-up,
.no-js .fade-in {
    opacity: 1 !important;
    transform: none !important;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid #56C4E0;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #56C4E0;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .fade-up, .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    nav, footer, .signup-form, button { display: none; }
    body::after { display: none; }
}
