/* The new site's own components, layered on the live stylesheet and built from its tokens only. */

/* ── Header: menus with panels ── */
.hdr .nav-links { align-items: center; gap: 1.35rem; }
.nav-item { position: relative; display: flex; align-items: center; height: 68px; }
.nav-trigger { display: inline-flex; align-items: center; gap: .3rem; }
.nav .caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .18s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.nav a.link.is-current, .nav-item.is-current > .link { color: var(--ink); }

/* The panel hangs from the header's lower edge and stays open while the pointer or focus is inside it. */
.mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding-top: 6px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .18s ease, visibility 0s linear .18s; z-index: 50; }
.nav-item:hover .mega, .nav-item:focus-within .mega, .nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition: opacity .16s ease, transform .18s ease; }
.nav-item.is-closed .mega { opacity: 0; visibility: hidden; pointer-events: none; }
.mega-in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: .4rem 1.2rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.mega-1 .mega-in { grid-auto-columns: minmax(17rem, 1fr); }
.mega-h { font-size: .7rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: .35rem .7rem .45rem; }
.mega-col { display: flex; flex-direction: column; gap: .1rem; }
.mega-link { display: flex; flex-direction: column; gap: .12rem; padding: .55rem .7rem; border-radius: var(--r-sm); transition: background .14s ease; }
.mega-link:hover, .mega-link:focus-visible { background: var(--surface-2); }
.mega-t { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 580; color: var(--ink); }
.mega-d { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.mega-aside { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem; border-radius: var(--r-sm); background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; min-width: 15rem; }
.mega-aside::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 80% at 100% 0%, color-mix(in srgb, var(--cta) 22%, transparent), transparent 70%); }
.mega-aside > * { position: relative; }
.mega-aside .eyebrow { color: var(--band-soft); }
.mega-aside-t { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.012em; line-height: 1.2; }
.mega-aside .mega-d { color: var(--band-muted); }
.mega-aside .more { color: var(--cta); margin-top: auto; }

/* Phone menu: one disclosure per section. */
.mm-group { border-bottom: 1px solid var(--line); }
.mm-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 0; }
.mm-group > summary::-webkit-details-marker { display: none; }
.mm-group > summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.mm-group[open] > summary::after { content: "–"; }
.mm-sub { display: flex; flex-direction: column; padding: 0 0 .7rem .2rem; }
.mm-sublink { padding: .5rem .1rem; color: var(--ink-soft); font-size: .96rem; display: inline-flex; align-items: center; gap: .5rem; }
.mm-sublink:hover { color: var(--ink); }
.mm-index { font-weight: 600; color: var(--ink); }

/* ── Status pill ── */
.pill { display: inline-flex; align-items: center; font-family: var(--font-body); font-size: .62rem; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: .3rem .45rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface-2); white-space: nowrap; vertical-align: middle; }
.pill-soon { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); color: var(--accent-text); background: color-mix(in srgb, var(--cta) 10%, var(--surface)); }
.pill-beta { color: var(--ink-soft); }
.pill-custom { color: var(--ink-soft); }
.feat .pill, .card .pill { margin-left: .55rem; }

/* ── Page opener ── */
.hero-compact { padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(2.6rem, 5vw, 4.2rem); }
.hero-compact h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
.hero .grid-solo { grid-template-columns: 1fr; }
.hero .grid-solo .sub { max-width: 52ch; }
.crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--muted); }

/* ── Sections ── */
.sec-soft { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.sec-head-c { margin-inline: auto; text-align: center; }
.sec-head-c .eyebrow { justify-content: center; }
.band .band-sub { color: var(--band-soft); }
section + section:not(.band):not(.sec-soft):not(.final) { border-top: 1px solid var(--line); }

/* ── Feature grid variants and links ── */
.feats-2 { grid-template-columns: repeat(2, 1fr); }
.feats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1060px) { .feats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .feats-2, .feats-4 { grid-template-columns: 1fr; } }
.feat-link { display: flex; flex-direction: column; color: inherit; }
.feat-link .more, .card-link .more { margin-top: auto; padding-top: 1.1rem; }
.more { display: inline-flex; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--accent-text); transition: gap .16s ease; }
.feat-link:hover .more, .card-link:hover .more, .mega-aside:hover .more { gap: .6rem; }

/* ── Cards ── */
.sec-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .sec-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .sec-grid-3 { grid-template-columns: 1fr; } }
.card .k { display: block; font-size: .72rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .7rem; }
.card .k + .pill { margin: -.2rem 0 .7rem; }
.card-link { display: flex; flex-direction: column; color: inherit; }
.card-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }

/* ── Checklist (the pricing cards' orange tick) ── */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1rem; height: 1rem; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks-sm { margin-top: 1rem; gap: .45rem; }
.ticks-sm li { font-size: .9rem; }

/* ── Steps ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; counter-reset: none; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
.step-n { font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--accent-text); }
.steps h3 { margin: .6rem 0 .45rem; font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* ── Split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { margin-top: .85rem; }
.split-text { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }

/* ── Footer with more columns ── */
footer .cols-5 { grid-template-columns: 1.4fr repeat(4, 1fr); }
footer .cols-6 { grid-template-columns: 1.3fr repeat(5, 1fr); }
@media (max-width: 960px) { footer .cols-5, footer .cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { footer .cols-5, footer .cols-6 { grid-template-columns: 1fr 1fr; } }

/* The desktop header holds four menus plus the actions; below this it hands over to the phone menu. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav .btn:not(.btn-accent) { display: none; }
  .burger { display: flex; }
}

/* ── Split with actions under its checklist ── */
.split-actions { display: grid; gap: 1.6rem; }
.split-cta { margin: 0; }

/* The section summary already sits in a bordered group; its own rule would draw a second line. */
.mmenu .mm-group > .mm-link { border-bottom: 0; }
.mega-aside { align-self: start; }

/* ── Interface illustrations (decorative, drawn with the hero mock's frame) ── */
.fig { position: relative; }
.fig .fig-body { padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; font-size: .84rem; color: var(--ink-soft); }
.fig .ln { display: block; height: 6px; border-radius: 3px; background: var(--line-2); }
.fig .ln.sm { height: 5px; }
.fig small { display: block; color: var(--muted); font-size: .74rem; margin-top: .1rem; }

.chat { display: flex; flex-direction: column; gap: .75rem; }
.steps-mini { display: grid; gap: .4rem; }
.sm { display: flex; align-items: center; gap: .55rem; font-size: .8rem; color: var(--ink-soft); }
.sm::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); }
.sm.done::before { background: var(--accent); border-color: var(--accent); }
.sm.run::before { border-color: var(--accent); border-right-color: transparent; }
.sm.wait { color: var(--muted); }
.approve { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: .6rem .7rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--cta) 8%, var(--surface)); }
.approve span { flex: 1; min-width: 12ch; font-size: .8rem; color: var(--ink); }
.approve b { font-size: .74rem; font-weight: 620; padding: .32rem .6rem; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); }
.approve b.ok { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }

.deck { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; }
.thumbs { display: grid; gap: .45rem; align-content: start; }
.th { display: flex; flex-direction: column; gap: 4px; justify-content: center; height: 40px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.th i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.th i + i { width: 60%; }
.th.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cta) 30%, transparent); }
.slide { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); aspect-ratio: 16 / 10; }
.s-kicker { font-size: .62rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.s-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.s-cols { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.s-card { display: flex; flex-direction: column; gap: 4px; padding: .5rem; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.s-card b { font-family: var(--font-display); font-size: .78rem; color: var(--accent-text); }
.s-card i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.s-card i + i { width: 70%; }
.s-card.hi { background: color-mix(in srgb, var(--cta) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.files { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.file { display: grid; grid-template-columns: 18px 1fr auto auto; gap: .65rem; align-items: center; padding: .55rem .7rem; font-size: .8rem; }
.file + .file { border-top: 1px solid var(--line); }
.file.hi { background: color-mix(in srgb, var(--cta) 10%, transparent); }
.fn { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fk, .fd { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.ico { width: 16px; height: 13px; border-radius: 3px; background: var(--line-2); }
.ico-dir { background: color-mix(in srgb, var(--accent) 55%, var(--line-2)); }

.tasks { display: grid; gap: .5rem; }
.task { display: grid; grid-template-columns: 10px 1fr auto; gap: .7rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tt { color: var(--ink); font-size: .82rem; font-weight: 560; }
.tr { color: var(--muted); font-size: .74rem; text-align: right; }
.st { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.st-ok { background: #35b06a; }
.st-wait { background: var(--cta); }

.cal-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; font-size: .68rem; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-g { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 30px); gap: .35rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: repeating-linear-gradient(180deg, transparent 0 33px, var(--line) 33px 34px); }
.ev { display: flex; align-items: flex-start; padding: .3rem .4rem; border-radius: 6px; font-size: .68rem; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-left: 3px solid var(--accent); overflow: hidden; }
.ev.hi { background: var(--cta); color: var(--cta-ink); border-left-color: var(--accent-strong); }
.ev.soft { background: var(--surface-2); border-left-color: var(--line-2); color: var(--ink-soft); }
.mail { display: flex; align-items: center; gap: .55rem; font-size: .78rem; padding: .55rem .7rem; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-soft); }

.learn, .today, .quiz, .note, .admin { display: grid; gap: .6rem; }
.flash { display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.fq { font-family: var(--font-display); font-size: .98rem; font-weight: 600; color: var(--ink); }
.fa { font-size: .8rem; color: var(--ink-soft); padding-top: .5rem; border-top: 1px dashed var(--line-2); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.grades span, .qz-o { text-align: center; font-size: .74rem; padding: .4rem; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-soft); background: var(--surface); }
.grades .on, .qz-o.on { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); font-weight: 640; }
.ret { display: grid; grid-template-columns: 1fr auto; gap: .35rem .6rem; align-items: center; font-size: .76rem; color: var(--muted); }
.ret b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.ret i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--cta)); box-shadow: inset 0 0 0 999px transparent; }

.td-h { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.td { display: grid; grid-template-columns: 16px 1fr auto; gap: .6rem; align-items: center; padding: .5rem .2rem; border-bottom: 1px solid var(--line); }
.cb { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.td.done .cb { background: var(--accent); border-color: var(--accent); }
.td.done .tt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.tk { font-size: .68rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }

.qz-q { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.quiz { grid-template-columns: repeat(3, 1fr); }
.quiz > .s-kicker, .quiz > .qz-q, .quiz > .ret { grid-column: 1 / -1; }

.nh { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; color: var(--muted); }
.nh b { color: var(--ink); font-weight: 620; }
.ns { display: grid; gap: .35rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.nk { font-size: .66rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.code-t { font-variant-numeric: tabular-nums; color: var(--ink); font-size: .8rem; }
.pos { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .76rem; }
.pos span:first-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.mem { display: grid; grid-template-columns: 26px 1fr auto auto; gap: .6rem; align-items: center; font-size: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: var(--cta-ink); background: var(--cta); }
.mn { color: var(--ink); font-weight: 560; }
.mr, .ma { color: var(--muted); font-size: .74rem; }
.audit { font-size: .76rem; color: var(--ink); }

.code { margin: 0; padding: 1rem 1.1rem; border-radius: 10px; background: var(--band); color: var(--band-ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .76rem; line-height: 1.7; white-space: pre-wrap; }
.code .c { color: var(--band-muted); }
.code .k { color: var(--cta); }
.code .s { color: #9fd6a6; }

.devices { display: grid; grid-template-columns: 1fr 34%; gap: 1rem; align-items: end; }
.devices .mocklabel { grid-column: 1 / -1; }
.dev-phone { border-radius: 26px; padding-top: .9rem; }
.dev-phone .notch { width: 38%; height: 6px; border-radius: 3px; margin: 0 auto; background: var(--line-2); }
.ph-t { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.ph-b { align-self: flex-start; font-size: .74rem; font-weight: 640; padding: .35rem .7rem; border-radius: 8px; background: var(--cta); color: var(--cta-ink); }
.pill-run { align-self: flex-start; font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ── Showcase: text and illustration side by side, alternating ── */
.split:has(.fig) { align-items: center; }
@media (min-width: 861px) { .split-rev > :first-child { order: 2; } }
.asks { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; }
.asks .msg { max-width: 92%; font-size: .95rem; }
.hero-compact .grid:not(.grid-solo) { grid-template-columns: 1.05fr .95fr; }
.hero .fig .mock { box-shadow: var(--shadow-lg); }

/* Grid children default to their content's width; an illustration must shrink with the column instead. */
.split > *, .hero .grid > * { min-width: 0; }
.split .split-cta { margin-top: 1.8rem; }

/* ── What a task produced: a document, an appointment ── */
.outs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem; }
.out { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.out b { display: block; font-size: .8rem; font-weight: 620; color: var(--ink); }
.out small { margin: 0; }
.out-ico { width: 28px; height: 28px; flex: none; border-radius: 7px; background: color-mix(in srgb, var(--cta) 20%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); position: relative; }
.out-doc::after { content: ""; position: absolute; inset: 7px 8px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); }
.out-cal::after { content: ""; position: absolute; inset: 8px 7px 6px; border: 2px solid var(--accent); border-radius: 3px; border-top-width: 4px; }
.sm::before { display: grid; place-items: center; font-size: 9px; font-weight: 800; line-height: 1; color: var(--surface); }
.sm.done::before { content: "✓"; }

/* The live rule `padding: 1.15rem 0` cancels the wrap's gutter; the strip then started left of the column. */
.trust .row { padding-inline: var(--gutter); justify-content: center; }

/* ── The home opener's card: a run header, the tool behind each step, a reminder floating over the edge ── */
.run-h { display: flex; align-items: center; gap: .55rem; font-size: .76rem; color: var(--muted); }
.run-h .run-t { margin-left: auto; font-size: .7rem; padding: .22rem .5rem; border-radius: 999px; color: #2f7d55; background: color-mix(in srgb, #35b06a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #35b06a 30%, var(--line)); }
.ly { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--chip-bg, #020202); color: #fff; font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: -.02em; border: 1px solid color-mix(in srgb, #fff 18%, transparent); }
.sm em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--muted); padding: .12rem .45rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.fig-hero { position: relative; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .run-h .run-t { color: #6ee7a8; } }
:root[data-theme="dark"] .run-h .run-t { color: #6ee7a8; }

/* ── Alternating grounds: every other content section sits on the raised surface, its cards on the page ground ── */
.sec-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.sec-alt + section { border-top: 0; }
.sec-alt .card, .sec-alt .feat, .sec-alt .steps li { background: var(--bg); }
.sec-alt .feat:hover { background: var(--surface-2); }
.sec-alt .feats { background: var(--line); }
.sec-alt .steps li { padding: 1.3rem 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); }

/* The pressed segment fills up to its neighbour: the hairline between them takes the fill's colour. */
.seg button[aria-pressed="true"] + button, .seg button[aria-pressed="true"] { border-left-color: var(--ink); }
.seg button:first-child[aria-pressed="true"] { border-left-color: transparent; }

/* ── Audio illustration ── */
.audio { display: grid; gap: .6rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 .4rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.wave i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--accent) 70%, var(--line-2)); }
.wave i:nth-child(n+30) { background: var(--line-2); }
.atime { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.atime b { color: #2f7d55; font-weight: 620; }
.turn { display: grid; grid-template-columns: 54px 1fr; gap: .5rem; font-size: .8rem; color: var(--ink-soft); }
.who { font-weight: 640; color: var(--accent-text); }

/* ── Iterative cycle ── */
.cycle { display: grid; grid-template-columns: 1fr minmax(220px, 300px) 1fr; grid-template-areas: ". a ." "d r b" ". c ."; gap: 1.2rem 1.8rem; align-items: center; }
.cy-ring { grid-area: r; position: relative; aspect-ratio: 1; }
.cy-ring svg { width: 100%; height: 100%; display: block; }
.cy-arc { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.cy-ring marker path { fill: var(--accent); }
.cy-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .15rem; }
.cy-center b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.cy-center small { font-size: .74rem; color: var(--muted); }
.cy-step { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .cy-step { background: var(--bg); }
.cy-step h3 { margin: .45rem 0 .35rem; font-size: 1.04rem; }
.cy-step p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.cy-a { grid-area: a; } .cy-b { grid-area: b; } .cy-c { grid-area: c; } .cy-d { grid-area: d; }
@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr; grid-template-areas: "r" "a" "b" "c" "d"; }
  .cy-ring { width: 180px; justify-self: center; }
}

/* ── Integration diagram ── */
.flowd { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; gap: .6rem; }
.fd-col { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .fd-col { background: var(--bg); }
.fd-h { font-size: .72rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .2rem; }
.fd-chip { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-size: .9rem; color: var(--ink-soft); }
.fd-core { background: var(--band); border-color: var(--band); }
.fd-core .fd-h { color: var(--band-soft); }
.fd-core .fd-chip { background: color-mix(in srgb, var(--cta) 16%, transparent); border-color: color-mix(in srgb, var(--cta) 35%, transparent); color: var(--band-ink); font-weight: 560; }
.fd-arrow svg { width: 100%; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .flowd { grid-template-columns: 1fr; }
  .fd-arrow { justify-self: center; width: 40px; transform: rotate(90deg); }
}

/* ── Comparison table ── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .cmp-wrap { background: var(--bg); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); background: var(--surface-2); }
.cmp tbody th { font-size: .74rem; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); width: 22%; }
.cmp td { color: var(--ink-soft); line-height: 1.5; }
.cmp tr > * + * { border-left: 1px solid var(--line); }

/* ── Hub ── */
.hub { display: grid; grid-template-columns: 1fr minmax(200px, 260px) 1fr; grid-template-rows: repeat(3, auto); gap: 1rem 1.6rem; align-items: center; }
.hub-core { grid-column: 2; grid-row: 1 / span 3; display: grid; place-items: center; text-align: center; gap: .45rem; aspect-ratio: 1; border-radius: 50%; padding: 2rem; background: var(--band); color: var(--band-ink); position: relative; box-shadow: 0 0 0 10px color-mix(in srgb, var(--cta) 12%, transparent), 0 0 0 22px color-mix(in srgb, var(--cta) 6%, transparent); }
.hub-core b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.hub-core small { color: var(--band-muted); font-size: .8rem; }
.ly-lg { width: 40px; height: 40px; font-size: .9rem; border-radius: 10px; }
.hub-spoke { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .hub-spoke { background: var(--bg); }
.hub-spoke .k { display: block; font-size: .72rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); margin-bottom: .35rem; }
.hub-spoke p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.hub-0 { grid-column: 1; grid-row: 1; } .hub-1 { grid-column: 1; grid-row: 2; } .hub-2 { grid-column: 1; grid-row: 3; }
.hub-3 { grid-column: 3; grid-row: 1; } .hub-4 { grid-column: 3; grid-row: 2; } .hub-5 { grid-column: 3; grid-row: 3; }
@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr; }
  .hub-core { grid-column: 1; grid-row: auto; width: 200px; justify-self: center; margin-bottom: 1rem; }
  .hub-spoke { grid-column: 1 !important; grid-row: auto !important; }
}

/* ── Process chain ── */
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; counter-reset: pipe; }
.pipe li { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .pipe li { background: var(--bg); }
.pipe li:not(:last-child)::after { content: ""; position: absolute; right: -.62rem; top: 50%; width: .45rem; height: .45rem; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.pipe-k { font-size: .68rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pipe b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); }
.pipe small { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.pipe .pipe-human, .sec-alt .pipe .pipe-human { background: var(--band); border-color: var(--band); }
.pipe .pipe-human b { color: var(--band-ink); }
.pipe .pipe-human small { color: var(--band-muted); }
.pipe .pipe-human .pipe-k { color: var(--cta); }
@media (max-width: 1060px) { .pipe { grid-template-columns: repeat(3, 1fr); } .pipe li:nth-child(3n)::after { display: none; } }
@media (max-width: 620px) { .pipe { grid-template-columns: 1fr; } .pipe li::after { display: none; } }

/* ── Layers ── */
.layers { display: grid; gap: .55rem; max-width: 900px; }
.layer { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem 1.4rem; align-items: center; padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .layer { background: var(--bg); }
.layer-0 { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.sec-alt .layer-0 { background: var(--cta); }
.layer-1 { margin-inline: 1.2rem; }
.layer-2 { margin-inline: 2.4rem; background: var(--band); border-color: var(--band); color: var(--band-ink); }
.sec-alt .layer-2 { background: var(--band); }
.layer-k { grid-row: span 2; font-size: .72rem; font-weight: 680; letter-spacing: .13em; text-transform: uppercase; opacity: .8; }
.layer b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.layer-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.layer-chips span { font-size: .8rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
@media (max-width: 620px) { .layer { grid-template-columns: 1fr; } .layer-k { grid-row: auto; } .layer-1, .layer-2 { margin-inline: 0; } }

/* ── Timeline ── */
.tline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.tline::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 2px; background: var(--line-2); }
.tline li { position: relative; display: flex; flex-direction: column; gap: .35rem; padding-top: 1.8rem; }
.tline li::before { content: ""; position: absolute; top: .15rem; left: 0; width: .95rem; height: .95rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.sec-alt .tline li::before { background: var(--surface); }
.tline li:last-child::before { background: var(--accent); }
.tl-when { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent-text); }
.tline b { font-size: 1.02rem; color: var(--ink); }
.tline small { color: var(--muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 860px) {
  .tline { grid-template-columns: 1fr; gap: 1.2rem; padding-left: 1.6rem; }
  .tline::before { top: 0; bottom: 0; left: .45rem; right: auto; width: 2px; height: auto; }
  .tline li { padding-top: 0; }
  .tline li::before { left: -1.6rem; }
}

/* ── Key facts ── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
.fact { padding: 1.6rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.fact + .fact { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact dd { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; max-width: 24ch; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-3 .fact:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
@media (max-width: 860px) {
  .facts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-3 .fact:nth-child(3n + 1) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
  .facts-3 .fact:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) { .fact + .fact { padding-left: 0; border-left: 0; } .facts-3 { grid-template-columns: 1fr; } .facts-3 .fact:nth-child(n) { padding-left: 0; border-left: 0; } }

/* ── Before / with ── */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }
.ba-col { padding: 1.6rem 1.5rem; border-radius: var(--r); border: 1px solid var(--line); }
.ba-before { background: transparent; border-style: dashed; }
.ba-before ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.ba-before li { position: relative; padding-left: 1.5rem; color: var(--muted); line-height: 1.5; }
.ba-before li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: .6rem; height: 2px; background: var(--line-2); }
.ba-after { background: var(--surface); box-shadow: var(--shadow); }
.sec-alt .ba-after { background: var(--bg); }
.ba-h { display: block; margin-bottom: 1rem; font-size: .74rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ba-after .ba-h { color: var(--accent-text); }

/* ── Example requests in a grid ── */
.asks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .8rem; align-items: start; }
.asks-grid .msg { max-width: none; font-size: .95rem; padding: .85rem 1rem; }

/* ── Sketch illustration ── */
.sketch { display: grid; gap: .6rem; }
.sk-tools { display: flex; gap: .35rem; }
.sk-tools span { font-size: .72rem; padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink-soft); background: var(--surface); }
.sk-tools .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sk-canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(circle, var(--line) 1px, transparent 1.2px) 0 0 / 14px 14px, var(--surface-2); }
.sk-canvas rect { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.6; }
.sk-canvas rect.hi { fill: color-mix(in srgb, var(--cta) 22%, var(--surface)); stroke: var(--accent); }
.sk-canvas .arrow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.sk-canvas .hand { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.sk-canvas text { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; }

/* ── Campaign planner illustration ── */
.camp { display: grid; gap: .45rem; }
.camp-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.camp-h b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.camp-h span { font-size: .74rem; color: var(--muted); }
.post { display: grid; grid-template-columns: 2.6rem auto 1fr auto; gap: .6rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: .78rem; }
.pd { font-weight: 640; color: var(--accent-text); }
.ch { font-size: .66rem; font-weight: 680; letter-spacing: .04em; padding: .2rem .45rem; border-radius: 6px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); }
.pt { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps { font-size: .68rem; font-weight: 620; padding: .2rem .5rem; border-radius: 999px; white-space: nowrap; }
.ps-done { color: #2f7d55; background: color-mix(in srgb, #35b06a 14%, var(--surface)); }
.ps-wait { color: var(--cta-ink); background: var(--cta); }
.ps-plan { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }

/* The hub's centre carries the app's sign-in figure instead of a dark disc. */
.hub-core { background: transparent; box-shadow: none; padding: 0; aspect-ratio: auto; border-radius: 0; color: var(--ink); grid-template-rows: auto auto; gap: .2rem; }
.ly-stage { position: relative; width: 100%; aspect-ratio: 1; }
.ly-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hub-cap { display: grid; gap: .15rem; text-align: center; margin-top: -.6rem; }
.hub-cap b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.hub-cap small { color: var(--muted); font-size: .8rem; }

/* ── Programme phases ── */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr; } }
.phase { display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .phase { background: var(--bg); }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; }
.ph-dur { font-size: .8rem; font-weight: 620; color: var(--ink-soft); padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--cta) 16%, transparent); }
.phase h3 { font-size: 1.25rem; }
.phase p { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.ph-h { display: block; margin-top: .6rem; font-size: .7rem; font-weight: 640; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); }
.phase .ticks { margin-top: .3rem; gap: .45rem; }
.phase .ticks li { font-size: .9rem; }

/* ── Buying criteria ── */
.crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.crit > li { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .crit > li { background: var(--bg); }
.crit-head { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.crit-n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--accent-text); }
.crit-head h3 { font-size: 1.25rem; }
.crit-head p { color: var(--muted); margin-top: .35rem; }
.crit-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .crit-body { grid-template-columns: 1fr; } }
.crit-q { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--ink-soft); font-size: .93rem; }
.crit-answer { padding: 1rem 1.1rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--cta) 10%, transparent); }
.crit-answer .ph-h { margin-top: 0; }
.crit-answer p { margin-top: .45rem; color: var(--ink); font-size: .95rem; line-height: 1.55; }
.sec-gap { height: clamp(2.6rem, 5vw, 4rem); }

/* ══ Académie ══ */
.ac-grid { display: grid; gap: 1.1rem; }
.ac-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .ac-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ac-grid-3 { grid-template-columns: 1fr; } }
.ac-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; color: inherit; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sec-alt .ac-card { background: var(--bg); }
.ac-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.25rem 1.3rem; flex: 1; }
.ac-type { font-size: .68rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ac-card b { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ac-d { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ac-meta { margin-top: auto; padding-top: .7rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--muted); }
.ac-meta span + span::before { content: "·"; margin-right: .9rem; color: var(--line-2); }
.ac-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 1.1rem 1.2rem; background: var(--band); color: var(--band-ink); overflow: hidden; }
.ac-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--cta) 34%, transparent), transparent 70%); }
.ac-cover > * { position: relative; }
.ac-cover-k { align-self: flex-start; font-size: .66rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--band-ink) 25%, transparent); color: var(--band-soft); }
.ac-cover-t { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; max-width: 18ch; }
.ac-product .ac-thumb { display: block; height: 190px; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; }
.ac-product .ac-thumb .fig { transform: scale(.62); transform-origin: top center; width: 160%; margin-left: -30%; margin-top: 1rem; pointer-events: none; }
.ac-product .ac-thumb .mocklabel { display: none; }

.ac-tablist { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.ac-tablist button { font: inherit; font-size: .88rem; font-weight: 560; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.ac-tablist button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ac-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.6rem; }
.ac-empty { margin-top: 1rem; }

/* Course overview */
.ac-course-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px) { .ac-course-top { grid-template-columns: 1fr; } }
.ac-course-top .eyebrow { margin-bottom: 1rem; }
.ac-facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .ac-facts { background: var(--bg); }
.ac-facts div { padding: .9rem 1.1rem; }
.ac-facts div + div { border-top: 1px solid var(--line); }
.ac-facts dt { font-size: .7rem; font-weight: 640; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ac-facts dd { margin: .25rem 0 0; color: var(--ink-soft); font-size: .93rem; }
.ac-syllabus { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ac-syllabus > li { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .ac-syllabus > li { background: var(--bg); }
.ac-mod-h { display: flex; align-items: baseline; gap: .8rem; }
.ac-mod-h b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.ac-mod-h small { margin-left: auto; color: var(--muted); font-size: .8rem; }
.ac-syllabus ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; }
.ac-syllabus ul li { padding: .65rem 0; border-top: 1px solid var(--line); }
.ac-syllabus ul a { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); font-weight: 560; }
.ac-syllabus ul a:hover { color: var(--accent-strong); }
.ac-syllabus ul small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.ac-syllabus ul p { color: var(--muted); font-size: .88rem; margin-top: .2rem; }

/* Lesson */
.ac-lesson-wrap { padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(4rem, 8vw, 6rem); }
.ac-lesson-grid { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(2rem, 4vw, 3.6rem); align-items: start; }
@media (max-width: 960px) { .ac-lesson-grid { grid-template-columns: 1fr; } .ac-side { position: static !important; max-height: none !important; } }
.ac-side { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: .2rem; padding-right: .4rem; font-size: .88rem; }
.ac-side-course { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: .6rem; }
.ac-side-mod { display: flex; flex-direction: column; margin-bottom: .6rem; }
.ac-side-h { font-size: .68rem; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .5rem 0 .3rem; }
.ac-side a:not(.ac-side-course) { display: flex; justify-content: space-between; gap: .6rem; padding: .4rem .6rem; border-radius: var(--r-sm); color: var(--ink-soft); }
.ac-side a:not(.ac-side-course):hover { background: var(--surface-2); color: var(--ink); }
.ac-side a[aria-current="page"] { background: color-mix(in srgb, var(--cta) 16%, transparent); color: var(--ink); font-weight: 600; }
.ac-side small { color: var(--muted); white-space: nowrap; }
.ac-side-quiz { margin-top: .4rem; font-weight: 600; }
.ac-lesson { max-width: 46rem; }
.ac-lesson .crumbs { margin-bottom: 1.2rem; }
.ac-lesson h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: .8rem 0 .6rem; }
.ac-lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.55; }
.ac-prose { margin-top: 2rem; display: grid; gap: 1.15rem; }
.ac-prose p { color: var(--ink-soft); line-height: 1.7; }
.ac-prose h2 { font-size: 1.45rem; margin-top: 1rem; }
.ac-list, .ac-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; color: var(--ink-soft); line-height: 1.6; }
.ac-steps li::marker { color: var(--accent-text); font-weight: 700; }
.ac-prompt { display: grid; gap: .5rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ac-prompt-k { font-size: .68rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ac-prompt .msg { align-self: flex-start; max-width: 100%; }
.ac-prompt-lg .msg { font-size: 1rem; line-height: 1.6; }
.ac-tip, .ac-exercise, .ac-result { padding: 1rem 1.15rem; border-radius: var(--r); }
.ac-tip { background: var(--surface-2); border: 1px solid var(--line); }
.ac-exercise { background: color-mix(in srgb, var(--cta) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.ac-result { margin-top: 1.4rem; background: var(--band); color: var(--band-ink); }
.ac-result p { color: var(--band-soft); margin-top: .3rem; }
.ac-tip b, .ac-exercise b, .ac-result b { font-size: .72rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ac-result b { color: var(--cta); }
.ac-tip p, .ac-exercise p { margin-top: .35rem; color: var(--ink-soft); }
.ac-example { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 620px) { .ac-example { grid-template-columns: 1fr; } }
.ac-example > div { padding: .9rem 1rem; border-radius: var(--r); border: 1px solid var(--line); }
.ac-ex-before { border-style: dashed !important; }
.ac-ex-after { background: var(--surface); }
.ac-example span { display: block; font-size: .68rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.ac-ex-after span { color: var(--accent-text); }
.ac-ex-why { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
/* Lesson schemas and references */
.ac-dg { margin: .6rem 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ac-dg figcaption { margin-top: .9rem; font-size: .82rem; color: var(--muted); text-align: center; }
.dg-tokens { display: flex; flex-wrap: wrap; gap: .35rem; }
.dg-tokens span { display: grid; gap: .2rem; padding: .45rem .6rem; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); }
.dg-tokens span:nth-child(even) { background: var(--cta); color: var(--cta-ink); }
.dg-tokens b { font-family: ui-monospace, "JetBrains Mono", monospace; font-weight: 600; font-size: .95rem; }
.dg-tokens i { font-style: normal; font-size: .7rem; opacity: .75; }
.dg-vectors { display: block; width: 100%; height: auto; }
.dg-vectors .dg-grid line { stroke: var(--line); stroke-width: 1; }
.dg-vectors circle { fill: var(--cta); stroke: var(--ink); stroke-width: 1.5; }
.dg-vectors text { fill: var(--ink); font-size: 14px; font-weight: 600; }
.dg-vectors .dg-arrow { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.dg-attn { display: grid; gap: .45rem; }
.dg-attn-q { margin: 0 0 .4rem; font-weight: 600; color: var(--ink); }
.dg-attn span { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 3rem; align-items: center; gap: .7rem; }
.dg-attn b { font-weight: 600; color: var(--ink); }
.dg-attn i { display: block; height: .7rem; width: var(--v); min-width: 3px; border-radius: 2px; background: var(--cta); }
.dg-attn small { color: var(--muted); text-align: right; }
.dg-moe { display: grid; gap: .8rem; justify-items: center; text-align: center; }
.dg-in, .dg-router, .dg-out { padding: .5rem .9rem; border-radius: var(--r-sm); font-weight: 600; }
.dg-in { background: var(--ink); color: var(--bg); }
.dg-router { border: 1px solid var(--ink); color: var(--ink); }
.dg-out { color: var(--muted); font-weight: 500; font-size: .9rem; }
.dg-experts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; width: 100%; }
.dg-experts i { font-style: normal; padding: .55rem .3rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: .82rem; color: var(--muted); }
.dg-experts i.is-on { border-color: var(--cta); background: var(--cta); color: var(--cta-ink); font-weight: 640; }
.dg-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; counter-reset: dg; }
.dg-flow li { display: grid; gap: .35rem; align-content: start; padding: .9rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); counter-increment: dg; }
.dg-flow b::before { content: counter(dg) ". "; color: var(--accent-text); }
.dg-flow b { color: var(--ink); }
.dg-flow span { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.ac-refs { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.ac-refs h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.ac-refs ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .86rem; line-height: 1.55; color: var(--ink-soft); }
.ac-refs cite { font-style: italic; color: var(--ink); }
.ac-refs a { color: var(--accent-text); overflow-wrap: anywhere; }
@media (max-width: 760px) { .dg-flow { grid-template-columns: 1fr 1fr; } .dg-attn span { grid-template-columns: 4.5rem minmax(0, 1fr) 2.6rem; } }

.ac-shot { margin: .5rem 0; }
.ac-shot img { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.ac-shot figcaption { margin-top: .6rem; text-align: center; font-size: .8rem; color: var(--muted); }
.ac-shot .mocklabel { display: none; }
.shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-dark { display: block !important; } :root:not([data-theme="light"]) .shot-light { display: none !important; } }
:root[data-theme="dark"] .shot-dark { display: block !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
.ac-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.ac-pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ac-pager a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.ac-pager .next { text-align: right; grid-column: 2; }
.ac-pager small { color: var(--muted); font-size: .78rem; }
.ac-pager b { color: var(--ink); font-weight: 600; }

/* Quiz */
.ac-quiz { margin-top: 2rem; display: grid; gap: 1.1rem; }
.ac-quiz fieldset { margin: 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: .5rem; }
.ac-quiz legend { padding: 0 .3rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.ac-quiz label { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .6rem; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-soft); }
.ac-quiz label:hover { background: var(--surface-2); }
.ac-quiz input { margin-top: .3rem; accent-color: var(--accent); }
.ac-quiz .is-right { background: color-mix(in srgb, #35b06a 14%, transparent); color: var(--ink); }
.ac-quiz .is-wrong { background: color-mix(in srgb, #d24b3e 12%, transparent); }
.ac-why { font-size: .88rem; color: var(--muted); padding: 0 .6rem; }
.ac-quiz-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.ac-score { font-weight: 600; color: var(--ink); }

/* Tutorials and use cases */
.ac-tuto { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.4rem, 5vw, 3.6rem); }
.ac-tuto > li { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
.ac-tuto > li:not(:has(.ac-shot)) { grid-template-columns: 1fr; max-width: 46rem; }
@media (max-width: 860px) { .ac-tuto > li { grid-template-columns: 1fr; } }
.ac-tuto-text { display: grid; gap: .6rem; }
.ac-tuto h2 { font-size: 1.5rem; }
.ac-tuto p { color: var(--ink-soft); line-height: 1.65; }
.ac-case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .ac-case { grid-template-columns: 1fr; } }
.ac-case .eyebrow { margin-bottom: .9rem; }

/* ── Académie, aired out: lessons and quizzes read at a calmer pace ── */
.ac-lesson-wrap { padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7.5rem); }
.ac-lesson-grid { gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 961px) { .ac-lesson-grid { grid-template-columns: 16.5rem 1fr; } }
.ac-side { gap: .35rem; font-size: .9rem; line-height: 1.45; }
.ac-side-course { margin-bottom: 1.2rem; line-height: 1.35; }
.ac-side-mod { margin-bottom: 1.3rem; gap: .15rem; }
.ac-side-h { padding: 0 0 .55rem; line-height: 1.4; }
.ac-side a:not(.ac-side-course) { padding: .55rem .75rem; }
.ac-side-quiz { margin-top: .8rem; }
.ac-lesson { max-width: 44rem; }
.ac-lesson .crumbs { margin-bottom: 1.8rem; }
.ac-lesson h1 { margin: 1.1rem 0 1.1rem; line-height: 1.08; }
.ac-lead { font-size: 1.18rem; line-height: 1.6; }
.ac-prose { margin-top: 2.8rem; gap: 1.6rem; }
.ac-prose p { line-height: 1.8; }
.ac-prose h2 { margin-top: 1.8rem; }
.ac-list, .ac-steps { gap: .8rem; line-height: 1.7; }
.ac-prompt, .ac-tip, .ac-exercise { padding: 1.3rem 1.4rem; }
.ac-example { gap: 1.1rem; }
.ac-example > div { padding: 1.2rem 1.3rem; }
.ac-pager { margin-top: 4.5rem; padding-top: 2.2rem; }

.ac-quiz { margin-top: 3rem; gap: 1.8rem; }
.ac-quiz fieldset { padding: 1.8rem 1.9rem 1.6rem; gap: .5rem; }
/* The question sits inside its card instead of cutting through the border. */
.ac-quiz legend { float: left; width: 100%; padding: 0; margin-bottom: 1.1rem; font-size: 1.08rem; line-height: 1.45; }
.ac-quiz legend + * { clear: both; }
.ac-quiz label { padding: .75rem .9rem; line-height: 1.5; border: 1px solid transparent; }
.ac-quiz label:hover { border-color: var(--line); }
.ac-why { padding: .4rem .9rem 0; line-height: 1.6; }
.ac-quiz-foot { margin-top: 1rem; }
.ac-quiz fieldset { min-width: 0; }

/* ══ Académie shell: the dark brand band, so it reads as its own place in the Learnya family ══ */
.ac-hdr { background: color-mix(in srgb, var(--band) 94%, transparent); border-bottom-color: var(--band-line); color: var(--band-ink); }
.ac-hdr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 140% at 85% 0%, color-mix(in srgb, var(--cta) 16%, transparent), transparent 70%); }
.ac-hdr .wrap { position: relative; z-index: 1; }
.ac-hdr .nav a.link { color: var(--band-soft); }
.ac-hdr .nav a.link:hover, .ac-hdr .nav-item:hover > .link { color: var(--band-ink); }
.ac-hdr .chip { background: #020202; box-shadow: 0 0 0 1px color-mix(in srgb, #fff 14%, transparent); }
.ac-wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; color: var(--band-ink); }
.ac-wordmark b { font-weight: 600; color: var(--cta); }
.ac-foot .ac-wordmark { color: var(--ink); }
.ac-foot .ac-wordmark b { color: var(--accent-text); }
.ac-hdr .burger { background: transparent; border-color: var(--band-line); }
.ac-hdr .burger span { background: var(--band-ink); }
.ac-search input { width: 15rem; font: inherit; font-size: .85rem; color: var(--band-ink); background: color-mix(in srgb, #fff 7%, transparent); border: 1px solid var(--band-line); border-radius: var(--r-sm); padding: .5rem .8rem; }
.ac-search input::placeholder { color: var(--band-muted); }
.ac-search input:focus { outline: 2px solid var(--cta); outline-offset: 1px; }
.ac-back { font-size: .86rem !important; }
.is-academy .hero::before { background: radial-gradient(48% 70% at 90% 0%, color-mix(in srgb, var(--cta) 16%, transparent), transparent 70%); }
footer.ac-foot .cols-4 { grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 760px) { footer.ac-foot .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1180px) { .ac-search { display: none; } }
@media (max-width: 1080px) { .ac-back { display: none; } }

/* Header labels stay on one line. */
.ac-hdr .nav a.link, .ac-wordmark { white-space: nowrap; }

/* ── Académie hero: the brand's dark band, a search and the ring ── */
.ac-hero { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.6rem, 7vw, 6rem); }
.ac-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 85% 20%, color-mix(in srgb, var(--cta) 20%, transparent), transparent 70%), radial-gradient(40% 60% at 10% 110%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.ac-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .ac-hero-grid { grid-template-columns: 1fr; } .ac-hero-ring { max-width: 260px; justify-self: center; } }
.ac-hero-k { color: var(--band-soft); }
.ac-hero h1 { margin-top: 1.1rem; color: var(--band-ink); font-size: clamp(2.8rem, 6vw, 4.8rem); }
.ac-hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--band-soft); }
.ac-hero-search { margin-top: 2.2rem; display: flex; gap: .5rem; max-width: 34rem; padding: .4rem; border-radius: calc(var(--r-sm) + 4px); background: color-mix(in srgb, #fff 8%, transparent); border: 1px solid var(--band-line); }
.ac-hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--band-ink); background: transparent; border: 0; padding: .6rem .8rem; }
.ac-hero-search input::placeholder { color: var(--band-muted); }
.ac-hero-search input:focus { outline: none; }
.ac-hero-search:focus-within { border-color: color-mix(in srgb, var(--cta) 60%, transparent); }
.ac-hero-facts { margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; }
.ac-hero-facts div { display: grid; gap: .1rem; }
.ac-hero-facts dt { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--band-ink); }
.ac-hero-facts dd { margin: 0; font-size: .85rem; color: var(--band-muted); }
.ac-hero-ring .ly-stage { width: 100%; }

/* ── Learning paths by role ── */
.ac-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.ac-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ac-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .ac-paths { grid-template-columns: 1fr; } }
.ac-path { display: flex; flex-direction: column; gap: .45rem; padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sec-alt .ac-path { background: var(--bg); }
.ac-path > b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.ac-path ol { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ac-path ol a { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; align-items: center; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); transition: border-color .16s ease; }
.ac-path ol a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.ac-path-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: .85rem; }
.ac-path ol b { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ac-path ol small { color: var(--muted); font-size: .78rem; }

/* ── Covers ── */
.ac-cover { isolation: isolate; }
.ac-cover .cover-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ac-cover::before { z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, #14110d 75%, transparent)); }
.ac-cover { min-height: 180px; }
.ac-cover-product { min-height: 170px; }
.ac-mini { position: relative; display: block; height: 104px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.ac-mini .cover-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ac-mini-k { position: absolute; left: .9rem; bottom: .7rem; font-size: .64rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: #f6f2ea; padding: .25rem .55rem; border-radius: 999px; background: color-mix(in srgb, #14110d 60%, transparent); border: 1px solid color-mix(in srgb, #fff 18%, transparent); }
.ac-course-cover { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); aspect-ratio: 56 / 38; }
.ac-course-cover .cover-svg { display: block; width: 100%; height: 100%; }

/* ── Header search: an icon and a word that always fits ── */
.ac-search { position: relative; }
.ac-search-ico { position: absolute; left: .7rem; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--band-muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.ac-search input { width: 11.5rem; padding-left: 2.1rem; }
.ac-hero-grid > * { min-width: 0; }
@media (max-width: 1280px) { .ac-back { display: none; } }
[hidden] { display: none !important; }
.ac-count { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 1.2rem; }

/* ── Card vignettes: each shows its subject, on a warm ground that follows the theme ── */
.ac-vig { position: relative; display: grid; place-items: center; height: 168px; padding: 1.2rem; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--cta) 26%, transparent), transparent 65%), var(--surface-2); }
.ac-vig::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.ac-vig-k { position: absolute; top: .8rem; left: .9rem; z-index: 2; font-size: .62rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); padding: .25rem .55rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.ac-vig-fig { display: block; padding: 0; }
.ac-vig-fig .fig { width: 150%; margin: 2.2rem 0 0 -25%; transform: scale(.66); transform-origin: top center; pointer-events: none; }
.ac-vig-fig .mocklabel { display: none; }
.cv { display: grid; gap: .5rem; width: 100%; max-width: 19rem; font-size: .8rem; }
.cv-chat { justify-items: end; }
.cv-chat .msg { max-width: 100%; font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-chip { font-size: .72rem; font-weight: 640; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); }
.cv-chip.ok { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.cv-gestes { grid-template-columns: 1fr 1fr; }
.cv-gestes span { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.cv-gestes b { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cta); color: var(--cta-ink); font-size: .72rem; }
.cv-split { grid-template-columns: 1fr 1fr; }
.cv-split > span { display: grid; gap: .3rem; padding: .6rem .7rem; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.cv-split b { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.cv-split > span + span b { color: var(--muted); }
.cv-split i { font-style: normal; color: var(--ink-soft); }
.cv-hub { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; justify-items: center; align-items: center; }
.cv-core { grid-column: 1 / -1; grid-row: 2; padding: .45rem .9rem; border-radius: 999px; background: var(--band); color: var(--band-ink); font-weight: 600; }
.cv-sat { padding: .3rem .6rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: .74rem; }
.cv-sat:nth-of-type(n+4) { grid-row: 3; }
.cv-roles { gap: .35rem; }
.cv-roles > span { display: flex; justify-content: space-between; padding: .45rem .65rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.cv-roles b { font-weight: 600; color: var(--ink); }
.cv-roles i { font-style: normal; color: var(--accent); letter-spacing: .12em; }
.ac-course-cover.ac-vig { height: auto; min-height: 300px; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ac-course-cover .cv { max-width: 22rem; font-size: .92rem; }

/* ── Header lockup and search ── */
.ac-brand { gap: .65rem; }
.ac-wordmark { display: inline-flex; align-items: baseline; gap: .32em; }
.ac-search input { transition: width .2s ease; }
.ac-search input:focus, .ac-search input:not(:placeholder-shown) { width: 15rem; }
@media (max-width: 620px) {
  .ac-hdr .nav .btn-accent { display: none; }
  .ac-hero-search { flex-direction: column; }
  .ac-hero-search .btn { width: 100%; }
}
/* The level pill sits above the vignette's content, never on it. */
.ac-vig { height: 196px; padding: 2.6rem 1.2rem 1rem; align-content: center; }
.ac-vig-fig { padding: 0; }
.cv, .cv b, .cv i { font-size: .8rem; }
.cv-roles b { font-weight: 600; }
.ac-course-cover.ac-vig { padding: 3.2rem 1.6rem 1.6rem; }
.ac-course-cover .cv, .ac-course-cover .cv b, .ac-course-cover .cv i { font-size: .95rem; }

/* ── Vignette grounds: fixed brand colours, so covers read as images in either theme ── */
.ac-vig[class*=" v-"]::after { display: none; }
.ac-vig.v-amber { background: radial-gradient(90% 120% at 100% 0%, #f8c27f, transparent 60%), #f3a752; --v-ink: #1b1712; --v-card: #fff8ee; --v-line: rgba(27, 23, 18, .14); --v-k: #1b1712; }
.ac-vig.v-ink { background: radial-gradient(70% 110% at 100% 0%, rgba(243, 167, 82, .45), transparent 65%), #14110d; --v-ink: #f6f2ea; --v-card: #26211a; --v-line: rgba(255, 255, 255, .12); --v-k: #f3a752; }
.ac-vig.v-cream { background: radial-gradient(80% 120% at 0% 100%, rgba(243, 167, 82, .35), transparent 60%), #f4eadb; --v-ink: #1b1712; --v-card: #ffffff; --v-line: rgba(27, 23, 18, .12); --v-k: #9c5e1a; }
.ac-vig.v-terra { background: radial-gradient(80% 120% at 100% 100%, rgba(255, 220, 170, .4), transparent 60%), #b8691c; --v-ink: #fff8ee; --v-card: rgba(255, 255, 255, .14); --v-line: rgba(255, 255, 255, .28); --v-k: #fff8ee; }
.ac-vig.v-graphite { background: radial-gradient(70% 110% at 0% 0%, rgba(243, 167, 82, .35), transparent 60%), #2b2621; --v-ink: #f6f2ea; --v-card: #3a332b; --v-line: rgba(255, 255, 255, .12); --v-k: #f8c27f; }
.ac-vig[class*=" v-"] .ac-vig-k { background: transparent; color: var(--v-k); border-color: color-mix(in srgb, var(--v-k) 45%, transparent); }
.ac-vig[class*=" v-"] .cv { color: var(--v-ink); font-size: .9rem; max-width: 20rem; }
.ac-vig[class*=" v-"] .cv b, .ac-vig[class*=" v-"] .cv i { color: var(--v-ink); font-size: .88rem; }
.ac-vig[class*=" v-"] .cv-gestes span, .ac-vig[class*=" v-"] .cv-split > span, .ac-vig[class*=" v-"] .cv-roles > span, .ac-vig[class*=" v-"] .cv-sat { background: var(--v-card); border-color: var(--v-line); color: var(--v-ink); }
.ac-vig[class*=" v-"] .cv-gestes span { padding: .65rem .7rem; font-size: .95rem; }
.ac-vig[class*=" v-"] .cv-gestes b { background: #f3a752; color: #1b1712; }
.ac-vig.v-amber .cv-gestes b, .ac-vig.v-amber .cv-chip.ok { background: #1b1712; color: #f3a752; border-color: #1b1712; }
.ac-vig[class*=" v-"] .cv-split b { color: var(--v-k); }
.ac-vig[class*=" v-"] .cv-roles i { color: #f3a752; }
.ac-vig.v-amber .cv-roles i, .ac-vig.v-cream .cv-roles i { color: #9c5e1a; }
.ac-vig[class*=" v-"] .cv-core { background: #f3a752; color: #1b1712; }
.ac-vig.v-amber .cv-core { background: #1b1712; color: #f3a752; }
.ac-vig[class*=" v-"] .msg.u { background: var(--v-card); color: var(--v-ink); border: 1px solid var(--v-line); font-size: .9rem; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45); }
.ac-vig.v-ink .msg.u, .ac-vig.v-graphite .msg.u { background: #f6f2ea; color: #1b1712; }
.ac-vig.v-amber .msg.u { background: #1b1712; color: #f6f2ea; }
/* Product screens sit on the coloured ground like a print on a card. */
.ac-vig-fig[class*=" v-"] .fig .mock { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
/* The clamp lives on an inner line box, so the bubble's padding never shows a cut fourth line. */
.cv-chat .msg { display: block; -webkit-line-clamp: unset; overflow: visible; }
.cv-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Lesson objective and takeaways ── */
.ac-objective { margin-top: 1.6rem; display: grid; gap: .3rem; padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-soft); line-height: 1.6; }
.ac-objective b { font-size: .7rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ac-keypoints { margin-top: 3rem; padding: 1.6rem 1.7rem; border-radius: var(--r); background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.ac-keypoints::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--cta) 22%, transparent), transparent 70%); }
.ac-keypoints > * { position: relative; }
.ac-keypoints b { font-size: .72rem; font-weight: 680; letter-spacing: .13em; text-transform: uppercase; color: var(--cta); }
.ac-keypoints ol { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: kp; display: grid; gap: .9rem; }
.ac-keypoints li { counter-increment: kp; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; align-items: start; line-height: 1.55; color: var(--band-soft); }
.ac-keypoints li::before { content: counter(kp); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cta) 55%, transparent); color: var(--cta); font-weight: 700; font-size: .82rem; }

/* ── Real product screens ── */
.screen { margin: 0; }
.screen img { display: block; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.screen .mocklabel { margin-top: .85rem; }
.ac-vig-fig .screen { padding: 2.6rem 1.2rem 0; }
.ac-vig-fig .screen img { border-radius: 10px 10px 0 0; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.ac-vig-fig .screen .mocklabel { display: none; }
/* In a card, a real screen is shown up close: its top-left corner, not the whole window shrunk. */
.ac-vig-fig .screen { padding: 2.6rem 0 0 1.2rem; }
.ac-vig-fig .screen img { width: 175%; max-width: none; }

/* ── Académie progress ── */
.ac-progress { display: grid; gap: .35rem; margin-top: .8rem; }
.ac-progress i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); }
.ac-progress small { font-size: .76rem; color: var(--muted); }
.ac-side a.is-read span::after { content: " ✓"; color: var(--accent-text); font-weight: 700; }
.ac-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin: 1.6rem 0 0; padding: 1.1rem 1.3rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--r); background: color-mix(in srgb, var(--cta) 10%, var(--surface)); }
.ac-resume .ac-progress { flex: 1; min-width: 12rem; margin: 0; }
.ac-hero-resume { display: inline-flex; flex-direction: column; gap: .15rem; margin-top: 1.4rem; padding: .7rem 1rem; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--cta) 45%, transparent); color: var(--band-ink); max-width: 34rem; }
.ac-hero-resume small { font-size: .7rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--cta); }
.ac-hero-resume b { font-weight: 560; }

/* ── Certificate ── */
.ac-cert-wrap { padding: clamp(3rem, 6vw, 5rem) 0; }
.ac-cert { position: relative; max-width: 54rem; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4.5rem); text-align: center; border-radius: var(--r-lg); background: #fffaf2; color: #1b1712; border: 1px solid #e8dcc6; box-shadow: var(--shadow-lg); display: grid; gap: .9rem; justify-items: center; }
.ac-cert::before { content: ""; position: absolute; inset: 12px; border: 1px solid #e3cfae; border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }
.ac-cert-k { font-size: .74rem; font-weight: 680; letter-spacing: .16em; text-transform: uppercase; color: #9c5e1a; }
.ac-cert-intro { color: #5c5448; font-size: 1.05rem; }
.ac-cert-name { width: min(100%, 30rem); text-align: center; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: #1b1712; background: transparent; border: 0; border-bottom: 2px solid #e3cfae; padding: .3rem .6rem; }
.ac-cert-name:focus { outline: none; border-bottom-color: #c97a23; }
.ac-cert-course { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: #1b1712; }
.ac-cert-date { color: #6d6659; }
.ac-cert-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #e8dcc6; font-size: .85rem; color: #6d6659; }
.ac-cert-seal { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #f3a752; color: #1b1712; font-family: var(--font-display); font-weight: 700; box-shadow: 0 0 0 6px rgba(243, 167, 82, .25); }
.ac-cert.is-locked .ac-cert-course, .ac-cert.is-locked .ac-cert-name { opacity: .45; }
.ac-cert-actions { margin-top: 1.8rem; text-align: center; }
/* ── Home: a task per profile, and the deployment modes as tabs ── */
.ptasks .ac-tablist, .modes .ac-tablist { margin-bottom: 1.4rem; }
.ptask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.2rem 2.4rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ptask-k { display: block; margin-bottom: .6rem; font-size: .7rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.ptask-ask { align-self: start; }
.ptask-ask .msg { margin: 0; max-width: 100%; font-size: 1.02rem; line-height: 1.6; }
.modes + .split-cta { margin-top: 1.4rem; }
.ptask-steps { grid-row: span 2; list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: st; }
.ptask-steps li { display: grid; grid-template-columns: 1.6rem 10.5rem minmax(0, 1fr); align-items: baseline; gap: .7rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); counter-increment: st; }
.ptask-steps li::before { content: counter(st); font-weight: 640; font-variant-numeric: tabular-nums; color: var(--muted); }
.ptask-m { font-size: .84rem; font-weight: 640; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptask-m:hover { color: var(--accent-text); }
.ptask-steps em { grid-column: 3; justify-self: start; font-style: normal; font-size: .72rem; font-weight: 640; padding: .2rem .5rem; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); }
.ptask-out { margin: 0; align-self: end; line-height: 1.6; color: var(--ink); }
.mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2.4rem; align-items: start; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mode-we, .mode-you { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.mode-you { color: var(--accent-text); }
.mode-d p { margin: 0 0 .6rem; line-height: 1.6; color: var(--ink-soft); }
.mode-d .mode-fit { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 960px) {
  .ptask, .mode { grid-template-columns: 1fr; padding: 1.3rem; }
  .ptask-steps { grid-row: auto; }
  .ptask-steps li { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .ptask-steps li > span, .ptask-steps em { grid-column: 2; }
}

/* Accent for text set on an inverted (ink) card: light orange on dark ink, deep orange on light ink. */
:root { --on-ink-accent: #f3a752; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-ink-accent: #9c5e1a; } }
:root[data-theme="dark"] { --on-ink-accent: #9c5e1a; }

/* ── Module pages: formats, languages, research, audit journal ── */
.feats-more { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem 2rem; align-items: start; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .feats-more { grid-template-columns: 1fr; } }
.fmts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.fmt { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.fmt b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.fmt p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.fmt-x { display: flex; flex-wrap: wrap; gap: .35rem; }
.fmt-x i { font-style: normal; font-size: .74rem; font-weight: 640; padding: .25rem .5rem; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); }
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.lang-i { padding: 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lang-k { display: block; margin-bottom: .55rem; font-size: .72rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lang-i p { margin: 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.rsch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rsch li { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rsch-c { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.rsch-how { margin: 0; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.rsch-src { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .84rem; }
.rsch-src a:first-child { font-style: italic; color: var(--muted); }
.rsch-src a:last-child { font-weight: 600; color: var(--accent-text); }
.audit { margin: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.audit table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.audit th { text-align: left; padding: .8rem 1rem; font-size: .7rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.audit td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.audit tr:last-child td { border-bottom: 0; }
.audit td:first-child { color: var(--muted); }
.audit .mocklabel { padding: .6rem 1rem; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); }
.anat { margin: 0; padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.anat-s { margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem .5rem; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 500; line-height: 1.3; color: var(--ink); }
.anat-p { display: inline-grid; gap: .35rem; }
.anat-p > span { padding-bottom: .3rem; border-bottom: 3px solid var(--cta); }
.anat-p:nth-child(even) > span { border-bottom-color: var(--ink); }
.anat-p small { font-family: var(--font-body, inherit); font-size: .7rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.anat figcaption { margin-top: 1.4rem; font-size: .88rem; color: var(--muted); }
.sdemo { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sdemo-q { margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--ink); color: var(--bg); font-size: 1.05rem; font-weight: 500; }
.sdemo-q span { font-size: .68rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--cta); }
.sdemo ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sdemo li { display: grid; gap: .3rem; padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.sdemo li b { font-size: .84rem; color: var(--ink); }
.sdemo li p { margin: 0; line-height: 1.55; color: var(--ink); }
.sdemo li small { font-size: .8rem; color: var(--accent-text); font-weight: 600; }
.sdemo-l { margin: 1.1rem 0 0; font-size: .88rem; }
.sdemo-l a { font-weight: 600; color: var(--accent-text); }
.triage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.tri-c { display: grid; align-content: start; gap: .55rem; }
.tri-k { display: flex; align-items: center; justify-content: space-between; padding: .2rem .2rem .4rem; font-size: .72rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.tri-k i { font-style: normal; display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; letter-spacing: 0; }
.tri-i { display: grid; gap: .2rem; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.tri-i b { font-size: .86rem; color: var(--ink); }
.tri-i span { font-size: .9rem; color: var(--ink-soft); }
.tri-i small { margin-top: .25rem; font-size: .78rem; font-weight: 640; color: var(--accent-text); }
.triage .mocklabel { grid-column: 1 / -1; margin: .2rem 0 0; text-align: center; font-size: .76rem; color: var(--muted); }
@media (max-width: 860px) { .triage { grid-template-columns: 1fr; } }
.codetabs .ac-tablist { margin-bottom: 1rem; }
.codetab { margin: 0; padding: 1.4rem 1.5rem; overflow-x: auto; border-radius: var(--r); background: #141210; color: #f4f1ea; font-size: .88rem; line-height: 1.65; }
.codetab code { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; white-space: pre; }
.handoff { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.handoff li { position: relative; display: grid; align-content: start; gap: .3rem; padding: 1.5rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ho-when { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.handoff b { font-size: 1rem; color: var(--ink); }
.handoff small { font-size: .74rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.handoff p { margin: .4rem 0 0; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 860px) { .handoff { grid-template-columns: 1fr; } }
.law { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; }
.law-c { padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.law-p { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.law-k { display: block; margin-bottom: 1rem; font-size: .72rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.law-p .law-k { color: var(--on-ink-accent); }
.law ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.law-c:first-child li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.law-c:first-child li:last-child { padding-bottom: 0; border-bottom: 0; }
.law-c:first-child b { font-size: .88rem; color: var(--ink); }
.law-c:first-child span { line-height: 1.55; color: var(--ink-soft); }
.law-p li { position: relative; padding-left: 1.4rem; line-height: 1.5; }
.law-p li::before { content: "✓"; position: absolute; left: 0; color: var(--on-ink-accent); font-weight: 700; }
.law-note { grid-column: 1 / -1; margin: .2rem 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .law { grid-template-columns: 1fr; } .law-c:first-child li { grid-template-columns: 1fr; gap: .3rem; } }
.bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bounds > div { padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.bounds-you { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--bg); }
.bounds-you .law-k { color: var(--on-ink-accent); }
.bounds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.bounds li { position: relative; padding-left: 1.4rem; line-height: 1.5; }
.bounds li::before { content: "→"; position: absolute; left: 0; color: var(--accent-text); }
.bounds-you li::before { content: "✓"; color: var(--on-ink-accent); font-weight: 700; }
@media (max-width: 760px) { .bounds { grid-template-columns: 1fr; } }
.dlv { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.dlv-i { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.5rem 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.dlv-doc { display: grid; gap: 4px; width: 2.4rem; padding: .5rem .45rem; margin-bottom: .5rem; border-radius: 4px; background: var(--ink); }
.dlv-doc i { display: block; height: 3px; border-radius: 2px; background: var(--bg); opacity: .85; }
.dlv-doc i:nth-child(1) { width: 70%; background: var(--cta); opacity: 1; }
.dlv-doc i:nth-child(3) { width: 55%; }
.dlv-k { font-size: .7rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.dlv-i b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.dlv-i p { margin: 0; line-height: 1.55; color: var(--ink-soft); }
.rot { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3.6rem); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.rot-w { display: inline-grid; vertical-align: bottom; color: var(--accent-text); }
.rot-w > span { grid-area: 1 / 1; opacity: 0; animation: rot-cycle calc(var(--n) * 2.4s) infinite; animation-delay: calc(var(--i) * 2.4s); }
@keyframes rot-cycle { 0% { opacity: 0; transform: translateY(.35em); } 3%, 14% { opacity: 1; transform: none; } 17%, 100% { opacity: 0; transform: translateY(-.35em); } }
@media (prefers-reduced-motion: reduce) { .rot-w > span { animation: none; } .rot-w > span:first-child { opacity: 1; } }
.chooser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.ch-i { display: grid; align-content: start; gap: .35rem; padding: 1.3rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ch-who { font-size: .9rem; color: var(--ink-soft); }
.ch-i b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.ch-i p { margin: .2rem 0 0; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 860px) { .chooser { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .chooser { grid-template-columns: 1fr; } }
@media (max-width: 1060px) { .fmts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fmts, .langs, .rsch { grid-template-columns: 1fr; } }

/* ── Académie: first tasks, goals, demand library, glossary ── */
.btn-sm { padding: .5rem .85rem; font-size: .84rem; }
.ac-quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.ac-quick-i, .ac-demand { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.ac-quick-i > b, .ac-demand > b { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ac-quick-n { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.ac-quick-n .tnum { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 640; }
.ac-demand-k { display: flex; flex-wrap: wrap; gap: .4rem; }
.ac-demand-k span { font-size: .68rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ac-demand-k span + span { color: var(--muted); }
.ac-demand-k span + span::before { content: "·"; margin-right: .4rem; color: var(--line-2); }
.ac-demand-p { margin: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-size: .92rem; line-height: 1.6; flex: 1; }
.ac-demand-tip { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.ac-demand-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; }
.ac-demand-a a { font-size: .86rem; font-weight: 560; color: var(--ink); }
.ac-demand-a a:hover { color: var(--accent-text); }
[data-copy].is-copied { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ac-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 2.4rem; }
.ac-goal { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .16s ease, transform .16s ease; }
.ac-goal small { font-size: .7rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ac-goal span { font-family: var(--font-display); font-size: 1.02rem; font-weight: 560; line-height: 1.35; color: var(--ink); }
.ac-goal:hover { border-color: var(--ink); transform: translateY(-1px); }
.ac-letters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.ac-letters a { display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-weight: 600; color: var(--ink); }
.ac-letters a:hover { border-color: var(--ink); }
.ac-gloss { display: grid; gap: 2.2rem; }
.ac-gloss-l { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.5rem; scroll-margin-top: 6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.ac-gloss-l:first-child { padding-top: 0; border-top: 0; }
.ac-gloss-h { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--accent-text); }
.ac-gloss dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.4rem; }
.ac-gloss dt { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.ac-gloss dd { margin: 0; }
.ac-gloss dd p { margin: 0 0 .5rem; line-height: 1.6; color: var(--ink-soft); }
.ac-gloss dd a { font-size: .86rem; font-weight: 560; color: var(--accent-text); }
.ac-trust { display: grid; }
.ac-trust-q { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.4rem; padding: 2.4rem 0; border-top: 1px solid var(--line); }
.ac-trust-q:first-child { border-top: 0; padding-top: 0; }
.ac-trust-q h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.ac-trust-a { margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink); }
.ac-trust-check { display: grid; gap: .3rem; margin: 0 0 1.1rem; padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); line-height: 1.55; color: var(--ink-soft); }
.ac-trust-check b { font-size: .7rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ac-trust-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ac-trust-links a { font-size: .9rem; font-weight: 560; color: var(--ink); }
.ac-trust-links a:hover { color: var(--accent-text); }
@media (max-width: 860px) { .ac-trust-q { grid-template-columns: 1fr; gap: 1rem; } }
@media (max-width: 1060px) { .ac-quick, .ac-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ac-quick, .ac-goals, .ac-gloss dl { grid-template-columns: 1fr; }
  .ac-filters .seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); width: 100%; }
  .ac-filters .seg button { border-left: 0 !important; padding: .62rem .5rem; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
  .ac-filters .seg button[aria-pressed="true"] { background: var(--ink); }
  .ac-gloss-l { grid-template-columns: 1fr; gap: .8rem; }
  .ac-gloss-h { font-size: 2.2rem; }
}

@media print {
  .hdr, .mmenu, footer, .ac-cert-actions, .ac-cert-missing { display: none !important; }
  body { background: #fff; }
  .ac-cert { box-shadow: none; }
}
