/* The Install page. Colours, gradient, shadows and font names come from grunden-tokens.css (the
   sidebars' own tokens), so light and dark are the tokens' business, not this file's.
   Plain CSS file only: a strict policy allows no <style> and no style attributes. */

/* The same files the sidebars bundle (Latin subset), copied next to this page by the build. */
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Onest Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--slate-12); font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-underline-offset: 3px; }

/* Language and platform: every text is written for both and for each platform; the rest hides. */
html[lang="sv"] [data-l="en"], html[lang="en"] [data-l="sv"] { display: none; }
html[data-platform="mac"] [data-p]:not([data-p~="mac"]),
html[data-platform="windows"] [data-p]:not([data-p~="windows"]),
html[data-platform="web"] [data-p]:not([data-p~="web"]) { display: none; }
/* Switches do nothing without the script, so they are not shown without it. */
html:not(.js) .needs-js { display: none; }
/* The guess note goes once the visitor has chosen. */
html[data-platform-from="chosen"] .guess-note { display: none; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 56px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 8px; }

.wordmark { font-family: var(--font-heading); font-size: 16px; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }
.wordmark i { font-style: normal; font-weight: 700; margin-left: 0.04em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* One class per letter weight: the markup carries no style attribute (a strict policy allows none). */
.wordmark .w200 { font-weight: 200; } .wordmark .w300 { font-weight: 300; } .wordmark .w400 { font-weight: 400; } .wordmark .w500 { font-weight: 500; } .wordmark .w600 { font-weight: 600; } .wordmark .w700 { font-weight: 700; }

/* A pill switch: the SV/EN one and the platform one. */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--muted); }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--slate-11); }
.seg.scope button { padding: 5px 16px; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--slate-12); box-shadow: var(--shadow-border); }

h1 { font-family: var(--font-heading); font-weight: 500; font-size: 38px; line-height: 1.1; letter-spacing: -0.02em; margin: 40px 0 12px; text-wrap: balance; }
h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--soft); margin: 0 0 10px; max-width: 600px; }
.need { font-size: 13px; color: var(--slate-11); margin: 0 0 28px; }

.platform { margin-bottom: 18px; }
.hint { font-size: 12px; color: var(--slate-10); margin-left: 8px; }

.card { background: var(--raised); border-radius: 16px; box-shadow: var(--shadow-border); padding: 20px 22px; margin-bottom: 14px; }
.card h2, .card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.card h3 { font-size: 16px; }
.label { font-size: 12px; font-weight: 600; color: var(--slate-11); margin-bottom: 0; }
.it .row { margin-top: 4px; }
a.pill { text-decoration: none; }
.code-inline { font-family: var(--font-mono); font-size: 12px; background: var(--muted); color: var(--slate-12); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.num { width: 24px; height: 24px; border-radius: 999px; background: var(--grad-brand); color: var(--grad-brand-fg); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.card p, .card ol, .card ul { margin: 6px 0; color: var(--soft); }
.card ol { padding-left: 20px; }
.card ul.plain { padding-left: 18px; }
.card li + li { margin-top: 4px; }
.small { font-size: 13px; color: var(--slate-11); }
.alt { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--slate-11); }

.row { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
/* A line to copy. .ink is the inverted one for a command (ticket #60). */
.code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; background: var(--muted); color: var(--slate-12); padding: 9px 12px; border-radius: 10px; overflow-x: auto; white-space: nowrap; }
.code.ink { background: var(--slate-12); color: var(--slate-1); }

.pill { height: 32px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; transition: filter 150ms var(--ease-power3-out); }
.pill:hover { filter: brightness(var(--hover-brightness)); }
.pill.primary { background: var(--grad-brand); color: var(--grad-brand-fg); box-shadow: var(--btn-primary-shadow); min-width: 104px; }
.pill.quiet { background: transparent; color: var(--slate-11); box-shadow: inset 0 0 0 1px var(--border); }

/* The IT section (ticket #61). Empty, it would take no room. */
.it { margin-top: 36px; }
.it:empty { display: none; }
.it-title { font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-10); margin: 0 0 12px; }

/* /approved: one outcome at a time. No script, no data-state: the neutral text. */
.outcome { margin-top: 40px; }
.outcome h1 { margin-top: 0; font-size: 30px; }
.outcome [data-o] { display: none; }
#outcome:not([data-state]) [data-o="neutral"], #outcome[data-state="approved"] [data-o="approved"],
#outcome[data-state="cancelled"] [data-o="cancelled"], #outcome[data-state="error"] [data-o="error"] { display: block; }

.foot { margin-top: 40px; font-size: 12px; color: var(--slate-10); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px 40px; }
  h1 { font-size: 30px; margin-top: 28px; }
  .lead { font-size: 16px; }
  .card { padding: 16px; }
}
