/* ═══════════════════════════════════════════════════
   RENEWEDPRINT — MOTION + POLISH LAYER (loaded last)
   "Honest machine" · palette-agnostic, green accents.
   Scroll-reveal, condensing header, micro-interactions.
   Reveals enhance an already-visible default (no JS = visible).
   ═══════════════════════════════════════════════════ */

:root {
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-1: .18s; --t-2: .32s; --t-3: .55s; --t-4: .8s;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

::selection { background: rgba(35,71,229,.18); color: var(--brand-ink); }

/* Refined scrollbar (desktop) */
@media (pointer: fine) {
    * { scrollbar-width: thin; scrollbar-color: #B7C2BD transparent; }
    *::-webkit-scrollbar { width: 11px; height: 11px; }
    *::-webkit-scrollbar-track { background: transparent; }
    *::-webkit-scrollbar-thumb { background: #C2CDC8; border: 3px solid var(--bg); border-radius: 99px; }
    *::-webkit-scrollbar-thumb:hover { background: var(--brand); }
}

/* Accessible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 5px;
}

/* Balanced wrapping on headings, pretty prose */
h1, h2, h3 { text-wrap: balance; }
.hero-lead, .sec-lead, p { text-wrap: pretty; }
.hp-now, .rev-big, .units-num, .sm-now, .pc-price, .hp-was { font-variant-numeric: tabular-nums lining-nums; }

/* ── Condensing sticky header ─────────────────────── */
.nav {
    transition: height var(--t-2) var(--ease-out), background var(--t-2) var(--ease-out),
                box-shadow var(--t-2) var(--ease-out), border-color var(--t-2) var(--ease-out);
    will-change: height, background;
}
.nav.scrolled {
    height: 58px;
    background: rgba(243,244,246,.86);
    box-shadow: 0 1px 0 rgba(11,42,32,.05), 0 8px 28px -16px rgba(11,42,32,.22);
    border-bottom-color: transparent;
}
.nav-logo { transition: transform var(--t-2) var(--ease-out); }
.nav.scrolled .nav-logo { transform: scale(.96); }

/* ── Buttons: tactile ─────────────────────────────── */
.btn, .btn-orange, .nav-cta, .sm-btn, .form-submit {
    transition: transform var(--t-1) var(--ease-out), background var(--t-1) var(--ease-out),
                box-shadow var(--t-2) var(--ease-out), filter var(--t-1) var(--ease-out);
    will-change: transform;
}
.btn:active, .btn-orange:active, .sm-btn:active, .form-submit:active { transform: translateY(1px) scale(.99); }

/* sheen sweep on primary buttons */
.btn-primary, .btn-white { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-white::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .6s var(--ease-out);
}
.btn-primary:hover::after, .btn-white:hover::after { transform: translateX(120%); }

/* Carousel: gentle product zoom + deeper lift on hover */
.carousel { transition: box-shadow var(--t-3) var(--ease-out); }
.carousel:hover { box-shadow: 0 50px 96px -38px rgba(11,42,32,.46); }
.c-slide { transition: opacity .22s ease, transform 6s var(--ease-out); }
.carousel:hover .c-slide.active { transform: scale(1.035); }

/* Soft contact shadow under the product on its stage */
.carousel::after {
    content: ''; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
    width: 56%; height: 24px; border-radius: 50%; z-index: 1; pointer-events: none;
    background: rgba(11,42,32,.16); filter: blur(15px);
}
.c-slide { z-index: 2; }

/* Footer link underline reveal */
.ft-links-col a { position: relative; }
.ft-links-col a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
    background: var(--brand-bright); transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-2) var(--ease-out);
}
.ft-links-col a:hover::after { transform: scaleX(1); }

/* FAQ + spec hover wash, chevron spring */
.faq-item { transition: background var(--t-1) var(--ease-out); }
.faq-item:hover { background: rgba(35,71,229,.05); }
.faq-chev { transition: transform var(--t-2) cubic-bezier(.34,1.4,.64,1) !important; }

/* ── Scroll-reveal choreography ───────────────────── */
.reveal-on [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity var(--t-4) var(--ease-out), transform var(--t-4) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Above-the-fold entrance */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on .hero-text > *, .reveal-on .hero-media { animation: heroIn .9s var(--ease-out) both; }
    .reveal-on .hero-media { animation-delay: .12s; }
    .reveal-on .hero-text > *:nth-child(1) { animation-delay: .05s; }
    .reveal-on .hero-text > *:nth-child(2) { animation-delay: .11s; }
    .reveal-on .hero-text > *:nth-child(3) { animation-delay: .17s; }
    .reveal-on .hero-text > *:nth-child(4) { animation-delay: .23s; }
    .reveal-on .hero-text > *:nth-child(5) { animation-delay: .29s; }
    .reveal-on .hero-text > *:nth-child(6) { animation-delay: .35s; }
    .reveal-on .hero-text > *:nth-child(7) { animation-delay: .41s; }
    .reveal-on .hero-text > *:nth-child(8) { animation-delay: .47s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }

/* Slim scroll-progress line — green, very top */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: var(--brand); z-index: 10000; transition: width .1s linear; pointer-events: none;
}

/* Hero media: parallax-ready (JS drives transform on desktop) */
.hero-media { will-change: transform; transition: transform .5s var(--ease-out); }
