/* The start page in one material (as the sub pages, pages.css): plain white, the content directly on it, set in the sans. The sky is the first screen and the last call;
   nothing lies on a sheet, so a demo's window and a grey tile are the only boxes. Loaded after sections.css; it replaces the sheets and the print voice. */
:root { --serif: var(--sans); --display: var(--sans); }
html { background: #fff; }
body::before, body::after {
  position: absolute; height: max(1080px, 135vh);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);
}
body::before { background-image: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 24%, var(--sky-2) 52%, var(--sky-3) 80%, #fff 100%); }

/* Type: one family, semibold heads, tight tracking, no italics */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; }
.wordmark { font-weight: 600; letter-spacing: -0.03em; }
.section h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.04; }
.section-lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; }
.part-head h3 { font: 600 clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem)/1.08 var(--sans); letter-spacing: -0.035em; }
.part-lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.4; }
:is(.part-note, .footer-note, .jump-title) { font-style: normal; }
.path strong, .faq summary { font-weight: 600; letter-spacing: -0.02em; }

/* No sheets: sections are separated by air, chapters by more of it */
.section::before, .site-footer::before, .section:has(.part) > .wrap::before, .section:has(.part) > .wrap > .part + .part::before { display: none; }
.section, .section:has(.part) { padding: var(--s7) 0; }
.section:has(.part) > .wrap > .section-head { padding-top: 0; }
.section:has(.part) > .wrap > .section-head + .part { padding-bottom: 0; }
.part, .section:has(.part) > .wrap > .part + .part { padding: 0; border-top: 0; }
.section:has(.part) > .wrap > .part + .part { margin-top: var(--s8); }
.site-footer { padding: var(--s6) 0; border-top: 1px solid var(--rule); }

/* The last call is a tile of sky: the brand's one picture, held in a box like every other */
.sky-final {
  margin: var(--s5) var(--sheet-min) var(--s5); padding: var(--s7) 0 var(--s6); border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 34%, var(--sky-2) 68%, var(--sky-3) 100%);
}
.sky-final::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0.55; transform: scaleX(-1);
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('img/kit/sky-desktop.webp') center top / cover no-repeat;
}
@media (min-width: 900px) { .sky-final { margin-inline: var(--s3); border-radius: 44px; } }
@media (forced-colors: active) { .sky-final { border: 1px solid CanvasText; } }
.hero h1, .final-title h2 { font-weight: 600; letter-spacing: -0.04em; }

/* Heads: centred, one large line and at most one grey line. A chapter's head the same, a size down, with no numeral */
.section-head, .section:has(.part) > .wrap > .section-head { display: block; max-width: 46rem; margin: 0 auto var(--s6); text-align: center; }
.section-head h2 { text-box: none; text-wrap: balance; }
.section-head .section-lede { max-width: 30em; margin: var(--s2) auto 0; text-box: none; text-wrap: balance; }
.part-head, .quality .part-head { display: block; max-width: 44rem; margin: 0 auto var(--s4); text-align: center; }
.part-head h3 { text-box: none; text-wrap: balance; }
.part-head > :is(h3, .part-lede, .part-note), .quality .part-head > :is(h3, .part-lede, .part-note) { margin-left: auto; margin-right: auto; }
.part-lede { max-width: 32em; margin-top: 12px; text-wrap: balance; }
.part-note { max-width: 36em; margin-top: 12px; font-size: 15px; line-height: 1.5; text-wrap: balance; }
.quality .part-head::before { display: none; }
.quality .part-stage .dk-demo.dk-live > :is(.dk-marks, .dk-steps) { margin-left: 0; }
.stage-fine { max-width: 40em; margin: var(--s3) auto 0; color: var(--ink-2); font: 400 14px/1.5 var(--sans); text-align: center; text-wrap: balance; }

/* The tabs: one segmented control, centred. No group name is shown; each tab's accessible name carries its group ("Ändra: Rita") */
.showcase-body { --label-h: 0px; }
.tab-group-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tab[aria-selected="true"] { font-weight: 600; letter-spacing: -0.01em; }
.tab-glide { background: #fff; box-shadow: 0 0 0 0.5px rgba(27, 32, 38, 0.08), 0 1px 2px rgba(27, 32, 38, 0.1), 0 4px 12px -4px rgba(27, 32, 38, 0.14); }
@container showcase (min-width: 761px) {
  .tabs-bar { display: flex; justify-content: center; margin-inline: 0; }
  .showcase-body .tablist { display: flex; align-items: center; column-gap: 0; width: max-content; max-width: 100%; min-height: 44px; padding: 0 2px; border-radius: var(--radius-pill); background: var(--tile); }
  .showcase-body .tab-group { margin-left: 0; padding-top: 0; }
  .showcase-body .tab-group + .tab-group::before { content: ''; width: 1px; height: 18px; margin: 0 6px; background: var(--line-strong); opacity: 0.6; }
}

/* The demo bar: progress as short bars (the step on is in the app's accent), then the caption, then two round buttons. No numerals */
main .dk-demo.dk-live > .dk-marks { margin-left: 0; }
.dk-marks ol { top: 0; gap: 4px; }
.dk-marks li { width: 20px; height: 28px; font-size: 0; color: transparent; }
.dk-marks li::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: rgba(27, 32, 38, 0.14); transition: background-color 0.25s ease; }
.dk-marks li.is-done::before, .dk-marks .is-end li::before { background: var(--ink); }
.dk-marks li.is-now::before { background: var(--app-accent); }
main .dk-demo.dk-live > .dk-control, .tabs-next { border-radius: var(--radius-pill); }

/* The facts under a demo: short blocks side by side, no letters */
.ticks, .ticks-grid, .ticks-quad, .ticks-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s3) var(--s4); max-width: none; counter-reset: none; }
.ticks li, :is(.ticks-grid, .ticks-quad) li { padding: var(--s2) 0 0; border: 0; border-top: 1px solid var(--rule); color: var(--ink-2); font: 400 16px/1.5 var(--sans); }
.ticks li:last-child, .ticks-grid li:nth-last-child(2), .ticks-quad li:nth-last-child(2) { border-bottom: 0; }
.ticks li::before { display: none; }
.ticks em { color: var(--ink); }
.part-stage + .ticks { margin-top: var(--s4); }

/* Frågor: centred, one column */
.faq-wrap { display: block; max-width: calc(760px + 2 * var(--gutter)); }
.faq-wrap h2 { margin-bottom: var(--s5); text-align: center; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.faq-list { margin-top: 0; }
#skolan-igang .actions { justify-content: center; }
#skolan-igang .steps { margin-bottom: var(--s2); }
.section:has(.part) > .wrap > .section-head { margin-bottom: var(--s7); }

/* The rest before the next demo: Nästa fills from the left for as long as it lasts (autoplay.css gives the clock), no pen line */
.tabs-next[data-resting]::after {
  left: 0; right: 0; top: 0; bottom: 0; height: auto; clip-path: inset(0 round 999px);
  background: linear-gradient(rgba(27, 32, 38, 0.1), rgba(27, 32, 38, 0.1)) 0 0 / 0% 100% no-repeat;
}
.part-stage + .stage-fine { margin-top: var(--s2); }
.stage-fine + .ticks { margin-top: var(--s4); }
.part-head, .quality .part-head { margin-bottom: var(--s3); }
