/* Shared theme: deliberately independent of authentication and billing. */
:root { color-scheme: light; }
.nav-wrap { gap: 1rem; }
.site-header nav { margin-left: auto; }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; flex-shrink:0; min-height:44px; padding:.5rem .75rem; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font:inherit; font-size:.82rem; cursor:pointer; }
.theme-toggle[hidden] { display:none; }
.theme-toggle [data-theme-icon] { font-size:1.25rem; line-height:1; }
.theme-toggle:hover { background:var(--mint); }
.theme-toggle:focus-visible { outline:3px solid #559b7e; outline-offset:3px; }
html[data-theme="dark"] { color-scheme:dark; --ink:#e4eee8; --muted:#aabeb4; --paper:#101c19; --surface:#192a24; --line:#375046; --mint:#243f33; --sand:#14251e; --shadow:0 18px 55px rgba(0,0,0,.25); }
.dashboard-greeting { margin-bottom:.5rem; color:#c9560c; font-size:clamp(1.25rem,2.4vw,1.8rem); font-weight:800; letter-spacing:-.025em; text-transform:none; }
html[data-theme="dark"] .dashboard-greeting { color:#ffab66; }
html[data-theme="dark"] .site-header { background:rgba(16,28,25,.96); }
html[data-theme="dark"] .brand span,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .positive,
html[data-theme="dark"] .panel-heading a,
html[data-theme="dark"] .status-dot { color:#a8d7bc; }
html[data-theme="dark"] .button-outline { color:#b7e2c8; border-color:#7baa91; }
html[data-theme="dark"] .button-outline:hover { background:#243f33; }
html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .home-trust,
html[data-theme="dark"] .home-method,
html[data-theme="dark"] .home-compare,
html[data-theme="dark"] .home-testimonials { background:#14251e; }
html[data-theme="dark"] .trust-items,
html[data-theme="dark"] .home-trust-items,
html[data-theme="dark"] .comparison-note,
html[data-theme="dark"] .evidence-caption,
html[data-theme="dark"] .compare-label { color:#aabeb4; }
html[data-theme="dark"] .home-benefits,
html[data-theme="dark"] .home-pricing { background:#101c19; }
/* Named sections keep the rhythm stable when the small trust strip is present.
   Only dark mode changes; retain the graph/map images and existing text. */
html[data-theme="dark"] {
  --home-block-deep:#101c19;
  --home-block-soft:#243c32;
}
html[data-theme="dark"] .home-method,
html[data-theme="dark"] .home-benefits { background:var(--home-block-soft); }
html[data-theme="dark"] .home-compare,
html[data-theme="dark"] .home-pricing { background:var(--home-block-deep); }
html[data-theme="dark"] .home-evolving::before {
  background-image:linear-gradient(90deg,rgba(36,60,50,.94),rgba(36,60,50,.84) 56%,rgba(36,60,50,.66)),url("/static/media/fond.png");
}
html[data-theme="dark"] .home-final::before {
  background-image:linear-gradient(90deg,rgba(36,60,50,.94),rgba(36,60,50,.84) 56%,rgba(36,60,50,.66)),url("/static/media/fond2.png");
}
html[data-theme="dark"] .compare-card:not(.compare-card-accent),
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] blockquote,
html[data-theme="dark"] .flow-question,
html[data-theme="dark"] .flow-tags b,
html[data-theme="dark"] .resource-tags span { background:#192a24; color:#e4eee8; border-color:#375046; }
html[data-theme="dark"] .method-step,
html[data-theme="dark"] .compare-card li { border-color:#375046; }
html[data-theme="dark"] .method-step>span,
html[data-theme="dark"] .benefit-card>span { color:#a8d7bc; }
html[data-theme="dark"] .pill,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .status-chip,
html[data-theme="dark"] .icon-circle { background:#243f33; color:#b7e2c8; }
html[data-theme="dark"] .demo-box { background:#342d1d; border-color:#685637; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background:#13231d; color:#e4eee8; border-color:#526c5e; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#aabeb4; }
html[data-theme="dark"] .connect-card code,
html[data-theme="dark"] .copy-button { background:#13231d; color:#b7e2c8; border-color:#526c5e; }
html[data-theme="dark"] .copy-button:hover { background:#243f33; }
/* Logos retain their original light tile for brand contrast. */
html[data-theme="dark"] .connect-card .app-mark { background:#fff; color:#17302b; }
html[data-theme="dark"] .skip-link:focus { background:#192a24; color:#e4eee8; }
@media(max-width:1000px) { .site-header nav { gap:.7rem; } .nav-wrap { gap:.65rem; } }
@media(max-width:600px) { .nav-wrap { min-height:78px; height:auto; padding-block:.65rem; flex-wrap:wrap; } .brand { font-size:1.05rem; } .site-header nav { font-size:.8rem; } .theme-toggle { width:44px; padding:.45rem; } .theme-toggle [data-theme-label] { display:none; } }
/* Native details works with touch, keyboard and without extra JavaScript. */
.mobile-nav { display:none; }
.usage-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; padding-bottom:5rem; }
.usage-card { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:2rem; }
.usage-card ol { padding-left:1.35rem; }
.usage-card li { margin-bottom:.75rem; }
.usage-card code { overflow-wrap:anywhere; }
.usage-example { white-space:pre-wrap; overflow-wrap:anywhere; background:var(--mint); color:var(--ink); border-radius:10px; padding:1rem; font:inherit; }
.usage-hero { padding-block:clamp(4rem,8vw,7rem) 4rem; }
.usage-hero h1 { max-width:760px; }
.usage-section { padding-block:2rem 4rem; }
.usage-section-heading { max-width:720px; margin-bottom:2rem; }
.usage-section-heading h2 { margin-bottom:.8rem; }
.provider-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.provider-card { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:1.5rem; box-shadow:0 8px 30px rgba(21,49,43,.03); }
.provider-heading { display:flex; align-items:center; gap:.85rem; margin-bottom:1.3rem; }
.provider-heading .app-mark { margin:0; width:52px; height:52px; background:#fff; border:1px solid var(--line); }
.provider-heading .app-mark img { width:32px; height:32px; object-fit:contain; }
.provider-heading .mistral-mark { width:56px; height:56px; }
.provider-heading .mistral-mark img { width:38px; height:38px; }
.provider-heading .chatgpt-mark { background:var(--green); border-color:var(--green); }
#mistral .app-mark { font-size:0; }
#mistral .app-mark:not(:has(img))::before { content:""; display:block; width:38px; height:38px; margin:auto; background:url('/static/icons/mistral.svg') center / contain no-repeat; }
.provider-kicker { color:var(--muted); font-size:.78rem; font-weight:800; margin:0 0 .15rem; }
.provider-heading h3 { margin:0; }
.provider-card ol { padding-left:1.25rem; margin:0; }
.provider-card li { margin-bottom:.7rem; }
.provider-note { color:var(--muted); font-size:.88rem; border-top:1px solid var(--line); padding-top:1rem; margin:1.2rem 0 0; }
.usage-direct { border-top:1px solid var(--line); }
.direct-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:1rem; }
.direct-example, .direct-checklist { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:1.75rem; }
.direct-example { background:var(--mint); border-color:#b9dcca; }
.example-label { color:#287455; font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.direct-example blockquote { margin:1.5rem 0; font-size:clamp(1.2rem,2.3vw,1.7rem); line-height:1.3; font-weight:700; }
.direct-checklist ul { padding-left:1.25rem; }
.direct-checklist li { margin-bottom:.6rem; }
.usage-illustration { display:grid; grid-template-columns:.75fr 1.25fr; gap:3rem; align-items:center; padding-block:2rem 6rem; }
.usage-illustration figure { margin:0; }
.usage-illustration img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.usage-illustration figcaption { color:var(--muted); font-size:.78rem; margin-top:.6rem; }
.panel form { display:grid; gap:.75rem; }
.panel form label { display:grid; gap:.35rem; font-weight:700; }
.panel form input { width:100%; min-height:44px; padding:.7rem .8rem; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:inherit; }
.panel form input:focus-visible { outline:3px solid #559b7e; outline-offset:2px; }
.panel form .button { justify-self:start; }
html[data-theme="dark"] .provider-heading .app-mark { background:#fff; }
html[data-theme="dark"] .provider-heading .chatgpt-mark { background:var(--green); border-color:var(--green); }
html[data-theme="dark"] .direct-example { background:#243f33; border-color:#375046; }
html[data-theme="dark"] .example-label { color:#b7e2c8; }
@media(max-width:800px) {
  .nav-wrap { position:relative; height:auto; min-height:78px; flex-wrap:nowrap; gap:.5rem; padding-block:.65rem; }
  .nav-wrap .brand { font-size:1rem; white-space:nowrap; }
  .site-header .desktop-nav { display:none; }
  .mobile-nav { display:block; margin-left:auto; }
  .mobile-nav summary { display:flex; align-items:center; justify-content:center; gap:.35rem; min-height:44px; padding:.4rem .55rem; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); cursor:pointer; list-style:none; font-size:.85rem; }
  .mobile-nav summary::-webkit-details-marker { display:none; }
  .mobile-nav summary:focus-visible { outline:3px solid #559b7e; outline-offset:3px; }
  .site-header .mobile-menu-panel { position:absolute; inset:auto 0 auto; top:100%; display:grid; gap:.25rem; padding:.75rem; margin:0; background:var(--surface); border:1px solid var(--line); border-radius:0 0 12px 12px; box-shadow:var(--shadow); max-height:calc(100svh - 100px); overflow-y:auto; }
  .mobile-nav:not([open]) .mobile-menu-panel { display:none; }
  .site-header .mobile-nav .mobile-menu-panel a { display:flex; align-items:center; min-height:44px; padding:.65rem .8rem; border-radius:7px; font-size:1rem; }
  .mobile-menu-panel a:hover { background:var(--mint); }
  .nav-wrap .theme-toggle { width:44px; padding:.45rem; }
  .nav-wrap .theme-toggle [data-theme-label] { display:none; }
  .usage-layout { grid-template-columns:1fr; }
  .usage-card { padding:1.3rem; }
  .direct-grid, .usage-illustration { grid-template-columns:1fr; gap:1.25rem; }
  .usage-hero { padding-block:3.5rem 2.5rem; }
  .provider-grid { grid-template-columns:1fr; }
  .usage-section { padding-bottom:3rem; }
  .usage-illustration { padding-bottom:4rem; }
  .footer-grid>div:last-child { display:flex; flex-wrap:wrap; gap:.65rem 1rem; }
  .footer-grid>div:last-child a { margin:0; }
}
