/*
  Langkah site. Tokens are copied from docs/design.md of the app (colors, type roles,
  spacing, radius, shadow, motion). Web-only additions are marked "web:".
*/

/* Nunito is the rounded face design.md names for web mockups, and the app bundles it too.
   ui-rounded was tried first but Safari on iOS 27 rendered plain SF Pro, so Nunito leads. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light; /* the brand is light only (design.md) */

  --background: #faf8f4;
  --surface: #ffffff;
  --ink: #3f4542;
  --ink-2: #626864;
  --line: #e6e0d6;
  --sage: #8fb8a8;
  --sage-dark: #447267;
  --sage-tint: #e5efea;
  --first-tint: #e7ecf6;
  --first-ink: #4c6392;
  --then-tint: #fbeadb;
  --then-ink: #955c2d;
  --star: #efc24f;
  --star-line: #b9861c;
  --dino-tint: #e2f0e2;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-section: clamp(64px, 10vw, 128px); /* web: distance between page sections */

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  --control-sm: 44px;
  --control-lg: 56px;

  --duration-fast: 150ms;
  --easing-swipe: cubic-bezier(0.32, 0.72, 0, 1);

  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --page: 1120px; /* web: content width */
  --measure: 62ch; /* web: reading width */
  --header-height: 77px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--sage) var(--background);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--background);
  color: var(--ink);
  font: 600 1rem/1.5 var(--font); /* --text-body, line height loosened for long reading */
  overflow-wrap: break-word;
  accent-color: var(--sage-dark);
  caret-color: var(--sage-dark);
}

::selection {
  background: var(--sage-tint);
  color: var(--ink);
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 3px solid var(--sage-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: min(100% - 2 * var(--sp-5), var(--page));
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: var(--sp-4);
  top: -100px;
  z-index: 6;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
}

.skip:focus {
  top: var(--sp-4);
}

/* Type roles from the app, scaled up only where the web page needs a display size. */
.display {
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5rem); /* web: hero size above --text-display */
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); /* --text-title, fluid */
}

.headline {
  font-size: 1.375rem; /* --text-headline */
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  max-width: 34ch;
}

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

.stage-first {
  background: var(--first-tint);
  color: var(--first-ink);
}

.stage-then {
  background: var(--then-tint);
  color: var(--then-ink);
}

/* Header and footer */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding-block: var(--sp-4);
  padding-inline: max(var(--sp-5), calc((100% - var(--page)) / 2));
  background: var(--background);
  border-bottom: 1.5px solid var(--line);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--control-sm);
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline-end: calc(-1 * var(--sp-3));
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-sm);
  padding-inline: var(--sp-3);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--duration-fast) ease-out;
}

.nav a:hover {
  background: var(--sage-tint);
}

.nav a[aria-current="page"] {
  background: var(--sage-tint);
  color: var(--sage-dark);
}

.nav .lang {
  border: 1.5px solid var(--line);
  margin-inline-start: var(--sp-2);
}

.site-footer {
  padding-block: var(--sp-7) var(--sp-8);
  border-top: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-sm);
}

/* Buttons: PrimaryButton from the design system */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-lg);
  padding: var(--sp-3) var(--sp-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: var(--sage-dark);
  color: var(--surface);
  font: 800 1.0625rem/1.15 var(--font); /* --text-label-strong */
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease-out;
}

.button:active {
  opacity: 0.85;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

/* First load: the app's own buddies introduce Langkah while its artwork loads. */
.site-loader {
  display: none;
}

.is-loading {
  overflow: hidden;
}

.is-loading .site-loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--background);
  text-align: center;
}

.loader-buddies {
  display: flex;
  width: min(100%, 360px);
  margin-bottom: var(--sp-5);
}

.loader-buddies img {
  width: 50%;
  object-fit: contain;
}

.site-loader strong {
  color: var(--sage-dark);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
}

.loader-status {
  color: var(--ink-2);
  font-size: 0.875rem;
}

/* Hero */
.hero {
  display: grid;
  gap: var(--sp-6);
  align-content: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: var(--sp-6);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  text-align: center;
}

.hero .display {
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
}

.hero .lede {
  max-width: 58ch;
  font-size: 1.0625rem;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-7) var(--sp-5);
}

.hero-features {
  display: grid;
  gap: var(--sp-7);
  align-self: center;
}

.hero-feature {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-2);
  color: var(--ink);
  text-decoration: none;
}

.hero-feature h2 {
  font-size: 1.25rem;
}

.hero-feature p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-feature:hover h2 {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-device {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
}

.phone {
  position: relative;
  width: clamp(160px, 25svh, 240px);
  max-width: 100%;
  aspect-ratio: 390 / 844;
  border: 6px solid var(--ink);
  border-radius: var(--radius-2xl);
  background: var(--background);
  container-type: inline-size;
}

.phone-camera {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 28%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: var(--ink);
}

.phone::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 35%;
  width: 30%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--ink);
}

.phone-viewport {
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-2xl) - 6px);
}

.phone-track {
  display: flex;
  height: 100%;
}

.preview-screen {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}

.preview-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5cqw;
  padding: 24cqw 6cqw 34cqw;
}

.preview-first {
  background: var(--first-tint);
}

.preview-then {
  background: var(--then-tint);
}

.preview-lock {
  position: absolute;
  top: 12cqw;
  left: 6cqw;
  width: 5cqw;
  height: 5cqw;
  color: var(--ink-2);
}

.preview-next {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2cqw 5cqw 2cqw 2cqw;
  border-radius: var(--radius-pill);
  background: var(--then-tint);
  border: 1px solid var(--line);
}

.preview-next img {
  width: 12cqw;
  height: 12cqw;
  background: var(--surface);
  border-radius: 50%;
}

.preview-next span {
  display: grid;
  font-size: 4.5cqw;
}

.preview-next small {
  color: var(--then-ink);
  font-size: 3cqw;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-card {
  display: grid;
  justify-items: center;
  gap: 5cqw;
  padding: 5cqw;
  border-radius: 8cqw;
  background: var(--surface);
  text-align: center;
}

.preview-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--dino-tint);
  border-radius: 6cqw;
}

.preview-card strong {
  font-size: 8cqw;
  font-weight: 900;
}

.preview-done {
  display: grid;
  place-items: center;
  min-height: 14cqw;
  border-radius: 5cqw;
  background: var(--sage-dark);
  color: var(--surface);
  font-size: 5cqw;
  font-weight: 900;
}

.preview-good-job {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5cqw;
  padding: 12cqw 6cqw 24cqw;
  background: var(--background);
}

.preview-good-job > img {
  width: 70cqw;
}

.preview-good-job > strong {
  font-size: 10cqw;
  font-weight: 900;
}

.preview-star {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 2cqw 4cqw;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 5cqw;
}

.preview-star .star {
  width: 6cqw;
  height: 6cqw;
}

@media (prefers-reduced-motion: no-preference) {
  .preview-enhanced .phone-track {
    animation: preview-swipe 13.2s var(--easing-swipe) infinite;
  }

  .preview-paused .phone-track,
  .phone:focus-within .phone-track,
  .is-loading .phone-track {
    animation-play-state: paused;
  }
}

@keyframes preview-swipe {
  0%, 22.727273% { transform: translateX(0); }
  25%, 47.727273% { transform: translateX(-100%); }
  50%, 72.727273% { transform: translateX(-200%); }
  75%, 97.727273% { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}

.splash {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 6cqw;
  text-align: center;
}

.splash-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7cqw minmax(0, 1fr);
  align-items: center;
  gap: 2cqw;
  margin-bottom: 10cqw;
}

.splash-card {
  display: grid;
  gap: 3cqw;
  padding: 3cqw;
  border: 1px solid var(--line);
  border-radius: 6cqw;
  background: var(--surface);
  font-size: 4cqw;
  line-height: 1.15;
}

.splash-stage {
  background: transparent;
  font-size: 3.3cqw;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.splash-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4cqw;
}

.splash-card:first-child img {
  background: var(--first-tint);
}

.splash-card:last-child img {
  background: var(--then-tint);
}

.splash-arrow {
  width: 7cqw;
  height: 7cqw;
  color: var(--sage-dark);
}

.splash-name {
  color: var(--sage-dark);
  font-size: 13cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.splash > p {
  margin-top: 4cqw;
  color: var(--ink-2);
  font-size: 4cqw;
  font-weight: 600;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
}

.store-button {
  position: relative;
  width: 144px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  overflow: hidden;
}

.store-button-play {
  width: 162px;
}

.store-button-play img {
  position: absolute;
  width: 184px;
  max-width: none;
  top: -11.6px;
  left: -11px;
}

.store-button:disabled {
  cursor: not-allowed;
}

.store-note {
  margin-top: calc(-1 * var(--sp-3));
  color: var(--ink-2);
  font-size: 0.75rem;
  text-align: center;
}

.star {
  width: 20px;
  height: 20px;
  color: var(--star);
  stroke: var(--star-line);
  stroke-width: 12;
  stroke-linejoin: round;
}

/* Sections */
.section {
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: var(--sp-8);
}

.section-copy {
  display: grid;
  gap: var(--sp-4);
  max-width: var(--measure);
}

.split {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

/* Timer: the two states of TimerRing */
.timer-visual {
  display: grid;
  gap: var(--sp-4);
}

.timer-art {
  width: min(55%, 240px);
  margin-inline: auto;
}

.rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.ring-card {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-3);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}

.ring {
  position: relative;
  width: min(100%, 148px);
  aspect-ratio: 1;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-track {
  stroke: var(--line);
}

.ring-run {
  stroke: var(--sage-dark);
  stroke-dasharray: 289;
  stroke-dashoffset: 110;
}

.ring .ring-up {
  stroke: var(--then-tint);
  fill: var(--then-tint);
}

.ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.1;
}

.ring-card p {
  color: var(--ink-2);
  font-size: 0.8125rem; /* --text-caption */
  font-weight: 700;
  line-height: 1.3;
}

/* Stars: one full-width field */
.band {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: var(--sp-8);
  background: var(--dino-tint);
}

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

.band-art {
  width: min(70%, 320px);
  margin-inline: auto;
}

.statement {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.statement .star {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.06em;
  stroke-width: 10;
}

/* Two identical groups keep the free-card showcase moving without a visible reset. */
.card-marquee {
  min-width: 0;
  margin-top: var(--sp-7);
  overflow-x: auto;
  scrollbar-width: thin;
}

.strip {
  display: flex;
  width: max-content;
  gap: var(--sp-4);
  padding: var(--sp-1) var(--sp-4) var(--sp-4) 0;
  list-style: none;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-enhanced {
    overflow: hidden;
  }

  .marquee-enhanced .strip {
    animation: cards-slide 60s linear infinite;
  }

  .marquee-paused .strip,
  .card-marquee:focus-within .strip {
    animation-play-state: paused;
  }
}

@media (hover: hover) and (pointer: fine) {
  .phone:hover .phone-track,
  .card-marquee:hover .strip {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

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

  .preview-repeat {
    display: none;
  }

  .strip .tile-repeat {
    display: none;
  }
}

@keyframes cards-slide {
  to { transform: translateX(-50%); }
}

.tile {
  flex: 0 0 min(44vw, 200px);
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* Parent and child: two plain columns, no cards */
.mode-art {
  width: min(100%, 300px);
  margin-inline: auto;
}

.roles {
  display: grid;
  gap: var(--sp-7);
  margin-top: var(--sp-7);
}

.roles > div {
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1.5px solid var(--line);
}

.roles ul {
  display: grid;
  gap: var(--sp-2);
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}

.roles li::marker {
  color: var(--sage);
}

.lock-chip {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-inline: 2px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-2);
  vertical-align: middle;
}

.lock-chip svg {
  width: 14px;
  height: 14px;
}

/* Free and Pro */
.plans {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-2);
}

.plans dt {
  font-size: 1.0625rem;
  font-weight: 800;
}

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

.art {
  width: min(100%, 420px);
  margin-inline: auto;
}

/* Closing field */
.closing {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: var(--sp-8);
  background: var(--sage-dark);
  color: var(--surface);
}

.closing .section-copy {
  gap: var(--sp-5);
}

.closing p {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.closing ::selection {
  background: var(--surface);
  color: var(--sage-dark);
}

.closing :focus-visible {
  outline-color: var(--surface);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

/* Reading pages: privacy and support */
.doc {
  padding-block: var(--sp-6) var(--sp-section);
}

.doc-head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.doc-body {
  max-width: var(--measure);
  line-height: 1.6;
}

.doc-body > * + * {
  margin-top: var(--sp-4);
}

.doc-body h2 {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1.5px solid var(--line);
  font-size: 1.375rem;
  scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}

.doc-body h3 {
  margin-top: var(--sp-7);
  font-size: 1.0625rem;
  font-weight: 800;
  scroll-margin-top: calc(var(--header-height) + var(--sp-4));
}

.doc-body ul,
.doc-body ol {
  display: grid;
  gap: var(--sp-2);
  padding-inline-start: 1.3em;
}

.doc-body li::marker {
  color: var(--sage-dark);
  font-weight: 800;
}

.summary {
  padding: var(--sp-5);
  border-radius: var(--radius-xl);
  background: var(--sage-tint);
}

.summary h2,
.contact h2 {
  margin: 0 0 var(--sp-3);
  padding: 0;
  border: 0;
}

.contact {
  display: grid;
  gap: var(--sp-2);
  justify-items: start;
  padding: var(--sp-5);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.contact .button {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.doc-body .toc {
  display: block;
  columns: 2 14rem;
  column-gap: var(--sp-7);
  padding: 0;
  list-style: none;
}

.toc li {
  break-inside: avoid;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-sm);
}

@media (max-width: 480px) {
  .brand {
    gap: var(--sp-2);
    font-size: 1.25rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding-inline: 10px;
    font-size: 0.875rem;
  }

  .nav .lang {
    margin-inline-start: var(--sp-1);
  }
}

@media (max-width: 389px) {
  :root {
    --header-height: 129px;
  }
}

@media (min-width: 760px) {
  .hero-showcase {
    grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
    gap: var(--sp-3) var(--sp-8);
  }

  .hero-device {
    display: contents;
  }

  .phone {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .store-actions {
    grid-column: 2;
    grid-row: 2;
  }

  .store-note {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }

  .features-left {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
  }

  .features-right {
    grid-column: 3;
    grid-row: 1;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-section);
  }

  .band .split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--sp-8);
  }

  .band-art {
    width: 100%;
  }

  .roles {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .art-first {
    order: -1;
  }
}

/* Motion from design.md: the mascot breathes on a screen with no task. */
@media (prefers-reduced-motion: no-preference) {
  .breathe {
    animation: breathe 3s ease-in-out infinite alternate;
  }
}

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

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

@keyframes breathe {
  to {
    transform: translateY(-4px) scale(1.03);
  }
}
