/* Kaizo — pricing and checkout pages (lot 9, /pricing /fr/tarifs /checkout /fr/paiement).
   Loaded after landing.css (brand v2 tokens). No inline styles in our markup: the CSP of these pages
   allows 'unsafe-inline' only for the Paddle.js overlay container. */

[hidden] { display: none !important; }


/* ---------------------------------------------------------------- pricing hero */
.p-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 32px; text-align: center; }
.p-hero::before { content: ""; position: absolute; top: -40px; right: -120px; width: 520px; height: 360px; background: var(--grad-v); clip-path: polygon(58% 0, 78% 0, 40% 100%, 20% 100%); opacity: .22; }
.p-hero .container { position: relative; }
.p-hero h1 { font-size: clamp(52px, 9vw, 104px); line-height: .9; margin-bottom: 18px; }
.p-hero .lead { margin: 0 auto 28px; }
.p-everywhere { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin: 0 0 28px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 600; }
.p-everywhere .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); }
.toggle button { appearance: none; border: 0; border-radius: 999px; min-height: 44px; padding: 10px 20px; background: transparent; color: var(--muted); font: 700 15px/1 Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.toggle button[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); }
.toggle .save { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: var(--amber-soft); color: var(--accent-text); }
.toggle button[aria-pressed="true"] .save { background: var(--hover); color: var(--on-orange); }

/* ---------------------------------------------------------------- plans */
.plans { display: grid; gap: 18px; padding: 24px 0 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.plan.best { border: 2px solid var(--orange); box-shadow: var(--plan-glow); }
.plan .tag { position: absolute; top: -14px; left: 24px; padding: 6px 12px; border-radius: 8px; background: var(--grad); color: var(--on-orange); font: italic 900 16px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; transform: skewX(-10deg); }
.plan h2 { font-size: 40px; line-height: 1; margin: 0; }
.plan .who { margin: 0; color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .amount { font: italic 900 64px/0.9 var(--display); color: var(--text); }
.price .per { color: var(--muted); font-weight: 600; }
.price-sub { margin: -10px 0 0; min-height: 22px; color: var(--muted); font-size: 14px; }
.price-sub b { color: var(--amber); }
.plan .btn { width: 100%; }
.plan .btn-ghost { border-color: var(--line); }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15px; }
.plan li { display: flex; gap: 10px; color: var(--muted); line-height: 1.45; }
.plan li .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--orange); stroke-width: 3; }
.plan li.ai .ico { color: var(--cyan); }
.plan li strong { color: var(--text); }
.ico { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
/* live prices appear once billing.js has amounts; until then (or without JS) the fallback shows */
.price.live, .price-sub.live { display: none; }
.has-prices .price.live { display: flex; }
.has-prices .price-sub.live { display: block; }
[data-interval="month"] .yearly, [data-interval="year"] .monthly { display: none !important; }
.has-prices .price-fallback { display: none; }
.price-fallback { min-height: 86px; display: flex; align-items: center; }
.price-from { margin: 0; font-weight: 700; color: var(--text); font-size: 18px; }
.plan:not(.best) .price-from { font-weight: 600; color: var(--muted); font-size: 15px; }
.toggle-wrap { display: flex; justify-content: center; }
.currency-note { color: var(--text); font-weight: 600; }

.p-small { padding: 4px 0 40px; display: grid; gap: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.p-small p { margin: 0; }
.p-small a { color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 10px; }
.trust .ico { width: 22px; height: 22px; color: var(--amber); }

/* ---------------------------------------------------------------- checkout */
.co { padding: clamp(36px, 5vw, 64px) 0 72px; }
.co h1 { font-size: clamp(44px, 7vw, 76px); line-height: .92; margin-bottom: 12px; }
.co-grid { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 980px) { .co-grid { grid-template-columns: 1fr 1.05fr; align-items: start; } }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; }
.who-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ink-3); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-orange); font: italic 900 22px/1 var(--display); }
.who-box p { margin: 0; font-size: 14px; color: var(--muted); }
.who-box strong { display: block; font-size: 16px; }
.who-box a { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.summary { display: grid; gap: 0; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary .total { background: var(--ink-3); }
.summary .total dd { font: italic 900 30px/1 var(--display); color: var(--text); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--muted); }
.seg label strong { color: var(--text); font-size: 16px; }
.seg label.on { border: 2px solid var(--orange); background: var(--orange-soft); }
.seg input { position: absolute; opacity: 0; }
.fine { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.fine a { color: var(--text); }
.code { display: flex; gap: 8px; }
.code input { flex: 1; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); color: var(--text); font: 600 15px Inter, sans-serif; letter-spacing: 1px; }
.code .btn { min-height: 46px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- checkout states */
.co .lead { max-width: 40em; }
.co-main { display: grid; gap: 18px; align-content: start; }
.panel-title { font-size: clamp(30px, 4vw, 40px); line-height: 1; margin: 0; }
.muted { margin: 0; color: var(--muted); }
.panel p { margin: 0; }
.panel .btn-lg { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.notice { margin: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink-3); font-size: 15px; }
.notice.error { border-color: var(--error); background: var(--error-bg); color: var(--error-text); }
.notice.warn { border-color: var(--amber); background: var(--warn-bg); color: var(--warn-text); }
button.link { margin-left: auto; padding: 8px 4px; border: 0; background: none; color: var(--text); font: 600 14px Inter, sans-serif; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; cursor: pointer; }
.seg label { position: relative; }
.seg label:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.seg-save { color: var(--amber); }
.code input::placeholder { color: var(--placeholder); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); }
.co-side { align-content: start; }
.co-side ul, .side-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.co-side li { display: flex; gap: 10px; color: var(--muted); line-height: 1.45; }
.co-side li .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--orange); stroke-width: 3; }
.co-side li.ai .ico { color: var(--cyan); }
.co-side li strong { color: var(--text); }
.side-points { padding-top: 16px !important; border-top: 1px solid var(--line); }
.side-points li { color: var(--text); font-weight: 600; }
.side-points .ico { color: var(--amber) !important; }
.done { text-align: center; justify-items: center; }
.done .panel-title { font-size: clamp(40px, 6vw, 60px); }
.fine a { text-decoration-color: var(--orange); text-underline-offset: 3px; }
@media (max-width: 520px) { .seg { grid-template-columns: 1fr; } .panel { padding: 20px; } }
/* phones: "Sign out" stays in the panel ("Not you?"), the top bar keeps Pricing and the language */
@media (max-width: 560px) { .top-actions [data-action="signout"] { display: none !important; } }
html:not(.js) .toggle-wrap { display: none; }

/* ---------------------------------------------------------------- on-site sign-in (no Keycloak screen) */
.auth-view { display: grid; gap: 18px; }
.auth-view .panel-title:focus { outline: none; }
.auth-view .panel-title:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label { font-weight: 600; font-size: 15px; color: var(--text); }
.field .opt { font-weight: 400; color: var(--muted); }
.field-head button.link { margin-left: auto; padding: 4px 0; font-size: 14px; }
.field input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--night); color: var(--text); font: 500 16px Inter, sans-serif; }
.field input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input.otp { font: 700 24px/1 Inter, sans-serif; letter-spacing: 8px; text-align: center; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.pw { position: relative; }
.pw input { padding-right: 92px; }
.pw-toggle { position: absolute; top: 5px; right: 5px; bottom: 5px; min-width: 78px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--ink-3); color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; }
.pw-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.btn-google { background: var(--google-bg); border-color: var(--line); color: var(--google-text); }
.btn-google:hover { background: var(--google-hover); box-shadow: none; }
.btn-google .g-logo { flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
.auth-switch button.link { margin-left: 0; font-size: 15px; }
.notice.ok { border-color: var(--cyan); background: var(--ok-bg); color: var(--ok-text); }
.auth .btn[aria-busy="true"] { cursor: progress; }
button.link:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
