/* Refua Page Styles: simplified */

:root {
    --refua-text: #1f2937;
    --refua-muted: #4b5563;
    --refua-line: #e5e7eb;
    --refua-bg: #f8fafc;
    --refua-card: #ffffff;
    --refua-brand: #2563eb;
    --refua-brand-soft: #dbeafe;
}

.refua-page {
    background: linear-gradient(180deg, #ffffff 0%, var(--refua-bg) 100%);
}

.refua-page .brochure-section {
    border-bottom: 1px solid var(--refua-line);
    padding: 3.5rem 1rem;
}

.refua-page .brochure-section.alternate {
    background: #f9fbff;
}

.refua-page .content {
    width: min(100%, 920px);
    margin: 0 auto;
}

.refua-page h1,
.refua-page h2,
.refua-page h3 {
    color: var(--refua-text);
    letter-spacing: -0.01em;
}

.refua-page h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    line-height: 1.15;
}

.refua-page h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.5rem, 2.9vw, 2rem);
}

.refua-page p {
    margin: 0;
    color: var(--refua-muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.refua-page a {
    color: #1d4ed8;
}

.refua-page a:hover,
.refua-page a:focus-visible {
    color: #1e40af;
}

.hero-shell {
    position: relative;
}

.refua-kicker {
    margin: 0 0 0.65rem;
    color: #1e3a8a;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-copy {
    max-width: 48rem;
}

.section-intro {
    margin-bottom: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.product-card {
    background: var(--refua-card);
    border: 1px solid var(--refua-line);
    border-radius: 10px;
    padding: 1rem 1rem 1.1rem;
    box-shadow: 0 8px 22px -22px rgba(31, 41, 55, 0.8);
}

.product-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.18rem;
}

.simple-list {
    margin: 0.7rem 0;
    padding-left: 1rem;
    color: var(--refua-muted);
}

.simple-list li + li {
    margin-top: 0.28rem;
}

.install-pill {
    display: inline-block;
    margin: 0 0 0.6rem;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.code-section {
    margin-top: 0.8rem;
    background: #fff;
    border: 1px solid var(--refua-line);
    border-radius: 10px;
    padding: 0.7rem;
}

.code-section pre {
    margin: 0;
    overflow-x: auto;
    padding: 0.9rem;
    border-radius: 8px;
    background: #0f172a;
    color: #e5e7eb;
}

.code-section code {
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.87rem;
    line-height: 1.45;
}

.cta-section {
    text-align: center;
}

.cta-section p {
    max-width: 42rem;
    margin: 0 auto;
}

.cta-section .cta-buttons {
    justify-content: center;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.58rem 0.95rem;
    border: 1px solid transparent;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-button.primary {
    background: var(--refua-brand);
    color: #ffffff;
}

.cta-button.primary:hover,
.cta-button.primary:focus-visible {
    background: #1d4ed8;
    color: #ffffff;
}

.cta-button.secondary {
    background: var(--refua-brand-soft);
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
    background: #bfdbfe;
    color: #1e3a8a;
}

/* Subtle decorative animation */
.lab-float {
    position: absolute;
    top: -0.35rem;
    right: 0;
    width: 180px;
    height: 132px;
    pointer-events: none;
    opacity: 0.55;
}

.lab-pill {
    position: absolute;
    width: 44px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(90deg, #dbeafe 0 50%, #eef2ff 50% 100%);
}

.pill-a {
    top: 16px;
    left: 16px;
    transform: rotate(-18deg);
    animation: float-pill 7s ease-in-out infinite;
}

.pill-b {
    top: 58px;
    left: 86px;
    transform: rotate(22deg);
    animation: float-pill 9s ease-in-out infinite reverse;
}

.lab-beaker {
    position: absolute;
    width: 24px;
    height: 38px;
    border: 2px solid #93c5fd;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0) 0 45%, rgba(147, 197, 253, 0.45) 45% 100%);
}

.lab-beaker::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 4px;
    width: 12px;
    height: 8px;
    border: 2px solid #93c5fd;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #ffffff;
}

.beaker-a {
    top: 24px;
    left: 128px;
    transform: rotate(8deg);
    animation: float-beaker 8s ease-in-out infinite;
}

.beaker-b {
    top: 76px;
    left: 46px;
    transform: rotate(-10deg);
    animation: float-beaker 10s ease-in-out infinite reverse;
}

@keyframes float-pill {
    0%,
    100% {
        transform: translateY(0) rotate(-12deg);
    }
    50% {
        transform: translateY(-5px) rotate(-16deg);
    }
}

@keyframes float-beaker {
    0%,
    100% {
        transform: translateY(0) rotate(8deg);
    }
    50% {
        transform: translateY(-4px) rotate(4deg);
    }
}

@media (max-width: 860px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .refua-page .brochure-section {
        padding: 2.8rem 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .lab-float {
        width: 132px;
        right: 6px;
        top: 0;
        opacity: 0.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pill-a,
    .pill-b,
    .beaker-a,
    .beaker-b {
        animation: none;
    }
}
