/* ============================================================
   Frame Landing Page — Styles
   Animations, transitions, and effects specific to the marketing site.
   ============================================================ */

/* -- Base resets -- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* -- Custom scrollbar (same as app) -- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
* { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }

/* -- Navbar transition -- */
.navbar-transition {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* -- Mobile menu animation -- */
.mobile-menu-transition {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.mobile-menu-transition.open {
    max-height: 400px;
    opacity: 1;
}

/* -- Mock editor cursor blink -- */
.cursor-blink::after {
    content: '|';
    color: #818cf8;
    font-weight: 300;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* -- Hero gradient animation (subtle pulse) -- */
.hero-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* -- Glow effect for hero visual -- */
.glow-brand {
    box-shadow:
        0 0 30px rgba(99, 102, 241, 0.15),
        0 0 60px rgba(99, 102, 241, 0.08);
}

/* -- Scroll-triggered fade-in -- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Staggered children animation -- */
.animate-on-scroll.visible .stagger-child:nth-child(1) { transition-delay: 0ms; }
.animate-on-scroll.visible .stagger-child:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll.visible .stagger-child:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll.visible .stagger-child:nth-child(4) { transition-delay: 240ms; }
.animate-on-scroll.visible .stagger-child:nth-child(5) { transition-delay: 320ms; }
.animate-on-scroll.visible .stagger-child:nth-child(6) { transition-delay: 400ms; }
.animate-on-scroll.visible .stagger-child:nth-child(7) { transition-delay: 480ms; }
.animate-on-scroll.visible .stagger-child:nth-child(8) { transition-delay: 560ms; }

.stagger-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-on-scroll.visible .stagger-child {
    opacity: 1;
    transform: translateY(0);
}

/* -- Pricing card hover lift -- */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
}

/* -- Mock editor syntax colors -- */
.syntax-heading { color: #818cf8; }
.syntax-bullet  { color: #9ca3af; }
.syntax-code    { color: #34d399; }
.syntax-text    { color: #e5e7eb; }
.syntax-comment { color: #6b7280; font-style: italic; }

/* -- Testimonial quote mark -- */
.quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: #e0e7ff;
    font-family: Georgia, serif;
}

/* -- Focus ring for accessibility -- */
.focus-ring:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* -- Skip to content (accessibility) -- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #6366f1;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* -- Cookie consent banner animations -- */
#cookie-consent {
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

/* ============================================================
   Legal / Content page typography
   Apply class "legal-content" to the prose container
   ============================================================ */
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: #4338ca;
}

.legal-content strong {
    color: #111827;
    font-weight: 600;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-content th,
.legal-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.legal-content th {
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
}

.legal-content td {
    color: #4b5563;
}

.legal-content blockquote {
    border-left: 4px solid #e0e7ff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}

/* ============================================================
   Blog content typography
   Apply class "blog-content" to the article body container
   ============================================================ */
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.blog-content ul, .blog-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }

.blog-content li {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.blog-content a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-content a:hover {
    color: #4338ca;
}

.blog-content strong {
    color: #111827;
    font-weight: 600;
}

.blog-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #4b5563;
    font-style: italic;
    background: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-content th, .blog-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.blog-content th {
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
}

.blog-content td {
    color: #4b5563;
}

/* Blog card hover */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-2px);
}

/* Line clamp utilities (Tailwind fallback) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
