/* QuickSquad Web: base styles, bands and components (QuickSquadContent/conventions/web-design.md).
   Every colour and size comes from tokens.css; this file never names a colour value. Mobile first. */

/* ---------- Fonts (self-hosted, OFL) ---------- */

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/baloo-bhaijaan-2-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/baloo-bhaijaan-2-latin-800-normal.woff2') format('woff2');
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: Lato;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/lato-latin-900-normal.woff2') format('woff2');
}

/* ---------- Context variables ----------
   Bands and white cards set these; components read them, so the same component works on every band. */

:root {
  --qs-gutter: var(--qs-space-gutter);
  --qs-heading-color: var(--qs-text-heading);
  --qs-link-color: var(--qs-color-navy);
  --qs-link-hover-color: var(--qs-color-navy-deep);
  --qs-eyebrow-color: var(--qs-color-orange-text);
  --qs-muted-color: var(--qs-text-muted);
  --qs-focus-ring: var(--qs-color-navy-deep);
  --qs-focus-gap: var(--qs-surface-white);
  --qs-elevation: 0 0 0 0 transparent;
  /* Sizes the token file does not name, kept in one place. */
  --qs-layout-narrow: 860px;
  --qs-current-underline: 3px;
  --qs-phone-width: 200px;
  --qs-placeholder-height: 300px;
  --qs-app-box-fragment-width: 280px;
}

@media (max-width: 359.98px) {
  :root {
    --qs-gutter: var(--qs-space-4);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--qs-space-6);
}

body {
  margin: 0;
  background: var(--qs-surface-white);
  color: var(--qs-text-body);
  font-family: var(--qs-type-body-family);
  font-size: var(--qs-type-body-size);
  font-weight: var(--qs-type-body-weight);
  line-height: var(--qs-type-body-line);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--qs-heading-color);
  font-family: var(--qs-font-heading);
  font-weight: var(--qs-type-h2-weight);
  text-wrap: balance;
}

h1 {
  font-size: var(--qs-type-page-title-size);
  line-height: var(--qs-type-page-title-line);
}

h2 {
  font-size: var(--qs-type-h2-size);
  line-height: var(--qs-type-h2-line);
}

h3 {
  font-size: var(--qs-type-card-title-size);
  line-height: var(--qs-type-card-title-line);
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--qs-link-color);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--qs-link-hover-color);
}

strong,
b {
  font-weight: 900;
}

button {
  font: inherit;
}

/* The visible focus ring: 2 px navy-deep with a 2 px white gap (swapped on the dark bands). */
:focus-visible {
  outline: var(--qs-border-width-strong) solid var(--qs-focus-ring);
  outline-offset: var(--qs-border-width-strong);
  box-shadow: 0 0 0 var(--qs-border-width-strong) var(--qs-focus-gap), var(--qs-elevation);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Text styles from the type scale, for elements whose level and look differ. */
.qs-display {
  font-family: var(--qs-type-display-family);
  font-size: var(--qs-type-display-size);
  line-height: var(--qs-type-display-line);
  letter-spacing: -0.01em;
}

.qs-page-title {
  font-family: var(--qs-type-page-title-family);
  font-size: var(--qs-type-page-title-size);
  line-height: var(--qs-type-page-title-line);
}

.qs-h2 {
  font-size: var(--qs-type-h2-size);
  line-height: var(--qs-type-h2-line);
}

.qs-lead,
.lead {
  font-size: var(--qs-type-lead-size);
  line-height: var(--qs-type-lead-line);
  max-width: 40em;
}

.qs-small {
  font-size: var(--qs-type-small-size);
  line-height: var(--qs-type-small-line);
}

.qs-meta {
  color: var(--qs-muted-color);
  font-size: var(--qs-type-meta-size);
  font-weight: var(--qs-type-meta-weight);
  line-height: var(--qs-type-meta-line);
}

.qs-stack {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-5);
}

.qs-stack--tight {
  gap: var(--qs-space-3);
}

.qs-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-3);
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--qs-space-6);
}

/* Skip link: off-screen until focused. */
.qs-skip-link {
  position: absolute;
  top: var(--qs-space-2);
  left: var(--qs-space-2);
  z-index: 100;
  padding: var(--qs-space-3) var(--qs-space-4);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-button);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
  font-weight: 900;
  transform: translateY(-200%);
}

.qs-skip-link:focus {
  transform: none;
}

/* ---------- Bands ---------- */

.qs-band {
  position: relative;
  overflow: hidden;
  background: var(--qs-band-bg);
  color: var(--qs-band-text);
}

.qs-band__inner {
  position: relative;
  width: 100%;
  max-width: var(--qs-layout-container);
  margin-inline: auto;
  padding-inline: var(--qs-gutter);
}

.qs-band__inner--narrow {
  max-width: calc(var(--qs-layout-narrow) + 2 * var(--qs-gutter));
}

.qs-band__inner--text {
  max-width: calc(var(--qs-layout-article-text) + 2 * var(--qs-gutter));
}

.qs-band--space-major > .qs-band__inner { padding-block: var(--qs-section-major); }
.qs-band--space-pitch > .qs-band__inner { padding-block: var(--qs-section-pitch); }
.qs-band--space-feature-row > .qs-band__inner { padding-block: var(--qs-section-feature-row); }
.qs-band--space-minor > .qs-band__inner { padding-block: var(--qs-section-minor); }
.qs-band--space-compact > .qs-band__inner { padding-block: var(--qs-section-compact); }

@media (max-width: 639.98px) {
  .qs-band--space-major > .qs-band__inner,
  .qs-band--space-pitch > .qs-band__inner,
  .qs-band--space-feature-row > .qs-band__inner { padding-block: var(--qs-section-compact); }
  .qs-band--space-minor > .qs-band__inner { padding-block: var(--qs-space-12); }
  .qs-band--space-compact > .qs-band__inner { padding-block: var(--qs-space-10); }
}

.qs-band--white {
  --qs-band-bg: var(--qs-band-white-bg);
  --qs-band-text: var(--qs-band-white-text);
}

.qs-band--hero {
  --qs-band-bg: var(--qs-band-hero-bg);
  --qs-band-text: var(--qs-band-hero-text);
  --qs-lines-stroke: var(--qs-band-hero-lines-stroke);
  --qs-lines-opacity: var(--qs-band-hero-lines-opacity);
  --qs-lines-width: var(--qs-band-hero-lines-width);
  border-bottom: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
}

.qs-band--sky {
  --qs-band-bg: var(--qs-band-sky-bg);
  --qs-band-text: var(--qs-band-sky-text);
}

.qs-band--salmon {
  --qs-band-bg: var(--qs-band-salmon-bg);
  --qs-band-text: var(--qs-band-salmon-text);
}

.qs-band--pitch {
  --qs-band-bg: var(--qs-band-pitch-bg);
  --qs-band-text: var(--qs-band-pitch-text);
  --qs-lines-stroke: var(--qs-band-pitch-lines-stroke);
  --qs-lines-opacity: var(--qs-band-pitch-lines-opacity);
  --qs-lines-width: var(--qs-band-pitch-lines-width);
}

.qs-band--navy {
  --qs-band-bg: var(--qs-band-navy-bg);
  --qs-band-text: var(--qs-band-navy-text);
  --qs-lines-stroke: var(--qs-band-navy-lines-stroke);
  --qs-lines-opacity: var(--qs-band-navy-lines-opacity);
  --qs-lines-width: var(--qs-band-navy-lines-width);
}

/* Dark bands: white headings, links and eyebrows, and a white focus ring with a navy-deep gap. */
.qs-band--pitch,
.qs-band--navy,
.site-footer {
  --qs-heading-color: var(--qs-text-on-dark);
  --qs-link-color: var(--qs-text-on-dark);
  --qs-link-hover-color: var(--qs-text-on-dark);
  --qs-eyebrow-color: var(--qs-text-on-dark);
  --qs-eyebrow-force: var(--qs-text-on-dark);
  --qs-muted-color: var(--qs-text-on-dark);
  --qs-focus-ring: var(--qs-text-on-dark);
  --qs-focus-gap: var(--qs-color-navy-deep);
}

.qs-band--navy {
  --qs-muted-color: var(--qs-text-on-dark-soft);
}

/* White surfaces inside any band go back to the light context. */
.qs-card,
.qs-featured,
.qs-quiet-card,
.qs-app-fragment,
.qs-team-split--panel,
.qs-callout,
.qs-quote,
.qs-app-box,
.howto__step,
.faq__item,
.qs-prev-next__link,
.qs-language-dropdown,
.language-picker__dropdown {
  --qs-heading-color: var(--qs-text-heading);
  --qs-link-color: var(--qs-color-navy);
  --qs-link-hover-color: var(--qs-color-navy-deep);
  --qs-eyebrow-color: var(--qs-color-orange-text);
  --qs-eyebrow-force: initial;
  --qs-muted-color: var(--qs-text-muted);
  --qs-focus-ring: var(--qs-color-navy-deep);
  --qs-focus-gap: var(--qs-surface-white);
  color: var(--qs-text-body);
}

.qs-band__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.qs-band__lines-stroke {
  fill: none;
  stroke: var(--qs-lines-stroke);
  stroke-width: var(--qs-lines-width);
  opacity: var(--qs-lines-opacity);
  vector-effect: non-scaling-stroke;
}

.qs-band__lines-stroke * {
  vector-effect: non-scaling-stroke;
}

.qs-band__lines-spots {
  fill: var(--qs-lines-stroke);
  opacity: var(--qs-lines-opacity);
}

/* The clipped mowing stripes along the pitch (pitch band only). */
.qs-band__lines-stripes {
  fill: var(--qs-band-pitch-stripes-fill);
  opacity: var(--qs-band-pitch-stripes-opacity);
}

/* A band's heading block: eyebrow, h2 and a lead, at most 720 px wide. */
.qs-section-head {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  max-width: 720px;
}

.qs-section-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--qs-space-4);
  max-width: none;
}

/* ---------- Eyebrow and topic tags ---------- */

/* On the dark bands every tone is white (--qs-eyebrow-force); white surfaces clear the force again. */
.qs-eyebrow {
  color: var(--qs-eyebrow-force, var(--qs-eyebrow-tone, var(--qs-eyebrow-color)));
  font-family: var(--qs-type-eyebrow-family);
  font-size: var(--qs-type-eyebrow-size);
  font-weight: var(--qs-type-eyebrow-weight);
  line-height: var(--qs-type-eyebrow-line);
  letter-spacing: var(--qs-type-eyebrow-tracking);
  text-transform: var(--qs-type-eyebrow-transform);
}

.qs-eyebrow--blue { --qs-eyebrow-tone: var(--qs-color-blue); }
.qs-eyebrow--pitch { --qs-eyebrow-tone: var(--qs-color-pitch); }
.qs-eyebrow--navy { --qs-eyebrow-tone: var(--qs-color-navy); }
.qs-eyebrow--muted { --qs-eyebrow-tone: var(--qs-muted-color); }

.qs-tag {
  display: inline-block;
  align-self: flex-start;
  padding: var(--qs-space-1) var(--qs-space-2);
  border-radius: var(--qs-radius-tag);
  background: var(--qs-tag-bg);
  color: var(--qs-tag-fg);
  font-family: var(--qs-type-tag-family);
  font-size: var(--qs-type-tag-size);
  font-weight: var(--qs-type-tag-weight);
  line-height: var(--qs-type-tag-line);
}

.qs-tag--training-planning { --qs-tag-bg: var(--qs-topic-traningsplanering-bg); --qs-tag-fg: var(--qs-topic-traningsplanering-fg); }
.qs-tag--player-development { --qs-tag-bg: var(--qs-topic-spelarutveckling-bg); --qs-tag-fg: var(--qs-topic-spelarutveckling-fg); }
.qs-tag--team-culture { --qs-tag-bg: var(--qs-topic-lagkultur-bg); --qs-tag-fg: var(--qs-topic-lagkultur-fg); }
.qs-tag--latest { --qs-tag-bg: var(--qs-topic-senaste-bg); --qs-tag-fg: var(--qs-topic-senaste-fg); }
.qs-tag--neutral { --qs-tag-bg: var(--qs-surface-white); --qs-tag-fg: var(--qs-text-heading); }

/* ---------- Buttons ---------- */

.qs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--qs-space-2);
  min-height: var(--qs-control-button-height);
  padding: 0 var(--qs-space-5);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-button);
  box-shadow: var(--qs-elevation);
  font-family: var(--qs-type-button-family);
  font-size: var(--qs-type-button-size);
  font-weight: var(--qs-type-button-weight);
  line-height: var(--qs-type-button-line);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--qs-motion-button) var(--qs-motion-easing), box-shadow var(--qs-motion-button) var(--qs-motion-easing), background-color var(--qs-motion-button) var(--qs-motion-easing);
}

.qs-button--primary {
  --qs-elevation: var(--qs-shadow-cta);
  background: var(--qs-color-navy);
  color: var(--qs-text-on-dark);
}

.qs-button--primary:hover {
  background: var(--qs-color-navy-deep);
  color: var(--qs-text-on-dark);
}

.qs-button--secondary {
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
}

.qs-button--secondary:hover {
  background: var(--qs-surface-hero);
  color: var(--qs-color-navy-deep);
}

.qs-band--pitch .qs-button--secondary {
  --qs-elevation: var(--qs-shadow-sm);
}

.qs-band--navy .qs-button {
  border-color: var(--qs-text-on-dark);
}

.qs-button--flat {
  --qs-elevation: 0 0 0 0 transparent;
}

.qs-button--small {
  min-height: var(--qs-control-min-target);
  padding: 0 var(--qs-space-4);
  font-size: var(--qs-type-small-size);
}

.qs-button--large {
  min-height: var(--qs-space-14);
  padding: 0 var(--qs-space-6);
}

.qs-button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.qs-icon {
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--qs-surface-white);
  border-bottom: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-3) var(--qs-space-8);
  max-width: var(--qs-layout-container);
  margin-inline: auto;
  padding: var(--qs-space-3) var(--qs-gutter);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--qs-space-2);
  min-height: var(--qs-control-min-target);
  text-decoration: none;
}

.site-header__logo {
  width: auto;
  height: var(--qs-control-min-target);
}

.site-header__wordmark {
  color: var(--qs-color-navy);
  font-family: var(--qs-font-heading);
  font-size: var(--qs-type-card-title-size);
  font-weight: 800;
  line-height: 1;
}

.site-header__nav {
  flex: 1 1 100%;
  order: 3;
}

.site-header__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--qs-space-6);
  padding: 0;
  list-style: none;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--qs-control-min-target);
  font-size: var(--qs-type-button-size);
  font-weight: 700;
  text-decoration: none;
}

.site-header__link[aria-current="page"] {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--qs-color-orange);
  text-decoration-thickness: var(--qs-current-underline);
  text-underline-offset: var(--qs-space-2);
}

.site-header__link:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--qs-border-width-strong);
  text-underline-offset: var(--qs-space-2);
}

.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-3);
  margin-left: auto;
}

@media (min-width: 960px) {
  .site-header__nav {
    flex: 1 1 auto;
    order: 0;
  }

  .site-header__actions {
    margin-left: 0;
  }
}

/* ---------- Language selector ---------- */

.language-picker {
  position: relative;
  display: inline-block;
}

/* Without JavaScript: the languages as plain links. */
.language-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-1);
  padding: 0;
  list-style: none;
}

.language-picker__item {
  display: flex;
  align-items: center;
  min-height: var(--qs-control-min-target);
  padding: 0 var(--qs-space-3);
  border-radius: var(--qs-radius-control);
  color: var(--qs-color-navy);
  font-size: var(--qs-type-meta-size);
  font-weight: 700;
  text-decoration: none;
}

.language-picker:not(.language-picker--enhanced) .language-picker__item[aria-current="true"] {
  border: var(--qs-border-width-quiet) solid var(--qs-border-control);
  font-weight: 900;
}

/* With JavaScript: keep the space but hide the links until the button is built (no visible swap). */
.js .language-picker:not(.language-picker--enhanced) .language-picker__list {
  visibility: hidden;
}

.language-picker__button {
  display: inline-flex;
  align-items: center;
  gap: var(--qs-space-2);
  min-height: var(--qs-control-min-target);
  padding: 0 var(--qs-space-3);
  border: var(--qs-border-width-quiet) solid var(--qs-border-control);
  border-radius: var(--qs-radius-control);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy);
  font-size: var(--qs-type-meta-size);
  font-weight: 700;
  cursor: pointer;
}

.language-picker__button:hover {
  border-color: var(--qs-border-strong);
}

.language-picker__label {
  display: inline-flex;
  align-items: center;
  gap: var(--qs-space-2);
}

.language-picker__label em {
  font-style: normal;
}

.language-picker__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.language-picker__button[aria-expanded="true"] .language-picker__icon:last-of-type {
  transform: rotate(180deg);
}

.language-picker__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 200px;
  margin-block: var(--qs-space-1);
  padding: var(--qs-space-1) 0;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-shadow-sm);
  /* display, not visibility: a hidden list must not widen the page on phones. */
  display: none;
}

.language-picker__dropdown .language-picker__list {
  flex-direction: column;
  gap: 0;
}

.language-picker__dropdown--right {
  right: 0;
  left: auto;
}

.language-picker__dropdown--up {
  top: auto;
  bottom: 100%;
}

.language-picker__button[aria-expanded="true"] + .language-picker__dropdown {
  display: block;
}

.language-picker__dropdown .language-picker__item {
  border-radius: 0;
  padding: 0 var(--qs-space-4);
  font-size: var(--qs-type-small-size);
}

.language-picker__dropdown .language-picker__item:hover {
  background: var(--qs-surface-hero);
}

.language-picker__dropdown .language-picker__item:focus-visible {
  outline-offset: calc(-1 * var(--qs-border-width-strong) * 2);
  box-shadow: none;
}

.language-picker__dropdown .language-picker__item[aria-current="true"] {
  justify-content: space-between;
  background: var(--qs-color-navy);
  color: var(--qs-text-on-dark);
  font-weight: 900;
}

.language-picker__dropdown .language-picker__item[aria-current="true"]:focus-visible {
  outline-color: var(--qs-text-on-dark);
}

.language-picker__dropdown .language-picker__item[aria-current="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: var(--qs-space-2);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline stroke-width='2' stroke='black' fill='none' stroke-linecap='round' stroke-linejoin='round' points='1,9 5,13 15,3'/%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 16 16'%3E%3Cpolyline stroke-width='2' stroke='black' fill='none' stroke-linecap='round' stroke-linejoin='round' points='1,9 5,13 15,3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  color: var(--qs-muted-color);
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-meta-line);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-1) var(--qs-space-2);
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--qs-space-2);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  content: "/" / "";
  color: var(--qs-muted-color);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.breadcrumbs__icon {
  display: block;
}

/* ---------- Article cards ---------- */

.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--qs-space-7);
  padding: 0;
  list-style: none;
}

.article-card {
  display: flex;
}

.qs-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-elevation);
  text-decoration: none;
  transition: transform var(--qs-motion-card) var(--qs-motion-easing), box-shadow var(--qs-motion-card) var(--qs-motion-easing);
}

.qs-card:hover,
.qs-featured:hover {
  --qs-elevation: var(--qs-shadow-sm);
  color: var(--qs-text-body);
  transform: translate(-2px, -2px);
}

.qs-card__media {
  display: block;
  height: 220px;
  overflow: hidden;
  border-bottom: var(--qs-border-width-strong) solid var(--qs-border-strong);
}

.qs-card__media img,
.qs-card__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding: var(--qs-space-5);
}

.qs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-2);
}

.qs-card__title {
  font-family: var(--qs-type-card-title-family);
  font-size: var(--qs-type-card-title-size);
  line-height: var(--qs-type-card-title-line);
}

.qs-card__text {
  font-size: var(--qs-type-small-size);
  line-height: var(--qs-type-small-line);
}

.qs-card__meta {
  color: var(--qs-muted-color);
  font-size: var(--qs-type-meta-size);
  font-weight: var(--qs-type-meta-weight);
  line-height: var(--qs-type-meta-line);
}

/* Featured card: on its side, picture left, shadow md. */
.qs-featured {
  --qs-elevation: var(--qs-shadow-md);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-elevation);
  text-decoration: none;
  transition: transform var(--qs-motion-card) var(--qs-motion-easing), box-shadow var(--qs-motion-card) var(--qs-motion-easing);
}

.qs-featured:hover {
  --qs-elevation: var(--qs-shadow-lg);
}

.qs-featured__media {
  display: block;
  flex: 1 1 480px;
  min-height: 240px;
  overflow: hidden;
  border-bottom: var(--qs-border-width-strong) solid var(--qs-border-strong);
}

.qs-featured__media img,
.qs-featured__media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qs-featured__body {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  justify-content: center;
  gap: var(--qs-space-4);
  padding: var(--qs-space-6);
}

.qs-featured__title {
  font-size: var(--qs-type-h3-feature-size);
  line-height: var(--qs-type-h3-feature-line);
}

.qs-featured__text {
  font-size: var(--qs-type-body-size);
  line-height: var(--qs-type-lead-line);
}

@media (min-width: 900px) {
  .qs-featured__media {
    min-height: 320px;
    border-right: var(--qs-border-width-strong) solid var(--qs-border-strong);
    border-bottom: 0;
  }

  .qs-featured__body {
    padding: var(--qs-space-10) var(--qs-space-8);
  }
}

/* Quiet card. */
.qs-quiet-card {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding: var(--qs-space-5);
  border: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
}

.qs-quiet-card--sky {
  border-color: var(--qs-border-sky);
}

.qs-quiet-card__icon {
  color: var(--qs-color-navy);
}

.qs-quiet-card__icon svg {
  display: block;
}

.qs-quiet-card__title {
  font-family: var(--qs-type-card-title-small-family);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: var(--qs-type-card-title-small-weight);
  line-height: var(--qs-type-card-title-small-line);
}

.qs-quiet-card__text {
  font-size: var(--qs-type-small-size);
  line-height: var(--qs-type-small-line);
}

/* ---------- Feature row ---------- */

.qs-feature {
  display: grid;
  align-items: center;
  gap: var(--qs-space-10);
}

.qs-feature__text {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  min-width: 0;
}

.qs-feature__title {
  font-size: var(--qs-type-h3-feature-size);
  line-height: var(--qs-type-h3-feature-line);
}

.qs-feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
}

.qs-feature__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--qs-control-min-target);
  font-size: var(--qs-type-button-size);
  font-weight: 900;
}

.qs-feature__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .qs-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--qs-space-12);
  }

  .qs-feature--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .qs-feature--reverse .qs-feature__visual {
    order: -1;
  }
}

/* ---------- App fragments ---------- */

.qs-app-fragment {
  --qs-elevation: var(--qs-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: var(--qs-space-5);
  overflow: hidden;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-elevation);
}

.qs-app-fragment--flush {
  gap: 0;
  padding: 0;
}

.qs-app-fragment--flat {
  --qs-elevation: 0 0 0 0 transparent;
}

.qs-app-fragment__note {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-meta-line);
}

.qs-app-fragment--flush .qs-app-fragment__note {
  padding: 0 var(--qs-space-4) var(--qs-space-4);
}

/* Team split, panel: team cards on a light panel. */
.qs-team-split--panel {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
  width: 100%;
  margin: 0;
  padding: var(--qs-space-6);
  border: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  border-radius: var(--qs-radius-frame);
  background: var(--qs-surface-hero);
}

.qs-team-split__teams {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-4);
}

.qs-team {
  flex: 1 1 180px;
  overflow: hidden;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
}

.qs-team__header {
  display: flex;
  justify-content: space-between;
  gap: var(--qs-space-2);
  padding: var(--qs-space-2) var(--qs-space-4);
  font-size: var(--qs-type-small-size);
  font-weight: 900;
}

.qs-team--blue .qs-team__header {
  background: var(--qs-color-blue);
  color: var(--qs-text-on-dark);
}

.qs-team--orange .qs-team__header {
  background: var(--qs-color-orange);
  color: var(--qs-color-navy-deep);
}

.qs-team__players {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  padding: var(--qs-space-2) var(--qs-space-4) var(--qs-space-3);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-small-size);
  list-style: none;
}

/* Team split, compact: a small card over a picture. */
.qs-team-split--compact {
  max-width: 260px;
  padding: var(--qs-space-4);
  gap: var(--qs-space-3);
}

.qs-team-split__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--qs-space-2);
}

.qs-team-split__title {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-meta-size);
  font-weight: 900;
}

.qs-team-split__count {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-tag-size);
}

.qs-team-split__columns {
  display: flex;
  gap: var(--qs-space-2);
}

.qs-team-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--qs-space-1);
  padding: var(--qs-space-2);
  border-top: var(--qs-space-1) solid;
  border-radius: var(--qs-radius-tag);
  font-size: var(--qs-type-tag-size);
  line-height: var(--qs-type-tag-line);
}

.qs-team-column--blue {
  border-top-color: var(--qs-color-blue);
  background: var(--qs-surface-blue);
}

.qs-team-column--orange {
  border-top-color: var(--qs-color-orange);
  background: var(--qs-surface-salmon);
}

.qs-team-column__name {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-eyebrow-size);
  font-weight: 900;
}

/* Exercise card. */
.qs-exercise {
  max-width: 380px;
}

.qs-exercise__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  border-bottom: var(--qs-border-width-strong) solid var(--qs-border-strong);
}

.qs-exercise--compact .qs-exercise__media {
  height: 120px;
}

.qs-exercise__media .qs-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qs-exercise__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--qs-space-14);
  height: var(--qs-space-14);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-round);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
}

.qs-exercise--compact .qs-exercise__play {
  width: var(--qs-space-10);
  height: var(--qs-space-10);
}

.qs-exercise__source {
  position: absolute;
  top: var(--qs-space-2);
  left: var(--qs-space-2);
  padding: var(--qs-space-1) var(--qs-space-2);
  border-radius: var(--qs-radius-tag);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-tag-size);
  font-weight: 700;
  line-height: var(--qs-type-tag-line);
}

.qs-exercise__body {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding: var(--qs-space-4);
}

.qs-exercise--compact .qs-exercise__body {
  padding: var(--qs-space-3);
}

.qs-exercise__name {
  color: var(--qs-color-navy-deep);
  font-family: var(--qs-type-card-title-small-family);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: var(--qs-type-card-title-small-weight);
  line-height: var(--qs-type-card-title-small-line);
}

.qs-exercise__text {
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-small-line);
}

.qs-exercise__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-1);
  padding: 0;
  list-style: none;
}

.qs-chip {
  padding: 2px var(--qs-space-2);
  border: var(--qs-border-width-quiet) solid;
  border-radius: var(--qs-radius-tag);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-tag-size);
  font-weight: 700;
  line-height: var(--qs-type-tag-line);
}

.qs-chip--skill {
  border-color: var(--qs-border-sky);
  background: var(--qs-surface-sky);
}

.qs-chip--sport {
  border-color: var(--qs-border-lime);
  background: var(--qs-surface-lime);
}

/* Skill level. */
.qs-skill__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--qs-space-1) var(--qs-space-3);
}

.qs-skill__name {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

.qs-skill__context {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
}

.qs-skill__rating {
  display: flex;
  align-items: center;
  gap: var(--qs-space-3);
}

.qs-skill__track {
  display: block;
  flex: 1;
  height: var(--qs-space-3);
  overflow: hidden;
  border-radius: var(--qs-radius-button);
  background: var(--qs-surface-track);
}

.qs-skill__fill {
  display: block;
  height: 100%;
  background: var(--qs-color-pitch);
}

.qs-skill__value {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-button-size);
  font-weight: 900;
  white-space: nowrap;
}

.qs-skill__line {
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-small-line);
}

.qs-skill__line strong {
  color: var(--qs-color-navy-deep);
}

/* Decorative graphics (cards without pictures). */
.qs-graphic__grass { fill: var(--qs-color-pitch); }
.qs-graphic__line { fill: none; stroke: var(--qs-surface-white); stroke-width: 2; opacity: 0.35; }
.qs-graphic__cones path { fill: var(--qs-color-orange); stroke: var(--qs-color-navy-deep); stroke-width: 1.5; }
.qs-graphic__ball { fill: var(--qs-surface-white); stroke: var(--qs-color-navy-deep); stroke-width: 1.5; }
.qs-graphic__sky { fill: var(--qs-surface-sky); }
.qs-graphic__squares rect { stroke: var(--qs-color-navy-deep); stroke-width: 2; }
.qs-graphic__blue { fill: var(--qs-color-blue); }
.qs-graphic__orange { fill: var(--qs-color-orange); }
.qs-graphic__lime { fill: var(--qs-color-lime); }
.qs-graphic__sun { fill: var(--qs-color-sun); }

/* ---------- Image frame and phone ---------- */

.qs-frame-wrap {
  position: relative;
  width: 100%;
}

.qs-frame-wrap--overlay {
  padding-bottom: var(--qs-space-12);
}

.qs-frame {
  --qs-elevation: var(--qs-shadow-lg);
  overflow: hidden;
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-frame);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-elevation);
}

.qs-frame--flat {
  --qs-elevation: 0 0 0 0 transparent;
}

.qs-frame[style*="--qs-frame-height"] {
  height: var(--qs-frame-height);
}

.qs-frame__image,
.qs-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlays laid over the frame's lower corners. */
.qs-frame-wrap--overlay > .qs-team-split--compact {
  position: absolute;
  left: calc(-1 * var(--qs-space-2));
  bottom: var(--qs-space-1);
  width: min(250px, 70%);
}

@media (max-width: 639.98px) {
  /* On phones the team card sits under the picture instead of covering it. */
  .qs-frame-wrap--overlay > .qs-team-split--compact {
    position: relative;
    left: 0;
    bottom: 0;
    width: auto;
    max-width: 62%;
    margin-top: var(--qs-space-6);
  }
}

/* The screenshots are whole phone mockups (frame and transparent corners included), so the site adds no
   frame of its own: only the soft phone shadow, the one soft shadow in the system. */
.qs-phone {
  display: inline-block;
  width: var(--qs-phone-width);
  max-width: 100%;
  filter: var(--qs-shadow-phone);
}

.qs-phone__screen {
  display: block;
  width: 100%;
  height: auto;
}

.qs-phone--overlay {
  position: absolute;
  right: calc(-1 * var(--qs-space-1));
  bottom: 0;
  width: 32%;
  max-width: var(--qs-phone-width);
}

@media (min-width: 640px) {
  .qs-frame-wrap--overlay > .qs-team-split--compact {
    left: calc(-1 * var(--qs-space-5));
  }

  .qs-phone--overlay {
    right: calc(-1 * var(--qs-space-3));
    bottom: calc(-1 * var(--qs-space-5));
  }
}

/* ---------- Text content ---------- */

/* Body text from the content build. */
.qs-prose {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-5);
  max-width: var(--qs-layout-docs-text);
  min-width: 0;
}

.qs-prose--article {
  max-width: var(--qs-layout-article-text);
  font-size: var(--qs-type-article-body-size);
  line-height: var(--qs-type-article-body-line);
}

.qs-prose > h2 {
  margin-top: var(--qs-space-6);
  font-size: var(--qs-type-h2-docs-size);
  line-height: var(--qs-type-h2-docs-line);
  scroll-margin-top: var(--qs-space-6);
}

.qs-prose--article > h2 {
  font-size: calc(var(--qs-type-h2-docs-size) + 2px);
}

.qs-prose > h3 {
  margin-top: var(--qs-space-3);
  font-family: var(--qs-font-body);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
  line-height: var(--qs-type-card-title-small-line);
}

.qs-prose > ul,
.qs-prose > ol {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding-left: var(--qs-space-6);
}

.qs-prose > p > img,
.qs-prose > figure > img {
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
}

.qs-prose > figure > figcaption {
  margin-top: var(--qs-space-2);
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
  font-style: italic;
}

.qs-prose > dl {
  display: grid;
  grid-template-columns: minmax(0, 160px) 1fr;
  gap: var(--qs-space-2) var(--qs-space-5);
}

.qs-prose > dl > dt {
  color: var(--qs-text-heading);
  font-weight: 900;
}

.qs-prose > dl > dd {
  margin: 0;
}

/* Quote. */
.qs-quote {
  margin-block: var(--qs-space-3);
  padding: var(--qs-space-6) var(--qs-space-7);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-color-sun);
}

.qs-quote__text {
  color: var(--qs-color-navy-deep);
  font-family: var(--qs-font-heading);
  font-size: var(--qs-type-h2-docs-size);
  font-weight: 700;
  line-height: 1.25;
}

.qs-quote__cite {
  margin-top: var(--qs-space-2);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-meta-size);
  font-weight: 700;
}

/* Callout. */
.qs-callout {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  padding: var(--qs-space-4) var(--qs-space-5);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-left: var(--qs-border-width-callout-accent) solid var(--qs-callout-accent);
  border-radius: var(--qs-radius-callout);
  background: var(--qs-callout-bg);
}

.qs-callout--tip { --qs-callout-bg: var(--qs-callout-tips-bg); --qs-callout-accent: var(--qs-callout-tips-accent); }
.qs-callout--good-to-know { --qs-callout-bg: var(--qs-callout-bra-att-veta-bg); --qs-callout-accent: var(--qs-callout-bra-att-veta-accent); }
.qs-callout--note { --qs-callout-bg: var(--qs-callout-observera-bg); --qs-callout-accent: var(--qs-callout-observera-accent); }

.qs-callout__title {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-eyebrow-size);
  font-weight: var(--qs-type-eyebrow-weight);
  line-height: var(--qs-type-eyebrow-line);
  letter-spacing: var(--qs-type-eyebrow-tracking);
  text-transform: var(--qs-type-eyebrow-transform);
}

.qs-callout--note .qs-callout__title {
  color: var(--qs-color-orange-text);
}

.qs-callout__body {
  font-size: var(--qs-type-button-size);
  line-height: var(--qs-type-lead-line);
}

/* App box: last in an article's text, before HowTo (web-design.md, Appruta i artikel). No shadow of its own;
   only the app fragment has one, so it does not compete with the image frame in the article head. */
.qs-app-box-host {
  container-type: inline-size;
}

.qs-app-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--qs-space-7);
  margin-block: var(--qs-space-8) var(--qs-space-4);
  padding: var(--qs-space-7);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-frame);
  background: var(--qs-surface-sky);
}

.qs-app-box__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--qs-space-3);
  min-width: 0;
}

.qs-app-box__text > .qs-eyebrow {
  margin: 0;
}

.qs-app-box__title {
  margin: 0;
  color: var(--qs-text-heading);
  font-family: var(--qs-type-h2-family);
  font-size: var(--qs-type-h2-docs-size);
  font-weight: var(--qs-type-h2-weight);
  line-height: 1.15;
}

.qs-app-box__sentence {
  margin: 0;
  font-size: var(--qs-type-body-size);
  line-height: 1.6;
}

.qs-app-box .qs-store-badges__row {
  margin-top: var(--qs-space-2);
}

.qs-app-box__fragment {
  width: var(--qs-app-box-fragment-width);
  min-width: 0;
}

.qs-app-box__fragment .qs-plan__item .qs-app-list__meta {
  white-space: nowrap;
}

@container (max-width: 700px) {
  .qs-app-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .qs-app-box__fragment {
    width: auto;
  }
}

/* HowTo on the pitch band. */
.howto {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-7);
}

.howto__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--qs-space-4);
  padding: 0;
  list-style: none;
  counter-reset: howto;
}

.howto__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  min-height: calc(var(--qs-space-10) + 2 * var(--qs-space-5));
  padding: var(--qs-space-5) var(--qs-space-5) var(--qs-space-5) calc(var(--qs-space-10) + 2 * var(--qs-space-5) - var(--qs-space-1));
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  counter-increment: howto;
}

.howto__step::before {
  content: counter(howto);
  content: counter(howto) / "";
  position: absolute;
  top: var(--qs-space-5);
  left: var(--qs-space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--qs-space-10);
  height: var(--qs-space-10);
  border-radius: var(--qs-radius-button);
  background: var(--qs-color-navy-deep);
  color: var(--qs-text-on-dark);
  font-family: var(--qs-font-heading);
  font-size: var(--qs-type-card-title-size);
  font-weight: 800;
  line-height: 1;
}

.howto__name {
  font-family: var(--qs-type-card-title-small-family);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: var(--qs-type-card-title-small-weight);
  line-height: var(--qs-type-card-title-small-line);
}

.howto__text {
  font-size: var(--qs-type-button-size);
  line-height: var(--qs-type-small-line);
}

/* FAQ on the salmon band. */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
}

.faq__heading {
  margin-bottom: var(--qs-space-2);
}

.faq__item {
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qs-space-4);
  min-height: var(--qs-control-min-target);
  padding: var(--qs-space-3) var(--qs-space-5);
  border-radius: calc(var(--qs-radius-card) - var(--qs-border-width-strong));
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
  line-height: var(--qs-type-card-title-small-line);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  flex-shrink: 0;
  width: var(--qs-space-3);
  height: var(--qs-space-3);
  border-right: var(--qs-border-width-strong) solid currentColor;
  border-bottom: var(--qs-border-width-strong) solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform var(--qs-motion-button) var(--qs-motion-easing);
}

.faq__item[open] .faq__question::after {
  transform: translateY(25%) rotate(-135deg);
}

.faq__answer {
  padding: 0 var(--qs-space-5) var(--qs-space-4);
  font-size: var(--qs-type-button-size);
  line-height: var(--qs-type-lead-line);
}

/* Read more. */
.read-more {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
}

.read-more__heading {
  font-size: calc(var(--qs-type-h2-docs-size) + 2px);
  line-height: var(--qs-type-h2-docs-line);
}

.read-more__list {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding-left: var(--qs-space-6);
}

/* Table of contents. */
.qs-toc {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
}

.qs-toc--article {
  padding: var(--qs-space-5);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
}

.qs-toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  padding: 0;
  list-style: none;
}

.qs-toc__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--qs-control-min-target);
  font-size: var(--qs-type-small-size);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.qs-toc--docs .qs-toc__link {
  min-height: 32px;
  font-size: var(--qs-type-meta-size);
}

.qs-toc__link:hover {
  text-decoration: underline;
}

@media (min-width: 1000px) {
  .qs-toc {
    position: sticky;
    top: var(--qs-space-6);
  }
}

/* Docs menu. */
.qs-docs-menu {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
}

.qs-docs-menu__heading {
  padding: 0 var(--qs-space-3) var(--qs-space-2);
}

.qs-docs-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  padding: 0;
  list-style: none;
}

.qs-docs-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qs-space-2);
  min-height: var(--qs-control-min-target);
  padding: 0 var(--qs-space-3);
  border-radius: var(--qs-radius-button);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-small-size);
  font-weight: 700;
  text-decoration: none;
}

.qs-docs-menu__link:hover {
  background: var(--qs-surface-hero);
  color: var(--qs-color-navy-deep);
}

.qs-docs-menu__link[aria-current="page"] {
  background: var(--qs-color-navy);
  color: var(--qs-text-on-dark);
  font-weight: 900;
}

.qs-docs-menu__new {
  padding: 2px var(--qs-space-2);
  border-radius: var(--qs-radius-tag);
  background: var(--qs-color-orange);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-tag-size);
  font-weight: 900;
  line-height: var(--qs-type-tag-line);
}

@media (min-width: 1000px) {
  .qs-docs-menu {
    position: sticky;
    top: var(--qs-space-6);
    padding-right: var(--qs-space-5);
    border-right: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  }
}

/* Docs steps. */
.qs-doc-steps {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  padding: 0;
  list-style: none;
  counter-reset: doc-step;
}

.qs-doc-steps__step {
  position: relative;
  min-height: var(--qs-space-8);
  padding-left: calc(var(--qs-space-8) + var(--qs-space-4));
  padding-top: 2px;
  font-size: var(--qs-type-body-size);
  line-height: var(--qs-type-lead-line);
  counter-increment: doc-step;
}

.qs-doc-steps__step::before {
  content: counter(doc-step);
  content: counter(doc-step) / "";
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--qs-space-8);
  height: var(--qs-space-8);
  border-radius: var(--qs-radius-button);
  background: var(--qs-color-navy);
  color: var(--qs-text-on-dark);
  font-size: var(--qs-type-small-size);
  font-weight: 900;
}

/* Screenshot placeholder (sketches only). */
.qs-placeholder {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
}

.qs-placeholder__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--qs-placeholder-height);
  padding: var(--qs-space-6);
  border: var(--qs-border-width-strong) dashed var(--qs-border-placeholder);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-hero);
  color: var(--qs-text-muted);
  font-size: var(--qs-type-small-size);
  font-weight: 700;
  text-align: center;
}

.qs-placeholder__caption {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
  font-style: italic;
}

/* Previous and next. */
.qs-prev-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--qs-space-4);
}

.qs-prev-next__link {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-1);
  min-height: var(--qs-space-16);
  padding: var(--qs-space-3) var(--qs-space-4);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-callout);
  background: var(--qs-surface-white);
  text-decoration: none;
  transition: transform var(--qs-motion-card) var(--qs-motion-easing), box-shadow var(--qs-motion-card) var(--qs-motion-easing);
}

.qs-prev-next__link:hover {
  --qs-elevation: var(--qs-shadow-sm);
  box-shadow: var(--qs-elevation);
  transform: translate(-2px, -2px);
}

.qs-prev-next__link--next {
  grid-column: -2;
  text-align: right;
}

.qs-prev-next__kicker {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
}

.qs-prev-next__title {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

/* Page feedback. */
.qs-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-3);
  padding-top: var(--qs-space-5);
  border-top: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
}

.qs-feedback__question {
  color: var(--qs-text-heading);
  font-size: var(--qs-type-button-size);
  font-weight: 900;
}

.qs-feedback__buttons {
  display: inline-flex;
  gap: var(--qs-space-3);
}

/* The buttons need site.js; without it only the question and the address show. */
html:not(.js) .qs-feedback__buttons,
.qs-feedback--answered .qs-feedback__buttons {
  display: none;
}

.qs-feedback__thanks:empty {
  display: none;
}

.qs-feedback__thanks {
  color: var(--qs-text-heading);
  font-weight: 700;
}

.qs-feedback__contact {
  flex-basis: 100%;
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
}

@media (min-width: 900px) {
  .qs-feedback__contact {
    flex-basis: auto;
  }
}

/* ---------- Page layouts that ContentPage needs until phase 4 ---------- */

.qs-page-head {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
}

.qs-docs-layout {
  display: grid;
  gap: var(--qs-space-10);
  align-items: start;
}

@media (min-width: 1000px) {
  .qs-docs-layout {
    grid-template-columns: var(--qs-layout-docs-nav) minmax(0, 1fr);
  }

  .qs-docs-layout--toc {
    grid-template-columns: var(--qs-layout-docs-nav) minmax(0, 1fr) var(--qs-layout-toc);
  }
}

.qs-article-layout {
  display: grid;
  gap: var(--qs-space-12) var(--qs-space-16);
  align-items: start;
}

@media (min-width: 1000px) {
  .qs-article-layout {
    grid-template-columns: minmax(0, var(--qs-layout-article-text)) minmax(0, 300px);
  }
}

/* ---------- Page types (phase 4) ---------- */

.qs-page-head--media {
  display: grid;
  gap: var(--qs-space-10);
  align-items: center;
}

.qs-page-head__text {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
  min-width: 0;
}

.qs-page-head__lead,
.qs-hero__lead {
  font-size: var(--qs-type-lead-size);
  line-height: var(--qs-type-lead-line);
  max-width: var(--qs-layout-article-text);
}

@media (min-width: 1000px) {
  .qs-page-head--media {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.qs-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--qs-space-7);
}

.qs-docs-index {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-8);
}

.qs-store-badges {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
}

.qs-store-badges__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-3);
  align-items: center;
}

.qs-store-badge {
  display: inline-flex;
  min-height: var(--qs-control-min-target);
  align-items: center;
  border-radius: var(--qs-radius-button);
}

/* Phone screenshots in the docs: one or two per row, side by side where there is room (as the old .doc-shots). */
.qs-docs-layout .qs-prose figure,
.qs-docs-index .qs-prose figure {
  display: inline-block;
  width: min(260px, 100%);
  margin: var(--qs-space-6) var(--qs-space-3);
  vertical-align: top;
}

.qs-docs-layout .qs-prose figure img,
.qs-docs-index .qs-prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  border-radius: var(--qs-radius-frame);
  box-shadow: var(--qs-shadow-sm);
}

.qs-docs-layout .qs-prose figcaption,
.qs-docs-index .qs-prose figcaption {
  margin-top: var(--qs-space-2);
  font-size: var(--qs-type-meta-size);
  text-align: center;
  color: var(--qs-text-muted);
}

.qs-store-badge img {
  display: block;
  height: var(--qs-control-store-button-height);
  width: auto;
}

main > nav.breadcrumbs {
  padding-top: var(--qs-space-8);
}

main > article {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-5);
  padding-block: var(--qs-space-8) var(--qs-section-compact);
}

main > article > :not(h1) {
  max-width: var(--qs-layout-article-text);
}

main > nav.side-menu {
  padding-top: var(--qs-space-6);
}

main > .read-more,
main > .article-cards {
  padding-bottom: var(--qs-section-compact);
}

main > .qs-band + .read-more {
  padding-top: var(--qs-section-compact);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--qs-band-navy-bg);
  color: var(--qs-text-on-dark-muted);
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-small-line);
}

.site-footer__links a,
.site-footer__address a {
  color: var(--qs-text-on-dark-muted);
}

.site-footer__link-button:hover,
.site-footer__links a:hover,
.site-footer__address a:hover {
  color: var(--qs-text-on-dark);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-10);
  max-width: var(--qs-layout-container);
  margin-inline: auto;
  padding: var(--qs-section-footer-top) var(--qs-gutter) var(--qs-space-14);
}

.site-footer__download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--qs-space-6);
  padding-bottom: var(--qs-space-10);
  border-bottom: var(--qs-border-width-quiet) solid color-mix(in srgb, var(--qs-text-on-dark) 18%, transparent);
}

.site-footer__download-text {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: var(--qs-space-2);
}

.site-footer__download-heading {
  font-size: var(--qs-type-h3-feature-size);
  line-height: var(--qs-type-h3-feature-line);
}

.site-footer__download-lead {
  color: var(--qs-text-on-dark-soft);
  font-size: var(--qs-type-body-size);
}

/* Four equal columns under a thin line: logo, empty, links, contact (web-design.md "Sidfot"). */
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--qs-space-8);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  min-width: 0;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--qs-radius-frame);
  background: var(--qs-surface-white);
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 56px;
}

.site-footer__wordmark {
  color: var(--qs-text-on-dark);
  font-family: var(--qs-font-heading);
  font-size: calc(var(--qs-type-card-title-size) + 4px);
  font-weight: 800;
  line-height: 1;
}

.site-footer__owner {
  color: var(--qs-text-on-dark-muted);
}

.site-footer__heading {
  color: var(--qs-text-on-dark);
  font-family: var(--qs-type-eyebrow-family);
  font-size: var(--qs-type-eyebrow-size);
  font-weight: var(--qs-type-eyebrow-weight);
  letter-spacing: var(--qs-type-eyebrow-tracking);
  text-transform: var(--qs-type-eyebrow-transform);
}

.site-footer__address {
  display: flex;
  flex-direction: column;
  color: var(--qs-text-on-dark-soft);
  font-size: var(--qs-type-small-size);
  font-style: normal;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

/* The consent settings button looks like the links around it. */
.site-footer__link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-footer__link-button:hover,
.site-footer__link-button:focus-visible {
  text-decoration: underline;
}

/* A vertical list: 32 px rows keep the targets above the 24 px minimum (WCAG 2.5.8) without spreading it out. */
.site-footer__link-button,
.site-footer__links a,
.site-footer__address a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--qs-text-on-dark-soft);
  font-size: var(--qs-type-small-size);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--qs-text-on-dark);
  text-decoration: underline;
}

.site-footer__address .site-footer__email {
  margin-top: var(--qs-space-2);
  color: var(--qs-text-on-dark);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer__copyright {
  color: var(--qs-text-on-dark-muted);
}

@media (max-width: 899.98px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__spacer {
    display: none;
  }
}

@media (max-width: 519.98px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .qs-card:hover,
  .qs-featured:hover,
  .qs-prev-next__link:hover,
  .qs-button:active {
    transform: none;
  }
}

/* ---------- Component page (development only) ---------- */

.qs-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-8);
}

.qs-showcase__item {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
}

.qs-band__inner > .qs-showcase__label {
  margin-bottom: var(--qs-space-6);
}

.qs-showcase__label {
  padding-bottom: var(--qs-space-2);
  border-bottom: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  color: var(--qs-muted-color);
  font-family: ui-monospace, monospace;
  font-size: var(--qs-type-meta-size);
}

.qs-band--pitch .qs-showcase__label,
.qs-band--navy .qs-showcase__label {
  border-color: currentColor;
}

/* ---------- Page parts shared by the page types (hero, closing band) ---------- */

.qs-muted {
  color: var(--qs-muted-color);
}

.qs-hero {
  display: grid;
  align-items: center;
  gap: var(--qs-space-14);
  padding-block: var(--qs-section-hero-top) var(--qs-section-hero-bottom);
}

.qs-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-5);
  min-width: 0;
}

.qs-hero__visual {
  min-width: 0;
}

.qs-hero__sports {
  color: var(--qs-text-heading);
}

@media (min-width: 1000px) {
  .qs-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 639.98px) {
  .qs-hero {
    gap: var(--qs-space-10);
    padding-block: var(--qs-space-12) var(--qs-section-compact);
  }
}

.qs-small-h2 {
  font-size: calc(var(--qs-type-card-title-size) + 2px);
  line-height: var(--qs-type-card-title-line);
}

.qs-grid--quiet {
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--qs-space-5);
}

.qs-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--qs-space-10) var(--qs-space-16);
}

.qs-closing > :first-child {
  flex: 1 1 480px;
  min-width: 0;
}

.qs-closing__list {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding-left: var(--qs-space-5);
  color: var(--qs-muted-color);
  line-height: 1.5;
}

/* ---------- Start page v3 and the features page ---------- */

.qs-hero__note {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-small-size);
  line-height: var(--qs-type-small-line);
}

.qs-hero__frame .qs-frame {
  aspect-ratio: 3 / 2;
}

/* Feature rows: the text column holds the ticks, a note and the links. */
.qs-feature__body > p {
  max-width: 40em;
}

.qs-feature__note {
  padding: var(--qs-space-3) var(--qs-space-4);
  border: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  border-radius: var(--qs-radius-callout);
  font-size: var(--qs-type-small-size);
}

/* No tint behind the note: white text needs the plain pitch green for 4.5:1 (WCAG 1.4.3). */
.qs-band--pitch .qs-feature__note {
  border-color: color-mix(in srgb, var(--qs-text-on-dark) 40%, transparent);
}

.qs-feature__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--qs-space-6);
  padding: 0;
  list-style: none;
}

.qs-feature--section .qs-feature__title {
  font-size: var(--qs-type-h2-size);
  line-height: var(--qs-type-h2-line);
}

.qs-ticks {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding: 0;
  list-style: none;
}

.qs-ticks__item {
  display: flex;
  gap: var(--qs-space-3);
  align-items: flex-start;
}

.qs-ticks__mark {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--qs-color-pitch);
}

.qs-band--pitch .qs-ticks__mark {
  color: var(--qs-color-sun);
}

/* Jump links under the features page lead. */
.qs-jump-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-2);
  padding: 0;
  list-style: none;
}

.qs-jump-links__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--qs-space-4);
  border: var(--qs-border-width-quiet) solid var(--qs-border-control);
  border-radius: var(--qs-radius-button);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-button-size);
  font-weight: 700;
  text-decoration: none;
}

.qs-jump-links__link:hover {
  border-color: var(--qs-border-strong);
}

/* Anchors land a little below the top of the window. */
.qs-feature__title[id],
.qs-h2[id] {
  scroll-margin-top: var(--qs-space-6);
}

/* Cards in a grid go evenly across the full width: three plus three. */
@media (min-width: 900px) {
  .qs-band .qs-grid--quiet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899.98px) {
  .qs-band .qs-grid--quiet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The FAQ with the heading in its own column (start and features pages). */
.faq__items {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
}

@media (min-width: 900px) {
  .faq--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--qs-space-12);
    align-items: start;
  }

  .faq--split .faq__heading {
    font-size: var(--qs-type-h2-size);
    line-height: var(--qs-type-h2-line);
  }
}

/* Price: text and steps on the left, the Ultra card on the right. */
.qs-pricing {
  display: grid;
  gap: var(--qs-space-10);
  align-items: start;
}

.qs-pricing__text {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
}

.qs-pricing__steps-heading {
  margin-top: var(--qs-space-2);
  font-family: var(--qs-font-body);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

.qs-pricing__steps {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
  padding: 0;
  list-style: none;
  counter-reset: qs-step;
}

.qs-pricing__step {
  position: relative;
  min-height: 30px;
  padding-left: calc(30px + var(--qs-space-3));
  counter-increment: qs-step;
}

.qs-pricing__step::before {
  content: counter(qs-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--qs-radius-button);
  background: var(--qs-color-navy-deep);
  color: var(--qs-text-on-dark);
  font-size: var(--qs-type-meta-size);
  font-weight: 900;
}

.qs-pricing__card {
  --qs-heading-color: var(--qs-text-heading);
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
  padding: var(--qs-space-7);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  box-shadow: var(--qs-shadow-md);
  color: var(--qs-text-body);
}

.qs-pricing__card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qs-space-3);
  font-family: var(--qs-font-body);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

.qs-pricing__label {
  padding: 2px var(--qs-space-2);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-tag);
  background: var(--qs-color-sun);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-tag-size);
  letter-spacing: var(--qs-type-eyebrow-tracking);
  text-transform: uppercase;
}

.qs-pricing__note {
  padding-top: var(--qs-space-4);
  border-top: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
  line-height: var(--qs-type-meta-line);
}

@media (min-width: 900px) {
  .qs-pricing {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--qs-space-12);
  }
}

/* What QuickSquad is not. */
.qs-not-cards {
  padding: 0;
  list-style: none;
}

.qs-not-card {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-2);
  padding: var(--qs-space-5) var(--qs-space-6);
  border: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  border-top: 4px solid var(--qs-color-orange-text);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
}

.qs-not-card__title {
  font-family: var(--qs-font-body);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

.qs-not-card__text {
  font-size: var(--qs-type-small-size);
}

/* App fragments with a header and rows: squad, plan, calendar. */
.qs-app-list__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--qs-space-2);
  padding: var(--qs-space-4);
  border-bottom: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  background: var(--qs-surface-hero);
}

.qs-app-list__header--stacked {
  flex-direction: column;
  gap: 0;
}

.qs-app-list__title {
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-card-title-small-size);
  font-weight: 900;
}

.qs-app-list__meta {
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
}

.qs-app-list__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qs-app-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--qs-space-3);
  padding: var(--qs-space-2) var(--qs-space-4);
  border-bottom: var(--qs-border-width-quiet) solid var(--qs-border-quiet);
  color: var(--qs-text-body);
  font-size: var(--qs-type-small-size);
}

.qs-plan .qs-app-list__rows {
  counter-reset: qs-plan;
}

.qs-plan__item {
  counter-increment: qs-plan;
}

.qs-plan__item > :first-child::before {
  content: counter(qs-plan);
  display: inline-block;
  min-width: 1.4em;
  color: var(--qs-color-orange-text);
  font-weight: 900;
}

.qs-plan__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qs-space-2);
  margin: 0;
  padding: var(--qs-space-3) var(--qs-space-4);
  list-style: none;
}

.qs-plan__attachment {
  padding: 2px var(--qs-space-2);
  border: var(--qs-border-width-quiet) solid var(--qs-border-control);
  border-radius: var(--qs-radius-tag);
  font-size: var(--qs-type-meta-size);
}

.qs-calendar__badge {
  padding: 2px var(--qs-space-2);
  border: var(--qs-border-width-quiet) solid var(--qs-border-sky);
  border-radius: var(--qs-radius-tag);
  background: var(--qs-surface-sky);
  color: var(--qs-color-navy-deep);
  font-size: var(--qs-type-tag-size);
  font-weight: 900;
}

.qs-calendar__what {
  display: flex;
  flex-direction: column;
}

.qs-calendar__name {
  color: var(--qs-color-navy-deep);
  font-weight: 900;
}

/* The plan shared to a group chat. */
.qs-share-chat {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-4);
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.qs-share-chat__bubble--sent {
  align-self: flex-end;
}

.qs-share-chat__bubble {
  padding: var(--qs-space-3) var(--qs-space-4);
  border-radius: var(--qs-radius-card);
  font-size: var(--qs-type-small-size);
  line-height: var(--qs-type-small-line);
}

.qs-share-chat__bubble--sent {
  border: var(--qs-border-width-quiet) solid var(--qs-border-lime);
  background: var(--qs-surface-lime);
  color: var(--qs-text-body);
}

.qs-share-chat__bubble--reply {
  order: 2;
  align-self: flex-start;
  border: var(--qs-border-width-quiet) solid var(--qs-border-control);
  background: var(--qs-surface-white);
  color: var(--qs-text-body);
}

.qs-share-chat__caption {
  order: 1;
  align-self: flex-end;
  margin-top: calc(-1 * var(--qs-space-3));
  color: var(--qs-text-muted);
  font-size: var(--qs-type-meta-size);
}

/* Synced devices. */
.qs-devices {
  display: flex;
  flex-direction: column;
  gap: var(--qs-space-3);
  width: 100%;
  max-width: 440px;
  margin: 0;
}

.qs-devices__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--qs-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.qs-devices__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qs-space-1);
  padding: var(--qs-space-4);
  border: var(--qs-border-width-strong) solid var(--qs-border-strong);
  border-radius: var(--qs-radius-card);
  background: var(--qs-surface-white);
  color: var(--qs-color-navy-deep);
}

/* An odd last device takes the whole row. */
.qs-devices__device:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.qs-devices__name {
  font-weight: 900;
}

.qs-devices__status {
  display: inline-flex;
  align-items: center;
  gap: var(--qs-space-1);
  color: var(--qs-color-pitch);
  font-size: var(--qs-type-meta-size);
  font-weight: 700;
}
