/* ==========================================================================
   Worklane — landing page

   The palette is the app's `mesh_gradient` theme (frontend/src/styles/themes.css)
   so the page and the product read as one thing. Two mesh layers do the work:
   a fixed, slowly drifting CSS mesh behind everything, and the generated SVGs in
   assets/ pinned to the hero and the closing band.
   ========================================================================== */

:root {
  --canvas: 15 12 28;
  --surface: 30 25 50;
  --surface-raised: 41 34 68;
  --border: 64 55 100;
  --content: 240 238 250;
  --content-muted: 184 178 212;
  --content-subtle: 140 133 172;
  --accent: 167 110 255;
  --secondary: 244 114 182;
  --teal: 45 212 191;
  --blue: 96 165 250;
  --amber: 251 191 36;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --panel-bg: rgb(var(--surface) / 0.55);
  --panel-border: 1px solid rgb(255 255 255 / 0.09);
  --shadow: 0 2px 10px rgb(10 6 24 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.06);
  --shadow-raised: 0 18px 46px rgb(8 4 20 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.1);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* The sticky header must not cover the heading of an anchored section. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: rgb(var(--content));
  background: rgb(var(--canvas));
  /* No stacking context here: the mesh layer below relies on z-index: -1. */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The page-wide drifting mesh. Same construction as the app's theme. */
body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(38% 42% at 22% 18%, rgb(167 110 255 / 0.5), transparent 62%),
    radial-gradient(34% 38% at 82% 12%, rgb(244 114 182 / 0.4), transparent 60%),
    radial-gradient(40% 40% at 86% 82%, rgb(45 212 191 / 0.3), transparent 62%),
    radial-gradient(36% 44% at 12% 86%, rgb(96 165 250 / 0.36), transparent 60%),
    radial-gradient(30% 32% at 52% 52%, rgb(251 146 60 / 0.18), transparent 65%);
  filter: blur(30px) saturate(115%);
  animation: mesh-drift 32s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -2.5%, 0) scale(1.06); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.03); }
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 132px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: var(--panel-border);
  border-radius: 999px;
  background: rgb(var(--surface) / 0.5);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgb(var(--content-muted));
}

.section__title {
  font-size: clamp(30px, 4.4vw, 46px);
}

.section__lead {
  margin-top: 18px;
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: rgb(var(--content-muted));
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgb(var(--accent));
  color: #170a26;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Panels
   -------------------------------------------------------------------------- */

.panel {
  border: var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #170a26;
  background-image: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--secondary)));
  box-shadow: 0 10px 30px rgb(167 110 255 / 0.32);
}

.btn--primary:hover {
  box-shadow: 0 14px 38px rgb(167 110 255 / 0.44);
}

.btn--ghost {
  color: rgb(var(--content));
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(var(--surface) / 0.5);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgb(255 255 255 / 0.26);
  background: rgb(var(--surface-raised) / 0.6);
}

.btn--sm {
  padding: 9px 17px;
  font-size: 14.5px;
}

.btn__arrow {
  transition: transform 0.16s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Mirror the arrow when the page is in a right-to-left locale. */
[dir='rtl'] .btn__arrow {
  scale: -1 1;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgb(var(--canvas) / 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgb(255 255 255 / 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: rgb(var(--content-muted));
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: rgb(var(--content));
  background: rgb(255 255 255 / 0.06);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.nav + .header__actions {
  margin-inline-start: 0;
}

/* --------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: var(--panel-border);
  border-radius: 999px;
  background: rgb(var(--surface) / 0.55);
  backdrop-filter: blur(10px);
}

.lang__btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(var(--content-subtle));
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang__btn:hover {
  color: rgb(var(--content));
}

.lang__btn[aria-pressed='true'] {
  color: #170a26;
  background-image: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--secondary)));
}

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

.hero {
  position: relative;
  padding-block: clamp(40px, 5vw, 68px) clamp(48px, 6vw, 84px);
  overflow: hidden;
  text-align: center;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  /* Fades the generated backdrop into the live CSS mesh underneath it. */
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/*
 * One centred column, not a text/visual split.
 *
 * The split gave the headline a ~570px measure inside the 1180px shell, which
 * at display size wrapped one sentence over four lines and left the opposite
 * quadrant empty. Across the full shell the same sentence sets in two lines,
 * and the board shot gets the whole width instead of a third of it.
 */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 3.5vw, 44px);
}

.hero__copy {
  max-width: 900px;
}

/* Sized against the 900px measure above, not the viewport. */
.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  background-image: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--secondary)) 55%, rgb(var(--teal)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 60ch;
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: rgb(var(--content-muted));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero__note {
  margin-top: 18px;
  font-size: 14.5px;
  color: rgb(var(--content-subtle));
}

/*
 * A rule between the buttons and the board shot rather than a stacked block:
 * the shot has to stay on the first screen, so these four numbers get one line,
 * not a column each.
 */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 800px;
  padding-block: clamp(16px, 2vw, 22px);
  border-block: 1px solid rgb(255 255 255 / 0.09);
}

.stat + .stat {
  border-inline-start: 1px solid rgb(255 255 255 / 0.09);
}

.stat__value {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background-image: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--secondary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgb(var(--content-subtle));
}

/* --------------------------------------------------------------------------
   Board mock (hero, full width beneath the copy)
   -------------------------------------------------------------------------- */

.mock {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  /* The hero centres its text; the board inside it must not inherit that. */
  text-align: start;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 14px;
}

.mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
}

.mock__dot:first-child { background: rgb(var(--secondary) / 0.7); }
.mock__dot:nth-child(2) { background: rgb(var(--amber) / 0.7); }
.mock__dot:nth-child(3) { background: rgb(var(--teal) / 0.7); }

.mock__title {
  margin-inline-start: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--content-subtle));
}

.mock__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  /* Columns hold different numbers of cards; stretching would leave the short
     ones as tall empty boxes. */
  align-items: start;
}

.mock__col {
  padding: 12px 11px;
  border-radius: var(--radius);
  background: rgb(var(--canvas) / 0.42);
  border: 1px solid rgb(255 255 255 / 0.06);
}

.mock__colhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgb(var(--content-subtle));
}

.mock__count {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  font-size: 10.5px;
  letter-spacing: 0;
}

.mock__card {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgb(var(--surface-raised) / 0.78);
  border: 1px solid rgb(255 255 255 / 0.07);
  box-shadow: 0 1px 5px rgb(8 4 20 / 0.35);
}

.mock__card + .mock__card {
  margin-top: 9px;
}

.mock__card--lift {
  animation: card-lift 7s ease-in-out infinite;
}

@keyframes card-lift {
  0%, 62%, 100% { transform: none; box-shadow: 0 1px 5px rgb(8 4 20 / 0.35); }
  70%, 88% { transform: translateY(-4px) rotate(-1.1deg); box-shadow: 0 14px 26px rgb(8 4 20 / 0.5); }
}

.mock__cardtitle {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.mock__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.chip--accent { background: rgb(var(--accent) / 0.22); color: rgb(206 176 255); }
.chip--teal { background: rgb(var(--teal) / 0.2); color: rgb(153 240 226); }
.chip--amber { background: rgb(var(--amber) / 0.2); color: rgb(253 224 148); }
.chip--blue { background: rgb(var(--blue) / 0.2); color: rgb(178 209 255); }

.mock__avatar {
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
  border-radius: 50%;
  background-image: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--secondary)));
}

/* --------------------------------------------------------------------------
   Workflow graph
   -------------------------------------------------------------------------- */

.flow {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 940px) {
  .flow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

.flow__graph {
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
}

.flow__graph svg {
  width: 100%;
  height: auto;
}

.flow__node {
  fill: rgb(41 34 68 / 0.92);
  stroke: rgb(255 255 255 / 0.14);
  stroke-width: 1;
}

.flow__node--start { stroke: rgb(var(--blue) / 0.65); }
.flow__node--active { fill: rgb(var(--accent) / 0.24); stroke: rgb(var(--accent) / 0.75); }
.flow__node--done { stroke: rgb(var(--teal) / 0.6); }
.flow__node--reject { stroke: rgb(var(--secondary) / 0.55); }

.flow__label {
  fill: rgb(var(--content));
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
}

.flow__edge {
  fill: none;
  stroke: rgb(255 255 255 / 0.2);
  stroke-width: 1.6;
}

.flow__edge--back {
  stroke: rgb(var(--secondary) / 0.45);
  stroke-dasharray: 5 4;
}

.flow__edgelabel {
  fill: rgb(var(--secondary));
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
}

/*
 * Draws each forward edge on once when the section scrolls in. The rejection
 * loop is excluded on purpose: overwriting its stroke-dasharray to animate the
 * draw would also erase the dashes that mark it as the exceptional path, so it
 * fades in instead.
 *
 * Everything here hangs off .js-reveal — see the block at the bottom of the
 * file. Without it the whole graph is simply drawn.
 */
.js-reveal .is-revealed .flow__edge:not(.flow__edge--back) {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: edge-draw 1.1s ease forwards;
}

.js-reveal .flow__edge--back,
.js-reveal .flow__edgelabel {
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}

.js-reveal .is-revealed .flow__edge--back,
.js-reveal .is-revealed .flow__edgelabel {
  opacity: 1;
}

@keyframes edge-draw {
  to { stroke-dashoffset: 0; }
}

.checks {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.check__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgb(var(--accent) / 0.18);
  color: rgb(var(--accent));
}

.check__title {
  font-size: 16.5px;
  font-weight: 650;
}

.check__text {
  margin-top: 3px;
  font-size: 15.5px;
  color: rgb(var(--content-muted));
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.card {
  padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgb(255 255 255 / 0.18);
  box-shadow: var(--shadow-raised);
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(var(--accent) / 0.28), rgb(var(--secondary) / 0.2));
  color: rgb(216 194 255);
}

.card__title {
  font-size: 19px;
  font-weight: 650;
}

.card__text {
  margin-top: 9px;
  font-size: 15.5px;
  color: rgb(var(--content-muted));
}

/* --------------------------------------------------------------------------
   Plugins
   -------------------------------------------------------------------------- */

.plugins {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.plugin {
  padding: 22px 24px;
}

.plugin__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 650;
}

.plugin__badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(var(--accent) / 0.2);
  color: rgb(206 176 255);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plugin__text {
  margin-top: 8px;
  font-size: 15px;
  color: rgb(var(--content-muted));
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: clamp(28px, 4vw, 40px);
}

.tag {
  padding: 7px 14px;
  border: var(--panel-border);
  border-radius: 999px;
  background: rgb(var(--surface) / 0.42);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: rgb(var(--content-muted));
}

/* --------------------------------------------------------------------------
   Localization strip
   -------------------------------------------------------------------------- */

.locales {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.locale {
  padding: 22px 24px;
}

.locale__code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--content-subtle));
}

.locale__name {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 650;
}

.locale__sample {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 15px;
  color: rgb(var(--content-muted));
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 64px);
  border-radius: clamp(20px, 3vw, 30px);
  border: var(--panel-border);
  text-align: center;
  box-shadow: var(--shadow-raised);
}

.cta__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--canvas) / 0.42);
}

.cta__title {
  font-size: clamp(28px, 4.2vw, 44px);
}

.cta__lead {
  max-width: 58ch;
  margin: 18px auto 0;
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: rgb(240 238 250 / 0.82);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.cta .btn--ghost {
  background: rgb(15 12 28 / 0.45);
}

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

.footer {
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(var(--canvas) / 0.5);
  backdrop-filter: blur(10px);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-block: 30px;
  font-size: 14.5px;
  color: rgb(var(--content-subtle));
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-inline-start: auto;
}

.footer__links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: rgb(var(--content));
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/*
 * Reveal is opt-in: the hidden state only exists under .js-reveal, which the
 * inline script in index.html adds when the browser can actually run main.js.
 * Written the other way round — hidden by default, shown by script — a browser
 * that parses the page but never runs the module would leave it blank.
 */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

/*
 * The board shot is decorative, so it drops columns rather than shrinking them
 * past the point where a card title is readable.
 */
@media (max-width: 1000px) {
  .mock__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mock__col:nth-child(4) {
    display: none;
  }
}

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

  .mock__col:nth-child(3) {
    display: none;
  }

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

  /* With two per row the third one starts a new row and must not keep a rule. */
  .stat:nth-child(odd) {
    border-inline-start: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    flex: 1 1 100%;
  }

  .footer__links {
    margin-inline-start: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — kill the drift, the draw-on and the lifting card
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js-reveal .is-revealed .flow__edge:not(.flow__edge--back) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .js-reveal .flow__edge--back,
  .js-reveal .flow__edgelabel {
    opacity: 1;
  }
}
