/* Orbisys — site vitrine. Feuille autonome, sans build.
   Couleurs tirées du logo : dégradé ciel → violet, planète marine. Sombre par défaut. */

/* ---------- Polices (hébergées localement, licence OFL : voir /fonts) ---------- */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* Surfaces */
  --paper: #0A0F2B;
  --paper-2: #0D1335;
  --card: #10173D;
  --card-hi: #161F4E;
  --rule: #232C5E;
  --rule-hi: #343F80;
  /* Texte (contrastes AA vérifiés sur --paper et --card) */
  --ink: #EEF1FC;
  --ink-2: #B4BCDF;
  --ink-3: #8E98C2;
  /* Accents */
  --accent: #7C4DF0;
  --accent-hover: #8E63F5;
  --accent-text: #BBA8FD;
  --accent-soft: rgba(139, 92, 246, .18);
  --accent-soft-text: #D8CEFE;
  --sky: #7DD3FC;
  --cyan: #38BDF8;
  --brand-grad: linear-gradient(90deg, #38BDF8, #8B5CF6);
  /* Bandes profondes (console, installation, clôture) */
  --abyss: #060A1F;
  --abyss-2: #0E1538;
  --abyss-rule: #1F2858;
  --terminal: #03061A;
  --foam: #DFE4F7;
  --foam-2: #A3ADD3;
  --violet-hi: #A78BFA;
  --amber: #FBBF24;
  --crit: #F87171;
  --ok: #4ADE80;
  --danger-text: #FCA5A5;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --glow: radial-gradient(60% 60% at 70% 30%, rgba(56, 189, 248, .16), transparent 70%),
          radial-gradient(50% 50% at 20% 70%, rgba(139, 92, 246, .16), transparent 70%);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #F4F6FC;
  --paper-2: #E9EDF8;
  --card: #FFFFFF;
  --card-hi: #FFFFFF;
  --rule: #D3D9EC;
  --rule-hi: #B5BEDC;
  --ink: #0B1230;
  --ink-2: #3E4870;
  --ink-3: #565F82;
  --accent: #6A3FE0;
  --accent-hover: #5831C7;
  --accent-text: #5B34D1;
  --accent-soft: #ECE6FD;
  --accent-soft-text: #4B27B8;
  --sky: #0369A1;
  --abyss: #0B1230;
  --abyss-2: #141D48;
  --abyss-rule: #283270;
  --terminal: #070C24;
  --danger-text: #B42330;
  --shadow: 0 30px 60px -30px rgba(11, 18, 48, .45);
  --glow: radial-gradient(60% 60% at 70% 30%, rgba(56, 189, 248, .14), transparent 70%),
          radial-gradient(50% 50% at 20% 70%, rgba(139, 92, 246, .12), transparent 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, pre, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre { font-family: var(--mono); }
code { font-size: .86em; background: var(--paper-2); padding: .12em .4em; border-radius: 5px; }
b, strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--accent); color: #fff; }
html { scrollbar-color: var(--rule-hi) var(--paper); accent-color: var(--accent); }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
:root[data-theme="light"] :focus-visible { outline-color: var(--accent-text); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .6rem .9rem; z-index: 99; border-radius: var(--r-s); }
.skip:focus { left: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sky);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; border-radius: 2px; background: var(--brand-grad); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; font: 600 1rem/1.1 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  padding: .8rem 1.25rem; border-radius: var(--r-s); border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(124, 77, 240, .8); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--rule-hi); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--card); }
.dark .btn-ghost { border-color: var(--abyss-rule); color: var(--foam); }
.dark .btn-ghost:hover { background: var(--abyss-2); border-color: var(--foam-2); }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: .55rem .95rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-s); color: var(--ink-2); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--rule-hi); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme-toggle] .i-sun { display: none; }
:root[data-theme="light"] [data-theme-toggle] .i-sun { display: block; }
:root[data-theme="light"] [data-theme-toggle] .i-moon { display: none; }

.badge {
  display: inline-block; font: 600 .72rem/1 var(--mono); letter-spacing: .03em;
  padding: .32rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-text);
  vertical-align: .1em;
}

/* ---------- En-tête et menu ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.18rem; letter-spacing: -.015em; }
.brand img { width: 30px; height: 30px; }
.nav-right { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: var(--r-s); padding: 3px; }
.lang a {
  display: grid; place-items: center; min-width: 34px; min-height: 32px; padding: 0 .5rem;
  font: 600 .8rem/1 var(--sans); color: var(--ink-3); text-decoration: none; border-radius: 5px;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.nav-links { display: none; }
.nav-menu-cta { display: none; }
.menu-btn .m-close { display: none; }
.nav.is-open .menu-btn .m-open { display: none; }
.nav.is-open .menu-btn .m-close { display: inline; }

@media (min-width: 1040px) {
  .menu-btn { display: none; }
  .nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; color: var(--ink-2); }
  .nav-links a { text-decoration: none; padding: .4rem 0; position: relative; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
    background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { transform: scaleX(1); }
}
@media (max-width: 1039px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; z-index: 49;
    flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open .nav-links { display: flex; animation: menu-in .2s var(--ease); }
  .nav-links a:not(.btn) {
    display: flex; align-items: center; min-height: 48px; padding: 0 .5rem;
    font-size: 1.08rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule);
  }
  .nav-menu-cta { display: inline-flex; margin-top: 1rem; }
}
@media (max-width: 560px) { .nav-cta { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6.5rem); border-bottom: 1px solid var(--rule); isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; background: var(--glow); pointer-events: none; }
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 4rem; } }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800;
  max-width: 14ch; text-wrap: balance;
}
.hero-desc { margin-top: 1.5rem; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 36rem; }
.hero-ctas { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.proof { margin-top: 2rem; display: grid; gap: .55rem; font-size: .95rem; color: var(--ink-2); }
.proof li { position: relative; padding-left: 1.6rem; }
.proof li::before {
  content: ""; position: absolute; left: .1rem; top: .38em; width: 1rem; height: 1rem; border-radius: 50%;
  background: radial-gradient(circle, var(--ok) 0 3px, color-mix(in srgb, var(--ok) 25%, transparent) 4px 100%);
}

/* Console d'incident — le moment fort de la page */
.console {
  background: var(--abyss); color: var(--foam);
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--abyss-rule), 0 0 80px -30px rgba(56, 189, 248, .35);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--abyss-rule); background: var(--abyss-2);
}
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--abyss-rule); }
.phases { display: flex; gap: .3rem; flex-wrap: wrap; }
.phase {
  font-size: .84rem; font-weight: 600; color: var(--foam-2);
  padding: .3rem .7rem; border-radius: 999px; border: 1px solid transparent;
  transition: color .3s, border-color .3s, background-color .3s;
}
.phase.is-on { color: #fff; background: linear-gradient(var(--abyss-2), var(--abyss-2)) padding-box, var(--brand-grad) border-box; }
.phase.is-done { color: var(--foam); border-color: var(--abyss-rule); }
.replay {
  font: 500 .84rem/1 var(--sans); color: var(--foam-2); background: none; min-height: 32px;
  border: 1px solid var(--abyss-rule); border-radius: var(--r-s); padding: .4rem .7rem; cursor: pointer;
  visibility: hidden;
}
.replay.is-ready { visibility: visible; }
.replay:hover { color: var(--foam); border-color: var(--foam-2); }
.log { padding: 1.2rem 1.1rem 1.1rem; display: grid; gap: .85rem; min-height: 22rem; align-content: start; }
.log li {
  display: grid; grid-template-columns: 4.4rem 1fr; gap: .2rem .8rem;
  font-size: .92rem; line-height: 1.5;
  opacity: 0; transform: translateY(4px);
  transition: opacity .45s ease, transform .45s ease;
}
.log li.is-shown { opacity: 1; transform: none; }
.log time { font: 400 .78rem/1.95 var(--mono); color: var(--foam-2); font-variant-numeric: tabular-nums; }
.log .state { font-weight: 700; margin-right: .4rem; }
.log .host { font-family: var(--mono); font-size: .86em; color: #fff; }
.st-crit { color: var(--crit); } .st-warn { color: var(--amber); } .st-info { color: #7DD3FC; }
.st-ai { color: var(--violet-hi); } .st-ok { color: var(--ok); }
.log blockquote {
  grid-column: 2; margin-top: .35rem; padding: .75rem .9rem;
  background: var(--abyss-2); border: 1px solid var(--abyss-rule); border-left: 2px solid var(--violet-hi);
  border-radius: var(--r-s); color: var(--foam); font-size: .89rem;
}
.console-cap { padding: .75rem 1.1rem; border-top: 1px solid var(--abyss-rule); font-size: .78rem; color: var(--foam-2); }
@media (max-width: 480px) {
  .log { padding: 1rem .85rem; }
  .log li { grid-template-columns: 1fr; }
  .log blockquote { grid-column: 1; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.4rem, 4vw, 3.5rem); }
.section-head h2, .closing h2 {
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -.032em; font-weight: 800; text-wrap: balance;
}
.section-head > p:not(.eyebrow) { margin-top: 1rem; color: var(--ink-2); font-size: 1.12rem; }
.dark { background: var(--abyss); color: var(--foam); }
.dark .section-head > p:not(.eyebrow) { color: var(--foam-2); }
.dark b { color: #fff; }
.dark code { background: var(--abyss-2); color: var(--sky); }
:root[data-theme="light"] .dark { --sky: #7DD3FC; }

/* Problèmes */
.pains { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
@media (min-width: 760px) { .pains { grid-template-columns: 1fr 1fr; } }
.pain { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.2rem); }
.pain h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.pain-q { margin-top: .5rem; color: var(--ink-3); font-style: italic; }
.pain-a { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--rule); color: var(--ink-2); }
.pain-a::before { content: "→ "; color: var(--sky); font-weight: 700; }

/* Comment ça marche */
.how { display: grid; gap: 1.25rem; counter-reset: how; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { counter-increment: how; position: relative; padding: 1.6rem 1.4rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-m); }
.how li::before {
  content: "0" counter(how); display: block; margin-bottom: 1rem;
  font: 600 .85rem/1 var(--mono); color: var(--sky); letter-spacing: .05em;
}
.how h3 { font-size: 1.15rem; font-weight: 700; }
.how p { margin-top: .5rem; color: var(--ink-2); font-size: .97rem; }

/* Fonctionnalités */
.features { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: flex; flex-direction: column; padding: 1.7rem 1.6rem; background: var(--card);
  border: 1px solid var(--rule); border-radius: var(--r-m);
  transition: border-color .2s, transform .2s var(--ease);
}
.feature:hover { border-color: var(--rule-hi); }
.feature-wide { grid-column: 1 / -1; }
@media (min-width: 1100px) { .feature-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; } }
.f-icon { width: 40px; height: 40px; padding: 9px; margin-bottom: 1.1rem; border-radius: 10px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent); }
.feature-ai .f-icon { stroke: var(--violet-hi); background: var(--accent-soft); border-color: color-mix(in srgb, var(--violet-hi) 35%, transparent); }
.feature h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; }
.feature-wide h3 { font-size: 1.45rem; }
.feature p { margin-top: .55rem; color: var(--ink-2); font-size: .98rem; }
.feature .feat-plan { margin-top: auto; padding-top: 1rem; font-size: .88rem; color: var(--ink-3); }
.feature p + .feat-plan { margin-top: 1rem; border-top: 1px solid var(--rule); }
.stack { display: flex; flex-wrap: wrap; gap: .45rem; align-content: start; }
@media (max-width: 1099px) { .feature-wide .stack { margin-top: 1.3rem; } }
.stack li { font: 500 .8rem/1 var(--mono); padding: .5rem .65rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }

/* Captures de l'interface */
.screens { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.screens [role="tab"], .os-tabs [role="tab"] {
  font: 600 .92rem/1 var(--sans); color: var(--ink-2); background: transparent; cursor: pointer;
  min-height: 42px; padding: .6rem 1rem; border: 1px solid var(--rule); border-radius: 999px;
  transition: color .15s, border-color .15s, background-color .15s;
}
.screens [role="tab"]:hover { color: var(--ink); border-color: var(--rule-hi); }
.screens [role="tab"][aria-selected="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.screen-frame {
  border-radius: var(--r-l); overflow: hidden; background: var(--abyss);
  box-shadow: var(--shadow), 0 0 0 1px var(--rule);
}
.screen-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* Solutions */
.solutions { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .solutions { grid-template-columns: repeat(3, 1fr); } }
.sol { padding: 1.6rem; border-top: 2px solid transparent; border-image: var(--brand-grad) 1; background: linear-gradient(var(--card), var(--card)); border-radius: 0 0 var(--r-m) var(--r-m); }
.sol h3 { font-size: 1.15rem; font-weight: 700; }
.sol p { margin-top: .5rem; color: var(--ink-2); font-size: .97rem; }

/* Tarifs */
.pricing-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.pricing-top .section-head { margin-bottom: 0; }
.bill { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 4px; background: var(--card); }
.bill button {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .93rem/1 var(--sans); background: none; border: 0; color: var(--ink-3);
  min-height: 40px; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s;
}
.bill button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bill-save { font-size: .74rem; font-weight: 600; padding: .25rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-text); }
.bill button[aria-pressed="true"] .bill-save { background: var(--accent); color: #fff; }

.plans { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
  display: flex; flex-direction: column; padding: 1.8rem 1.5rem; position: relative;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-m);
}
.plan-featured { border-color: transparent; background: linear-gradient(var(--card-hi), var(--card-hi)) padding-box, var(--brand-grad) border-box; border-width: 1.5px; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.plan h3 { font-size: 1.22rem; font-weight: 750; }
.tag { position: absolute; top: 0; left: 1.5rem; transform: translateY(-50%); font: 600 .72rem/1 var(--mono); padding: .4rem .6rem; border-radius: 999px; background: var(--accent); color: #fff; }
.plan-sub { margin-top: .35rem; color: var(--ink-3); font-size: .93rem; min-height: 2.8em; }
.price { margin-top: 1.3rem; font-size: 2.3rem; white-space: nowrap; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-left: .15rem; }
.price-meta { margin-top: .5rem; font-size: .84rem; color: var(--ink-3); min-height: 1.4em; }
.plan ul { margin-top: 1.4rem; flex: 1; display: grid; gap: .6rem; align-content: start; font-size: .94rem; color: var(--ink-2); }
.plan li { position: relative; padding-left: 1.45rem; }
.plan li::before {
  content: ""; position: absolute; left: .15rem; top: .5em;
  width: .55rem; height: .3rem; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg);
}
.plan li.inherits { color: var(--ink); font-weight: 600; }
.plan li.inherits::before { content: "+"; border: 0; transform: none; width: auto; height: auto; top: 0; left: .1rem; color: var(--sky); font-weight: 700; }
.plan > .btn { margin-top: 1.8rem; width: 100%; }
.pricing-facts { margin-top: 2rem; display: grid; gap: 1rem; font-size: .9rem; color: var(--ink-2); }
@media (min-width: 900px) { .pricing-facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.matrix { margin-top: 2.5rem; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--card); }
.matrix summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 650; display: flex; justify-content: space-between; align-items: center; min-height: 48px;
}
.matrix summary::-webkit-details-marker { display: none; }
.matrix summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--sky); }
.matrix[open] summary::after { content: "−"; }
.matrix-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
.matrix table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.matrix th, .matrix td { padding: .8rem 1rem; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.matrix thead th { font-size: .85rem; color: var(--ink); font-weight: 700; }
.matrix thead th:first-child { text-align: left; }
.matrix tr:last-child th, .matrix tr:last-child td { border-bottom: 0; }
.matrix td.y { color: var(--ok); font-weight: 700; }
.matrix td.n { color: var(--ink-3); }
:root[data-theme="light"] .matrix td.y { color: #15803D; }

/* Achat : formulaire déplié dans la carte du plan */
.checkout { margin-top: 1.6rem; display: grid; gap: .55rem; }
.checkout-sum { font-weight: 650; font-size: .95rem; }
.checkout-label { font-size: .9rem; color: var(--ink-2); }
.checkout input {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--rule-hi); border-radius: var(--r-s); padding: .75rem .85rem; width: 100%; min-height: 46px;
  transition: border-color .15s;
}
.checkout input:hover { border-color: var(--ink-3); }
.checkout input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checkout input[aria-invalid="true"] { border-color: var(--crit); }
.checkout-err { font-size: .88rem; color: var(--danger-text); }
.checkout-actions { display: grid; justify-items: center; gap: .15rem; margin-top: .2rem; }
.checkout-actions .btn { width: 100%; }
.checkout-cancel {
  font: 500 .92rem/1 var(--sans); color: var(--ink-2); background: none; border: 0; min-height: 44px;
  padding: .75rem .4rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.checkout-cancel:hover { color: var(--ink); }
.checkout.is-busy .checkout-pay { cursor: progress; }
.checkout-hint { font-size: .82rem; color: var(--ink-3); }
.sales-closed { margin-top: 1.4rem; padding: 1rem; border-radius: var(--r-s); background: var(--paper-2); border: 1px solid var(--rule); font-size: .9rem; display: grid; gap: .6rem; }
.sales-closed a { color: var(--sky); font-weight: 600; overflow-wrap: anywhere; }
.notice {
  margin: 0 auto 2rem; padding: 1rem 1.2rem; border-radius: var(--r-s); border: 1px solid var(--rule-hi);
  background: var(--card); font-size: .95rem; display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.notice button { font: 600 .88rem/1 var(--sans); background: none; border: 1px solid var(--rule-hi); color: var(--ink); border-radius: var(--r-s); min-height: 36px; padding: 0 .8rem; cursor: pointer; }
.demo-key { margin-top: .4rem; padding: .9rem; border-radius: var(--r-s); background: var(--paper-2); display: grid; gap: .45rem; font-size: .88rem; }
.demo-title { font-weight: 650; }
.demo-text { color: var(--ink-2); }
.demo-key code { display: block; overflow-wrap: anywhere; background: var(--card); padding: .5rem .6rem; }
.demo-copy { justify-self: start; font: 600 .85rem/1 var(--sans); color: var(--accent-text); background: none; border: 1px solid var(--rule); border-radius: var(--r-s); padding: .5rem .75rem; min-height: 36px; cursor: pointer; }

/* Installation */
.install-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .install-grid { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; } }
.terminal { background: var(--terminal); border: 1px solid var(--abyss-rule); border-radius: var(--r-m); padding: 1.3rem; min-width: 0; }
.os-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; }
.os-tabs [role="tab"] { color: var(--foam-2); border-color: var(--abyss-rule); font-size: .88rem; min-height: 38px; }
.os-tabs [role="tab"]:hover { color: var(--foam); }
.os-tabs [role="tab"][aria-selected="true"] { color: var(--abyss); background: var(--foam); border-color: var(--foam); }
.steps { display: grid; gap: 1.3rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .45rem .7rem; counter-increment: step; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--abyss-rule);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--foam-2);
}
.steps li > span { color: var(--foam-2); font-size: .92rem; }
.cmd { position: relative; display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .75rem; border-radius: var(--r-s); background: var(--abyss-2); border: 1px solid var(--abyss-rule); min-width: 0; }
.cmd code { flex: 1; min-width: 0; background: none; padding: 0; color: #fff; font-size: .84rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy {
  flex: none; font: 600 .78rem/1 var(--sans); color: var(--foam-2); background: transparent; cursor: pointer;
  min-height: 32px; padding: 0 .65rem; border: 1px solid var(--abyss-rule); border-radius: 6px; transition: color .15s, border-color .15s;
}
.copy:hover { color: #fff; border-color: var(--foam-2); }
.copy.is-done { color: var(--ok); border-color: var(--ok); }
.terminal .ready { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--abyss-rule); font-size: .9rem; color: var(--foam-2); }
.terminal .ready b { color: var(--ok); font-family: var(--mono); font-weight: 500; }
.install-side { display: grid; gap: 1rem; min-width: 0; }
.side-block { padding: 1.25rem 1.3rem; border: 1px solid var(--abyss-rule); border-radius: var(--r-m); background: var(--abyss-2); }
.side-block h3, .side-block summary { font-size: 1.05rem; font-weight: 700; color: #fff; }
.side-block p { margin-top: .45rem; font-size: .93rem; color: var(--foam-2); }
.side-block a { color: var(--sky); }
.side-block .cmd { margin-top: .7rem; background: var(--terminal); }
.trouble summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; min-height: 28px; align-items: center; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; font: 400 1.3rem/1 var(--mono); color: var(--sky); }
.trouble[open] summary::after { content: "−"; }
.trouble ul { margin-top: .8rem; display: grid; gap: .6rem; font-size: .9rem; color: var(--foam-2); }

/* FAQ */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .75fr 1.25fr; gap: 4rem; } }
.faq-grid .section-head a { color: var(--sky); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 650; font-size: 1.06rem; min-height: 48px;
}
.faq summary:hover { color: var(--sky); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%; width: .62rem; height: .62rem; margin-top: -.45rem;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 42rem; }
.faq details a { color: var(--sky); }

/* Clôture + Alnex Labs */
.closing { position: relative; padding: var(--space-section) 0; overflow: hidden; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow); }
.closing-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: 1.3fr .7fr; gap: 5rem; align-items: end; } }
.closing h2 { color: #fff; }
.closing p.lead { margin-top: 1rem; color: var(--foam-2); font-size: 1.12rem; max-width: 38rem; }
.closing .hero-ctas { margin-top: 2rem; }
.contact-line { margin-top: 1.4rem; color: var(--foam-2); font-size: .95rem; }
.contact-line a { color: var(--sky); font-weight: 600; }
.lab { border-top: 1px solid var(--abyss-rule); padding-top: 1.5rem; }
.lab-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: #fff; }
.lab p { margin-top: .6rem; color: var(--foam-2); font-size: .95rem; }
.lab a { display: inline-block; margin-top: .9rem; color: var(--sky); font-weight: 600; }

/* Pied de page */
.footer { background: var(--abyss); color: var(--foam-2); border-top: 1px solid var(--abyss-rule); font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer .brand { color: #fff; font-size: 1.1rem; }
.footer .brand img { width: 26px; height: 26px; }
.footer-brand p { margin-top: .7rem; max-width: 22rem; }
.footer nav { display: grid; gap: .15rem; align-content: start; }
.footer-h { color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; letter-spacing: .02em; }
.footer nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--abyss-rule); font-size: .85rem; }
.footer-lang a { text-decoration: none; padding: .3rem 0; }
.footer-lang a[aria-current="true"] { color: #fff; font-weight: 600; }

/* Pages secondaires (légal, 404) */
.page { padding: clamp(3rem, 7vw, 5rem) 0 var(--space-section); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.prose h2 { margin-top: 2.4rem; font-size: 1.35rem; font-weight: 700; }
.prose p, .prose ul { margin-top: .9rem; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .35rem; }
.prose a { color: var(--sky); }
.draft { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--r-s); border: 1px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--ink); font-size: .95rem; }
.todo { background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--ink); padding: .05em .35em; border-radius: 4px; font-style: normal; }

/* Animations d'apparition (désactivées si mouvement réduit ou sans JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn, .plan, .feature, .how li, .cmd { border: 1px solid CanvasText; }
}
