/* ============================================================
   Public site + auth.

   Every colour, radius and duration below comes from
   assets/css/theme.css, so the marketing pages, the sign-in
   screen and the product read as one brand.

   Load order: bootstrap.min.css -> theme.css -> style.css
   ============================================================ */

/* --- Base --------------------------------------------------- */
html, body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

a, .btn-link { color: var(--brand-text); }
a:hover, .btn-link:hover { color: var(--brand-text); }

/* Bootstrap overrides pulled onto the token system */
.btn-primary {
    color: var(--text-on-brand);
    background-color: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover, .btn-primary:focus {
    color: var(--text-on-brand);
    background-color: var(--brand-strong);
    border-color: var(--brand-strong);
}
.btn-outline-light {
    border-color: var(--border-light);
    color: var(--text-primary);
}
.btn-outline-light:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-active);
    color: var(--text-primary);
}
.text-secondary { color: var(--text-secondary) !important; }

.content { padding-top: 1.1rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--green); }
.invalid { outline: 1px solid var(--red); }
.validation-message { color: var(--red-text); }

/* --- Loading screen ----------------------------------------- */
.loading-screen {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.loading-line {
    width: 200px;
    height: 4px;
    background-color: var(--bg-tertiary);
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    border-radius: var(--radius-pill);
}

.loading-line::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 50%;
    background: var(--gradient-primary);
    animation: loading-bar 1.5s infinite ease-in-out;
    border-radius: var(--radius-pill);
}

@keyframes loading-bar {
    0%   { left: -50%; }
    50%  { left: 25%; width: 75%; }
    100% { left: 100%; width: 50%; }
}

/* --- Sections ------------------------------------------------
   Sections are sized by their content plus a generous rhythm.
   Forcing every band to 100vh stretched short sections into
   near-empty screens and broke on mobile, where 100vh is taller
   than the visible viewport.
   ------------------------------------------------------------- */
section {
    width: 100%;
    padding: var(--space-16) 0;
}

@media (max-width: 768px) {
    section { padding: var(--space-12) 0; }
}

/* --- Navbar --------------------------------------------------- */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-height);
    transition: background-color var(--dur-base) var(--ease-out);
}

.navbar.scrolled {
    background-color: var(--nav-bg-scrolled);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.navbar .navbar-brand {
    color: var(--text-primary) !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.navbar .nav-link:hover { color: var(--text-primary) !important; }

/* Current page is marked by weight and a rule, not colour alone */
.navbar .nav-link.active {
    color: var(--text-primary) !important;
    font-weight: 600;
    position: relative;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
}

.navbar-toggler {
    border-color: var(--border);
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus { box-shadow: none; }

/* --- Collapsed mobile menu -------------------------------------
   Below the lg breakpoint the menu stacks. Bootstrap's default is a
   bare list flush against the page; give it its own surface, full
   width rows with a real touch target, and stacked CTAs.
   ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar > .container { position: relative; }

    .navbar .navbar-collapse {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 0.6rem;
        padding: 0.5rem;
        max-height: calc(100dvh - var(--nav-height) - 1.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .navbar .navbar-nav { gap: 2px; }

    .navbar .nav-item { width: 100%; }

    .navbar .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: var(--tap-min);
        padding: 0.7rem 0.85rem;
        border-radius: var(--radius-md);
        border-left: 3px solid transparent;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus-visible { background: var(--bg-hover); }

    /* Stacked rows read better with a leading bar than an underline */
    .navbar .nav-link.active {
        background: var(--brand-subtle);
        border-left-color: var(--brand);
    }

    .navbar .nav-link.active::after { display: none; }

    /* Auth actions become full-width buttons under a divider */
    .navbar .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.65rem;
        border-top: 1px solid var(--border);
    }

    .navbar .navbar-collapse .d-flex > .btn,
    .navbar .navbar-collapse .d-flex > .promo-offer-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Hero Section ---------------------------------------------
   dvh, not vh: on mobile 100vh is taller than the visible
   viewport, which pushes the call to action below the fold.
   ---------------------------------------------------------------- */
.hero-section {
    padding: var(--space-16) 1rem var(--space-12);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: var(--space-12) 1rem; }
}

.limited-offer-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.promo-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 0.75rem;
}

.promo-subheading {
    font-size: 1.0625rem;
    font-weight: 400;
    margin: 1.25rem 0 1.75rem;
    color: var(--text-secondary);
    max-width: 56ch;
    line-height: 1.65;
}

.text-center .promo-subheading,
.text-md-center .promo-subheading { margin-left: auto; margin-right: auto; }

/* One primary call to action per view; everything else is secondary */
.promo-offer-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.6rem;
    min-height: var(--tap-min);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}

.promo-offer-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: var(--shadow-lg);
}

.promo-images-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.promo-images-wrapper img {
    max-width: 120px;
    height: auto;
}

@media (max-width: 576px) {
    .text-md-start { text-align: center !important; }
    .promo-images-wrapper img { max-width: 100px; }
}

/* --- Product / collection section ------------------------------ */
.nano-color-collection { background-color: var(--bg-primary); }

.nano-color-collection h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.nano-color-collection p.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 60ch;
}

.btn-discover,
.btn-discover-card {
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    background: transparent;
    padding: 0.75rem 1.5rem;
    min-height: var(--tap-min);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn-discover:hover,
.btn-discover-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-active);
    color: var(--text-primary);
}

.btn-discover-card { padding: 0.6rem 1.2rem; font-size: 0.9375rem; }

/* --- Wallet section -------------------------------------------- */
.wallet-section {
    background-color: var(--bg-primary);
    padding: var(--space-12) 1rem;
}

.wallet-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.compare-btn,
.coins-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    min-height: var(--tap-min);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.compare-btn:hover,
.coins-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-active);
    color: var(--text-primary);
}

/* --- Product / wallet cards ------------------------------------ */
.card-custom {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    padding: 1.5rem;
    position: relative;
    height: 100%;
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.card-custom:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-lg);
}

.card-custom .badge {
    background: var(--brand-subtle);
    color: var(--brand-text);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.card-custom h3 {
    margin-top: 2.25rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
}

.card-custom h4 {
    font-size: 0.9375rem;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
}

.card-custom p {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.reviews {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 1rem 0;
}

/* --- Feature bands --------------------------------------------- */
.physically-secure-section,
.coins-tokens-section,
.ledger-live-section {
    background-color: var(--bg-primary);
    padding: var(--space-12) 1rem;
}

.physically-secure-section h2,
.coins-tokens-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.purple-text { color: var(--brand-text); }

.coins-tokens-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    max-width: 60ch;
}

/* --- Coin marquee ---------------------------------------------- */
.coin-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    margin-top: 2rem;
    height: 80px;
    /* Fades the hard cut at both edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.coin-track {
    display: flex;
    align-items: center;
    animation: scrollCoins 28s linear infinite;
}

.coin-slider:hover .coin-track { animation-play-state: paused; }

.coin-track img {
    margin: 0 2rem;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@keyframes scrollCoins {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- App section ----------------------------------------------- */
.ledger-live-badge {
    font-size: 0.75rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    float: right;
}

.phone-mockups img {
    max-height: 300px;
    width: auto;
    margin: 1rem;
}

/* --- Info cards ------------------------------------------------ */
.info-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: border-color var(--dur-base) var(--ease-out);
}

.info-card:hover { border-color: var(--border-active); }

.info-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-top: 1rem;
    font-weight: 600;
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ledger-live-badge {
        float: none;
        display: inline-block;
        margin-top: 1rem;
    }
    .phone-mockups { text-align: center; }
    .phone-mockups img { max-height: 200px; }
}

/* --- Footer ----------------------------------------------------- */
footer.footer-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    display: block;
    padding: var(--space-10) 1rem var(--space-6);
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    footer.footer-section { padding: var(--space-8) 1rem var(--space-6); }
}

.footer-top-btn { text-align: right; }

.footer-top-btn button {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    min-height: var(--tap-min);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.footer-top-btn button:hover { background-color: var(--bg-hover); }

.footer-contact h3,
.footer-subscribe h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-subscribe p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    max-width: 52ch;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subscribe-form input[type="email"] {
    flex: 1 1 auto;
    min-width: 200px;
    min-height: var(--tap-min);
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-subtle);
}

.subscribe-form button {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    min-height: var(--tap-min);
    color: #fff;
    font-weight: 600;
}

.subscribe-form button:hover { filter: brightness(1.08); }

.footer-links {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.footer-links h5 {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

.footer-lang {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.payment-icons img {
    height: 24px;
    margin-right: 0.5rem;
    opacity: 0.55;
}

footer.footer-section hr {
    border-color: var(--border);
    opacity: 1;
    margin: 0;
}

/* Icon-only links still need a 44px hit area and a real name */
.social-link {
    width: var(--tap-min);
    height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background-color var(--dur-fast) var(--ease-out);
}

.social-link img { height: 18px; width: auto; opacity: 0.55; transition: opacity var(--dur-fast) var(--ease-out); }
.social-link:hover { background: var(--bg-hover); }
.social-link:hover img { opacity: 1; }

@media (max-width: 768px) {
    .footer-top-btn { text-align: center; margin-bottom: 1rem; }
    .footer-contact,
    .footer-subscribe { margin-bottom: 1.5rem; }
    .footer-links .row > div { margin-bottom: 1.25rem; }
}

/* --- Hero entrance -------------------------------------------- */
@keyframes fade-in {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.hero_text > *:nth-child(1) { animation: fade-in 0.5s var(--ease-out) 0.05s both; }
.hero_text > *:nth-child(2) { animation: fade-in 0.5s var(--ease-out) 0.10s both; }
.hero_text > *:nth-child(3) { animation: fade-in 0.5s var(--ease-out) 0.15s both; }
.hero_text > *:nth-child(4) { animation: fade-in 0.5s var(--ease-out) 0.20s both; }
.hero_text > *:nth-child(5) { animation: fade-in 0.5s var(--ease-out) 0.25s both; }
.hero_text > *:nth-child(6) { animation: fade-in 0.5s var(--ease-out) 0.30s both; }
.hero_text > *:nth-child(7) { animation: fade-in 0.5s var(--ease-out) 0.35s both; }

.hero_support { animation: fade-in 0.6s var(--ease-out) 0.3s both; }
.hero_buttons { animation: fade-in 0.6s var(--ease-out) 0.4s both; }

/* --- Stats ------------------------------------------------------ */
.red-bar {
    background-color: var(--red-subtle);
    color: var(--red-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.green-bar {
    background-color: var(--green-subtle);
    color: var(--green-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

#stats-section {
    background-color: var(--bg-primary);
    padding: var(--space-12) 0;
}

.stat-item { text-align: center; }

.stat-item h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

/* --- Auth -------------------------------------------------------- */
.auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    padding: var(--space-8) 1rem;
}

.auth-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 420px) {
    .auth-card { padding: 1.5rem; border-radius: var(--radius-lg); }
}

.auth-card .brand-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.auth-card .brand-title span { color: var(--brand-text); }

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
}

.auth-card label,
.auth-card .form-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-card .form-control {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 0.7rem 0.85rem;
    min-height: var(--tap-min);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.auth-card .form-control:hover { border-color: var(--border-light); }

.auth-card .form-control:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-subtle);
    color: var(--text-primary);
}

.auth-card .form-control::placeholder { color: var(--text-tertiary); }

.auth-card .btn-auth {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem;
    min-height: var(--tap-min);
    width: 100%;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: filter var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.auth-card .btn-auth:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }
.auth-card .btn-auth:disabled { filter: none; box-shadow: none; }

.auth-card a { color: var(--brand-text); text-decoration: none; }
.auth-card a:hover { text-decoration: underline; color: var(--brand-text); }

.auth-card .form-check-input {
    background-color: var(--bg-tertiary);
    border-color: var(--border-light);
}

.auth-card .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}

.auth-card .form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-meta { font-size: 0.8125rem; color: var(--text-secondary); }
.auth-legal { font-size: 0.75rem; color: var(--text-tertiary); }
.auth-legal a { color: var(--text-tertiary); }
.auth-legal a:hover { color: var(--text-secondary); }

/* Persistent helper text — a placeholder disappears exactly when
   the user needs the rule most. */
.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.35rem;
}

.req { color: var(--red-text); margin-left: 2px; }

/* Password reveal */
.field-affix { position: relative; }
.field-affix .form-control { padding-right: 3rem; }

.field-affix-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 36px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
}

.field-affix-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.field-affix-btn .bi-eye-slash { display: none; }
.field-affix-btn[aria-pressed="true"] .bi-eye-slash { display: block; }
.field-affix-btn[aria-pressed="true"] .bi-eye { display: none; }

/* Submit button busy state */
.btn-auth[aria-busy="true"] { pointer-events: none; opacity: 0.7; }

/* --- Alerts ------------------------------------------------------
   The message text carries the meaning; the tinted fill and the
   solid leading rule are redundant cues on top of it.
   ------------------------------------------------------------------ */
.alert-custom-success,
.alert-custom-error,
.alert-custom-info {
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-left-width: 4px;
}

.alert-custom-success {
    background-color: var(--green-subtle);
    border-color: var(--green);
    color: var(--green-text);
}

.alert-custom-error {
    background-color: var(--red-subtle);
    border-color: var(--red);
    color: var(--red-text);
}

.alert-custom-info {
    background-color: var(--info-subtle);
    border-color: var(--info);
    color: var(--info-text);
}

/* --- Legacy dashboard helpers (kept for any view still using them) -- */
.dashboard-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
}

.sidebar-brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.sidebar-brand span { color: var(--brand-text); }

.sidebar-nav a {
    color: var(--text-secondary);
    padding: 0.6rem 0.75rem;
    min-height: var(--tap-min);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-nav a:hover { background-color: var(--bg-hover); color: var(--text-primary); }
.sidebar-nav a.active { background-color: var(--brand-subtle); color: var(--brand-text); }

.dashboard-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.dashboard-card .card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.dashboard-card .card-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.text-green  { color: var(--green-text); }
.text-orange { color: var(--yellow-text); }
.text-purple { color: var(--brand-text); }
.text-blue   { color: var(--info-text); }

/* --- Inner page header -------------------------------------------- */
.page-hero {
    background-color: var(--bg-primary);
    padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-10);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 60ch;
    margin: 0.75rem auto 0;
    line-height: 1.65;
}

/* Left-aligned header used by the legal pages. It was referenced in the
   markup but never defined, so those pages had no offset for the fixed
   navbar and their heading rendered underneath it. */
.page-hero-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-8);
}

.page-hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.page-hero-section p { color: var(--text-secondary); margin-bottom: 0; }

/* Legal copy: keep the reading measure sane on wide screens */
.legal-copy p, .legal-copy li { max-width: 72ch; }

/* --- FAQ ----------------------------------------------------------- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: border-color var(--dur-base) var(--ease-out);
}

.faq-item.open { border-color: var(--border-active); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    min-height: var(--tap-min);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: background-color var(--dur-fast) var(--ease-out);
}

.faq-question:hover { background: var(--bg-hover); }

.faq-icon {
    color: var(--text-secondary);
    transition: transform var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--brand-text);
}

/* Grid rows animate cleanly to their own content height, so long
   answers are never clipped the way a fixed max-height clipped them. */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.faq-item.open .faq-answer { grid-template-rows: 1fr; }

.faq-answer > * { overflow: hidden; }

.faq-answer-inner {
    padding: 0 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 72ch;
}

.faq-item.open .faq-answer-inner { padding-bottom: 1.15rem; }

/* --- Contact ------------------------------------------------------- */
.contact-icon {
    width: var(--tap-min);
    height: var(--tap-min);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
    flex-shrink: 0;
}

/* --- Timeline ------------------------------------------------------ */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--brand), var(--border));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.timeline-item .year {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.25rem;
    letter-spacing: 0.04em;
}

.timeline-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 62ch;
}

/* --- Avatars -------------------------------------------------------- */
.team-avatar,
.testimonial-avatar {
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.team-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Tags ----------------------------------------------------------- */
.service-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    display: inline-block;
}

/* --- Hero product slider -------------------------------------------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem 1rem 1.5rem;
}

.hero-slider-track {
    position: relative;
    min-height: 320px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.hero-slide img {
    max-height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(153, 69, 255, 0.14));
}

.slide-caption { text-align: center; }

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 1rem;
}

/* The dot is small, its hit area is not */
.slider-dot {
    width: var(--tap-min);
    height: 32px;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-active);
    background: transparent;
    transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.slider-dot:hover::before { border-color: var(--brand-text); }

.slider-dot.active::before {
    width: 22px;
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 768px) {
    .hero-slider-track { min-height: 260px; }
    .hero-slide img { max-height: 180px; }
}
