/* fitstinct.com. The visual world is the app design "Nacht" (docs/design/2026-11-16-app-design-festlegung.md):
   a dark warm ground, cream text, one yellow that means "now" and marks the single main action, Figtree, and the
   thread (done, now, later) as the grammar for everything that has an order in time.
   The site sends a strict Content-Security-Policy: no inline styles and no scripts, so every rule lives here. */

/* ---------- Fonts (self-hosted, Latin subset, SIL Open Font License) ---------- */

@font-face {
  font-family: 'Figtree';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/figtree-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/figtree-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/figtree-600.woff2') format('woff2');
}
/* Carries only the letters of the wordmark; used for the f of the coach. */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/archivo-800-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --ground: #11100e;
  --surface: #1b1916;
  --surface-2: #26231f;
  --hairline: #2f2b26;
  --knot: #3a352e;
  --cream: #f4f0e8;
  --ink-2: #b8b1a5;
  --ink-3: #8f887c;
  --on-image: #d6d0c4;
  --accent: #ffb84d;
  --accent-hover: #ffc56e;
  --accent-soft: rgba(255, 184, 77, 0.18);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
  /* Distance from the viewport edge to the content column, for full-width blocks. */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --thread-inset: 56px;
  --day-gap: clamp(88px, 10.5vw, 152px);
  --top-height: 72px;
  --weekbar-height: 76px;
}

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

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

html {
  background: var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--weekbar-height) + 24px);
  scrollbar-color: var(--knot) var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.53;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  flex: 1;
}

::selection {
  background: var(--cream);
  color: var(--ground);
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--ink-3);
  transition: text-decoration-color 160ms var(--ease-out);
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

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

/* ---------- Type ---------- */

/* The voice of the coach sentence in the app: quiet words light, key words strong. */
.say {
  font-weight: 400;
  color: var(--on-image);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.say strong {
  font-weight: 600;
  color: var(--cream);
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--on-image);
  text-wrap: pretty;
}

.muted {
  color: var(--ink-2);
}

/* Words that must not break at their hyphen (set by build.mjs around "E-Mail" and "Check-in"). */
.nb {
  white-space: nowrap;
}

/* Two lengths of one sentence: the full one on wide screens, the short one on a phone. */
.only-narrow {
  display: none;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-3);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  background: var(--surface-2);
  color: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.button:hover {
  background: var(--knot);
}

.button:active {
  transform: scale(0.98);
}

/* The one main action of a screen. */
.button--now {
  background: var(--accent);
  color: var(--ground);
}

.button--now:hover {
  background: var(--accent-hover);
}

.button svg {
  flex: none;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.textlink:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.textlink svg {
  transition: transform 200ms var(--ease-out);
}

.textlink:hover svg {
  transform: translateX(3px);
}

/* ---------- The f of the coach, variant "Glut" (specification §6) ---------- */

.f {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding-bottom: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ground);
  font-family: 'Archivo', var(--font);
  font-style: italic;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.f--glut {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 0 1px 4px 0;
  background:
    radial-gradient(
      circle at 34% 24%,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(255, 255, 255, 0.14) 32%,
      rgba(255, 255, 255, 0) 56%
    ),
    radial-gradient(circle at 72% 92%, rgba(130, 44, 0, 0.46) 0%, rgba(130, 44, 0, 0) 62%), var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 8px rgba(120, 40, 0, 0.28);
  font-size: 33px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.f--glut::before {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(14px);
  opacity: 0.55;
}

/* A mark such as "KI" or "Mensch": never filled. */
.mark {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--knot);
  border-radius: 11px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  white-space: nowrap;
}

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

.top {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--top-height);
  padding-inline: var(--edge);
}

.top__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.top__brand img {
  width: 110px;
  height: 24px;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  font-size: 0.9375rem;
  font-weight: 500;
}

.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--on-image);
  transition: color 160ms var(--ease-out);
}

.top__nav a:hover,
.top__nav a[aria-current='page'] {
  color: var(--cream);
}

.top__nav a[aria-current='page'] {
  font-weight: 600;
}

.top__nav .top__list {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(38, 35, 31, 0.8);
  color: var(--cream);
  font-weight: 600;
  transition: background-color 160ms var(--ease-out);
}

.top__nav .top__list:hover {
  background: var(--knot);
}

.menu {
  display: none;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: rgba(38, 35, 31, 0.8);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu__close,
.menu[open] .menu__open {
  display: none;
}

.menu[open] .menu__close {
  display: inline;
}

.menu__panel {
  position: absolute;
  top: var(--top-height);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: var(--ground);
  border-bottom: 1px solid var(--hairline);
}

.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.menu__panel a:last-child {
  border-bottom: 0;
}

.menu__panel a[aria-current='page'] {
  font-weight: 600;
}

/* ---------- Photographs that run out into the ground (the "Bild oben" of the app, at page scale) ---------- */

.bleed {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bleed img {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Left to right: the wall under the text stays ground, the subject on the right stays clear. Top and bottom
   dissolve so that no picture has an edge. */
.bleed::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      var(--ground) 0%,
      rgba(17, 16, 14, 0.5) 12%,
      rgba(17, 16, 14, 0) 30%,
      rgba(17, 16, 14, 0) 62%,
      rgba(17, 16, 14, 0.72) 84%,
      var(--ground) 100%
    ),
    linear-gradient(
      90deg,
      var(--ground) 0%,
      var(--ground) calc(100% - min(100%, 133svh) + 4%),
      rgba(17, 16, 14, 0.86) calc(100% - min(100%, 133svh) + 22%),
      rgba(17, 16, 14, 0.42) calc(100% - min(100%, 133svh) + 40%),
      rgba(17, 16, 14, 0) calc(100% - min(100%, 133svh) + 58%)
    );
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(calc(100svh - var(--weekbar-height)), 920px);
  margin-top: calc(-1 * var(--top-height));
  padding: calc(var(--top-height) + 40px) var(--edge) 72px;
}

.hero .bleed::after {
  background:
    linear-gradient(
      180deg,
      rgba(17, 16, 14, 0.5) 0%,
      rgba(17, 16, 14, 0) 26%,
      rgba(17, 16, 14, 0) 64%,
      rgba(17, 16, 14, 0.8) 88%,
      var(--ground) 100%
    ),
    linear-gradient(
      90deg,
      var(--ground) 0%,
      var(--ground) calc(100% - min(100%, 122svh) + 2%),
      rgba(17, 16, 14, 0.88) calc(100% - min(100%, 122svh) + 16%),
      rgba(17, 16, 14, 0.4) calc(100% - min(100%, 122svh) + 36%),
      rgba(17, 16, 14, 0) calc(100% - min(100%, 122svh) + 56%)
    );
}

.hero__text {
  max-width: 39rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.1vw, 4.75rem);
  line-height: 1.06;
}

.hero .lead {
  max-width: 37rem;
  margin-top: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.hero__state {
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--on-image);
}

.hero__state > span {
  display: block;
  color: var(--ink-2);
  font-weight: 400;
}

/* ---------- The week: bar across, thread down ---------- */

.week {
  position: relative;
  /* Lets the bar read the scroll position of every day (the days are not its ancestors). */
  timeline-scope: --mo, --di, --mi, --do, --fr, --sa, --so;
}

.weekbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--weekbar-height);
  padding-inline: var(--edge);
  background: var(--ground);
  border-bottom: 1px solid var(--hairline);
}

.weekbar ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 100%;
}

/* The week as one thread: a line from Monday to Sunday with a knot for every day. */
.weekbar ol::before {
  content: '';
  position: absolute;
  top: 21.25px;
  left: 8.25px;
  right: calc(100% / 7 - 9.75px);
  height: 1.5px;
  background: var(--knot);
}

.weekbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  height: 100%;
  padding-top: 13px;
  text-decoration: none;
}

.weekbar__day {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-3);
  transition: color 200ms var(--ease-out);
}

/* The labels never wrap. They take their colour from the day label, which follows the scroll position; they hold
   no further element, so that the colour change always repaints the whole label. */
.weekbar__topic,
.weekbar__short {
  font-weight: 500;
  white-space: nowrap;
}

.weekbar__short {
  display: none;
}

.weekbar a:hover .weekbar__day {
  color: var(--cream);
}

/* ---------- Knots: later, now, done ---------- */

.knot {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  background: var(--ground);
  /* A ring in ground colour keeps the line from running through the knot. */
  box-shadow: 0 0 0 3px var(--ground);
}

.knot svg {
  width: 10px;
  height: 10px;
  color: var(--cream);
  opacity: 0;
}

.knot--now {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow:
    0 0 0 6px var(--accent-soft),
    0 0 0 6px var(--ground);
}

.knot--done {
  border-color: var(--knot);
  background: var(--knot);
}

.knot--done svg {
  opacity: 1;
}

/* ---------- Days ---------- */

.day {
  position: relative;
  padding-bottom: var(--day-gap);
  scroll-margin-top: calc(var(--weekbar-height) + 40px);
}

.day:first-of-type {
  padding-top: clamp(72px, 9vw, 128px);
}

/* The thread of the page: it comes down from Monday's knot in the bar and ends at Sunday's knot. */
.day::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--edge) + 8.25px);
  z-index: 1;
  width: 1.5px;
  background: var(--knot);
}

.day:last-of-type::before {
  bottom: auto;
  height: 1.2em;
}

.day__inner {
  position: relative;
  z-index: 2;
  margin-inline: var(--edge);
  padding-left: var(--thread-inset);
}

.day__title {
  position: relative;
  max-width: 21ch;
  font-size: clamp(2rem, 1.15rem + 2.7vw, 3.375rem);
  line-height: 1.1;
}

.day__title .knot {
  position: absolute;
  top: calc(0.55em - 9px);
  left: calc(-1 * var(--thread-inset));
}

.day__meta {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
}

.day__grid {
  display: grid;
  grid-template-columns: minmax(0, 29rem) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(36px, 4vw, 56px);
}

.day__copy {
  display: grid;
  gap: 20px;
  max-width: 31rem;
}

.day__copy p {
  text-wrap: pretty;
}

.day__copy p + .facts,
.day__copy p + .fine {
  margin-top: 8px;
}

.day__media {
  min-width: 0;
}

/* A day whose photograph fills the right side: the copy keeps to the wall on the left. */
.day__scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(480px, 46vw, 620px);
}

.day__scene .day__copy {
  margin-top: 32px;
}

/* The picture of a day reaches up into the space above it. Days share one stacking order (picture 0, thread 1,
   content 2), so the picture never paints over the thread of the day before. */
.day--photo .bleed {
  z-index: 0;
  top: calc(var(--day-gap) * -0.5);
  bottom: auto;
  height: clamp(600px, 60vw, 800px);
}

.day__after {
  margin-top: clamp(40px, 5vw, 72px);
}

/* Thursday: the screens stand on the right and rise into the fade of the photograph. */
.day__after--rise {
  margin-top: clamp(-176px, -11vw, -96px);
}

.day__wide {
  margin-top: clamp(40px, 5vw, 64px);
}

/* Where the coach lives in the app: the f of the bar, at the size it has there. */
.coach-way {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Sunday closes the week: three screens, a little larger. */
.day__wide .screen {
  width: clamp(232px, 25vw, 336px);
}

/* Wednesday turns the order round: the screen hangs on the thread, the copy stands beside it. */
.day__grid--flip {
  grid-template-columns: auto minmax(0, 29rem);
  justify-content: start;
}

.day__grid--flip .day__media {
  order: -1;
}

/* ---------- App screens ---------- */

.screens {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
}

.screens--end {
  justify-content: flex-end;
}

.screen {
  flex: none;
  width: clamp(232px, 21vw, 288px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: clamp(32px, 3vw, 42px);
  background: var(--ground);
}

.screen img {
  width: 100%;
  aspect-ratio: 390 / 844;
}

.screens--step .screen:nth-child(even) {
  margin-top: clamp(40px, 5vw, 72px);
}

.screens + .fine,
.tile + .fine {
  margin-top: 16px;
}

.screens--end + .fine {
  text-align: right;
}

/* ---------- A picture tile (specification §7.6 "Bildkachel") ---------- */

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile--wide {
  aspect-ratio: 16 / 10;
}

.tile--wide img {
  object-position: 78% 50%;
}

/* Friday: the screen stands in front at its full size, the picture of the two chairs behind it. */
.pair {
  display: flex;
  align-items: center;
}

.pair .tile {
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  margin-left: clamp(-96px, -6vw, -56px);
  aspect-ratio: 4 / 3.7;
}

.pair .tile img {
  object-position: 80% 50%;
}

.pair .screen {
  order: 1;
  position: relative;
  z-index: 1;
}

.pair + .fine {
  margin-top: 16px;
}

/* ---------- Rows of fixed facts (specification §7.6 "Wertezeile") ---------- */

.facts {
  display: grid;
}

.facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--ink-2);
}

.facts dd {
  font-weight: 600;
  text-align: right;
}

/* ---------- The coach sentence, live (Wednesday) ---------- */

.coach {
  display: grid;
  gap: 20px;
  max-width: 34rem;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px;
  background: var(--surface);
}

.coach__by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.coach__line {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-image);
}

.coach__line strong {
  font-weight: 600;
  color: var(--cream);
}

.coach__why {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

.coach .facts {
  margin-top: -12px;
}

/* ---------- After the week ---------- */

.after {
  padding: clamp(88px, 10vw, 152px) var(--edge) 0;
}

.after__title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.15rem + 2.7vw, 3.375rem);
  line-height: 1.1;
}

.after__lead {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--ink-2);
}

.after__more {
  margin-top: 28px;
}

/* Tariffs in short: two lists of plain rows. They are read here; the chooser lives on /tarife. */
.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}

.pairs dl {
  display: grid;
  align-content: start;
}

.pairs__title {
  padding-bottom: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-2);
}

.pairs div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--hairline);
}

.pairs div dt {
  font-weight: 600;
}

.pairs div dd {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Plain statements as list rows with hairlines. */
.plain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  margin-top: clamp(32px, 4vw, 48px);
}

.plain li {
  padding: 24px 0 28px;
  border-top: 1px solid var(--hairline);
}

.plain h3 {
  font-size: 1.1875rem;
  line-height: 1.35;
  font-weight: 600;
}

.plain p {
  margin-top: 8px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Questions: a row opens in place. */
.ask {
  max-width: 46rem;
  margin-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--hairline);
}

.ask details {
  border-bottom: 1px solid var(--hairline);
}

.ask summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 14px 0;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ask summary::-webkit-details-marker {
  display: none;
}

.ask summary svg {
  flex: none;
  color: var(--ink-3);
  transition: transform 240ms var(--ease-out);
}

.ask details[open] summary svg {
  transform: rotate(45deg);
}

.ask summary:hover svg {
  color: var(--cream);
}

.ask details > div {
  display: grid;
  gap: 12px;
  max-width: 40rem;
  padding: 0 0 24px;
  color: var(--ink-2);
}

.ask h2 {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-bottom: 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-2);
}

.ask h2:first-child {
  margin-top: 0;
}

.ask--groups {
  border-top: 0;
}

.ask--groups h2 {
  border-bottom: 1px solid var(--hairline);
}

/* The close: the day ends, the page ends. */
.close {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(520px, 56vw, 720px);
  margin-top: clamp(72px, 8vw, 120px);
  padding: 96px var(--edge);
}

/* The thread comes back for one more knot: what is next is the visitor's own step. */
.close {
  padding-left: calc(var(--edge) + var(--thread-inset));
}

.close h2 {
  position: relative;
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.08;
}

.close h2::before {
  content: '';
  position: absolute;
  bottom: calc(100% - 0.54em + 15px);
  left: calc(8.25px - var(--thread-inset));
  width: 1.5px;
  height: 168px;
  background: linear-gradient(180deg, rgba(58, 53, 46, 0) 0%, var(--knot) 100%);
}

.close .knot {
  position: absolute;
  top: calc(0.54em - 9px);
  left: calc(-1 * var(--thread-inset));
}

.close p {
  max-width: 30rem;
  margin-top: 20px;
  color: var(--on-image);
}

.close .button {
  align-self: flex-start;
  margin-top: 36px;
}

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

.foot {
  padding: 56px var(--edge) 40px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.foot__brand p {
  max-width: 24rem;
  margin-top: 16px;
}

.foot__nav {
  display: grid;
  align-content: start;
  gap: 2px;
}

.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
}

.foot__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.foot__note {
  max-width: 46rem;
  margin-top: 48px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- Other pages ---------- */

.page {
  padding: clamp(40px, 6vw, 88px) var(--edge) clamp(88px, 10vw, 144px);
}

.page__head {
  max-width: 44rem;
}

.page__head h1 {
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.75rem);
  line-height: 1.08;
}

/* Help and legal pages: a plain title, no voice. */
.page__title {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page__head .lead {
  margin-top: 24px;
  color: var(--ink-2);
}

.page__section {
  margin-top: clamp(56px, 7vw, 104px);
}

.page__section > h2 {
  max-width: 22ch;
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page__section > h2 + p {
  max-width: 40rem;
  margin-top: 16px;
  color: var(--ink-2);
}

.page__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* The tariff chooser: two groups of selection rows (specification §7.6 "Auswahlzeile"). It works without
   scripts: the result that matches the two checked rows is the one that shows. */
.chooser {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.chooser__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chooser fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chooser legend {
  padding: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-2);
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 60px;
  padding: 17px 18px 18px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.choice:hover {
  background: var(--surface-2);
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  color: transparent;
}

.choice__text {
  display: grid;
  gap: 4px;
}

.choice__text strong {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
}

.choice__text span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Selected is cream, as everything that is "on"; yellow stays with the one action of the page. */
.choice:has(input:checked) {
  border-color: var(--cream);
}

.choice:has(input:checked) .choice__dot {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ground);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.chooser__result {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 24px;
  background: var(--surface);
}

.result {
  display: none;
  gap: 12px;
}

.result h3 {
  font-size: 1.375rem;
  line-height: 1.27;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.result h3 span {
  font-weight: 400;
  color: var(--ink-2);
}

.result p {
  color: var(--ink-2);
  text-wrap: pretty;
}

.result .button {
  margin-top: 12px;
}

.chooser:has(#s-fitness:checked):has(#b-ki:checked) .result--fitness-ki,
.chooser:has(#s-fitness:checked):has(#b-begleitet:checked) .result--fitness-begleitet,
.chooser:has(#s-fitness:checked):has(#b-intensiv:checked) .result--fitness-intensiv,
.chooser:has(#s-longevity:checked):has(#b-ki:checked) .result--longevity-ki,
.chooser:has(#s-longevity:checked):has(#b-begleitet:checked) .result--longevity-begleitet,
.chooser:has(#s-longevity:checked):has(#b-intensiv:checked) .result--longevity-intensiv,
.chooser:has(#s-beides:checked):has(#b-ki:checked) .result--beides-ki,
.chooser:has(#s-beides:checked):has(#b-begleitet:checked) .result--beides-begleitet,
.chooser:has(#s-beides:checked):has(#b-intensiv:checked) .result--beides-intensiv {
  display: grid;
}

/* Without :has() every combination would stay hidden: show them all as a plain list instead. */
@supports not selector(:has(*)) {
  .result {
    display: grid;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--hairline);
  }

  .choice input {
    position: static;
    opacity: 1;
  }

  .choice__dot {
    display: none;
  }

  .result .button--now {
    background: var(--surface-2);
    color: var(--cream);
  }
}

/* A page with a photograph on the right, like the image header of the app. */
.page--photo {
  position: relative;
  isolation: isolate;
}

.page--photo .bleed {
  bottom: auto;
  height: clamp(420px, 46vw, 640px);
}

.page--photo .page__head {
  min-height: clamp(240px, 26vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.split h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.split h2 + p,
.split p + p {
  margin-top: 16px;
}

.split .facts {
  margin-top: 20px;
}

.steps {
  display: grid;
  gap: 0;
  max-width: 40rem;
  margin-top: 28px;
}

/* Steps in order are a thread, like everything with an order in the app. */
.steps li {
  position: relative;
  padding: 0 0 28px 40px;
}

.steps li::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: -4px;
  left: 8.25px;
  width: 1.5px;
  background: var(--knot);
}

.steps li:last-child::before {
  display: none;
}

.steps li::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 0 0 3px var(--ground);
}

/* The first step is where things stand now. */
.steps--now li:first-child::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow:
    0 0 0 6px var(--accent-soft),
    0 0 0 6px var(--ground);
}

.steps__note {
  max-width: 40rem;
  margin-top: 8px;
}

.steps strong {
  display: block;
  font-weight: 600;
}

.steps li > span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
}

/* Running text: help and legal pages. */
.prose {
  max-width: 42rem;
  margin-top: clamp(32px, 4vw, 48px);
}

.prose h2 {
  margin-top: 2.4em;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p,
.prose ol,
.prose ul {
  margin-top: 1em;
  color: var(--on-image);
}

.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 1.4em;
  list-style: decimal;
}

.prose li::marker {
  color: var(--ink-3);
  font-weight: 600;
}

.prose a {
  color: var(--cream);
}

.prose__state {
  margin-top: 2.4em;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

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

@media (prefers-reduced-motion: no-preference) {
  /* The week assembles once: the line draws across, then the knots land one after another. */
  .weekbar ol::before {
    transform-origin: left center;
    animation: draw-across 900ms var(--ease-out) 200ms both;
  }

  .weekbar li {
    animation: land 700ms var(--ease-out) both;
  }

  .weekbar li:nth-child(1) {
    animation-delay: 260ms;
  }
  .weekbar li:nth-child(2) {
    animation-delay: 340ms;
  }
  .weekbar li:nth-child(3) {
    animation-delay: 420ms;
  }
  .weekbar li:nth-child(4) {
    animation-delay: 500ms;
  }
  .weekbar li:nth-child(5) {
    animation-delay: 580ms;
  }
  .weekbar li:nth-child(6) {
    animation-delay: 660ms;
  }
  .weekbar li:nth-child(7) {
    animation-delay: 740ms;
  }
}

@keyframes draw-across {
  from {
    transform: scaleX(0);
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* The thread follows the reader: a day is "later" until it reaches the middle of the screen, "now" while it is
   being read and "done" afterwards. Browsers without scroll timelines keep every knot in its quiet state. */
@supports (animation-timeline: view()) {
  #mo {
    view-timeline: --mo block;
  }
  #di {
    view-timeline: --di block;
  }
  #mi {
    view-timeline: --mi block;
  }
  #do {
    view-timeline: --do block;
  }
  #fr {
    view-timeline: --fr block;
  }
  #sa {
    view-timeline: --sa block;
  }
  #so {
    view-timeline: --so block;
  }

  [data-day] .knot {
    animation: knot-state linear both;
  }

  [data-day] .knot svg {
    animation: knot-check linear both;
  }

  [data-day] .weekbar__day {
    animation: day-label linear both;
  }

  /* Monday is "now" from the first screen on: it is where the week starts. */
  [data-day='mo'] .knot {
    animation-name: knot-state-first;
  }

  [data-day='mo'] .weekbar__day {
    animation-name: day-label-first;
  }

  /* Sunday stays "now" at the end of the week. */
  [data-day='so'] .knot {
    animation-name: knot-state-last;
  }

  [data-day='so'] .knot svg {
    animation-name: none;
  }

  [data-day='so'] .weekbar__day {
    animation-name: day-label-last;
  }

  [data-day='mo'] .knot,
  [data-day='mo'] .knot svg,
  [data-day='mo'] .weekbar__day {
    animation-timeline: --mo;
  }
  [data-day='di'] .knot,
  [data-day='di'] .knot svg,
  [data-day='di'] .weekbar__day {
    animation-timeline: --di;
  }
  [data-day='mi'] .knot,
  [data-day='mi'] .knot svg,
  [data-day='mi'] .weekbar__day {
    animation-timeline: --mi;
  }
  [data-day='do'] .knot,
  [data-day='do'] .knot svg,
  [data-day='do'] .weekbar__day {
    animation-timeline: --do;
  }
  [data-day='fr'] .knot,
  [data-day='fr'] .knot svg,
  [data-day='fr'] .weekbar__day {
    animation-timeline: --fr;
  }
  [data-day='sa'] .knot,
  [data-day='sa'] .knot svg,
  [data-day='sa'] .weekbar__day {
    animation-timeline: --sa;
  }
  [data-day='so'] .knot,
  [data-day='so'] .knot svg,
  [data-day='so'] .weekbar__day {
    animation-timeline: --so;
  }
}

/* For a section taller than the screen, "entry 45%" is its top edge a little below the middle of the screen and
   "exit 45%" its bottom edge at the same height: the moment the next day takes over. */
@keyframes knot-state {
  entry 0%,
  entry 43% {
    border-color: var(--ink-3);
    background-color: var(--ground);
    box-shadow:
      0 0 0 3px var(--ground),
      0 0 0 3px var(--ground);
  }
  entry 47%,
  exit 43% {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow:
      0 0 0 6px var(--accent-soft),
      0 0 0 6px var(--ground);
  }
  exit 47%,
  exit 100% {
    border-color: var(--knot);
    background-color: var(--knot);
    box-shadow:
      0 0 0 3px var(--ground),
      0 0 0 3px var(--ground);
  }
}

@keyframes knot-state-first {
  entry 0%,
  exit 43% {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow:
      0 0 0 6px var(--accent-soft),
      0 0 0 6px var(--ground);
  }
  exit 47%,
  exit 100% {
    border-color: var(--knot);
    background-color: var(--knot);
    box-shadow:
      0 0 0 3px var(--ground),
      0 0 0 3px var(--ground);
  }
}

@keyframes knot-state-last {
  entry 0%,
  entry 43% {
    border-color: var(--ink-3);
    background-color: var(--ground);
    box-shadow:
      0 0 0 3px var(--ground),
      0 0 0 3px var(--ground);
  }
  entry 47%,
  exit 100% {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow:
      0 0 0 6px var(--accent-soft),
      0 0 0 6px var(--ground);
  }
}

@keyframes knot-check {
  entry 0%,
  exit 45% {
    opacity: 0;
  }
  exit 49%,
  exit 100% {
    opacity: 1;
  }
}

@keyframes day-label {
  entry 0%,
  entry 43% {
    color: var(--ink-3);
  }
  entry 47%,
  exit 43% {
    color: var(--cream);
  }
  exit 47%,
  exit 100% {
    color: var(--ink-2);
  }
}

@keyframes day-label-first {
  entry 0%,
  exit 43% {
    color: var(--cream);
  }
  exit 47%,
  exit 100% {
    color: var(--ink-2);
  }
}

@keyframes day-label-last {
  entry 0%,
  entry 43% {
    color: var(--ink-3);
  }
  entry 47%,
  exit 100% {
    color: var(--cream);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
  .day__grid,
  .day__grid--flip {
    grid-template-columns: minmax(0, 1fr);
  }

  .day__grid--flip .day__media {
    order: 0;
  }

  .day__wide .screen {
    width: clamp(232px, 30vw, 288px);
  }

  .day__copy {
    max-width: 36rem;
  }

  .screens--end {
    justify-content: flex-start;
  }

  .screens--end + .fine {
    text-align: left;
  }

  /* Screens line up in a row that is swiped sideways when it does not fit, so nothing widens the page. */
  .screens {
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .screens::-webkit-scrollbar {
    display: none;
  }

  .screen {
    scroll-snap-align: start;
  }

  .day__after--rise {
    margin-top: clamp(40px, 5vw, 72px);
  }

  .screen {
    width: clamp(232px, 30vw, 288px);
  }

  .chooser {
    grid-template-columns: minmax(0, 1fr);
  }

  .chooser__result {
    position: static;
  }
}

/* Between phone and desktop the screen is too narrow for copy and subject side by side at full size: the
   subject moves towards the right edge and the copy keeps to the wall. */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero .bleed img,
  .close .bleed img {
    right: -11vw;
  }

  .hero__text {
    max-width: 54vw;
  }

  .day--photo .bleed img {
    right: -8vw;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero .bleed img,
  .close .bleed img {
    right: -22vw;
  }

  .hero__text {
    max-width: 60vw;
  }

  .day--photo .bleed img {
    right: -18vw;
  }

  .day__scene .day__title,
  .day__scene .day__copy {
    max-width: 56vw;
  }
}

@media (max-width: 860px) {
  :root {
    --thread-inset: 40px;
    --weekbar-height: 78px;
  }

  .top__nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .weekbar__topic {
    display: none;
  }

  .weekbar__short {
    display: block;
    width: 100%;
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  .pairs,
  .plain,
  .split,
  .chooser__groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
    --top-height: 64px;
  }

  body {
    font-size: 1.0625rem;
  }

  .only-wide {
    display: none;
  }

  .only-narrow {
    display: inline;
  }

  /* On a phone the picture stands on top, as in the app, and the text begins in its lower, dark part. The
     hero is as tall as its content, so the week strip below it stays inside the first screen. */
  .hero {
    justify-content: flex-end;
    min-height: 0;
    padding: 188px var(--gutter) 28px;
  }

  .hero .bleed {
    bottom: auto;
    height: 404px;
  }

  .hero .bleed img {
    right: -84px;
  }

  .hero .bleed::after {
    background:
      linear-gradient(
        180deg,
        rgba(17, 16, 14, 0.42) 0%,
        rgba(17, 16, 14, 0.06) 20%,
        rgba(17, 16, 14, 0.34) 40%,
        rgba(17, 16, 14, 0.8) 58%,
        rgba(17, 16, 14, 0.96) 80%,
        var(--ground) 100%
      ),
      linear-gradient(90deg, rgba(17, 16, 14, 0.6) 0%, rgba(17, 16, 14, 0.3) 46%, rgba(17, 16, 14, 0) 72%);
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.5rem);
    line-height: 1.1;
  }

  .hero .lead {
    margin-top: 16px;
    font-size: 1.0625rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }

  .hero__state > span {
    display: none;
  }

  .button {
    width: 100%;
  }

  .close .button {
    align-self: stretch;
  }

  .screen,
  .day__wide .screen {
    width: min(264px, 72vw);
  }

  .screens--step .screen:nth-child(even) {
    margin-top: 0;
  }

  .day--photo .day__scene {
    min-height: 0;
    padding-top: 250px;
  }

  .day--photo .bleed {
    top: -24px;
    height: 340px;
  }

  .day--photo .bleed img {
    right: -52px;
  }

  .day--photo .bleed::after {
    background:
      linear-gradient(
        180deg,
        var(--ground) 0%,
        rgba(17, 16, 14, 0.2) 22%,
        rgba(17, 16, 14, 0.2) 50%,
        rgba(17, 16, 14, 0.82) 78%,
        var(--ground) 100%
      ),
      linear-gradient(90deg, var(--ground) 0%, rgba(17, 16, 14, 0.5) 34%, rgba(17, 16, 14, 0) 70%);
  }

  .pair {
    display: grid;
  }

  .pair .tile {
    order: 1;
    margin-left: 0;
    aspect-ratio: 4 / 3;
  }

  .pair .screen {
    order: 2;
    margin: -104px 0 0 16px;
  }

  .pairs div {
    grid-template-columns: minmax(0, 1fr);
  }

  .close {
    justify-content: flex-end;
    min-height: 620px;
    padding: 280px var(--gutter) 64px calc(var(--gutter) + var(--thread-inset));
  }

  .close .bleed img {
    right: -90px;
    height: 400px;
  }

  .close .bleed::after {
    background:
      linear-gradient(
        180deg,
        var(--ground) 0%,
        rgba(17, 16, 14, 0.1) 24%,
        rgba(17, 16, 14, 0.3) 46%,
        rgba(17, 16, 14, 0.9) 64%,
        var(--ground) 78%
      ),
      linear-gradient(90deg, var(--ground) 0%, rgba(17, 16, 14, 0.4) 40%, rgba(17, 16, 14, 0) 76%);
  }

  .page--photo .bleed {
    height: 320px;
  }

  .page--photo .bleed::after {
    background:
      linear-gradient(
        180deg,
        var(--ground) 0%,
        rgba(17, 16, 14, 0.2) 20%,
        rgba(17, 16, 14, 0.4) 44%,
        rgba(17, 16, 14, 0.9) 64%,
        var(--ground) 84%
      ),
      linear-gradient(90deg, var(--ground) 0%, rgba(17, 16, 14, 0.5) 36%, rgba(17, 16, 14, 0) 72%);
  }

  .page--photo .bleed img {
    right: -100px;
  }

  .page--photo .page__head {
    min-height: 0;
    padding-top: 150px;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
