
/* Fintatif — dark blue, deep green and emerald. Presentation only. */
:root {
    color-scheme: only light;
    --ft-navy: #0b2231;
    --ft-ink: #142b3b;
    --ft-muted: #445565;
    --ft-green: #008457;
    --ft-bright: #2ee5a4;
    --ft-line: #d5e1df;
    --ft-canvas: #eef4f2;
    --ft-radius: 12px;
    --ft-surface: #ffffff;
    --ft-accent: #2ee5a4;
}
html { scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#root table thead th { text-align: center; vertical-align: middle; }
body { background: var(--ft-canvas); color: var(--ft-ink); -webkit-font-smoothing: antialiased; }
#root { font-feature-settings: "ss01"; }
#root .bg-fintatif-softBg { background: var(--ft-canvas); }
#root .max-w-7xl { max-width: 1240px; }
#root .bg-fintatif-dark, #root .bg-slate-950 { background-color: var(--ft-navy); }
#root .bg-fintatif-600 { background-color: var(--ft-green); }
#root .bg-fintatif-500 { background-color: #10b981; }
#root .bg-fintatif-500.text-white { background-color: var(--ft-green); }
#root .bg-fintatif-100 { background-color: #d8f5e6; }
#root .text-fintatif-600 { color: var(--ft-green); }
#root .text-fintatif-400 { color: var(--ft-bright); }
#root .text-slate-900 { color: var(--ft-ink); }
#root .text-slate-500 { color: var(--ft-muted); }
#root .border-slate-200 { border-color: var(--ft-line); }
#root .font-black, #root .font-extrabold { font-weight: 700; }
#root .rounded-3xl { border-radius: var(--ft-radius); }
#root .shadow-glow, #root .shadow-glow-lg, #root .shadow-xl, #root .shadow-2xl,
#root .shadow-lg, #root .shadow-md { box-shadow: 0 3px 12px rgb(11 34 49 / 5%); }
#root [class*="bg-gradient-"] { background-image: none !important; background-color: var(--ft-green); }
#root button.bg-gradient-to-r { background-color: #833ab4; }
#root h1, #root h2, #root h3 { text-wrap: pretty; }
#root h1, #root h2 { letter-spacing: -.035em; }
#root p { line-height: 1.75; word-spacing: normal; overflow-wrap: break-word; }
#root .grid > *, #root .flex > * { min-width: 0; }
#root button, #root a, #root input, #root select, #root textarea { -webkit-tap-highlight-color: transparent; }
#root button { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
#root button:focus-visible, #root a:focus-visible, #root [tabindex]:focus-visible {
    outline: 3px solid #008457; outline-offset: 3px;
}
#root button:disabled { cursor: not-allowed; }
#root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #root select, #root textarea {
    min-height: 44px; border: 1px solid #cbd5df; border-radius: 8px;
    background: #fff; color: #142b3b; font-weight: 500; box-shadow: none;
}
#root input:focus, #root select:focus, #root textarea:focus {
    outline: 2px solid #008457; outline-offset: 2px; --tw-ring-color: transparent; border-color: #008457;
}
#root input::placeholder, #root textarea::placeholder { color: #7a8898; }
#root input[type="checkbox"], #root input[type="radio"], #root input[type="range"] { accent-color: var(--ft-green); }
#root label { font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.6; }
#root .animate-fadeIn { animation-duration: 180ms; }

/* Brand and primary navigation */
#root .site-header { background: var(--ft-navy); border-color: #275243; box-shadow: 0 2px 8px rgb(11 34 49 / 5%); }
#root .header-row { height: 88px; gap: 28px; }
#root .brand-lockup { margin-left: -32px; }
#root .brand-lockup img { height: 96px; width: auto; max-width: none; object-fit: contain; filter: none; }
#root .brand-lockup > div { margin-left: -28px; }
#root .brand-lockup span { font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
#root .brand-lockup p { font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .2em; margin-top: 6px; }
#root .site-header nav { border: 0; background: transparent; padding: 0; border-radius: 0; box-shadow: none; gap: 12px; }
#root .site-header nav > button { margin: 0; min-height: 44px; padding: 12px 7px; border-radius: 0; font-size: 12px; font-weight: 500; color: #dce8ec; background: transparent; box-shadow: none; border-bottom: 2px solid transparent; }
#root .site-header nav svg { width: 15px; height: 15px; }
#root .site-header nav .bg-fintatif-500 { color: var(--ft-bright); background: transparent; border-bottom-color: var(--ft-bright); box-shadow: none; font-weight: 600; }
#root .site-header button[aria-label="Toggle Menu"] { min-width: 44px; min-height: 44px; background: #163c3b; border-color: #376557; padding: 10px; border-radius: 9px; }
#root .site-header > .mobile-navigation { background: var(--ft-navy); padding: 10px 16px 16px; max-height: calc(100dvh - 80px); overflow-y: auto; box-shadow: 0 10px 20px rgb(11 34 49 / 10%); }
#root .mobile-navigation button { min-height: 44px; border-radius: 7px; font-size: 13px; font-weight: 500; }
#root .mobile-navigation .bg-fintatif-500 { background: var(--ft-bright); color: #0b2231; font-weight: 700; box-shadow: none; }

/* A restrained, typographic opening */
#root .home-page { padding-bottom: 48px; }
#root .home-page > * + * { margin-top: 36px; }
#root .home-hero { background: var(--ft-navy); color: #fff; border-color: #275243; padding: 24px 0 40px; }
#root .home-hero > div { display: grid; grid-template-columns: 1.12fr 1fr; gap: 15px 44px; align-items: start; }
#root .home-hero > div > * { margin: 0; }
#root .home-hero > div > span { grid-column: 1 / -1; color: #25c58d; font-size: 10px; line-height: 1.5; letter-spacing: .13em; font-weight: 700; }
#root .home-hero h1 { color: #fff; font-size: clamp(32px, 3.5vw, 44px); line-height: 1.16; max-width: 600px; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
#root .home-hero h1 > span { display: block; }
#root .home-hero h1 > span:last-child { color: #25c58d; }
#root .home-hero p { color: #d6e2e9; font-size: 13px; font-weight: 400; line-height: 1.85; max-width: 490px; padding-top: 2px; text-align: left; }
#root .hero-actions { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
#root .hero-actions > div { display: flex; flex-wrap: wrap; gap: 12px; width: auto; }
#root .hero-actions button { width: auto; min-width: 0; min-height: 36px; padding: 8px 16px; border-radius: 7px; font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; box-shadow: none; }
#root .hero-actions > div > button:first-child { background: var(--ft-bright); border-color: var(--ft-bright); color: #0b2231; font-weight: 700; }
#root .hero-actions > div > button:last-child { background: #17293d; border-color: #4e647b; color: #f1f5f9; }

/* The tool directory: one feature panel, followed by a consistent grid */
#root .tool-section > div:first-child { padding-bottom: 4px; }
#root .home-page section:not(.home-hero) h2 { color: #142b3b; font-size: 25px; line-height: 1.35; font-weight: 700; }
#root .tool-section > div:first-child p { font-size: 13px; color: var(--ft-muted); font-weight: 400; margin-top: 6px; }
#root .tool-section > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
#root .tool-card { padding: 20px; background: #fff; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: 0 2px 5px rgb(14 28 46 / 3%); overflow: visible; }
#root .tool-card > div:first-child { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
#root .tool-card > div:first-child > * { margin: 0; }
#root .tool-card > div:first-child > div { width: 36px; height: 36px; background: var(--ft-green); color: #fff; border: 1px solid var(--ft-green); border-radius: 8px; box-shadow: none; transform: none; }
#root .tool-card > div:first-child > div svg { width: 21px; height: 21px; }
#root .tool-card h3 { color: var(--ft-ink); font-size: 14px; line-height: 1.5; font-weight: 700; padding: 0; }
#root .tool-card p { grid-column: 1 / -1; color: var(--ft-muted); font-size: 12px; font-weight: 400; line-height: 1.75; text-align: left; }
#root .tool-card > div:last-child { margin-left: 0; padding-top: 16px; font-size: 11px; font-weight: 600; color: var(--ft-green); transform: none; }
#root .tool-card.is-app { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; background: #006b50; border-color: #006b50; padding: 24px; }
#root .tool-card.is-app > div:first-child { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
#root .tool-card.is-app > div:first-child > div { grid-row: 1 / 3; width: 44px; height: 44px; color: #0b2231; background: var(--ft-bright); border: 1px solid var(--ft-bright); border-radius: 10px; }
#root .tool-card.is-app h3 { color: #fff; font-size: 17px; letter-spacing: -.02em; }
#root .tool-card.is-app p { grid-column: 2; color: #ecfff5; max-width: 640px; }
#root .tool-card.is-app > div:last-child { margin: 0; padding: 11px 14px; background: var(--ft-bright); color: #0b2231; border-radius: 7px; font-weight: 700; white-space: nowrap; }

/* Simulator workspace and inputs */
#root .simulator-workspace { padding-top: 28px; padding-bottom: 40px; }
#root .simulator-tabs { padding: 5px; border: 1px solid var(--ft-line); border-radius: 10px; background: #fff; box-shadow: none; gap: 4px; scrollbar-width: thin; scrollbar-color: #91aaa0 transparent; scroll-padding-inline: 8px; }
#root .simulator-tabs > button { margin: 0; padding: 11px 14px; min-height: 44px; border-radius: 6px; font-size: 12px; line-height: 1.6; font-weight: 500; flex-shrink: 0; }
#root .simulator-tabs .bg-fintatif-dark { background: var(--ft-navy); color: #fff; font-weight: 600; box-shadow: none; }
#root .simulator-panel { padding: 24px; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: 0 2px 8px rgb(11 34 49 / 2%); }
#root .simulator-panel > div:first-child { padding-bottom: 20px; border-color: #e2e8f0; }
#root .simulator-panel > div:first-child > div:first-child { gap: 12px; }
#root .simulator-panel > div:first-child > div:first-child > div { margin-left: 0; }
#root .simulator-panel > div:first-child [class*="bg-gradient-"] { padding: 10px; border-radius: 9px; background-color: var(--ft-green); color: #fff; border: 1px solid var(--ft-green); box-shadow: none; flex-shrink: 0; }
#root .simulator-panel > div:first-child [class*="bg-gradient-"] svg { width: 23px; height: 23px; }
#root .simulator-panel > div:first-child h2 { font-size: 22px; line-height: 1.4; }
#root .simulator-panel > div:first-child p { font-size: 12px; color: var(--ft-muted); }
#root .simulator-panel > .grid { gap: 24px; }
#root .simulator-panel > .grid > div:first-child { padding: 20px; background: #f5f7f9; border-color: #e0e6ed; border-radius: 10px; }
#root .simulator-panel button.bg-fintatif-600 { background: var(--ft-green); color: #fff; min-height: 44px; font-weight: 600; border-radius: 8px; box-shadow: none; }
#root .simulator-panel button.bg-slate-900 { border-radius: 8px; box-shadow: none; }
#root .simulator-panel .pdf-block { border-radius: 10px; }
#root .simulator-panel .pdf-block.bg-slate-950 { background: var(--ft-navy); border-color: #275243; box-shadow: none; }
#root .simulator-panel table { font-variant-numeric: tabular-nums; }
#root .simulator-panel .min-h-\[320px\] { background: #fbfcfd; min-height: 240px; border-color: #cbd5df; border-radius: 10px; color: #64748b; }
#root .simulator-panel .text-\[10px\] { font-size: 11px; }

/* Reading and editorial pages */
#root .article-section { padding-top: 6px; }
#root .article-section > div:first-child { padding-bottom: 18px; border-color: #d6dfe8; }
#root .article-section > div:first-child p { margin-top: 6px; font-size: 13px; }
#root .article-section > div:first-child button { background: var(--ft-green); color: #fff; border: 1px solid var(--ft-green); border-radius: 7px; padding: 11px 16px; font-weight: 600; box-shadow: none; }
#root .article-section > .grid, #root .articles-page > .grid { gap: 22px; }
#root .article-card { background: #fff; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: 0 2px 5px rgb(14 28 46 / 3%); }
#root .article-card > div:first-child > div:first-child { height: 184px; border-radius: 0; }
#root .article-card > div:first-child > div:first-child > span { background: var(--ft-green); color: #fff; border-radius: 5px; font-size: 10px; font-weight: 600; }
#root .article-card > div:first-child > div:last-child { padding: 20px; }
#root .article-card h3 { color: #142b3b; font-size: 16px; line-height: 1.55; font-weight: 700; }
#root .article-card p { color: var(--ft-muted); font-size: 12px; font-weight: 400; line-height: 1.75; text-align: left; }
#root .article-card > div:last-child { margin-top: 0; padding: 13px 20px; border-color: #e6ebf0; color: #64748b; font-size: 10px; line-height: 1.5; font-weight: 500; }
#root .articles-page, #root .about-page, #root .article-detail-page { padding-top: 32px; padding-bottom: 48px; }
#root .articles-page > div:first-child, #root .about-page > div:first-child { text-align: left; margin-inline: 0; max-width: 720px; }
#root .articles-page > div:first-child > span, #root .about-page > div:first-child > span { display: inline-block; background: transparent; color: var(--ft-green); border-radius: 0; padding: 0; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
#root .articles-page h1, #root .about-page h1 { font-size: 32px; line-height: 1.3; font-weight: 700; }
#root .articles-page > div:first-child p, #root .about-page > div:first-child p { font-size: 14px; line-height: 1.8; font-weight: 400; color: var(--ft-muted); }
#root .article-detail-page { max-width: 940px; }
#root .article-detail-page > button { min-height: 36px; }
#root .article-body, #root .about-body { padding: 36px; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: none; }
#root .article-body h1 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.3; letter-spacing: -.04em; font-weight: 700; }
#root .article-body p,
#root .about-body p,
#root .article-body .text-justify,
#root .article-body li,
#root .about-body li,
#root .about-body div.border-l-4 {
    text-align: justify;
    text-align-last: start;
    text-justify: inter-word;
    overflow-wrap: break-word;
    word-break: normal;
}
#root .article-body p, #root .article-body li, #root .about-body p, #root .about-body li { line-height: 1.85; }
#root .article-body h2, #root .about-body h2 { font-size: 22px; line-height: 1.45; font-weight: 700; border-left-width: 2px; }
#root .article-body > div:last-child { font-size: 15px; }
#root .article-body > div:first-child > div:last-child { flex-wrap: wrap; white-space: normal; row-gap: 5px; color: var(--ft-muted); }
#root .article-body .h-80 { height: 300px; border-radius: 9px; }
#root .about-body { margin-top: 26px; }

/* Consultation and footer */
#root .consultation-panel { padding: 20px; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: none; }
#root .consultation-panel > .grid { gap: 28px; }
#root .consultation-panel .blur-3xl { display: none; }
#root .consultation-panel .bg-fintatif-dark { background: #065f46; padding: 28px; border-radius: 10px; }
#root .consultation-panel h3 { font-size: 29px; line-height: 1.3; }
#root .consultation-panel button { min-height: 44px; border-radius: 8px; box-shadow: none; }
#root footer { background: var(--ft-navy); border-color: #275243; padding-top: 36px; padding-bottom: 24px; }
#root footer .text-slate-400 { color: #b9c4d1; }
#root footer .text-slate-500 { color: #9baabd; }
#root footer h4 { font-size: 10px; font-weight: 700; letter-spacing: .09em; }
#root footer li, #root footer a { line-height: 1.8; }
#root footer > div > div:last-child { padding-top: 20px; border-color: #275243; font-size: 11px; }


/* Icon rhythm and interaction details */
#root .ft-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
#root .ft-inline-icon { width: 16px; height: 16px; margin-right: 5px; vertical-align: -.2em; }
#root .ft-tab-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-right: 9px; color: var(--ft-green); }
#root .simulator-tabs > button > span { flex: 1 1 auto; }
#root .simulator-tabs .bg-fintatif-dark .ft-tab-icon { color: var(--ft-accent); }
#root .tool-card > div:last-child .ft-icon { width: 15px; height: 15px; }
#root .site-header nav .ft-icon { stroke-width: 1.8; }
#root .tool-card[role="button"]:focus-visible, #root .article-card[role="button"]:focus-visible { outline: 3px solid #008457; outline-offset: 3px; }
#root .tool-card[role="button"]:active, #root .article-card[role="button"]:active { border-color: var(--ft-green); }
#root .tool-card > div:last-child { align-items: center; gap: 6px; }
#root .article-card > div:first-child > div:first-child img { transition-duration: 220ms; }
#root .article-card:hover > div:first-child > div:first-child img { transform: scale(1.025); }
#root .simulator-panel .bg-amber-100 > .ft-inline-icon { width: 22px; height: 22px; margin: 0; }
#root .simulator-panel .bg-amber-100 { border: 1px solid #f5d894; }
#root .consultation-panel .bg-fintatif-dark { border: 1px solid #065f46; }
#root .consultation-panel button.bg-gradient-to-r { background-color: #6d28a4; }
#root .simulator-panel button.text-rose-500 { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 6px; color: #be123c; border-radius: 5px; }
#root .article-body p a { text-underline-offset: 3px; }
#root footer a .ft-icon { width: 17px; height: 17px; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    #root .tool-card > div:last-child .ft-icon { transition: transform 160ms ease; }
    #root .tool-card:hover > div:last-child .ft-icon { transform: translateX(2px); }
}

@media (min-width: 1200px) {
    #root .tool-section > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #root .tool-card { padding: 18px; }
    #root .tool-card.is-app { padding: 24px; }
    #root .simulator-workspace { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 24px; align-items: start; }
    #root .simulator-workspace > * { margin-top: 0; }
    #root .simulator-tabs { position: sticky; top: 108px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 7px; max-height: calc(100dvh - 128px); overflow-y: auto; overflow-x: hidden; }
    #root .simulator-tabs > button { width: 100%; justify-content: flex-start; text-align: left; white-space: normal; padding: 11px 12px; border-radius: 6px; }
    #root .simulator-tabs > button:first-child { margin-bottom: 7px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; border-radius: 0; color: var(--ft-green); font-weight: 700; }
    #root .simulator-tabs > button:first-child svg { flex-shrink: 0; }
    #root .simulator-panel { padding: 22px; }
    #root .simulator-panel > .grid { grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: 20px; }
    #root .simulator-panel > .grid > * { grid-column: auto; }
    #root .simulator-panel > .grid > div:first-child { padding: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    #root .home-hero > div { grid-template-columns: 1fr; gap: 14px; }
    #root .home-hero p { max-width: 640px; }
    #root .article-section > .grid, #root .articles-page > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    html { scroll-padding-top: 92px; }
    #root .header-row { height: 80px; gap: 12px; }
    #root .brand-lockup { margin-left: -27px; }
    #root .brand-lockup img { height: 80px; width: auto; }
    #root .brand-lockup > div { margin-left: -23px; }
    #root .brand-lockup span { font-size: 24px; }
    #root .brand-lockup p { font-size: 7px; letter-spacing: .19em; }
    #root .home-page { padding-bottom: 32px; }
    #root .home-page > * + * { margin-top: 26px; }
    #root .home-hero { padding: 12px 0 24px; }
    #root .home-hero > div { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    #root .home-hero h1 { max-width: 580px; font-size: clamp(26px, 7.6vw, 36px); line-height: 1.17; letter-spacing: -.035em; }
    #root .home-hero p { max-width: 600px; padding: 0; font-size: 12.5px; line-height: 1.75; }
    #root .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 6px; }
    #root .hero-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
    #root .hero-actions button { width: 100%; min-height: 40px; padding: 9px 12px; font-size: 12px; }
    #root .hero-actions > div > button { padding-inline: 5px; font-size: clamp(9px, 2.7vw, 11px); letter-spacing: -.015em; white-space: nowrap; text-wrap: nowrap; }
    #root .home-page section:not(.home-hero) h2 { font-size: 20px; }
    #root .tool-section > div:first-child h2 { font-size: clamp(13px, 3.85vw, 18px); line-height: 1.5; white-space: nowrap; text-wrap: nowrap; letter-spacing: -.025em; }
    #root .tool-section > div:first-child p { font-size: 12px; }
    #root .tool-section > .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
    #root .tool-card { padding: 16px; border-radius: 10px; }
    #root .tool-card h3 { font-size: 13px; letter-spacing: -.015em; }
    #root .tool-card p { font-size: 12px; }
    #root .tool-card > div:last-child { padding-top: 10px; }
    #root .tool-card.is-app { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 18px; }
    #root .tool-card.is-app h3 { font-size: 15px; }
    #root .tool-card.is-app > div:last-child { justify-self: start; margin-left: 60px; padding: 10px 12px; font-size: 10px; }
    #root .simulator-workspace { padding-top: 18px; padding-bottom: 28px; }
    #root .simulator-workspace > div:last-child { margin-top: 16px; }
    #root .simulator-tabs { border-radius: 9px; }
    #root .simulator-tabs > button { font-size: 11px; padding: 10px 12px; }
    #root .simulator-panel { padding: 16px; border-radius: 10px; }
    #root .simulator-panel > div:first-child { padding-bottom: 16px; }
    #root .simulator-panel > div:first-child h2 { font-size: 19px; line-height: 1.4; }
    #root .simulator-panel > div:first-child p { font-size: 11px; line-height: 1.65; }
    #root .simulator-panel > .grid { gap: 18px; }
    #root .simulator-panel > .grid > div:first-child { padding: 14px; }
    #root input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #root select, #root textarea { font-size: 16px; }
    #root .simulator-panel .pdf-block { padding: 16px; overflow-wrap: anywhere; }
    #root .simulator-panel .pdf-block.text-\[10px\] { padding: 12px; }
    #root .simulator-panel .min-h-\[320px\] { min-height: 190px; padding: 22px 16px; }
    #root .article-section > .grid, #root .articles-page > .grid { gap: 16px; }
    #root .article-section > div:first-child { gap: 12px; }
    #root .article-section > div:first-child p { font-size: 12px; }
    #root .article-section > div:first-child button { padding: 10px 13px; font-size: 11px; }
    #root .article-card > div:first-child > div:first-child { height: 180px; }
    #root .article-card > div:first-child > div:last-child { padding: 16px; }
    #root .article-card > div:last-child { padding: 12px 16px; }
    #root .article-card h3 { font-size: 15px; }
    #root .articles-page, #root .about-page, #root .article-detail-page { padding-top: 24px; padding-bottom: 32px; }
    #root .articles-page h1, #root .about-page h1 { font-size: 27px; }
    #root .articles-page > div:first-child p, #root .about-page > div:first-child p { font-size: 12px; }
    #root .article-body, #root .about-body { padding: 20px; border-radius: 10px; }
    #root .article-body h1 { font-size: 26px; }
    #root .article-body h2, #root .about-body h2 { font-size: 20px; }
    #root .article-body > div:last-child { font-size: 14px; }
    #root .article-body .h-80 { height: 200px; }
    #root .consultation-panel { padding: 14px; border-radius: 10px; }
    #root .consultation-panel > .grid { gap: 20px; }
    #root .consultation-panel .bg-fintatif-dark { padding: 22px; }
    #root .consultation-panel h3 { font-size: 25px; }
    #root .consultation-panel .bg-fintatif-dark p { font-size: 12px; }
    #root footer { padding-top: 28px; }
    #root footer > div > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
    #root footer > div > .grid > div:first-child, #root footer > div > .grid > div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 767px) {
    #root .tool-section > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #root .tool-card.is-app { grid-template-columns: minmax(0, 1fr) auto; }
    #root .tool-card.is-app > div:last-child { margin-left: 0; }
}
@media (hover: hover) {
    #root .site-header nav button:not(.bg-fintatif-500):hover { background: transparent; color: #fff; border-bottom-color: #37836b; }
    #root .tool-card:not(.is-app):hover { background: #fff; border-color: #008457; box-shadow: 0 3px 10px rgb(11 34 49 / 6%); }
    #root .tool-card.is-app:hover { background: #005a43; border-color: #005a43; }
    #root .tool-card:hover h3 { color: var(--ft-green); }
    #root .tool-card.is-app:hover h3 { color: #fff; }
    #root .article-card:hover { border-color: #008457; box-shadow: 0 3px 10px rgb(11 34 49 / 6%); }
    #root .hero-actions > div > button:first-child:hover { background: #6ee7b7; border-color: #6ee7b7; }
    #root .hero-actions > div > button:last-child:hover { background: #192a3d; border-color: #8294a8; }
    #root button.bg-fintatif-600:hover { background: #065f46; }
    #root .simulator-tabs > button:not(.bg-fintatif-dark):hover { background: #edf6f1; color: #065f46; }
}
@media (prefers-reduced-motion: reduce) {
    #root *, #root *::before, #root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Consistent card rows and paired field alignment. */
#root .tool-section > .grid { grid-template-rows: auto; grid-auto-rows: 1fr; align-items: stretch; }
#root .tool-card:not(.is-app) { height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
#root .tool-card:not(.is-app) > div:first-child { grid-template-rows: minmax(42px, auto) minmax(63px, auto); }
#root .tool-card:not(.is-app) h3 { min-height: 42px; display: flex; align-items: center; }
#root .tool-card:not(.is-app) > div:last-child { margin-top: auto; padding-top: 16px; }
#root .home-hero p { align-self: center; font-size: 13px; line-height: 1.8; }
#root .simulator-panel > .grid > div:first-child .grid > div { min-width: 0; }
#root .simulator-panel > .grid > div:first-child label { margin-left: 0; }
#root .simulator-panel :is([class*="bg-emerald-50/40"], [class*="bg-blue-50/40"], [class*="bg-purple-50/40"], [class*="bg-amber-50/40"]) > .flex { flex-wrap: wrap; gap: 7px; }
#root .simulator-panel .field-hint { gap: 7px; padding: 9px; box-shadow: none; }
#root .simulator-panel .field-hint > span { margin: 0; }
#root .simulator-panel .field-hint > span:first-child { display: flex; flex-shrink: 0; padding-top: 2px; }
#root .simulator-panel .field-hint .ft-inline-icon { width: 14px; height: 14px; margin: 0; }
#root .simulator-panel .field-hint > span:last-child { font-size: 10px; font-weight: 500; line-height: 1.6; }
@media (min-width: 640px) {
    #root .simulator-panel > .grid > div:first-child :is(.grid-cols-2, .sm\:grid-cols-2) > div > label {
        display: flex; align-items: flex-end; min-height: 35px; margin-bottom: 6px;
    }
}

/* Results use a paper surface with clear numeric hierarchy and semantic colors. */
#root .simulator-panel .pdf-block.result-summary {
    background: #fff; color: var(--ft-ink); border: 1px solid #d1dde8;
    border-top: 3px solid var(--ft-green); border-radius: 12px; padding: 22px;
    box-shadow: 0 3px 12px rgb(11 34 49 / 4%); font-variant-numeric: tabular-nums;
}
#root .simulator-panel .result-summary > * + * { margin-top: 16px; }
#root .simulator-panel .result-caption {
    display: flex; align-items: center; gap: 8px; padding-bottom: 13px;
    border-bottom: 1px solid #dde5ed; color: var(--ft-green);
    font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .07em;
    text-transform: uppercase;
}
#root .simulator-panel .result-summary .text-white,
#root .simulator-panel .result-summary .text-slate-200 { color: var(--ft-ink); }
#root .simulator-panel .result-summary :is(.text-slate-400, .text-slate-300) { color: #526575; }
#root .simulator-panel .result-summary :is(.text-fintatif-400, .text-emerald-400, .text-emerald-300, .text-emerald-200) { color: #006f4b; }
#root .simulator-panel .result-summary :is(.text-amber-400, .text-amber-300) { color: #a15b00; }
#root .simulator-panel .result-summary :is(.text-rose-400, .text-rose-300),
#root .simulator-panel .result-summary [class*="text-rose-300/"] { color: #b91c3e; }
#root .simulator-panel .result-summary .text-orange-400 { color: #9a3412; }
#root .simulator-panel .result-summary :is(.text-blue-400, .text-blue-300) { color: #1d4ed8; }
#root .simulator-panel .result-summary :is(.text-purple-400, .text-purple-300) { color: #7e22ce; }
#root .simulator-panel .result-summary [class*="border-slate-800"] { border-color: #dde5ed; }
#root .simulator-panel .result-summary .bg-slate-900 { background: #f3f6f9; }
#root .simulator-panel .result-summary .bg-slate-800 { background: #e1e8ee; }
#root .simulator-panel .result-summary [class*="bg-emerald-950"],
#root .simulator-panel .result-summary [class*="bg-emerald-500/"] { background: #edf8f1; }
#root .simulator-panel .result-summary [class*="bg-amber-950"],
#root .simulator-panel .result-summary [class*="bg-amber-500/"] { background: #fff7e9; }
#root .simulator-panel .result-summary [class*="bg-rose-950"],
#root .simulator-panel .result-summary [class*="bg-rose-500/"] { background: #fff0f3; }
#root .simulator-panel .result-summary [class*="bg-blue-500/"] { background: #eef4ff; }
#root .simulator-panel .result-summary [class*="bg-purple-500/"] { background: #f8f0ff; }
#root .simulator-panel .result-summary h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
#root .simulator-panel .result-summary .text-lg { font-size: 18px; line-height: 1.5; }
#root .simulator-panel .result-summary .text-xl { font-size: 21px; line-height: 1.4; }
#root .simulator-panel .result-summary .text-2xl { font-size: 26px; line-height: 1.4; }
#root .simulator-panel .result-summary .text-\[9px\],
#root .simulator-panel .result-summary .text-\[10px\] { font-size: 10px; line-height: 1.7; }
#root .simulator-panel .result-summary .font-black { font-weight: 700; }
#root .simulator-panel .result-summary .flex.justify-between { gap: 8px 14px; flex-wrap: wrap; }
#root .simulator-panel .result-summary .flex > * { min-width: 0; }
#root .simulator-panel .result-summary .flex.justify-between > :last-child { margin-left: auto; }
#root .simulator-panel .result-summary .grid > div { min-width: 0; }
#root .simulator-panel .result-summary .grid > div > .block { min-height: 34px; }
#root .simulator-panel .result-summary .text-right p { text-align: right; }
#root .simulator-panel .pdf-block.result-analysis { background: #f5f8fb; color: var(--ft-ink); border-color: #d5e1eb; padding: 20px; border-radius: 10px; }
#root .simulator-panel .result-analysis p { font-size: 12px; line-height: 1.85; }
#root .simulator-panel .result-analysis > div:first-child { font-size: 12px; line-height: 1.65; }
#root .simulator-panel .result-disclaimer { padding: 12px 14px; background: #f5f7f8; color: #566877; font-size: 10px; line-height: 1.7; border-color: #dce3e8; box-shadow: none; }
#root .simulator-panel .result-costs .grid { align-items: stretch; }
#root .simulator-panel .result-costs .grid > div { display: flex; flex-direction: column; min-width: 0; padding: 16px; background: #f5f8fb; border-color: #d5e1eb; }
#root .simulator-panel .result-costs .grid > div > .flex { flex-direction: column; align-items: flex-start; gap: 6px; }
#root .simulator-panel .result-costs .grid > div p { margin-top: 8px; line-height: 1.75; }
#root .simulator-panel .result-costs .whitespace-nowrap { white-space: normal; }
@media (max-width: 767px) {
    #root .tool-card:not(.is-app) > div:first-child { grid-template-rows: minmax(38px, auto) minmax(42px, auto); }
    #root .tool-card:not(.is-app) h3 { min-height: 38px; }
    #root .home-hero p { align-self: start; }
    #root .simulator-panel .pdf-block.result-summary { padding: 17px; }
    #root .simulator-panel .result-summary .text-2xl { font-size: 23px; }
    #root .simulator-panel .result-summary .grid-cols-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    #root .simulator-panel .result-summary .grid > div > .block { min-height: 0; margin-bottom: 3px; }
    #root .simulator-panel .pdf-block.result-analysis { padding: 16px; }
}

/* Hanging markers keep every continuation aligned with its text in web and PDF. */
#root .simulator-panel .result-point,
#root .simulator-panel .result-risk-title {
    display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px;
    align-items: start; font-weight: 500; text-align: left; line-height: 1.8;
}
#root .simulator-panel .result-point-number,
#root .simulator-panel .result-risk-title > :first-child { text-align: right; font-variant-numeric: tabular-nums; }
#root .simulator-panel .result-point-body { min-width: 0; overflow-wrap: break-word; }
#root .simulator-panel .result-point-plain { grid-template-columns: minmax(0, 1fr); }
#root .simulator-panel .result-point-continuation,
#root .simulator-panel .result-risk-copy { padding-left: 32px; }

/* Justify explanation text in both the responsive results and their PDF capture. */
#root .simulator-panel .result-summary .text-justify,
#root .simulator-panel .pdf-block .text-justify,
#root .simulator-panel .result-analysis p:not(.result-point),
#root .simulator-panel .result-point-body,
#root .simulator-panel .result-risk-copy,
#root .simulator-panel .result-costs .grid > div p,
#root .simulator-panel .result-disclaimer > span:last-child {
    text-align: justify; text-align-last: left; text-justify: inter-word;
}
#root .simulator-panel .result-disclaimer > span:last-child { min-width: 0; flex: 1; }
#root .simulator-panel .result-risk-title { font-weight: 700; }
#root .simulator-panel .result-point.font-bold { font-weight: 700; }
#root .simulator-panel .result-status {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 30px; max-width: 100%; box-sizing: border-box;
    padding: 5px 10px; line-height: 18px; vertical-align: middle;
    text-align: center; white-space: normal;
}

/* Capture-only typography: wide, readable reports with the same result styling. */
#root .simulator-panel .ft-pdf-capture { box-shadow: none; margin: 0; }
#root .simulator-panel .ft-pdf-capture.result-summary h3 { font-size: 28px; }
#root .simulator-panel .ft-pdf-capture.result-summary .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#root .simulator-panel .ft-pdf-capture.result-summary .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    
/* Feedback stays brief and does not block clicks or change application state. */
@keyframes ft-page-enter {
    from { opacity: .45; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ft-header-select {
    from { opacity: .65; }
    to { opacity: 1; }
}
@keyframes ft-menu-select {
    from { box-shadow: inset 0 0 0 1px rgb(46 229 164 / 65%); }
    to { box-shadow: inset 0 0 0 1px rgb(46 229 164 / 0%); }
}
@media (prefers-reduced-motion: no-preference) {
    #root :is(.home-page, .articles-page, .about-page, .article-detail-page, .simulator-panel, .consultation-panel) {
        animation: ft-page-enter 220ms cubic-bezier(.2,.65,.3,1);
    }
    #root .site-header nav .bg-fintatif-500 { animation: ft-header-select 240ms ease-out; }
    #root .mobile-navigation .bg-fintatif-500,
    #root .simulator-tabs .bg-fintatif-dark { animation: ft-menu-select 280ms ease-out; }
    #root button:not(:disabled):active,
    #root :is(.tool-card, .article-card)[role="button"]:active { transform: translateY(1px) scale(.985); }
    #root footer li.cursor-pointer:active { transform: translateX(3px); }
}
#root :is(.tool-card, .article-card) {
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}
#root footer li.cursor-pointer { transition: color 160ms ease, transform 160ms ease; }
#root .simulator-tabs .bg-fintatif-dark { border-radius: 7px; box-shadow: inset 3px 0 0 var(--ft-accent); }
#root .article-section > div:first-child { border-bottom-width: 1px; }
#root .brand-lockup p { color: var(--ft-accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    #root :is(.tool-card, .article-card):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(11 34 49 / 9%); }
}
/* Capture renders the final appearance, never a transition frame. */
#root .ft-pdf-capture, #root .ft-pdf-capture * { animation: none !important; transition: none !important; }
