/* =========================================================
   KAREFULLY — Landing page
   Palette mint / health-tech · accessible (WCAG) · vanilla CSS
   ========================================================= */

:root {
    /* Brand — Karefully (sauge #5C7A6B · foncé #3E5A4D · encre #1F2A26) */
    --sage: #5C7A6B;
    --sage-deep: #3E5A4D;

    --mint: #5C7A6B;        /* accent de marque (sauge) */
    --mint-300: #A7C0B3;    /* sauge clair pour fonds sombres */
    --mint-100: #DEE8E2;    /* teinte sauge claire (puces, pastilles) */
    --mint-50: #EEF3F0;     /* teinte sauge très claire */
    --emerald-600: #50705F; /* sauge moyen */
    --emerald-700: #3E5A4D; /* sauge foncé (boutons, icônes) */
    --emerald-800: #2F4A3E; /* plus foncé (texte sur teintes) */
    --emerald-900: #1F2A26; /* encre */

    /* Neutrals */
    --ink: #1F2A26;
    --muted: #586A63;
    --line: #DEE7E2;
    --bg: #F6F9F7;
    --surface: #FFFFFF;
    --tint: #EBF1ED;

    /* Dark sections */
    --dark: #1F2A26;
    --dark-2: #2A3A33;
    --on-dark: rgba(255, 255, 255, 0.74);

    /* Status */
    --danger: #E5484D;
    --warn: #E08700;

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-full: 999px;

    /* Shadows */
    --sh-sm: 0 1px 2px rgba(6, 40, 33, 0.06);
    --sh-md: 0 8px 24px -8px rgba(6, 40, 33, 0.12);
    --sh-lg: 0 24px 48px -16px rgba(6, 40, 33, 0.18);
    --sh-mint: 0 20px 50px -20px rgba(92, 122, 107, 0.45);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .brand-name {
    font-family: 'DM Sans', 'Inter', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.text-accent { color: var(--emerald-600); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--emerald-700);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Focus visibility (a11y) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section {
    padding-block: clamp(72px, 9vw, 120px);
    padding-inline: 24px;
    scroll-margin-top: 90px;
}
section[id] { scroll-margin-top: 90px; }

.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .text-accent { color: var(--mint-300); }

.section-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head h2 { margin-bottom: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Typography helpers ---------- */
.subtitle {
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    color: var(--muted);
    max-width: 56ch;
}
.section--dark .subtitle { color: var(--on-dark); }
.subtitle--center { margin-inline: auto; }

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-100);
    color: var(--emerald-800);
    padding: 7px 14px;
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}
.badge--light { background: rgba(110, 231, 183, 0.14); color: var(--mint-300); }
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--mint); flex: none;
    box-shadow: 0 0 0 0 rgba(92, 122, 107, 0.5);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(92, 122, 107, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(92, 122, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 122, 107, 0); }
}

/* ---------- Icons ---------- */
.ico {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    flex: none;
}
.icon-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--mint-100);
    color: var(--emerald-700);
    margin-bottom: 22px;
}
.icon-chip--danger { background: rgba(229, 72, 77, 0.12); color: var(--danger); }
.icon-chip--light { background: rgba(255, 255, 255, 0.1); color: var(--mint-300); width: 46px; height: 46px; margin: 0; border-radius: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px;
    border-radius: var(--r-full);
    font-family: inherit;
    font-weight: 600; font-size: 0.98rem;
    text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: #fff;
    box-shadow: var(--sh-md);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--emerald-700), var(--emerald-800)); transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ghost {
    background: var(--surface);
    color: var(--emerald-700);
    border-color: var(--line);
}
.btn-ghost:hover { background: var(--mint-50); border-color: var(--mint); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
header { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
#navbar {
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(20px, 4vw, 48px);
    background: rgba(247, 251, 249, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
#navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-sm); background: rgba(247, 251, 249, 0.92); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: inline-flex; color: var(--sage); }
.brand-name { font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.04em; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu > a:not(.nav-cta) {
    text-decoration: none; color: var(--ink);
    font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s var(--ease);
}
.nav-menu > a:not(.nav-cta):hover { color: var(--emerald-700); }
.nav-cta { padding: 10px 20px; font-size: 0.92rem; }
.desktop-cta { display: inline-flex; }
.mobile-cta { display: none; }

.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 1001;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* ---------- Hero ---------- */
#hero {
    padding-top: 150px;
    padding-bottom: clamp(72px, 9vw, 110px);
    padding-inline: 24px;
    background:
        radial-gradient(60% 50% at 80% 0%, rgba(92, 122, 107, 0.12), transparent 70%),
        radial-gradient(50% 50% at 0% 30%, rgba(92, 122, 107, 0.07), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-content h1 { margin-bottom: 22px; }
.hero-content .subtitle { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.trust-badges .ico { width: 18px; height: 18px; color: var(--emerald-600); }

/* Hero visual: dashboard mockup */
.hero-visual { position: relative; }
.mockup-dash {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--sh-lg);
}
.dash-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--mint-100); color: var(--emerald-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.dash-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.dash-sub { font-size: 0.78rem; color: var(--muted); }
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--emerald-700); }
.dash-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); margin-bottom: 12px; }

.alert-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.alert-text { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.alert-tag { margin-left: auto; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: var(--r-full); }
.alert--critical { background: #FEF2F2; border-color: #FECACA; }
.alert--critical .alert-dot { background: var(--danger); }
.tag-critical { background: #FEE2E2; color: #B42318; }
.alert--warn { background: #FFFaEB; border-color: #FDE7B8; }
.alert--warn .alert-dot { background: var(--warn); }
.tag-warn { background: #FDE8C8; color: #9A5B00; }
.alert--ok .alert-dot { background: var(--emerald-600); }
.tag-ok { background: var(--mint-100); color: var(--emerald-800); }

.floating-note {
    position: absolute; right: -8px; bottom: -28px;
    max-width: 248px;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
    color: #fff; padding: 16px 18px; border-radius: var(--r-md);
    box-shadow: var(--sh-mint);
    animation: floaty 6s ease-in-out infinite;
}
.fn-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; margin-bottom: 6px; }
.floating-note p { font-size: 0.86rem; line-height: 1.45; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--line); background: var(--surface); padding: 26px 24px; }
.trust-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.trust-bar-lead { font-weight: 700; color: var(--ink); }
.trust-bar-items { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.trust-bar-items span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.trust-bar-items .ico { width: 18px; height: 18px; color: var(--emerald-600); }

/* ---------- Cards (problem / feature / benefit) ---------- */
.problem-card, .feature-card, .benefit-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.problem-card:hover, .feature-card:hover, .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: var(--mint);
}
.problem-card h3, .feature-card h3, .benefit-card h3 { margin-bottom: 10px; }
.problem-card p, .feature-card p, .benefit-card p { color: var(--muted); font-size: 0.95rem; }

/* Problem cards live on dark bg */
.section--dark .problem-card { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
.section--dark .problem-card:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--mint); }
.section--dark .problem-card p { color: var(--on-dark); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.step-num {
    position: absolute; top: -14px; left: 28px;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
    color: #fff; font-weight: 800; font-size: 0.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--sh-sm);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step .icon-chip { margin-top: 6px; }

/* ---------- Portal tabs ---------- */
.portal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--sh-sm); }
.tabs { display: inline-flex; gap: 6px; background: var(--tint); padding: 6px; border-radius: var(--r-full); margin-bottom: 32px; }
.tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: none; background: none; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 0.92rem; color: var(--muted);
    border-radius: var(--r-full); transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tab .ico { width: 18px; height: 18px; }
.tab.is-active { background: var(--surface); color: var(--emerald-700); box-shadow: var(--sh-sm); }

.portal-panel { display: none; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.portal-panel.is-active { display: grid; }
.portal-text h3 { font-size: 1.5rem; margin-bottom: 20px; }
.portal-text .btn { margin-top: 26px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); font-size: 0.98rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--mint-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E5A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Portal visuals */
.portal-visual { display: flex; justify-content: center; }
.phone {
    width: 100%; max-width: 300px;
    background: linear-gradient(160deg, var(--mint-50), #fff);
    border: 1px solid var(--line); border-radius: 28px;
    padding: 22px; box-shadow: var(--sh-md);
}
.phone-top { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.phone-cta { background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700)); color: #fff; text-align: center; font-weight: 700; padding: 14px; border-radius: 14px; margin-bottom: 16px; box-shadow: var(--sh-md); }
.phone-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; font-size: 0.88rem; font-weight: 500; }
.pill { background: var(--tint); color: var(--emerald-800); font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.pill--ok { background: var(--mint-100); }
.mockup-dash--mini { width: 100%; box-shadow: var(--sh-md); }

/* ---------- Benefits header ---------- */
.bene-head { align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.benefits { grid-template-columns: repeat(2, 1fr); }

/* ---------- Security ---------- */
.security-grid { align-items: center; gap: clamp(40px, 6vw, 72px); }
.security-intro .subtitle { margin-bottom: 30px; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.security-list li { display: flex; gap: 16px; align-items: flex-start; }
.security-list h3 { margin-bottom: 4px; }
.security-list p { color: var(--on-dark); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.stars { color: #F5A623; letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.quote-card blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--ink); margin-bottom: 22px; font-weight: 500; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.q-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--mint-100); color: var(--emerald-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.quote-card figcaption strong { color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); }
.price-card--featured { border-color: var(--mint); box-shadow: var(--sh-mint); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700)); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 14px; border-radius: var(--r-full); }
.price-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price-desc { color: var(--muted); font-size: 0.92rem; min-height: 44px; margin-bottom: 18px; }
.price { margin-bottom: 22px; }
.price-amount { font-family: 'DM Sans', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.price-card .check-list { margin-bottom: 28px; }
.price-card .check-list li { font-size: 0.92rem; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.faq-item.active { border-color: var(--mint); box-shadow: var(--sh-sm); }
.faq-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--emerald-700); border-radius: 2px; transition: transform 0.3s var(--ease); }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-body p { padding: 0 24px 22px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Form ---------- */
.form-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; font-family: inherit; font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-sm);
    padding: 13px 16px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-card select { color: #fff; }
.form-card select option { color: #111; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, 0.1); }
.form-card input.invalid, .form-card select.invalid { border-color: var(--danger); }
.form-status { min-height: 0; color: #FFB4B4; font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.form-status:empty { margin: 0; }
.form-submit { margin-top: 6px; }
.form-fineprint { text-align: center; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); margin-top: 14px; }

.form-success { text-align: center; padding: 30px 0; }
.success-check { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700)); color: #fff; margin-bottom: 20px; }
.success-check .ico { width: 34px; height: 34px; stroke-width: 2.5; }
.form-success h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--on-dark); }

/* ---------- Footer ---------- */
footer { background: #061B16; color: rgba(255, 255, 255, 0.6); padding: clamp(48px, 6vw, 72px) 24px 32px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-links, .footer-legal { display: flex; flex-direction: column; gap: 12px; }
footer a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.2s var(--ease); }
footer a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; font-size: 0.85rem; }

/* ---------- Reveal on scroll (only when JS is active, so no-JS users see content) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .desktop-cta { display: none; }
    .mobile-cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 8px; }
    .mobile-toggle { display: flex; }

    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(82%, 340px);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        gap: 8px; padding: 96px 28px 28px;
        background: var(--bg); box-shadow: var(--sh-lg);
        transform: translateX(100%); transition: transform 0.3s var(--ease);
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu > a:not(.nav-cta) { font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
    body.menu-open { overflow: hidden; }
    .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-grid, .grid-2, .grid-3, .benefits, .portal-panel.is-active, .security-grid, .bene-head { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 24px; }
    .floating-note { position: relative; right: 0; bottom: 0; margin: 18px auto 0; max-width: 100%; }
    .hero-actions .btn { flex: 1; }
    .trust-bar-inner { justify-content: flex-start; }
    .portal-visual { order: -1; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .tabs { width: 100%; }
    .tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.82rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .floating-note { animation: none; }
}
