/* VerbaScribe — thème global (dark + accents bleus) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --blue-50:#f0f4ff; --blue-300:#91a7ff; --blue-400:#748ffc; --blue-500:#5c7cfa;
    --blue-600:#4c6ef5; --blue-700:#4263eb;
    /* Thème clair médium — gris-bleu doux, pas blanc cassé.
       Donne de la profondeur sans virer trop sombre. */
    --dark-bg:#dde4ee; --dark-surface:#ffffff; --dark-surface-2:#eef2f8;
    --dark-border:rgba(15,23,42,0.12);
    --text-primary:#0f172a; --text-secondary:#475569; --text-muted:#64748b;
    --danger:#dc2626;
    --success:#16a34a;
}

* , *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
    font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    background:var(--dark-bg); color:var(--text-primary);
    overflow-x:hidden; line-height:1.6; -webkit-font-smoothing:antialiased;
    min-height:100vh; display:flex; flex-direction:column;
}
a { color:var(--blue-400); text-decoration:none; transition:color .15s; }
a:hover { color:var(--blue-300); }

main { flex:1; }

@keyframes fadeInUp { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
.animate { animation:fadeInUp .55s ease-out both; }
.d-1{animation-delay:.05s} .d-2{animation-delay:.1s} .d-3{animation-delay:.15s} .d-4{animation-delay:.2s}

/* ═══ NAVBAR ═══ */
.navbar {
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding:.85rem 2rem;
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    background:rgba(255,255,255,0.88);
    border-bottom:1px solid var(--dark-border);
}
.nav-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:48px; }
.brand { display:inline-flex; align-items:center; gap:.3rem; text-decoration:none; color:var(--text-primary); font-weight:700; font-size:1.15rem; letter-spacing:-.02em; white-space:nowrap; line-height:1; }
.brand:hover { color:var(--text-primary); }
.brand-mark {
    width:54px; height:54px; border-radius:10px;
    flex-shrink:0; object-fit:contain;
    /* Logo desktop, ×1.5 par rapport à la taille standard d'icône
       de navbar (36 → 54) pour qu'il soit bien visible. */
}
.brand .brand-accent { color:var(--blue-400); }
.nav-links { display:flex; align-items:center; gap:.4rem; list-style:none; flex-wrap:wrap; margin:0; padding:0; }
.nav-links li { display:inline-flex; align-items:center; }
.nav-links a {
    text-decoration:none; color:var(--text-muted); padding:.55rem 1rem; border-radius:10px;
    font-weight:500; font-size:.92rem; transition:color .2s, background .2s;
    display:inline-flex; align-items:center; justify-content:center; line-height:1;
}
.nav-links a:hover { color:var(--text-primary); background:rgba(255,255,255,.03); }
.nav-cta { background:var(--blue-600) !important; color:white !important; padding:.55rem 1.25rem !important; font-weight:600 !important; }
.nav-cta:hover { background:var(--blue-500) !important; }
.nav-signout { color:var(--text-muted) !important; font-size:.88rem !important; }
.nav-signout:hover { color:var(--danger) !important; background:transparent !important; }
.nav-secondary { display:inline-block; }

/* Hamburger toggle — visible uniquement en mobile */
.nav-toggle {
    display:none;
    background:transparent; border:1px solid var(--dark-border);
    border-radius:10px; cursor:pointer;
    width:42px; height:42px; padding:0;
    flex-direction:column; align-items:center; justify-content:center; gap:5px;
    transition:border-color .2s;
}
.nav-toggle:hover { border-color:var(--blue-500); }
.nav-toggle span {
    width:20px; height:2px; background:var(--text-primary);
    border-radius:2px; transition:transform .25s, opacity .25s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity:0; }
body.nav-open .nav-toggle span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Language switcher */
.lang-pill {
    display:inline-flex; align-items:center; gap:.2rem;
    padding:.3rem .45rem; background:var(--dark-surface);
    border:1px solid var(--dark-border); border-radius:10px;
    font-size:.78rem; font-weight:600; line-height:1;
}
.lang-pill a {
    color:var(--text-muted); padding:.25rem .55rem; border-radius:6px;
    text-decoration:none; font-weight:600;
    display:inline-flex; align-items:center; line-height:1;
}
.lang-pill a.active { color:var(--blue-300); background:rgba(76,110,245,.12); }
.lang-pill a:hover { color:var(--text-primary); }

/* ═══ PAGE CONTAINER ═══ */
/* Hauteur de la navbar fixe avec logo 54px : ~80px desktop, ~66px mobile. */
main.page { padding-top:5.5rem; }

/* ═══ HERO ═══ */
.hero {
    display:flex; align-items:center; justify-content:center;
    padding:2.5rem 1.25rem 4rem; position:relative;
}
.hero::before {
    content:''; position:absolute; top:-10%; left:50%; transform:translateX(-50%);
    width:900px; height:900px; max-width:100vw;
    background:radial-gradient(circle, rgba(76,110,245,.10) 0%, transparent 65%);
    border-radius:50%; pointer-events:none; z-index:0;
}
.hero-inner { max-width:760px; text-align:center; position:relative; z-index:1; }
.hero-tag {
    display:inline-block; font-size:.78rem; font-weight:600; color:var(--blue-400);
    text-transform:uppercase; letter-spacing:.12em; padding:.4rem .9rem;
    border:1px solid rgba(76,110,245,.3); border-radius:100px;
    background:rgba(76,110,245,.06); margin-bottom:1.5rem;
}
.hero h1 {
    font-size:clamp(1.85rem, 5.2vw, 3.4rem); font-weight:700; line-height:1.18;
    letter-spacing:-.025em; margin-bottom:1.3rem; color:var(--text-primary);
}
.hero h1 .accent { color:var(--blue-400); }
/* Accent bleu réutilisable hors hero (titres de cartes etc.) */
.text-accent { color:var(--blue-600); }
.hero p.sub {
    font-size:clamp(.98rem, 1.5vw, 1.18rem); color:var(--text-secondary);
    max-width:600px; margin:0 auto 2.2rem; line-height:1.7;
}
.hero-btns { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.hero-proof {
    display:flex; justify-content:center; gap:1.5rem; flex-wrap:wrap;
    margin-top:3.2rem; font-size:.82rem; color:var(--text-muted); font-weight:500;
}
.hero-proof span { display:inline-flex; align-items:center; gap:.4rem; }
.hero-proof span::before { content:'•'; color:var(--blue-500); }
.hero-proof span:first-child::before { content:''; }

/* ═══ BUTTONS ═══ */
.btn {
    display:inline-flex; align-items:center; gap:.5rem; min-height:44px;
    padding:.85rem 1.9rem; border:none; border-radius:10px;
    font-size:.95rem; font-weight:600; cursor:pointer;
    transition:background .2s, color .2s, border-color .2s, transform .2s;
    text-decoration:none; font-family:inherit;
}
.btn-primary { background:var(--blue-600); color:white; }
.btn-primary:hover { background:var(--blue-500); color:white; transform:translateY(-1px); }
.btn-ghost { background:transparent; color:var(--text-secondary); border:1px solid var(--dark-border); }
.btn-ghost:hover { color:var(--text-primary); border-color:rgba(255,255,255,.18); }
.btn-block { width:100%; justify-content:center; }

/* ═══ SECTIONS ═══ */
section.s { padding:5rem 1.25rem; max-width:1200px; margin:0 auto; }
/* Section alt — auparavant fond blanc pleine largeur, mais ça créait
   une bande plus large que les autres sections. Maintenant
   transparente (même fond que body) ; seul l'espacement et les
   bordures restent. */
section.s-alt { background:transparent; max-width:none; padding:0; }
section.s-alt > .s-alt-inner { max-width:1200px; margin:0 auto; padding:5rem 1.25rem; }
.s-label { display:block; font-size:.75rem; font-weight:600; color:var(--blue-400); text-transform:uppercase; letter-spacing:.1em; margin-bottom:.75rem; text-align:center; }
.s-title { font-size:clamp(1.6rem, 3vw, 2.2rem); font-weight:700; letter-spacing:-.015em; line-height:1.25; margin-bottom:.75rem; text-align:center; }
.s-sub { font-size:1rem; color:var(--text-muted); max-width:620px; margin:0 auto 3rem; line-height:1.65; text-align:center; }

/* ═══ CARDS (features / steps / usecases) ═══ */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; max-width:1200px; margin:0 auto; }

.feature, .step, .usecase {
    background:var(--dark-surface); padding:1.6rem 1.4rem;
    border:1px solid var(--dark-border); border-radius:14px;
    transition:border-color .25s, transform .25s, background .25s;
    display:flex; flex-direction:column; gap:.7rem;
}
.feature:hover, .step:hover, .usecase:hover {
    border-color:rgba(76,110,245,.3); transform:translateY(-3px);
}
/* .step n'a plus de fond distinct — toutes les cartes (feature,
   step, usecase) partagent --dark-surface pour la cohérence visuelle
   maintenant que la section s-alt est transparente. */

/* Header commun — icône à gauche, titre à droite, sur la même ligne. */
.feature-header, .step-header, .usecase-header {
    display:flex; align-items:center; gap:.75rem;
}

.feature-icon, .usecase-icon {
    display:inline-flex; align-items:center; justify-content:center;
    width:46px; height:46px; border-radius:12px;
    background:rgba(76,110,245,.1); color:var(--blue-400);
    font-size:1.4rem; flex-shrink:0;
}
.step-num {
    width:42px; height:42px; background:rgba(76,110,245,.1); border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:1.15rem; font-weight:700; color:var(--blue-300);
    border:1px solid rgba(76,110,245,.2);
    flex-shrink:0;
}
.feature-title, .step-title, .usecase-title { font-size:1.05rem; font-weight:700; color:var(--text-primary); }
.feature-desc, .step-desc, .usecase-desc { color:var(--text-muted); font-size:.88rem; line-height:1.6; }
.feature-list, .step-list {
    list-style:none; padding:0; margin-top:.3rem;
    font-size:.83rem; color:var(--text-secondary); line-height:1.55;
}
.feature-list li, .step-list li { padding:.18rem 0 .18rem 1.1rem; position:relative; }
.feature-list li::before { content:'✓'; position:absolute; left:0; color:var(--blue-400); font-weight:700; }
.step-list li::before { content:'→'; position:absolute; left:0; color:var(--blue-500); font-weight:700; }
.usecase-scenario {
    margin-top:.35rem; padding:.7rem .85rem;
    background:var(--dark-bg); border-left:3px solid var(--blue-500);
    border-radius:6px; font-size:.8rem; color:var(--text-secondary);
    line-height:1.55; font-style:italic;
}

/* ═══ PRICING ═══ */
.pricing-grid {
    display:grid; grid-template-columns:repeat(2, 1fr); gap:1.5rem;
    max-width:980px; margin:0 auto;
}
.pricing-card {
    background:var(--dark-surface); border:1px solid var(--dark-border);
    border-radius:16px; padding:2rem 1.8rem;
    display:flex; flex-direction:column; gap:1rem;
    position:relative; transition:border-color .25s, transform .25s, box-shadow .25s;
}
.pricing-card:hover {
    border-color:rgba(76,110,245,.35); transform:translateY(-3px);
    box-shadow:0 8px 24px rgba(15,23,42,.08);
}
.pricing-card-featured {
    border-color:var(--blue-500);
    box-shadow:0 4px 16px rgba(76,110,245,.12);
}
.pricing-badge {
    display:inline-block; align-self:flex-start;
    font-size:.7rem; font-weight:700; color:var(--blue-600);
    text-transform:uppercase; letter-spacing:.1em;
    padding:.25rem .65rem; background:rgba(76,110,245,.1);
    border:1px solid rgba(76,110,245,.2); border-radius:100px;
}
.pricing-badge-volume { color:var(--success); background:rgba(22,163,74,.08); border-color:rgba(22,163,74,.2); }
.pricing-name {
    font-size:1.35rem; font-weight:700; color:var(--text-primary);
    margin:0; letter-spacing:-.01em;
}
.pricing-desc { font-size:.92rem; color:var(--text-muted); line-height:1.55; margin:0; }
.pricing-price {
    display:flex; align-items:baseline; gap:.4rem;
    padding:.6rem 0; border-bottom:1px solid var(--dark-border);
}
.pricing-price .amount { font-size:2.6rem; font-weight:800; color:var(--text-primary); letter-spacing:-.03em; line-height:1; }
.pricing-price .unit { font-size:1rem; font-weight:500; color:var(--text-muted); }
.pricing-subtotal {
    display:flex; flex-direction:column; gap:.3rem;
    font-size:.88rem; color:var(--text-secondary);
}
.pricing-subtotal > div { display:flex; justify-content:space-between; }
.pricing-subtotal .pricing-total {
    margin-top:.4rem; padding-top:.5rem; border-top:1px solid var(--dark-border);
    font-weight:700; color:var(--text-primary); font-size:.95rem;
}
.pricing-features { list-style:none; padding:0; margin:.4rem 0; }
.pricing-features li {
    padding:.3rem 0 .3rem 1.5rem; position:relative;
    font-size:.88rem; color:var(--text-secondary); line-height:1.5;
}
.pricing-features li::before {
    content:'✓'; position:absolute; left:0; top:.3rem;
    width:1rem; height:1rem; display:inline-flex; align-items:center; justify-content:center;
    background:rgba(22,163,74,.12); color:var(--success);
    border-radius:50%; font-size:.7rem; font-weight:700;
}
.pricing-tiers {
    width:100%; border-collapse:collapse; margin:.2rem 0;
    font-size:.88rem;
}
.pricing-tiers th {
    text-align:left; padding:.55rem .6rem;
    color:var(--text-muted); font-size:.75rem; text-transform:uppercase;
    letter-spacing:.06em; font-weight:600;
    border-bottom:1px solid var(--dark-border);
}
.pricing-tiers td { padding:.55rem .6rem; border-bottom:1px solid var(--dark-border); color:var(--text-secondary); }
.pricing-tiers tr:last-child td { border-bottom:none; }
.pricing-tiers td:last-child { text-align:right; font-weight:600; color:var(--text-primary); }
.pricing-tiers .disc { color:var(--success); font-weight:700; }
.pricing-tiers .disc-zero { color:var(--text-muted); }
.pricing-fine {
    margin-top:1.5rem; text-align:center; font-size:.78rem;
    color:var(--text-muted); max-width:760px; margin-left:auto; margin-right:auto;
    line-height:1.6;
}

@media (max-width:768px) {
    .pricing-grid { grid-template-columns:1fr; gap:1rem; max-width:520px; }
    .pricing-card { padding:1.6rem 1.4rem; }
    .pricing-price .amount { font-size:2.2rem; }
}

/* ═══ CTA + FOOTER ═══ */
.cta-section { padding:5rem 1.25rem; text-align:center; border-top:1px solid var(--dark-border); position:relative; overflow:hidden; }
.cta-section::before {
    content:''; position:absolute; top:-20%; left:50%; transform:translateX(-50%);
    width:700px; height:300px; max-width:120vw;
    background:radial-gradient(ellipse, rgba(76,110,245,.10) 0%, transparent 70%);
    pointer-events:none;
}
.cta-box { max-width:620px; margin:0 auto; position:relative; }
.cta-title { font-size:clamp(1.5rem, 3vw, 2rem); font-weight:700; margin-bottom:.6rem; letter-spacing:-.015em; }
.cta-sub { color:var(--text-muted); font-size:1rem; margin-bottom:1.8rem; line-height:1.65; }

.footer {
    padding:3.5rem 1.25rem 1.5rem; border-top:1px solid var(--dark-border);
    background:var(--dark-surface-2);
}
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid {
    display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr;
    gap:2.5rem; margin-bottom:2.5rem;
}
.footer-brand-col { max-width:320px; }
.footer-brand {
    display:inline-flex; align-items:center; gap:0;
    color:var(--text-primary); font-weight:700; font-size:1.1rem;
    text-decoration:none; letter-spacing:-.02em; margin-bottom:.85rem;
    line-height:1;
}
.footer-brand:hover { color:var(--text-primary); }
.footer-brand .brand-accent { color:var(--blue-600); }
.footer-tagline {
    font-size:.85rem; line-height:1.6; color:var(--text-muted);
    margin:0;
}
.footer-heading {
    font-size:.78rem; font-weight:700; color:var(--text-primary);
    text-transform:uppercase; letter-spacing:.08em;
    margin:0 0 .9rem;
}
.footer-list { list-style:none; padding:0; margin:0; }
.footer-list li {
    margin-bottom:.55rem; font-size:.88rem; line-height:1.5;
}
.footer-list a {
    color:var(--text-secondary); text-decoration:none;
    transition:color .2s;
}
.footer-list a:hover { color:var(--blue-600); }
.footer-muted { color:var(--text-muted); font-size:.85rem; }

.footer-bottom {
    border-top:1px solid var(--dark-border); padding-top:1.4rem;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:.75rem;
}
.footer-text { color:var(--text-muted); font-size:.82rem; font-weight:500; }
.footer-paiequebec { color:var(--blue-600); text-decoration:none; font-weight:600; }
.footer-paiequebec:hover { color:var(--blue-500); text-decoration:underline; }
.footer-by { color:var(--text-muted); font-size:.82rem; font-style:italic; }
.footer-by::before { content:'· '; opacity:.5; margin-right:.15rem; }

@media (max-width:900px) {
    .footer-grid { grid-template-columns:1fr 1fr; gap:2rem 1.5rem; }
    .footer-brand-col { grid-column:1 / -1; max-width:none; }
}
@media (max-width:480px) {
    .footer { padding:2.5rem 1rem 1.25rem; }
    .footer-grid { grid-template-columns:1fr; gap:1.75rem; }
    .footer-bottom { flex-direction:column; align-items:flex-start; gap:.4rem; }
    .footer-by::before { content:''; }
}

/* ═══ AUTH PAGES ═══ */
.auth-section {
    display:flex; align-items:center; justify-content:center;
    padding:2rem 1rem 3rem; position:relative; overflow:hidden;
}
.auth-section::before {
    content:''; position:absolute; top:-20%; left:50%; transform:translateX(-50%);
    width:700px; height:700px; max-width:120vw;
    background:radial-gradient(circle, rgba(76,110,245,.08) 0%, transparent 65%);
    border-radius:50%; pointer-events:none;
}
.auth-card {
    width:100%; max-width:440px; position:relative; z-index:1;
    background:var(--dark-surface); border:1px solid var(--dark-border);
    border-radius:16px; padding:2.5rem;
    animation:fadeInUp .4s ease-out both;
}
.auth-card.wide { max-width:520px; }
.auth-header { text-align:center; margin-bottom:2rem; }
.auth-icon {
    width:54px; height:54px; border-radius:14px;
    background:var(--dark-surface-2); border:1px solid var(--dark-border);
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 1.25rem; color:var(--blue-400); font-size:1.6rem;
}
.auth-header h1 {
    font-size:1.7rem; font-weight:700; color:var(--text-primary);
    margin:0 0 .5rem; letter-spacing:-.02em;
}
.auth-sub { color:var(--text-muted); font-size:.92rem; line-height:1.55; }

.form-group { margin-bottom:1.25rem; }
.form-group label {
    display:block; font-size:.78rem; font-weight:600;
    color:var(--text-muted); margin-bottom:.5rem;
    text-transform:uppercase; letter-spacing:.05em;
}
.form-input, input[type="text"].form-input, input[type="email"].form-input,
input[type="password"].form-input, input[type="number"].form-input,
textarea.form-input, select.form-input {
    width:100%; padding:.8rem 1rem;
    background:rgba(255,255,255,0.85); border:1px solid var(--dark-border);
    border-radius:10px; color:var(--text-primary);
    font-size:.95rem; font-family:'Inter',sans-serif;
    transition:border-color .2s, background .2s, box-shadow .2s;
    outline:none;
}
.form-input:hover { border-color:rgba(76,110,245,.3); }
.form-input:focus { border-color:var(--blue-500); box-shadow:0 0 0 3px rgba(76,110,245,.1); background:#ffffff; }
.form-input::placeholder { color:var(--text-muted); opacity:.4; }
.form-help { font-size:.78rem; color:var(--text-muted); margin-top:.4rem; }

.field-error { color:var(--danger); font-size:.78rem; margin-top:.35rem; display:block; }

.alert {
    border-radius:10px; padding:.85rem 1rem; font-size:.88rem; line-height:1.5;
    margin-bottom:1.25rem; border:1px solid;
}
.alert-error { background:rgba(248,113,113,.08); border-color:rgba(248,113,113,.3); color:#fca5a5; }
.alert-success { background:rgba(52,211,153,.08); border-color:rgba(52,211,153,.3); color:#6ee7b7; }
.alert-info { background:rgba(76,110,245,.08); border-color:rgba(76,110,245,.3); color:var(--blue-300); }

.form-options {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:1.4rem; flex-wrap:wrap; gap:.5rem;
}
.checkbox-label {
    display:flex; align-items:center; gap:.5rem; cursor:pointer;
    color:var(--text-muted); font-size:.85rem; transition:color .2s;
}
.checkbox-label:hover { color:var(--text-secondary); }
.checkbox-label input[type="checkbox"] {
    accent-color:var(--blue-500); width:16px; height:16px;
}

.auth-footer {
    text-align:center; margin-top:1.7rem; padding-top:1.5rem;
    border-top:1px solid var(--dark-border);
    font-size:.88rem; color:var(--text-muted);
}
.auth-footer a { color:var(--blue-400); font-weight:600; }
.auth-footer a:hover { color:var(--blue-300); }

/* ═══ PRIVACY / LEGAL ═══ */
.legal-page {
    max-width:780px; margin:0 auto; padding:2.5rem 1.25rem 4rem;
}
.legal-page h1 { font-size:2rem; font-weight:700; margin-bottom:1.5rem; letter-spacing:-.02em; }
.legal-page h2 { font-size:1.25rem; font-weight:700; margin:2rem 0 .75rem; color:var(--text-primary); }
.legal-page p, .legal-page li { color:var(--text-secondary); font-size:.95rem; line-height:1.7; margin-bottom:.75rem; }
.legal-page ul { padding-left:1.4rem; margin-bottom:1rem; }
.legal-page strong { color:var(--text-primary); }
.legal-page .updated { color:var(--text-muted); font-size:.85rem; font-style:italic; margin-bottom:2rem; }

/* ═══ RESPONSIVE ═══ */
@media (max-width:1024px) {
    .grid-3 { grid-template-columns:repeat(2,1fr); }
    .grid-4 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
    .navbar { padding:.55rem .85rem; }
    .nav-inner { gap:.5rem; flex-wrap:nowrap; min-height:44px; }
    .brand { font-size:1.05rem; gap:.45rem; }
    .brand-mark { width:48px; height:48px; }

    /* Hamburger visible, nav-links cachée → s'affiche en dropdown
       quand body.nav-open est actif (toggle via le bouton). */
    .nav-toggle { display:flex; }
    .nav-links {
        position:absolute; top:100%; left:0; right:0;
        flex-direction:column; align-items:stretch;
        gap:.25rem; padding:.75rem 1rem 1rem;
        background:var(--dark-surface);
        border-bottom:1px solid var(--dark-border);
        box-shadow:0 6px 20px rgba(15,23,42,.08);
        max-height:0; opacity:0; overflow:hidden; pointer-events:none;
        transition:max-height .3s ease, opacity .2s ease, padding .25s ease;
    }
    body.nav-open .nav-links {
        max-height:80vh; opacity:1; pointer-events:auto;
    }
    .nav-links li { display:block; width:100%; }
    .nav-links a {
        display:block; width:100%; padding:.75rem 1rem;
        font-size:.95rem; text-align:left;
    }
    .nav-secondary { display:block; }
    .nav-cta { padding:.75rem 1rem !important; font-size:.95rem !important; text-align:center; }
    .nav-lang { display:flex; justify-content:center; padding:.4rem 0; }
    .lang-pill { padding:.25rem .4rem; }
    .lang-pill a { padding:.3rem .85rem; font-size:.82rem; }

    .hero { padding:2rem 1rem 3.5rem; min-height:auto; }
    main.page { padding-top:4.7rem; }
    .hero-proof { gap:.85rem; margin-top:2.2rem; }
    .hero-proof span { font-size:.78rem; }
    section.s, section.s-alt > .s-alt-inner { padding:3.5rem 1rem; }
    .s-sub { margin-bottom:2.2rem; }
    .auth-card { padding:2rem 1.5rem; }
    .legal-page { padding:1.5rem 1rem 3rem; }
}
@media (max-width:560px) {
    .grid-3, .grid-4 { grid-template-columns:1fr; gap:1rem; }
    .feature, .step, .usecase { padding:1.4rem 1.25rem; }
    .hero { padding:1.5rem .9rem 3rem; }
    .hero-btns { flex-direction:column; align-items:stretch; gap:.6rem; }
    .btn { width:100%; justify-content:center; padding:.95rem 1.4rem; }
    .hero-proof { flex-direction:column; gap:.5rem; align-items:center; }
    .hero-proof span::before { content:''; }
    .footer-inner { flex-direction:column; text-align:center; gap:.85rem; }
    .footer-links { justify-content:center; }
    .cta-section { padding:3.5rem .9rem; }
    .cta-section .hero-btns .btn { width:100%; }
    .auth-card { padding:1.75rem 1.25rem; }
    .auth-header h1 { font-size:1.45rem; }
}
@media (max-width:420px) {
    .navbar { padding:.5rem .7rem; }
    .brand { font-size:1rem; }
    .brand-mark { width:45px; height:45px; }
    .nav-toggle { width:38px; height:38px; }
    .hero h1 { font-size:1.65rem; }
    .hero p.sub { font-size:.92rem; }
    .s-label { font-size:.7rem; }
    .feature-list, .step-list { font-size:.78rem; }
    .usecase-scenario { font-size:.76rem; }
}
