/* ═══════════════════════════════════════
   BUCLE — Refined Light
   Inspired by minimal editorial design
   Outfit · Warm neutrals · Restrained
   ═══════════════════════════════════════ */

html { scroll-behavior: smooth; }
::selection { background: rgba(22,163,74,0.12); }

@media (max-width: 1023px) {
    body { padding-bottom: 68px; }
}

/* ── Nav ── */
#main-nav { background: transparent; }
#main-nav.scrolled {
    background: rgba(247,247,245,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(26,26,24,0.04);
}

.nav-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    color: #787774;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(.23,1,.32,1);
}
.nav-link:hover {
    color: #1a1a18;
    background: rgba(26,26,24,0.04);
}
.nav-link.active {
    color: #1a1a18;
    font-weight: 500;
    background: rgba(26,26,24,0.05);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    background: #1a1a18;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 16px 36px;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(.23,1,.32,1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26,26,24,0.15);
}

.btn-secondary {
    display: inline-block;
    font-size: 15px;
    font-weight: 400;
    color: #787774;
    padding: 16px 36px;
    border: 1.5px dashed #d4d3d0;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(.23,1,.32,1);
}
.btn-secondary:hover {
    color: #1a1a18;
    border-color: #a3a29e;
    transform: translateY(-2px);
}

/* ── Cards ── */
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 40px;
    transition: all 0.35s cubic-bezier(.23,1,.32,1);
}
@media (min-width: 768px) {
    .card { padding: 44px; }
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(26,26,24,0.06);
}

/* ── Section label ── */
.section-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #16A34A;
}

/* ── Display heading ── */
.display {
    font-weight: 200;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

/* ── Accordion ── */
.accordion-content { overflow: hidden; height: 0; }

/* CSS fallback: only when GSAP hasn't loaded yet */
body.gsap-pending .accordion-group > :first-child > .accordion-content { height: auto; }
body.gsap-pending .accordion-group > :first-child > .accordion-trigger .accordion-icon { transform: rotate(180deg); }
.accordion-icon { transition: transform 0.4s cubic-bezier(.23,1,.32,1); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }

/* ── Form ── */
.form-input {
    background: #ffffff;
    border: 1.5px solid #e8e7e4;
    color: #1a1a18;
    font-weight: 300;
    transition: all 0.25s;
}
.form-input::placeholder { color: #a3a29e; }
.form-input:focus {
    outline: none;
    border-color: #1a1a18;
    box-shadow: 0 0 0 3px rgba(26,26,24,0.06);
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a29e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Progress bar ── */
.progress-bar { height: 2px; border-radius: 1px; background: #e8e7e4; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 1px; background: #16A34A; transition: width 0.4s cubic-bezier(.23,1,.32,1); }

/* ── Price bars ── */
.price-bar { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #16A34A, #34d058); }
.price-bar-sub { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #e8443a, #f87171); }

/* ── Comparison table ── */
.comparison-table th, .comparison-table td { border-bottom: 1px solid #e8e7e4; }

/* ── Guarantee ── */
.guarantee-card {
    background: rgba(22,163,74,0.03);
    border: 1px solid rgba(22,163,74,0.12);
    border-radius: 20px;
}

/* ── Floating decorative ── */
.float-ring { border: 1px solid currentColor; border-radius: 50%; opacity: 0.07; position: absolute; pointer-events: none; }
.float-dot { background: currentColor; border-radius: 50%; opacity: 0.05; position: absolute; pointer-events: none; }

/* ── WhatsApp ── */
.whatsapp-float { animation: pulse-wa 2.5s infinite; }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.2); }
    50% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}

/* ── GSAP states + fallbacks ── */
[data-reveal],[data-reveal-card],[data-hero-badge],[data-hero-title],[data-hero-sub],[data-hero-cta] { opacity: 0; }

body.gsap-pending [data-reveal],body.gsap-pending [data-reveal-card],body.gsap-pending [data-hero-badge],body.gsap-pending [data-hero-title],body.gsap-pending [data-hero-sub],body.gsap-pending [data-hero-cta] {
    animation: gsap-fallback 0.6s ease-out 4s forwards;
}
@keyframes gsap-fallback { to { opacity: 1; transform: none; } }

html.no-js [data-reveal],html.no-js [data-reveal-card],html.no-js [data-hero-badge],html.no-js [data-hero-title],html.no-js [data-hero-sub],html.no-js [data-hero-cta] { opacity: 1 !important; transform: none !important; }
html.no-js .accordion-content { height: auto !important; }

.split-line { overflow: hidden; display: inline-block; }
.split-word { display: inline-block; will-change: transform; }

/* ── Swiper overrides ── */
.testimonials-swiper {
    overflow: visible;
}
.testimonials-swiper .swiper-slide {
    height: auto;
    opacity: 0.4;
    transition: opacity 0.4s cubic-bezier(.23,1,.32,1);
}
.testimonials-swiper .swiper-slide-active,
.testimonials-swiper .swiper-slide-next,
.testimonials-swiper .swiper-slide-next + .swiper-slide {
    opacity: 1;
}
@media (max-width: 768px) {
    .testimonials-swiper .swiper-slide-active,
    .testimonials-swiper .swiper-slide-next {
        opacity: 1;
    }
}
.testimonials-swiper .swiper-wrapper {
    align-items: stretch;
}

/* ── Channel icons ── */
.channel-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(.23,1,.32,1);
    opacity: 0;
    transform: translateY(8px);
}
.channel-icon.visible {
    opacity: 1;
    transform: translateY(0);
}
.channel-icon:hover {
    background: rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* ── Timeline stepper ── */
.timeline-step .step-circle {
    background: #f7f7f5;
    border-color: #e8e7e4;
}
.timeline-step .step-number {
    color: #a3a29e;
}
.timeline-step.active .step-circle {
    background: #16A34A;
    border-color: #16A34A;
    box-shadow: 0 4px 16px rgba(22,163,74,0.2);
}
.timeline-step.active .step-number {
    color: #ffffff;
}
.timeline-step.active .step-content {
    transform: translateY(-2px);
}
.timeline-step .step-content {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* ── Prose (blog content) ── */
.prose {
    font-size: 18px;
    font-weight: 350;
    line-height: 1.8;
    color: #1a1a18;
}
.prose h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    color: #1a1a18;
}
.prose h3 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 400;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: #1a1a18;
}
.prose h2:first-child,
.prose h3:first-child {
    margin-top: 0;
}
.prose p {
    margin-bottom: 1.4em;
}
.prose p:last-child {
    margin-bottom: 0;
}
.prose a {
    color: #16A34A;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover {
    color: #1a1a18;
    text-decoration-color: #1a1a18;
}
.prose strong {
    font-weight: 600;
}
.prose ul,
.prose ol {
    margin-bottom: 1.4em;
    padding-left: 1.5em;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
}
.prose li::marker {
    color: #16A34A;
}
.prose blockquote {
    border-left: 3px solid #16A34A;
    padding-left: 1.25em;
    margin: 1.5em 0;
    font-style: italic;
    color: #787774;
}
.prose img {
    border-radius: 16px;
    margin: 2em 0;
    max-width: 100%;
    height: auto;
}
.prose hr {
    border: none;
    border-top: 1px solid #e8e7e4;
    margin: 2.5em 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 16px;
}
.prose th,
.prose td {
    border-bottom: 1px solid #e8e7e4;
    padding: 10px 12px;
    text-align: left;
}
.prose th {
    font-weight: 500;
    color: #787774;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.prose code {
    background: rgba(26,26,24,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.prose pre {
    background: #1a1a18;
    color: #f7f7f5;
    padding: 1.25em 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 15px;
    line-height: 1.6;
}
.prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* Line clamp utility for blog cards */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
