:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f6f9f8;
    --color-bg-teal: #d4efe8;
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #595959;
    --color-teal: #0c9a86;
    --color-teal-text: #0a5f53;
    --color-teal-dark: #084d44;
    --color-teal-light: #14b89c;
    --color-border: #e0e8e6;
    --color-card-bg: #ffffff;
    --color-bedgoal: #6600ff;
    --color-botchat: #3b82f6;
    --color-hushhush: #a855f7;
    --color-voto: #e6b800;
    --color-maple: #d80000;
    --color-error: #b91c1c;
    --color-error-bg: rgba(185, 28, 28, 0.08);
    --color-error-border: #fca5a5;
    --color-focus-ring: rgba(12, 154, 134, 0.15);
    --color-logo-clear: #333333;
    --color-logo-works: #009999;
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a4a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* Self-hosted fonts — Latin + Latin-Ext subsets */

@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/instrument-serif-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Instrument Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/instrument-serif-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 200 600;
    font-stretch: 100%;
    font-display: swap;
    src: url('/fonts/nunito-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 200 600;
    font-stretch: 100%;
    font-display: swap;
    src: url('/fonts/nunito-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geist Sans';
    src: url('/fonts/geist-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Avenir Next', 'Segoe UI', sans-serif;
}

/* ---- Hero ---- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: clamp(3rem, 9vw, 8rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--color-logo-clear);
    text-transform: uppercase;
    user-select: none;
}

.logo-letter-works {
    color: var(--color-logo-works);
}

.logo-letter {
    display: inline-block;
    opacity: 0.01;
    transform: translateY(80px);
    animation: letterIn 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.tagline {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 200;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.01;
    animation: taglineIn 1.6s ease-out forwards;
    animation-delay: 1.6s;
}

@keyframes taglineIn {
    from { opacity: 0.01; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
    margin-top: 3rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.01;
    animation: hintFadeIn 1.3s ease-out 2.6s forwards;
    transition: color 0.3s ease;
}

.scroll-hint i {
    display: inline-block;
    animation: gentleBob 2.5s ease-in-out 4.5s infinite;
}

.scroll-hint:hover {
    color: var(--color-teal);
}

@keyframes letterIn {
    from {
        opacity: 0.01;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hintFadeIn {
    from {
        opacity: 0.01;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}


/* ---- Sections ---- */

.section {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.section-inner {
    max-width: 1000px;
    width: 100%;
}

.section-teal {
    background: var(--color-bg-teal);
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-heading {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--color-teal);
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible .section-heading::after {
    width: 100%;
}

/* ---- Value Proposition ---- */

.value-intro {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-secondary);
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.value-intro:last-of-type {
    margin-bottom: 3.5rem;
}

.trust-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.pillar {
    text-align: center;
}

.pillar-icon {
    font-size: 2.2rem;
    color: var(--color-teal);
    margin-bottom: 1rem;
}

.pillar h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.667rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.6rem;
}

.pillar-text {
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-secondary);
    white-space: pre-line;
}

/* ---- About ---- */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-body p {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 400;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-top: 0.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.value-icon {
    font-size: 1.467rem;
    color: var(--color-teal);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.value-item h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.467rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.value-desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ---- Product Showcase ---- */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 800px;
}

.product-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-teal);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transform-style: preserve-3d;
    transition:
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.08);
}

.product-card.bedgoal:hover { border-bottom-color: var(--color-bedgoal); border-left-color: var(--color-bedgoal); }
.product-card.botchat:hover { border-bottom-color: var(--color-botchat); border-left-color: var(--color-botchat); }
.product-card.voto:hover { border-bottom-color: var(--color-voto); border-left-color: var(--color-voto); }

.product-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-icon {
    font-size: 1.5rem;
    color: var(--color-teal);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.15);
}

.product-card.bedgoal:hover .product-icon { color: var(--color-bedgoal); }
.product-card.botchat:hover .product-icon { color: var(--color-botchat); }
.product-card.voto:hover .product-icon { color: var(--color-voto); }

.product-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.3rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.product-card.bedgoal:hover .product-name {
    font-family: 'Space Grotesk', sans-serif;
}

.product-card.botchat:hover .product-name {
    font-family: 'Geist Sans', sans-serif;
}

.product-card.voto:hover .product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.product-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-teal-text);
    transition: letter-spacing 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.product-card:hover .product-tagline {
    letter-spacing: 0.07em;
}

.product-card.bedgoal:hover .product-tagline { color: var(--color-bedgoal); }
.product-card.botchat:hover .product-tagline { color: var(--color-botchat); }
.product-card.voto:hover .product-tagline { color: var(--color-voto); }

.product-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ---- Who is ClearWorks ---- */

.founder-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.founder-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    transition: border-color 0.4s var(--ease-out-quart);
}

.founder-photo:hover {
    border-color: var(--color-teal);
}

.founder-text h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.founder-role {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--color-teal);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.founder-text p {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 400;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.founder-details {
    margin-top: -0.25rem;
}

.founder-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-teal);
    cursor: pointer;
    list-style: none;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.founder-read-more::-webkit-details-marker {
    display: none;
}

.founder-read-more::after {
    content: '\f078';

    /* biome-ignore lint/a11y/useGenericFontNames: Font Awesome icon — generic fallback would render the PUA codepoint as a literal glyph */
    font-family: 'Font Awesome 6 Free'; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
    font-weight: 900;
    font-size: 0.65rem;
    transition: transform 0.3s var(--ease-out-quart);
}

.founder-details[open] > .founder-read-more::after {
    transform: rotate(180deg);
}

.founder-read-more:hover {
    opacity: 0.7;
}

.founder-details p {
    margin-top: 0.5rem;
}

.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-teal);
    text-decoration: none;
    margin-top: 0.5rem;
    margin-right: 1.2rem;
    transition: opacity 0.3s ease;
}

.founder-linkedin:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .founder-photo {
        width: 160px;
        height: 160px;
    }
}

/* ---- Contact ---- */

.contact-intro {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 400;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-teal);
    text-decoration: none;
    margin-bottom: 2.5rem;
    transition: opacity 0.3s ease;
}

.contact-email-link:hover {
    opacity: 0.7;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 640px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text);
}

.form-group label .required {
    color: var(--color-error);
    margin-left: 0.15em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-submit {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-bg);
    background: var(--color-teal);
    border: 2px solid var(--color-teal);
    border-radius: 8px;
    padding: 0.85rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
}

.contact-submit:hover {
    background: transparent;
    color: var(--color-teal);
}

.contact-submit:active {
    transform: scale(0.98);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: none;
}

.form-status.success {
    display: block;
    color: var(--color-teal-text);
    background: rgba(12, 154, 134, 0.1);
    border: 1px solid var(--color-teal);
}

.form-status.error {
    display: block;
    color: var(--color-error);
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
}

.h-captcha-wrapper {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal);
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-teal);
}

.footer-nav a:hover::after {
    width: 100%;
}

.canadian {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4em;
    cursor: default;
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-controls-sep {
    width: 1px;
    height: 1rem;
    background: var(--color-border);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.4em 0.5em;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
    font-family: 'Nunito Sans', sans-serif;
}

.lang-btn:hover {
    color: var(--color-teal);
}

.lang-btn.active {
    color: var(--color-teal);
    border-color: var(--color-border);
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.theme-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.4em 0.5em;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.theme-btn:hover {
    color: var(--color-teal);
}

.theme-btn.active {
    color: var(--color-teal);
    border-color: var(--color-border);
}

.maple-leaf-btn {
    background: none;
    border: none;
    padding: 0.2em;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .canadian:hover .maple-leaf-btn:not(.active) {
        color: var(--color-maple);
    }
}

.maple-leaf-btn.active {
    color: var(--color-maple);
    animation: leafPulse 0.4s ease;
}

@keyframes leafPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.copyright {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.copyright a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: var(--color-teal);
}

.attribution {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-top: 0.5rem;
}

.attribution a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentcolor;
}

.attribution a:hover {
    color: var(--color-teal);
}

/* ---- Focus ---- */

:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Scroll Animations ---- */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.4rem;
        letter-spacing: 0.12em;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .trust-pillars {
        gap: 2rem;
    }

    .product-card {
        padding: 1.5rem;
    }
}

/* ---- Dark Theme ---- */

/* System preference (auto mode) */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --color-bg: #1a1a1a;
        --color-bg-alt: #1e2322;
        --color-bg-teal: #15302b;
        --color-text: #ffffff;
        --color-text-secondary: #b0b0b0;
        --color-text-muted: #9e9e9e;
        --color-teal: #1fc4a8;
        --color-teal-text: #34dfc0;
        --color-teal-dark: #0f7b6c;
        --color-teal-light: #3eebc8;
        --color-border: #2a3533;
        --color-card-bg: #262626;
        --color-bedgoal: #8533ff;
        --color-botchat: #60a5fa;
        --color-hushhush: #c084fc;
        --color-voto: #f0c800;
        --color-maple: #ff3333;
        --color-error: #f87171;
        --color-error-bg: rgba(248, 113, 113, 0.1);
        --color-error-border: #7f1d1d;
        --color-focus-ring: rgba(31, 196, 168, 0.2);
        --color-logo-clear: #ffffff;
        --color-logo-works: #1fc4a8;
        --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9e9e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    }

    html:not([data-theme="light"]) .product-card:hover {
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.15),
            0 16px 40px rgba(0, 0, 0, 0.25);
    }
}

/* Manual dark override */
html[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-bg-alt: #1e2322;
    --color-bg-teal: #15302b;
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-text-muted: #9e9e9e;
    --color-teal: #1fc4a8;
    --color-teal-text: #34dfc0;
    --color-teal-dark: #0f7b6c;
    --color-teal-light: #3eebc8;
    --color-border: #2a3533;
    --color-card-bg: #262626;
    --color-bedgoal: #8533ff;
    --color-botchat: #60a5fa;
    --color-hushhush: #c084fc;
    --color-voto: #f0c800;
    --color-maple: #ff3333;
    --color-error: #f87171;
    --color-error-bg: rgba(248, 113, 113, 0.1);
    --color-error-border: #7f1d1d;
    --color-focus-ring: rgba(31, 196, 168, 0.2);
    --color-logo-clear: #ffffff;
    --color-logo-works: #1fc4a8;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9e9e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .product-card:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 16px 40px rgba(0, 0, 0, 0.25);
}

/* ---- Scroll Progress ---- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-teal);
    box-shadow: 0 0 6px var(--color-teal);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* ---- Hero Glow ---- */

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-teal) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: soft-light;
}

.hero:hover .hero-glow {
    opacity: 0.12;
}

/* ---- Pillar Icon Animations ---- */

@keyframes shieldBounce {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleTip {
    0% { transform: rotate(-8deg); opacity: 0; }
    60% { transform: rotate(3deg); opacity: 1; }
    100% { transform: rotate(0deg); opacity: 1; }
}

@keyframes lockClick {
    0% { transform: rotate(-12deg) scale(0.8); opacity: 0; }
    50% { transform: rotate(2deg) scale(1.05); opacity: 1; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

.pillar-icon i {
    display: inline-block;
}

.pillar.visible .pillar-icon .fa-shield-halved {
    animation: shieldBounce 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both;
}

.pillar.visible .pillar-icon .fa-scale-balanced {
    animation: scaleTip 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both;
}

.pillar.visible .pillar-icon .fa-user-lock {
    animation: lockClick 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s both;
}

/* ---- Theme Transitions ---- */

body,
.section-teal,
.section-alt,
.product-card,
.site-footer,
.founder-photo,
.form-group input,
.form-group select,
.form-group textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.section-heading,
.pillar h3,
.value-item h3,
.founder-text h3,
.product-name,
.logo {
    transition: color 0.3s ease;
}

.value-intro,
.pillar-text,
.about-body p,
.value-desc,
.product-desc,
.founder-text p,
.tagline,
.copyright,
.canadian {
    transition: color 0.3s ease;
}

/* ---- Maple Confetti ---- */

.maple-confetto {
    position: fixed;
    pointer-events: none;
    font-size: 0.7rem;
    color: var(--color-maple);
    z-index: 9998;
    animation: confettiFall 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--spin)) scale(0.5);
    }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .logo-letter {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .tagline {
        animation: none;
        opacity: 1;
    }

    .scroll-hint {
        animation: none;
        opacity: 1;
    }

    .scroll-hint i {
        animation: none;
    }

    .fade-up,
    .stagger-child {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .section-heading::after {
        width: 100%;
        transition: none;
    }

    .pillar.visible .pillar-icon i {
        animation: none;
    }

    .maple-leaf-btn.active {
        animation: none;
    }

    .maple-confetto {
        animation: none;
        display: none;
    }

    .hero-glow {
        display: none;
    }

    .scroll-progress {
        display: none;
    }
}

/* -------- Privacy page -------- */

html[data-lang="pt"] [data-lang-only="en"] { display: none; }
html:not([data-lang="pt"]) [data-lang-only="pt"] { display: none; }

.privacy-body {
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.privacy-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
}

.privacy-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    color: var(--color-logo-clear);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.privacy-home-arrow {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.privacy-home-link:hover .privacy-home-arrow,
.privacy-home-link:focus-visible .privacy-home-arrow {
    transform: translateX(-4px);
    color: var(--color-teal);
}

.privacy-home-logo-works {
    color: var(--color-logo-works);
}

.privacy-main {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    line-height: 1.7;
}

.privacy-main h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.privacy-main h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 2.25rem 0 0.75rem;
    color: var(--color-text);
}

.privacy-main p,
.privacy-main ul,
.privacy-main ol {
    margin: 0 0 1rem;
    color: var(--color-text-secondary);
}

.privacy-main ul,
.privacy-main ol {
    padding-left: 1.25rem;
}

.privacy-main li {
    margin-bottom: 0.4rem;
}

.privacy-main a {
    color: var(--color-teal-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.privacy-main a:hover,
.privacy-main a:focus-visible {
    color: var(--color-teal);
}

.privacy-main code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--color-bg-alt);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.privacy-lede {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.privacy-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.privacy-processors li {
    margin-bottom: 0.6rem;
}

.footer-nav a[aria-current="page"] {
    color: var(--color-teal);
}
