/*
 * Components for om.opstillingen.dk. Documented with live examples in styleguide.html.
 * Values come from tokens.css — do not hard-code new colours or sizes here.
 */

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, li, blockquote, figcaption { overflow-wrap: break-word; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--width-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--full { max-width: none; }   /* feature grid spans the full window, as in Figma */
.section { padding-block: var(--section-pad); }
.section--white { background: var(--white); }
.prose { max-width: var(--width-text); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.6em; }

/* ── Type ─────────────────────────────────────────────── */
.h-hero, .h-section, .h-small {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}
.h-hero {
  hyphens: auto;               /* long Danish words ("trænerblokken") would overflow on phones */
  overflow-wrap: break-word;
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
}
.h-section {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
}
.h-small { font-size: var(--text-h3); letter-spacing: -0.01em; }
.text-gradient {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.caption {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
  color: var(--muted);
  margin: 0;
}

/* ── Button ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  line-height: normal;
  align-items: center;
  gap: var(--space-2);
  min-height: 45px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: normal;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: .85; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--inverse { background: var(--white); color: var(--ink); }

.link-muted {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  letter-spacing: normal;
  color: var(--link-muted);
}
.link-muted:hover { color: var(--ink); }

/* ── Top bar ──────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-7);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo img { width: 30px; height: 30px; }
.topbar-login { text-decoration: none; margin-left: auto; }
.page--home .topbar-login { display: none; }   /* the activity banner takes its place below 1280px */
.topbar-login:hover { text-decoration: underline; }

/* ── Activity banner (rotating; real events from landing_activity(), see src/site.js) ── */
.activity {
  margin: 0;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 37px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: normal;
  transition: opacity .3s ease;
}
.activity[hidden] { display: none; }
.activity.is-fading { opacity: 0; }
.activity-time { color: var(--muted); font-weight: 500; white-space: nowrap; }
.activity-time[hidden] { display: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-block: var(--space-8) 0; }
.checklist {
  list-style: none;
  margin: calc(2 * var(--space-4)) 0;   /* 40px, as in Figma */
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-small);
  line-height: 1.6;
  letter-spacing: normal;
}
.checklist img { width: 24px; height: 24px; flex: none; }
.hero-media {
  display: block;
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
}
.hero-media img { width: 100%; }

/* ── Quote ────────────────────────────────────────────── */
.quote {
  margin: 0;
  padding-left: 7px;                 /* text lands 12px in, incl. the 5px bar */
  border-left: 5px solid var(--green);
  font-family: var(--font-ui);
  font-size: var(--text-quote);
  line-height: 1.6;
  letter-spacing: -0.01em;
}
.quote p { margin: 0; font-weight: 700; font-style: italic; }
.quote footer { font-weight: 500; }
.quote--spaced { margin-top: var(--space-8); }

/* ── Logo strip ───────────────────────────────────────── */
.logo-strip { padding-block: 0 var(--space-7); }   /* sits right under the section above */
.logo-strip ul {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
/* Each logo sits in a 100px slot; width/height attributes size the logo itself (80–100px). */
.logo-strip li { width: 100px; height: 100px; display: grid; place-items: center; }
.logo-strip img {
  width: var(--size, 100px);
  height: var(--size, 100px);
  object-fit: contain;
  mix-blend-mode: multiply;   /* hides the logos' white backgrounds */
}

/* ── Feature card ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
  align-items: start;
}
/* Columns only exist at ≥1280px; below that the cards flow in --order. */
.card-col { display: contents; }
.card-grid .card { order: var(--order, 0); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}
.card-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 var(--gap-icon);
  align-items: center;
}
.card-head img { grid-row: span 2; width: 48px; height: 48px; }
.card-title {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.card-body { margin: var(--gap-icon) 0 0; }
.card-body + .card-body { margin-top: var(--space-3); }
.card-media {
  display: block;
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--forest);
}
.card-media img { width: 100%; }
.card-action { margin-top: var(--space-4); }

/* ── CTA band ─────────────────────────────────────────── */
.cta-band {
  position: relative;
  color: var(--white);
  text-align: center;
  padding-block: var(--space-8);
  background: var(--forest) center / cover no-repeat;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(27, 49, 37) 0%, rgba(27, 49, 37, 0) 100%);
}
.cta-band > * { position: relative; }
.cta-band p { margin: var(--space-3) auto var(--space-4); }
.section--features { padding-bottom: var(--space-7); }

/* ── Landing page (sub-pages: /holdopstilling-android, /4-3-3-opstilling …) ── */
/* Content flows in one column: h1 → intro → button → image → h2 sections.
   Text is 600px wide, the heading and images 800px. */
.landing { padding-block: var(--space-8) 0; }
.landing > h1 { max-width: var(--width-narrow); margin: 0 0 var(--space-7); }
.landing > h1.h1--tight { margin-bottom: var(--space-6); }   /* some Figma pages sit the intro closer */
.landing > :not(h1, .media) { max-width: var(--width-text); }
.landing ul, .landing ol { padding-left: 27px; }
.landing > * { margin-block: 0; }
/* Text stacks tight, as in Figma; an empty line in Figma becomes class="gap". */
.landing > .gap { margin-top: 1.6em; }
.landing h2 {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.landing > h2 { margin-top: var(--space-7); }
.landing > h2 + * { margin-top: var(--gap-icon); }
.landing > p + :is(ul, ol) { margin-top: 0; }
.landing li::marker { font-size: .9em; }
.landing a:not(.btn) { color: inherit; }
.landing > .btn { margin-top: var(--space-6); }
.landing > .btn + * { margin-top: var(--space-7); }
.landing > :is(ul, ol) + .btn { margin-top: var(--space-7); }
/* An empty line before a heading, button or image doesn't change its own spacing */
.landing > h2.gap { margin-top: var(--space-7); }
.landing > .btn.gap { margin-top: var(--space-6); }
.landing > .media.gap { margin-top: var(--space-7); }
.media {
  display: block;
  margin-inline: 0;
  max-width: var(--width-narrow);
  margin-top: var(--space-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest);
}
.landing > .media + * { margin-top: var(--space-7); }
.media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Portrait screenshots keep their shape at a fixed height */
.media--narrow { width: fit-content; }
.media--narrow img { width: auto; height: 450px; aspect-ratio: auto; }
.media--video { max-width: 1024px; }
.landing > .btn + .media--video { margin-top: var(--space-6); }
.media--video video { display: block; width: 100%; height: auto; }
/* CTA band inside a landing page: full window width, left-aligned, 250px tall */
.landing > .cta-band--inline {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-top: var(--space-7);
  padding-block: var(--space-7);
  text-align: left;
  background-position: center 77%;
}
.landing > .cta-band--inline + * { margin-top: var(--space-7); }
.cta-band--inline p { margin: var(--space-3) 0 var(--space-5); }
.landing > .cta-band--inline { min-height: 250px; }

/* FAQ: section headings, questions, answers */
.landing > .h2--section { font-size: var(--text-h2); line-height: var(--leading-h2); letter-spacing: var(--tracking-h2); }
.landing > .faq-q {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: var(--space-6);
}
.landing > .h2--section + .faq-q { margin-top: var(--space-6); }
.landing > .faq-q + .faq-a { margin-top: var(--gap-icon); }   /* answers are regular body text */
.landing > .faq-a + .faq-a { margin-top: 1.6em; }
.landing > .faq-a + :is(.h2--section, .btn) { margin-top: var(--space-8); }
.landing > .media + .h2--section { margin-top: var(--space-7); }

/* Fodbold opstilling: compact linked logo row, hero picture, quote, left-aligned features */
.landing > .logo-strip--compact { padding: 0; max-width: none; margin-top: var(--space-6); text-align: left; }
.logo-strip.logo-strip--compact ul { gap: var(--gap-icon); margin-top: var(--space-4); padding: 0; justify-content: flex-start; }
.logo-strip--compact li { width: 70px; height: 70px; }
.logo-strip--compact img { width: calc(var(--size, 100px) * .7); height: calc(var(--size, 100px) * .7); }
.media--hero img { aspect-ratio: 800 / 470; }
.landing > .quote--landing { max-width: var(--width-narrow); margin: var(--space-7) 0 0; }
.landing > .quote--landing + * { margin-top: var(--space-7); }
.features--left { padding-top: var(--space-7); }
.landing + .features--left { margin-top: var(--space-8); }
.cta-band--left.cta-band--plain { padding-block: var(--space-7); background: var(--forest); }
.cta-band--plain::before { content: none; }
.landing--after { padding-top: var(--space-7); }
.landing--after > * + * { margin-top: 0; }

/* Profile page: wide screenshot, text/image rows, white band */
.media--wide { max-width: 1024px; }
.feature-rows { display: grid; gap: 80px; }
.landing > .feature-rows { max-width: 1024px; margin-top: 90px; }
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 488px));
  gap: 48px;
  align-items: center;
}
.feature-row > div > * { margin: 0; }
.feature-row > div > .gap { margin-top: 1.6em; }
.feature-row ul { padding-left: 27px; }
.feature-row h3 {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.feature-row h3 + * { margin-top: var(--gap-icon); }
.feature-row img { width: 100%; aspect-ratio: 488 / 432; object-fit: cover; border-radius: var(--radius-lg); }
.feature-row a { color: inherit; }
.landing > .band-white {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-top: 90px;
  padding-block: var(--space-7);
  background: var(--white);
}
.band-white .container > * { max-width: var(--width-text); margin: 0; }
.band-white .container > * + * { margin-top: 0; }
.landing .band-white h2 { font-size: var(--text-hero); line-height: var(--leading-hero); letter-spacing: var(--tracking-hero); margin: 0; }
.band-white h2 + * { margin-top: var(--space-7); }
.band-white .container > .gap { margin-top: 1.6em; }
.band-white ul { padding-left: 27px; }
.landing > .band-white + * { margin-top: var(--space-7); }

/* Landing extras: sub-heading, data table, small notes, callout quote */
.landing > h3 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  margin-top: var(--gap-icon);
}
.landing > .h2--large { font-size: var(--text-h3); line-height: 1.3; }
.landing > .table-wrap { max-width: 1024px; overflow-x: auto; }
.data-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.data-table th, .data-table td {
  width: 20%;
  height: 53px;
  padding: 0 var(--space-3);
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.data-table thead th { font-weight: 600; background: var(--white); }
.data-table tbody tr { background: rgba(255, 255, 255, 0.75); }
.landing > .table-wrap,
.landing > .table-wrap + * { margin-top: var(--space-7); }
.landing > .lead { font-size: var(--text-h3); line-height: 1.6; }
.landing > .steps { list-style: none; padding-left: 0; counter-reset: step; }
.landing > .steps li::before { counter-increment: step; content: counter(step) ". "; }
.landing > p + .media--narrow { margin-top: var(--gap-icon); }
.landing > .note { font-size: var(--text-small); line-height: 1.6; }
.landing > .note + .note { margin-top: 1.6em; }
.callout {
  max-width: 620px;
  margin-inline: 0;                       /* <blockquote> is indented 40px by default */
  padding: var(--gap-icon) var(--space-4);
  border-radius: var(--radius-sm);
  background: rgba(92, 193, 149, 0.1);   /* --mint at 10% */
}
/* An empty line's worth of space around it, like .gap, so it doesn't touch the text */
.landing > .callout,
.landing > .callout + * { margin-top: 1.6em; }
.callout p { margin: 0; }
.callout footer { font-size: var(--text-small); margin-top: var(--space-2); }

/* ── Article (/hvorfor-opstillingen-er-gratis) ───────────── */
/* Blocks are 40px apart; text inside a block stacks tight with Figma's empty lines as .gap */
.article { padding-block: var(--space-8) 150px; }
.article > * { margin-block: 0; }
.article > * + * { margin-top: 40px; }
.byline {
  margin: 0 0 var(--gap-icon);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.25;
  color: var(--muted);
  white-space: pre-wrap;
}
.byline a { color: inherit; text-decoration: none; }
.article h1 { max-width: none; }
.article > p, .article .text { max-width: var(--width-narrow); }
.text > * { margin: 0; }
.text > .gap { margin-top: 1.6em; }
.text h2, .subhead {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.text > :is(h2, .subhead) + * { margin-top: var(--gap-icon); }
.lead-display {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.pullquote, .stat {
  max-width: 802px;
  margin-left: -3px;
  padding: 4px 0 4px 10px;
  border-left: 5px solid var(--green);
}
.pullquote p, .stat p { margin: 0; }
.pullquote p {
  font-family: var(--font-ui);
  font-size: var(--text-h3);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}
.stat p {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.stat footer {
  font-family: var(--font-ui);
  font-size: var(--text-quote);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}
.stat footer a { color: inherit; }
.article-media { margin-inline: 0; max-width: var(--width-narrow); }
.article-media--wide { max-width: none; }
.article-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-media figcaption {
  margin-top: var(--gap-icon);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  color: var(--muted);
}
.article-row {
  display: grid;
  grid-template-columns: minmax(0, var(--width-narrow)) 311px;
  gap: 40px;
  align-items: start;
}
.factbox {
  padding: var(--space-4);
  background: rgba(37, 99, 235, 0.08);
  font-family: var(--font-display);
  font-size: var(--text-small);
  line-height: 27px;
}
.factbox-title { margin: 0 0 var(--gap-icon); font-weight: 700; }
.factbox ul { margin: 0; padding: 0; list-style: none; font-weight: 400; }

/* Blog index: post cards */
.article > .post-list { margin-top: var(--space-8); }
.post-list ul {
  list-style: none;
  margin: var(--space-7) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
}
.post-card { position: relative; }
.post-card img { width: 100%; aspect-ratio: 413 / 482; object-fit: cover; }
.post-card > * { margin: var(--gap-icon) 0 0; }
.post-card > img { margin-top: 0; }
.post-card .post-date {
  margin-top: var(--space-4);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }   /* whole card is the link */
.post-card .post-more { text-decoration: underline; }

/* CTA band, left-aligned (end of articles) */
.cta-band--left { text-align: left; padding-block: var(--space-8); background-position: center; }
.cta-band--left h2 { max-width: 768px; }
.cta-band--left p { max-width: var(--width-text); margin: var(--space-3) 0 var(--space-4); }

/* ── Footer: same on every page. Brand + CTA, three link groups, legal row ── */
.site-footer {
  margin-top: var(--space-8);
  padding-block: var(--space-8) var(--space-7);
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: var(--text-small);
  line-height: 1.5;
  letter-spacing: normal;
}
/* Pages that end in a full-width band sit flush against the footer */
main:has(> .cta-band:last-child) + .site-footer,
main:has(> .landing--after:last-child) + .site-footer { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-7);
}
.footer-brand p { max-width: 280px; margin: var(--space-3) 0 var(--space-4); color: var(--muted); }
.footer-heading {
  margin: 6px 0 var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: var(--space-2); }
.site-footer a:not(.btn):not(.logo) { text-decoration: none; }
.site-footer a:not(.btn):not(.logo):hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-7);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-bottom p { margin: 0; }

/* ── Mobile (Figma breakpoint 800px) ─────────────────── */
@media (max-width: 799px) {
  .landing { padding-top: var(--space-7); }
  .landing > h1 { font-size: 36px; line-height: 1.3; letter-spacing: -0.02em; }
  .article { padding-block: var(--space-7) var(--space-8); }
  .page--article .article h1 { font-size: 36px; line-height: 1.3; letter-spacing: -0.02em; }
  .landing > .h2--section { font-size: var(--text-h3); }
  .cta-band--left .h-section { font-size: 36px; }
  .article-row { grid-template-columns: 1fr; }
  .post-list ul { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: var(--space-5); }

  .site-footer { margin-top: var(--space-7); padding-top: var(--space-7); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { margin-top: var(--space-7); }
  .media--phone img,
  .media--hero img { aspect-ratio: 350 / 445; }   /* phone mock-ups get a taller crop on phones */
  .media--narrow img { height: auto; aspect-ratio: auto; }
  .media--video { margin-top: var(--space-6); }

  .topbar { padding-top: var(--space-4); flex-wrap: wrap; }
  .hero { padding-block-start: var(--space-7); }
  .checklist { margin-block: var(--space-4); }
  .hero-media { margin-top: var(--space-7); }
  .hero-media img { aspect-ratio: 350 / 455; object-fit: cover; }
  .quote--spaced { margin-top: var(--space-7); }

  .logo-strip { padding-bottom: var(--space-6); }
  .logo-strip ul { gap: var(--space-6); }
  .logo-strip li { width: 60px; height: 60px; }
  .logo-strip img { width: calc(var(--size, 100px) * .6); height: calc(var(--size, 100px) * .6); }
  .logo-strip li:nth-child(n+9) { display: none; }   /* Figma shows 8 on phones */

  /* One column, read column by column (Figma's order on phones) */
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .card { order: 0; }
}

/* ── Wide (Figma breakpoint 1280px): centred layout ───── */
@media (min-width: 1280px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .topbar-login,
  .page--home .topbar-login { display: block; grid-column: 3; justify-self: end; margin-left: 0; }
  .activity { grid-column: 2; }

  .hero { text-align: center; }
  .checklist {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-7);
  }
  /* Figma reorders the checklist on wide screens */
  .checklist li:nth-child(2) { order: 3; }
  .checklist li:nth-child(3) { order: 2; }
  .checklist li:nth-child(4) { order: 4; }

  .prose, .quote { margin-inline: auto; max-width: var(--width-text); }
  .quote--spaced { margin-top: var(--space-8); }

  .logo-strip { text-align: center; }
  .logo-strip ul { justify-content: center; }

  .page--home #funktioner-heading { text-align: center; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-col { display: flex; flex-direction: column; gap: var(--space-4); }
  .card-grid .card { order: 0; }
  /* Figma frames this screenshot taller on wide screens */
  .card-media--tall-wide img { aspect-ratio: 553 / 426; object-fit: cover; }
}
