/* Skill landing pages (Prism, Plume): shared styles.
   Needs the goua.la design system tokens (assets/ds/colors_and_type.css) loaded first.
   Dark only. Purple (#9045CF) only on hovers, the active chip and the one "do first" box. */

/* ── Base ───────────────────────────────────────────────────────── */
html, body { margin: 0; background: #191919; color: #f2f2f2; }
body { font-family: var(--font-body); overflow-x: hidden; }
p { margin: 0; color: inherit; line-height: inherit; }
a { color: #f2f2f2; text-decoration: none; }
a:hover { color: #9045CF; }
h1, h2, h3 { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f2f2f2; outline-offset: 3px; border-radius: 4px; }
.sp-icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections: 1200px grid, 24px gutters, 96px between sections */
.sp-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; box-sizing: border-box; }
.sp-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 32px; max-width: 720px; }
.sp-eyebrow { font-size: 14px; font-weight: 500; color: #919191; }
.sp-h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.02em; color: #f2f2f2; }
.sp-lead { font-size: 17px; line-height: 1.625; color: #a3a3a3; text-wrap: pretty; }
.sp-muted { font-size: 14px; line-height: 1.6; color: #919191; text-wrap: pretty; }

/* ── Buttons and text links ─────────────────────────────────────── */
.sp-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 9999px; box-sizing: border-box; font-family: var(--font-title); font-weight: 700; font-size: 16px; white-space: nowrap; transition: background-color 200ms cubic-bezier(0.4,0,0.2,1), color 200ms cubic-bezier(0.4,0,0.2,1), border-color 200ms cubic-bezier(0.4,0,0.2,1); }
.sp-btn .sp-icon { font-size: 18px; }
.sp-btn--primary { background: #f2f2f2; color: #191919; }
.sp-btn--primary:hover { background: #9045CF; color: #f2f2f2; }
.sp-btn--ghost { border: 1px solid #404040; background: rgba(25,25,25,0.4); color: #f2f2f2; }
.sp-btn--ghost:hover { border-color: #f2f2f2; color: #f2f2f2; }
.sp-btn__tag { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: #FFBA49; }
.sp-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-title); font-weight: 700; font-size: 15px; color: #f2f2f2; }
.sp-link:hover { color: #9045CF; }
.sp-pill { display: inline-flex; align-self: flex-start; font-size: 12px; padding: 2px 10px; border-radius: 9999px; background: rgba(255,186,73,0.12); color: #FFBA49; }

/* ── Hero (EditorialHero) ───────────────────────────────────────── */
.sp-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.sp-hero__media { position: absolute; inset: 0; will-change: transform; }
.sp-hero__img { position: absolute; transition: opacity 1600ms cubic-bezier(0.4,0,0.2,1), transform 3200ms cubic-bezier(0.16,1,0.3,1); }
.sp-hero__shade { position: absolute; inset: 0; transition: opacity 1200ms cubic-bezier(0.4,0,0.2,1); }
.sp-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(25,25,25,0) 0%, #191919 100%); }
.sp-hero__copy { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; will-change: transform, opacity; }
.sp-hero__inner { display: flex; flex-direction: column; gap: 24px; }
.sp-hero__t { transition: opacity 600ms cubic-bezier(0.4,0,0.2,1), transform 600ms cubic-bezier(0.4,0,0.2,1); }
.sp-hero__t:nth-child(3) { transition-delay: 140ms; }
.sp-hero__t:nth-child(4) { transition-delay: 260ms; }
.sp-hero__t:nth-child(5) { transition-delay: 380ms; }
.js .sp-hero__img { opacity: 0; transform: scale(1.06); }
.js .sp-hero__shade { opacity: 0; }
.js .sp-hero__t { opacity: 0; transform: translateY(8px); }
.sp-hero.is-in .sp-hero__img { opacity: 1; transform: none; }
.sp-hero.is-on .sp-hero__shade, .sp-hero.is-on .sp-hero__t { opacity: 1; transform: none; }
.sp-kicker { font-size: 14px; font-weight: 500; color: #d9d9d9; }
.sp-hero h1 { font-family: var(--font-title); font-weight: 700; font-size: clamp(2.75rem, 1.5rem + 5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em; color: #f2f2f2; }
.sp-tagline { font-family: var(--font-title); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.01em; color: #f2f2f2; text-wrap: pretty; }
.sp-sub { font-size: 17px; line-height: 1.625; color: #d9d9d9; text-wrap: pretty; }
.sp-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 8px; }
.sp-actions__buttons, .sp-actions__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.sp-actions__buttons { gap: 12px; }

/* ── In short (KeyPoints, from the article template's "En bref") ── */
.sp-keypoints { max-width: 800px; box-sizing: border-box; padding: 24px; background: #202020; border: 1px solid #262626; border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.sp-keypoints__title { font-family: var(--font-title); font-weight: 700; font-size: 16px; }
.sp-keypoints ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: kp; }
.sp-keypoints li { counter-increment: kp; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.55; color: #d4d4d4; }
.sp-keypoints li::before { content: counter(kp); color: #919191; font-variant-numeric: tabular-nums; }

/* ── Statement (FramedMoment) ───────────────────────────────────── */
.sp-frame { box-sizing: border-box; min-height: min(420px, 60vh); display: flex; align-items: center; justify-content: center; padding: 48px 32px; border: 1px solid #262626; border-radius: 24px; background-color: #1c1c1c; background-image: radial-gradient(#262626 1px, transparent 1px); background-size: 24px 24px; }
.sp-statement { max-width: 22ch; text-align: center; font-family: var(--font-title); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; color: #f2f2f2; }
.sp-statement span { color: #919191; }

/* ── For / Not for (Comparison of StatusRows) ───────────────────── */
.sp-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.sp-compare h2 { font-family: var(--font-title); font-weight: 700; font-size: 20px; padding-bottom: 16px; }
.sp-compare ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #262626; }
.sp-compare li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid #262626; font-size: 16px; line-height: 1.5; color: #e5e5e5; }
.sp-compare li svg { width: 20px; height: 20px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-compare .is-yes svg { stroke: #34BEAE; }
.sp-compare .is-no svg { stroke: #FF5E5E; }

/* ── Step scroller (pinned "How it works") ──────────────────────── */
.sp-steps { position: relative; }
.js .sp-steps { height: 480vh; }
.sp-steps__pin { position: relative; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding: 48px; background: #202020; border: 1px solid #262626; border-radius: 24px; }
.js .sp-steps__pin { position: sticky; top: 48px; height: calc(100vh - 96px); min-height: 560px; overflow: hidden; }
.sp-steps__text { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; gap: 24px; }
.sp-steps__stack { display: grid; gap: 32px; }
.sp-step { display: flex; flex-direction: column; gap: 12px; }
.js .sp-steps__stack { gap: 0; }
.js .sp-step { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 300ms cubic-bezier(0.4,0,0.2,1), transform 300ms cubic-bezier(0.4,0,0.2,1); }
.js .sp-step.is-before { transform: translateY(-12px); }
.js .sp-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sp-step__n { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: #919191; }
.sp-step h3 { font-family: var(--font-title); font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.sp-step p { font-size: 17px; line-height: 1.625; color: #a3a3a3; text-wrap: pretty; }
.sp-step .sp-step__aside { font-size: 15px; line-height: 1.6; color: #919191; }
.sp-legend { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.sp-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.sp-legend b { font-family: var(--font-title); font-weight: 700; margin-right: 6px; }
.sp-legend span { color: #a3a3a3; }
.sp-dot { width: 10px; height: 10px; border-radius: 9999px; box-sizing: border-box; background: var(--c, #f2f2f2); }
.sp-dot--ring { background: transparent; border: 1.5px dashed var(--c, #737373); }
.sp-bars { display: flex; gap: 6px; }
.sp-bars span { height: 3px; flex: 1; border-radius: 9999px; background: #404040; transition: background-color 300ms cubic-bezier(0.4,0,0.2,1); }
.sp-bars span.is-done { background: #f2f2f2; }
.sp-steps__art { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.sp-diagram { height: 100%; max-width: 100%; aspect-ratio: 600 / 960; position: relative; container-type: inline-size; }
.sp-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--font-title); }
/* Diagram parts: [data-n] appears at step n; .sp-draw lines draw in */
.js .sp-diagram [data-n] { opacity: 0; transition: opacity 500ms cubic-bezier(0.4,0,0.2,1); }
.js .sp-diagram [data-n].is-shown { opacity: 1; }
.js .sp-diagram .sp-draw { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms cubic-bezier(0.4,0,0.2,1); }
.js .sp-diagram .sp-draw.is-shown { stroke-dashoffset: 0; }
.sp-diagram__labels { position: absolute; inset: 0; pointer-events: none; }
.sp-diagram__labels [data-n] { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--font-title); }

/* ── Tabs (install platforms, question stages, marked draft) ────── */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9999px; border: 1px solid #404040; background: transparent; color: #a3a3a3; font: 500 14px/1 var(--font-body); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.sp-chip:hover { color: #f2f2f2; }
.sp-chip[aria-selected="true"] { border-color: #9045CF; background: rgba(144,69,207,0.12); color: #fff; }
.sp-tab { height: 40px; padding: 0 20px; border-radius: 9999px; border: 1px solid #404040; background: transparent; color: #f2f2f2; font-family: var(--font-title); font-weight: 700; font-size: 15px; cursor: pointer; transition: all 200ms cubic-bezier(0.4,0,0.2,1); }
.sp-tab[aria-selected="true"] { background: #f2f2f2; border-color: #f2f2f2; color: #191919; }
[role="tabpanel"][hidden] { display: none; }

/* ── Install ────────────────────────────────────────────────────── */
.sp-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 24px; }
.sp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: shot; }
.sp-shots li { counter-increment: shot; display: flex; flex-direction: column; gap: 14px; font-family: var(--font-title); font-weight: 700; font-size: 18px; }
.sp-shots li::before { content: counter(shot); order: 1; font-size: 14px; color: #919191; }
.sp-shots li > span { order: 2; }
.sp-shot { order: 0; aspect-ratio: 16 / 10; border: 1px dashed #404040; border-radius: 12px; background: #202020; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: #919191; overflow: hidden; }
.sp-shot img { width: 100%; height: 100%; object-fit: cover; }
.sp-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-top: 32px; }
.sp-stack { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.sp-body { font-size: 16px; line-height: 1.6; color: #d9d9d9; text-wrap: pretty; }
.sp-h4 { font-family: var(--font-title); font-weight: 700; font-size: 18px; }
.sp-code { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: #202020; border: 1px solid #262626; border-radius: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.7; color: #f2f2f2; overflow-x: auto; white-space: pre; }
.sp-note { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border: 1px solid #404040; border-radius: 12px; }
.sp-note b { font-family: var(--font-title); font-weight: 700; font-size: 16px; }
.sp-note p { font-size: 15px; line-height: 1.6; color: #a3a3a3; text-wrap: pretty; }

/* Callout (tip): lightbulb teal, no disc behind the icon */
.sp-callout { max-width: 720px; margin-top: 56px; box-sizing: border-box; padding: 24px; background: #202020; border: 1px solid #262626; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-callout__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 16px; }
.sp-callout__title svg { width: 20px; height: 20px; fill: none; stroke: #34BEAE; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-callout p:last-child { font-size: 16px; line-height: 1.6; color: #d9d9d9; text-wrap: pretty; }

/* ── Panel (context / voice pack): one card, two columns ─────────── */
.sp-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 48px; background: #202020; border: 1px solid #262626; border-radius: 24px; align-items: center; }
.sp-panel__text { display: flex; flex-direction: column; gap: 16px; }
.sp-panel__text p { font-size: 16px; line-height: 1.625; color: #a3a3a3; text-wrap: pretty; }
.sp-panel__text .sp-muted { font-size: 15px; }
.sp-panel__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ── FAQ (native details/summary: works without JS) ─────────────── */
.sp-faq { max-width: 800px; }
.sp-faq details { border-top: 1px solid #262626; }
.sp-faq details:last-child { border-bottom: 1px solid #262626; }
.sp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-family: var(--font-title); font-weight: 700; font-size: 18px; color: #f2f2f2; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary:hover { color: #d9d9d9; }
.sp-faq summary .sp-icon { font-size: 18px; color: #919191; }
.sp-faq summary .is-minus, .sp-faq details[open] summary .is-plus { display: none; }
.sp-faq details[open] summary .is-minus { display: inline-block; }
.sp-faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.625; color: #a3a3a3; text-wrap: pretty; }

/* ── Credits ────────────────────────────────────────────────────── */
.sp-credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; padding-top: 48px; border-top: 1px solid #262626; }
.sp-credits dl { margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.6; color: #a3a3a3; }
.sp-credits dt { font-size: 14px; font-weight: 500; color: #919191; }
.sp-credits dd { margin: 4px 0 0; }
.sp-credits dd a { color: #f2f2f2; text-decoration: underline; text-underline-offset: 3px; }
.sp-credits dd a:hover { color: #9045CF; }
.sp-credits__links { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 8px; }

/* ── Small screens ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sp-section { padding-bottom: 72px; }
  .sp-compare, .sp-panel { grid-template-columns: minmax(0, 1fr); }
  .sp-panel { padding: 32px 24px; gap: 32px; }
  .sp-steps__pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 24px; }
  .js .sp-steps__pin { top: 16px; height: calc(100vh - 32px); min-height: 0; }
  .sp-steps__text { gap: 16px; }
  .sp-step h3 { font-size: 24px; }
  .sp-step p { font-size: 15px; }
  .sp-legend li { font-size: 13px; }
  .sp-legend span { display: none; }
  .sp-frame { padding: 40px 24px; }
}

/* ── Reduced motion: no entrance, no parallax, instant swaps ────── */
@media (prefers-reduced-motion: reduce) {
  .sp-hero__img, .sp-hero__shade, .sp-hero__t, .sp-step, .sp-diagram [data-n], .sp-diagram .sp-draw { transition: none !important; }
}
