/* Plans block (/pricing/), 30.09.2026, round 2; round 13: lighter, aligned row by row.
   Sizes and weights follow the live pricing page: names 16, prices 36 (the Book cut),
   small text 13-14. The tops of the three cards (name, one line, price, billing, button)
   have the same heights, and "What's included" is open in all three with the same ten
   rows in the same order (fixed row height), so every row compares across the plans;
   what a plan does not have stays in its row, greyed, with a short dash. Below, each card
   keeps its own height: Personal, then Pro (adding users), then Enterprise (its users
   panel in view: the slider, the price per user for the team size, the steps; never a
   total). */

.plans { --plan-bg: var(--card); display: flex; flex-direction: column; align-items: center; }
.os-card .plans { --plan-bg: var(--card-2); align-items: stretch; }

/* Yearly / Monthly */
.pr-toggle { position: relative; display: inline-flex; align-self: center; padding: 3px; border-radius: 11px; background: var(--plan-bg); box-shadow: inset 0 0 0 1px var(--line); }
.pr-toggle button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 14px; line-height: 1; color: var(--ink-2); cursor: pointer; transition: color 200ms ease; }
.pr-toggle button[aria-checked="true"] { color: var(--ink); }
.pr-save { font-size: 10px; line-height: 1; padding: 4px 7px; border-radius: 5px; color: #0b0b0a; background: var(--irid); }
.pr-knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 8px; background: var(--card-3); transition: transform 350ms var(--ease-out), width 350ms var(--ease-out); }
html[data-theme="light"] .pr-knob { background: #ffffff; box-shadow: 0 1px 3px rgba(27, 26, 24, 0.12), 0 0 0 1px rgba(27, 26, 24, 0.06); }
html[data-theme="light"] .os-card .pr-knob { background: var(--card); }

/* Three cards, three heights: each card keeps its own height, the tops line up */
.plans-grid { width: 100%; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 24px 10px; border-radius: 16px; background: var(--plan-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.plan--pro::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--irid-line); }
.plan-name { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.plan-for { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-price { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 6px; margin-top: 20px; height: 36px; }
.plan-from { font-size: 14px; color: var(--ink-2); }
.plan-num { font-size: 36px; line-height: 36px; font-weight: 500; letter-spacing: -0.045em; color: var(--ink); }
.plan-unit { font-size: 14px; line-height: 18px; color: var(--ink-2); white-space: nowrap; }
.plan-bill { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.plan-cta {
  margin-top: 18px; flex: none; display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--r-40);
  font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: box-shadow 200ms ease, transform 150ms var(--ease);
}
.plan-cta:active { transform: scale(0.98); }
/* the money-back guarantee stamp under Personal and Pro (26.10.2026, styles in os-shell.css);
   Enterprise keeps an empty slot of the same height so the rows of the three cards stay level */
.plan-mbg { margin-top: 12px; margin-bottom: 14px; height: 30px; display: flex; align-items: center; justify-content: center; }
/* 27.10: the guarantee covers yearly plans too: the seal stays at full strength on both */
.plan-cta--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-cta--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.plan-cta--primary { color: #0b0b0a; background: var(--irid); box-shadow: 0 0 36px rgba(255, 255, 255, 0.2); }
.plan-cta--primary:hover { box-shadow: 0 0 44px rgba(255, 255, 255, 0.3); }
/* light: the same solid ink pill as the home and the top bar */
html[data-theme="light"] .plan-cta--primary { color: #f6f5f2; background: #1b1a18; box-shadow: 0 1px 1px rgba(27, 26, 24, 0.16), 0 10px 26px -8px rgba(160, 104, 52, 0.5), 0 3px 12px rgba(236, 170, 110, 0.16); }
html[data-theme="light"] .plan-cta--primary:hover { background: #2b2926; box-shadow: 0 1px 1px rgba(27, 26, 24, 0.18), 0 12px 32px -8px rgba(160, 104, 52, 0.58), 0 3px 14px rgba(236, 170, 110, 0.22); }
.plans-note { margin-top: 20px; font-size: 13px; line-height: 18px; color: var(--ink-3); text-align: center; }

/* Enterprise: the users panel, in view under the list: compact and quiet */
.ent { margin: 6px 0 14px; padding: 14px 14px 8px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 3.5%, var(--plan-bg)); box-shadow: inset 0 0 0 1px var(--line); }
.ent-head { margin-bottom: 12px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ent-top { display: flex; align-items: baseline; justify-content: space-between; }
.ent-l { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.ent-count { font-size: 15px; line-height: 18px; font-weight: 500; color: var(--ink); }
.ent-slider { position: relative; margin-top: 28px; --t: 22px; --pad: 11px; }
.ent-track { position: absolute; left: var(--pad); right: var(--pad); top: -20px; height: 14px; pointer-events: none; }
.ent-seg { position: absolute; top: 0; left: calc((var(--a) - 5) / 96 * 100%); width: calc((var(--b) - var(--a)) / 96 * 100%); display: flex; justify-content: center; }
.ent-seg b { font-weight: 400; font-size: 11px; line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.ent-seg.is-on b { color: var(--ink); font-weight: 500; }
.ent-slider input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: var(--t); margin: 0; background: transparent; cursor: pointer; --p: 11.1%; }
.ent-slider input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--p), var(--line-2) var(--p)); }
.ent-slider input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--p), var(--line-2) var(--p)); }
.ent-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: var(--t); height: var(--t); margin-top: -10px; border-radius: 50%; background: #ffffff; border: 0; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.16); transition: transform 150ms var(--ease); }
.ent-slider input[type="range"]::-moz-range-thumb { width: var(--t); height: var(--t); border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.16); }
.ent-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.ent-slider input[type="range"]:focus-visible { outline: none; }
.ent-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--plan-bg), 0 0 0 4px var(--ink), 0 3px 10px rgba(0, 0, 0, 0.16); }
.ent-marks { position: relative; height: 14px; margin: 7px var(--pad) 0; pointer-events: none; }
.ent-marks span { position: absolute; top: 0; left: calc((var(--v) - 5) / 96 * 100%); transform: translateX(-50%); font-size: 11px; line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ent-marks span::before { content: ""; position: absolute; left: 50%; top: -15px; width: 1px; height: 7px; margin-left: -0.5px; background: var(--ink-3); opacity: 0.7; }
.ent-marks span:first-child::before, .ent-marks span:last-child::before { display: none; }
.ent-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 14px; }
.ent-price { font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.ent-per { font-size: 14px; line-height: 18px; color: var(--ink-2); }
.ent-avg { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.ent-credits { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.ent-list { display: flex; flex-direction: column; gap: 1px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ent-list li { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: var(--r-28); font-size: 13px; line-height: 18px; color: var(--ink-3); transition: background-color 200ms ease, color 200ms ease; }
.ent-list li.is-on { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* Accordions (closed by default) */
.acc { border-top: 1px solid var(--line); }
.acc summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 14px; line-height: 1.3; color: var(--ink); cursor: pointer; list-style: none; user-select: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; flex: none; width: 10px; height: 10px; color: var(--ink-2); transition: transform 300ms var(--ease-out); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; top: 4.25px; width: 10px; height: 1.5px; border-radius: 1px; background: currentColor; }
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i { transform: rotate(45deg); }
.acc summary:hover i { color: var(--ink); }
.acc-body { padding: 0 0 16px; overflow: hidden; }
.acc-p { font-size: 14px; line-height: 21px; color: var(--ink-2); max-width: 62ch; }
/* "What's included": open, the same rows in every card, one height per row */
.plan .acc--inc { margin-top: 16px; }
.acc--inc .acc-body { padding-bottom: 8px; }
.inc { display: flex; flex-direction: column; }
.inc li { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding-left: 22px; font-size: 14px; line-height: 18px; color: var(--ink); white-space: nowrap; }
.inc li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 4.5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.inc-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inc-v { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inc li.is-off { color: var(--ink-3); }
.inc li.is-off::before { top: 14.25px; width: 8px; height: 0; border-left: 0; border-bottom: 1.5px solid var(--ink-3); transform: none; }

@media (max-width: 1023.98px) {
  /* one column: each card on its own */
  .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan-mbg--none { display: none; }
}
@media (max-width: 809.98px) {
  .plans-grid { margin-top: 20px; gap: 12px; }
  .plan { padding: 20px 18px 8px; }
  .pr-toggle button { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-knob, .acc summary i, .ent-list li, .ent-seg b { transition: none; }
}

/* 22.10: past 50 users, the team size is typed in a small field */
.ent-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ent-more[hidden] { display: none; }
.ent-more-in { width: 84px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); text-align: right; background: color-mix(in srgb, var(--ink) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line-2); -moz-appearance: textfield; }
.ent-more-in::-webkit-outer-spin-button, .ent-more-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ent-more-in:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Round 14 (25.10.2026): more visual cards. Under the button, two tinted blocks (the same soft
   hues and line icons as Compare plans): the catalog (a strip of ten thumbnails and a bar:
   about 90% on Personal, the last thumbnail locked; 100% on Pro and Enterprise) and the
   credits of the month (the number large, what it makes, switchable: Creation images,
   upscales, AI relights; packs to buy more). Then "What's included", one icon per row, the
   same ten rows in every card, a check, a dash or a short value on the right. */
.plans { --h-lib: 212 55% 72%; --h-tools: 268 50% 76%; --h-credits: 40 70% 66%; --h-team: 152 38% 64%; --h-lic: 340 48% 74%; --h-support: 188 42% 64%; }
html[data-theme="light"] .plans { --h-lib: 212 42% 44%; --h-tools: 268 34% 50%; --h-credits: 34 58% 40%; --h-team: 152 34% 33%; --h-lic: 340 38% 46%; --h-support: 188 40% 33%; }
.plans [data-g="lib"] { --hue: var(--h-lib); }
.plans [data-g="tools"] { --hue: var(--h-tools); }
.plans [data-g="credits"] { --hue: var(--h-credits); }
.plans [data-g="lic"] { --hue: var(--h-lic); }
.plans [data-g="arpy"] { --hue: var(--h-tools); }

.pc-cat, .pc-cr { margin-top: 14px; padding: 12px 12px 12px; border-radius: 12px; background: color-mix(in srgb, hsl(var(--hue)) 7%, var(--plan-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, hsl(var(--hue)) 18%, transparent); }
.pc-cat { margin-top: 20px; }
.pc-cat-top, .pc-cr-top { display: flex; align-items: baseline; gap: 8px; }
.pc-cat-top .inc-ic, .pc-cr-top .inc-ic { align-self: center; color: hsl(var(--hue)); }
.pc-cat-pct { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.pc-cat-of { min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cat-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.cat-t { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--card-3); transition: transform 220ms var(--ease-out); }
.cat-t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-cat-strip:hover .cat-t { transform: scale(0.96); }
.pc-cat-strip .cat-t:hover { transform: scale(1.18); z-index: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.cat-t.is-lock img { filter: grayscale(1) blur(1.5px); opacity: 0.35; }
.cat-t.is-lock::after { content: ""; position: absolute; inset: 0; background: center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E"); }
.pc-cat-bar { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.pc-cat-bar i { display: block; width: var(--f); height: 100%; border-radius: 3px; background: hsl(var(--hue)); }
.plan--ent .pc-cat-bar i { background: var(--irid-line, hsl(var(--hue))); }

.pc-cr-n { font-size: 28px; line-height: 30px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.pc-cr-per { min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pc-cr-make { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pc-cr-make b { font-weight: 500; color: var(--ink); }
.pc-cr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pc-cr-chips button { height: 24px; padding: 0 9px; border-radius: var(--r-24); font-size: 12px; line-height: 1; color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.pc-cr-chips button:hover { color: var(--ink); }
.pc-cr-chips button[aria-checked="true"] { color: var(--ink); background: color-mix(in srgb, hsl(var(--hue)) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, hsl(var(--hue)) 45%, transparent); }
.pc-cr-chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pc-cr-more { margin-top: 10px; padding-top: 9px; border-top: 1px solid color-mix(in srgb, hsl(var(--hue)) 16%, transparent); font-size: 12px; line-height: 16px; color: var(--ink-3); }

/* the rows: an icon in the group's hue, the label, then a check, a dash or a short value */
.inc li { padding-left: 0; }
.inc li::before { display: none; }
.inc-ic { flex: none; width: 16px; height: 16px; color: hsl(var(--hue, 0 0% 60%)); }
.inc li.is-off .inc-ic { opacity: 0.45; }
.inc-ic--arpy { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700; line-height: 1; color: #fff; background: linear-gradient(90deg, #cd93ff 0%, #70e2ff 20%, #9fff5b 40%, #ffe83f 60%, #ffa647 80%, #ff75c3 100%); }
.inc .cmp-y { width: 10px; height: 5px; }
.inc-v .cmp-y, .inc-v .cmp-n { vertical-align: middle; }
@media (prefers-reduced-motion: reduce) {
  .cat-t, .pc-cr-chips button { transition: none; }
  .pc-cat-strip:hover .cat-t, .pc-cat-strip .cat-t:hover { transform: none; }
}

/* 25.10.2026 : la carte Pro, un rien plus claire, sort du lot */
.plan--pro { background: color-mix(in srgb, #ffffff 3%, var(--plan-bg)); }
html[data-theme="light"] .plan--pro { background: color-mix(in srgb, #ffffff 60%, var(--plan-bg)); }

/* 25.10.2026, soir : plus de blocs catalogue / crédits ; tout est dans la liste. Le catalogue
   est une petite pile de vignettes, en éventail serré comme un jeu de cartes, à la taille des
   icônes : plus de cartes pour Pro et Enterprise (100 %), moins pour Personal (environ 90 %). */
.inc-deck { display: inline-flex; align-items: center; gap: 8px; }
.deck { display: inline-flex; align-items: center; }
.deck img { width: 13px; height: 17px; object-fit: cover; border-radius: 3px; margin-left: -9px; box-shadow: 0 0 0 1.25px var(--plan-bg); transition: margin 220ms var(--ease-out); }
.deck img:first-child { margin-left: 0; }
.plan:hover .deck img { margin-left: -7px; }
.plan:hover .deck img:first-child { margin-left: 0; }
.deck-pct { font-size: 13px; color: var(--ink-2); }
/* Arpy : la bulle de message avec l'étoile IA, aux couleurs de la marque */
.inc-ic--arpy2 { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .deck img { transition: none; } }
