/* Kibo landing page.
   Order: fonts and tokens, base, shared pieces, then each section top to bottom. */

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../assets/fonts/SourceSerif4-Variable.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}

/* Figtree has no Cyrillic, so Russian text is set in Manrope under the same family name.
   The unicode-range means these two files are only downloaded when Cyrillic letters appear. */
@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Manrope-Cyrillic.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('../assets/fonts/SourceSerif4-Cyrillic.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

:root {
  --bg: #ffffff;
  --ink: #0b2a20;
  --ink-soft: #3d4c46;
  --ink-faint: #7f8f88;
  --line: rgba(11, 42, 32, 0.1);
  --forest: #0a2a1f;
  --green: #14573d;
  --leaf: #1e8a5e;
  --mint: #a6e3b4;
  --film-ink: #08130f;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav: 72px;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --intro-time: 1.4s;

  /* Every two-column section splits at the same place. */
  --cols: minmax(0, 5fr) minmax(0, 7fr);
  --col-gap: clamp(32px, 5vw, 72px);
  --intro-ease: cubic-bezier(0.76, 0, 0.24, 1);

  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;

  /* Fine grain laid over the soft colour tiles. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 16px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  background: var(--film-ink);
  transition: background-color 0.9s ease;
}

/* The page behind the film is dark until the film has folded away. Without JavaScript it never folds. */
html.intro-open,
html:not(.js) {
  background: var(--bg);
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video {
  display: block;
}

::selection {
  background: var(--mint);
  color: var(--forest);
}

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

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

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}

.skip:focus-visible {
  top: 12px;
}

/* Scroll reveal. Without JavaScript everything is simply visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Shared pieces */

.section {
  padding-block: clamp(56px, 6.5vw, 96px);
}

/* The first section starts close under the card, so the two read as one opening. */
#product {
  padding-top: clamp(24px, 3vw, 48px);
}

.eyebrow {
  color: var(--ink-soft);
  font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Two-tone heading: the quiet first thought in grey, the point in ink. */
.title {
  font-size: clamp(2.125rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.title span {
  display: block;
  color: var(--ink-faint);
}

/* Explanatory lines are set in the serif: the quiet voice next to the sans headlines. */
.lead {
  color: var(--ink-soft);
  font: 400 clamp(1.125rem, 1.4vw, 1.3125rem) / 1.5 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* Every section opens the same way: a small label, the heading, and sometimes one line of explanation. */
.head {
  display: grid;
  gap: 20px;
  max-width: 64rem;
}

.head .lead {
  max-width: 34em;
  margin-top: 4px;
}

/* Two sections open centred, to break the run of left-aligned heads. */
.head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.caption--center {
  text-align: center;
}

.caption {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 22px;
  height: 25px;
}

.logo__word {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--green);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

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

.link {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: opacity 0.3s var(--ease);
}

.link:hover {
  opacity: 0.6;
}

/* Soft colour tile with grain, the stage for the small product pictures. */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile, linear-gradient(160deg, #eaf1e7, #cfe0d0));
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

.tile--sage {
  --tile-end: #c6d9c8;
  --tile: radial-gradient(90% 70% at 20% 0%, #f2f6ee, transparent 70%), linear-gradient(165deg, #e3ecdf, #c6d9c8);
}

.tile--sand {
  --tile: radial-gradient(90% 70% at 80% 0%, #f8f3ea, transparent 70%), linear-gradient(165deg, #efe7da, #dfd0ba);
}

.tile--sky {
  --tile-end: #b9d3c2;
  --tile: radial-gradient(90% 70% at 20% 0%, #eef5ef, transparent 70%), linear-gradient(165deg, #dbe9df, #b9d3c2);
}

.tile--dawn {
  --tile-end: #e6dac4;
  --tile: radial-gradient(90% 70% at 80% 0%, #faf6ee, transparent 70%), linear-gradient(165deg, #f3ecdf, #e6dac4);
}

/* A small white panel that stands in for a piece of the app. Sizes inside are in em, so one font-size scales it. */
.ui {
  position: relative;
  width: min(100% - 48px, 19em);
  padding: 1.25em 1.3em;
  border-radius: 0.9em;
  background: #fff;
  box-shadow: 0 1em 2em -1em rgba(11, 42, 32, 0.22), 0 0 0 1px rgba(11, 42, 32, 0.05);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.ui__label {
  color: var(--ink-soft);
  font-size: 0.86em;
}

.ui__value {
  margin-top: 0.15em;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ui__value--words {
  font-size: 1.3em;
  letter-spacing: -0.02em;
}

.ui__rows {
  margin-top: 1em;
  font-size: 0.9em;
}

.ui__rows > * {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-block: 0.6em;
  border-top: 1px solid var(--line);
}

.ui__rows dt,
.ui__rows .muted {
  color: var(--ink-soft);
}

.ui__rows dd,
.ui__rows strong {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ui__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: #e6f4e7;
  color: var(--green);
  font-size: 0.8em;
  font-weight: 500;
}

.ui__pill svg {
  width: 1em;
  height: 1em;
}

.ui__button {
  display: grid;
  place-items: center;
  height: 2.9em;
  margin-top: 1.1em;
  border-radius: 0.7em;
  background: var(--ink);
  color: #fff;
  font-size: 0.9em;
  font-weight: 500;
}

.ui__button--quiet {
  margin-top: 0.6em;
  background: rgba(11, 42, 32, 0.06);
  color: var(--ink);
}

/* The Kibo card, drawn small. */
.minicard {
  position: relative;
  width: min(100% - 48px, 17.5em);
  aspect-ratio: 1.586;
  padding: 1.1em 1.2em;
  border-radius: 1em;
  color: #eaf6ea;
  /* The same village as on the big card, under the same green tint. */
  background:
    radial-gradient(120% 90% at 92% 112%, rgba(95, 184, 132, 0.4), transparent 60%),
    linear-gradient(135deg, rgba(19, 80, 57, 0.5), rgba(8, 36, 27, 0.74)),
    url('../assets/card.jpg') center / cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1.2em 1.8em -1em rgba(6, 26, 19, 0.5);
  font-size: 0.9375rem;
}

.minicard__brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.minicard__brand svg {
  width: 1.25em;
  height: 1.42em;
}

.minicard__chip {
  position: absolute;
  top: 36%;
  left: 1.2em;
  width: 2.1em;
}

.minicard__kind {
  position: absolute;
  top: 1.75em;
  right: 1.9em;
  font: 400 0.52em/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.minicard__nfc {
  position: absolute;
  top: 38.5%;
  left: 3.9em;
  width: 0.8em;
  opacity: 0.75;
}

.minicard__valid {
  position: absolute;
  right: 1.9em;
  bottom: 2.3em;
  font: 500 0.52em/1 var(--mono);
  letter-spacing: 0.06em;
}

.minicard__number,
.minicard__holder {
  position: absolute;
  left: 1.2em;
  text-shadow: 0 1px 0 rgba(3, 16, 11, 0.6);
  text-transform: uppercase;
}

.minicard__number {
  bottom: 2.6em;
  display: flex;
  align-items: center;
  gap: 0.7em;
  font: 500 0.78em/1 var(--mono);
  letter-spacing: 0.08em;
}

.minicard__number span {
  font: 400 1.05em/1 var(--font);
  letter-spacing: 0.14em;
}

.minicard__holder {
  bottom: 1.5em;
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Nav: white on the film, ink on the page. */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: color 0.5s ease 0.45s, background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-stuck {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  gap: 48px;
  height: var(--nav);
}

.nav__links {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links a {
  color: var(--ink-soft);
  transition: color 0.5s ease 0.45s;
}

.nav__links a:hover {
  color: var(--ink);
  transition-delay: 0s;
  transition-duration: 0.2s;
}

.nav .btn {
  transition: color 0.5s ease 0.45s, background-color 0.5s ease 0.45s;
}

/* Language switch: a small button with the current language, and a menu that drops from it. */
.lang {
  position: relative;
  margin-left: auto;
}

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 500 0.875rem/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang__button:hover,
.lang.is-open .lang__button {
  background: rgba(127, 140, 134, 0.16);
}

.lang__button svg {
  width: 18px;
  height: 18px;
}

.lang__button .lang__chevron {
  width: 11px;
  height: 11px;
  transition: transform 0.25s var(--ease);
}

.lang.is-open .lang__chevron {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px -16px rgba(11, 42, 32, 0.3), 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease);
}

.lang__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: 500 0.9375rem/1 var(--font);
  text-align: left;
  cursor: pointer;
}

.lang__menu button:hover {
  background: #f3f6f1;
}

/* A green dot marks the language in use. */
.lang__menu button[aria-pressed='true']::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.logo__mark--on-film {
  display: none;
}

html.js:not(.intro-open) .nav:not(.is-stuck),
html.js:not(.intro-open) .nav:not(.is-stuck) .nav__links a {
  color: #fff;
}

html.js:not(.intro-open) .nav:not(.is-stuck) .btn {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

html.js:not(.intro-open) .nav:not(.is-stuck) .logo__mark--on-film {
  display: block;
}

html.js:not(.intro-open) .nav:not(.is-stuck) .logo__mark--on-page {
  display: none;
}

/* Without JavaScript the nav cannot tell film from page, so it always carries its backdrop. */
html:not(.js) .nav {
  background: #fff;
}

/* Intro: a full-screen film that folds into the card on the first scroll.
   Sizes that depend on the viewport (--clip-x, --scale, --tx…) are set by intro.js.
   Without JavaScript the film stays a normal full-screen hero and the page scrolls as usual. */

.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--film-ink);
  transition: background-color 0.9s ease;
}

.intro.is-open {
  background: var(--bg);
}

/* While the page restores an earlier scroll position, nothing animates. */
.intro.is-instant,
.intro.is-instant * {
  transition: none !important;
}

/* The stage tilts in space and carries both the film and the card details, so the two always line up. */
.intro__stage {
  position: absolute;
  inset: 0;
  transform: translateY(0) perspective(1400px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  transition: transform var(--intro-time) var(--intro-ease);
  will-change: transform;
  pointer-events: none;
}

.intro.is-open .intro__stage {
  transform: translateY(var(--lift, 0px)) perspective(1400px) rotateX(calc(10deg - var(--py, 0) * 6deg))
    rotateY(calc(-14deg + var(--px, 0) * 9deg)) rotateZ(4deg);
}

/* Once the fold is done the card follows the pointer directly; the script already eases it. */
.intro.is-settled .intro__stage {
  transition: none;
}

/* The film: cut to the card's proportions and shrunk to its size. */
.intro__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 round 0);
  transform: scale(1);
  transition: clip-path var(--intro-time) var(--intro-ease), transform var(--intro-time) var(--intro-ease);
  will-change: transform, clip-path;
}

/* --shift moves the cut up (or, when negative, down) the film, to where the picture's subject is. */
.intro.is-open .intro__frame {
  clip-path: inset(
    calc(var(--clip-y, 0px) - var(--shift, 0px)) var(--clip-x, 0px) calc(var(--clip-y, 0px) + var(--shift, 0px)) round
      var(--clip-r, 0px)
  );
  transform: translateY(calc(var(--shift, 0px) * var(--scale, 0.3))) scale(var(--scale, 0.3));
}

.intro__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keeps the white headline readable on the film. */
.intro__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 34% at 50% calc(var(--headline-y, 0.5) * 100%), rgba(4, 16, 12, 0.36), transparent 78%),
    linear-gradient(rgba(4, 16, 12, 0.4), rgba(4, 16, 12, 0.04) 28%, rgba(4, 16, 12, 0) 70%, rgba(4, 16, 12, 0.3));
  transition: opacity var(--intro-time) var(--intro-ease);
}

.intro.is-open .intro__scrim {
  opacity: 0;
}

/* The card itself: a green tint, a shine and the details, laid over the film once it has folded.
   The film keeps playing underneath. */
.intro__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w, 420px);
  aspect-ratio: 1.586;
  margin: calc(var(--card-w, 420px) / -3.172) 0 0 calc(var(--card-w, 420px) / -2);
  padding: calc(var(--card-w, 420px) * 0.065) calc(var(--card-w, 420px) * 0.07);
  border-radius: 22px;
  color: #f1f8f1;
  background:
    radial-gradient(120% 90% at 92% 112%, rgba(95, 184, 132, 0.4), transparent 60%),
    radial-gradient(60% 80% at calc(50% + var(--px, 0) * 45%) calc(30% + var(--py, 0) * 45%), rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(19, 80, 57, 0.5), rgba(8, 36, 27, 0.74));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 30px 60px -20px rgba(6, 26, 19, 0.5),
    0 70px 120px -30px rgba(10, 42, 31, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.intro.is-open .intro__card {
  opacity: 1;
  transition: opacity 0.6s ease calc(var(--intro-time) - 0.45s);
}

.intro__brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: calc(var(--card-w, 420px) * 0.046);
  font-weight: 600;
  letter-spacing: 0.2em;
}

.intro__mark {
  width: 1.25em;
  height: 1.42em;
}

.intro__kind {
  position: absolute;
  top: calc(var(--card-w, 420px) * 0.072);
  right: 7%;
  font: 400 calc(var(--card-w, 420px) * 0.026) / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.intro__chip {
  position: absolute;
  top: 36%;
  left: 7%;
  width: 12.5%;
  filter: drop-shadow(0 1px 1px rgba(4, 20, 14, 0.5));
}

.intro__nfc {
  position: absolute;
  top: 38.5%;
  left: 23%;
  width: 4.6%;
  opacity: 0.75;
}

/* Raised lettering: a dark edge below each character and a light one above. */
.intro__number,
.intro__holder,
.intro__valid {
  position: absolute;
  left: 7%;
  text-shadow: 0 1px 0 rgba(3, 16, 11, 0.6), 0 -0.5px 0 rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.intro__number {
  bottom: 24%;
  display: flex;
  align-items: center;
  gap: 0.9em;
  font: 500 calc(var(--card-w, 420px) * 0.052) / 1 var(--mono);
  letter-spacing: 0.08em;
}

/* The hidden digits are drawn as round dots at mid-height, as on a real card. */
.intro__number span {
  font: 400 1.05em/1 var(--font);
  letter-spacing: 0.16em;
}

.intro__holder {
  bottom: 9%;
  font-size: calc(var(--card-w, 420px) * 0.032);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.intro__valid {
  right: 7%;
  bottom: 9%;
  left: auto;
  font: 500 calc(var(--card-w, 420px) * 0.032) / 1.2 var(--mono);
  letter-spacing: 0.06em;
}

/* The headline sits in the middle of the film, then its two halves part around the card. */
.intro__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* --headline-y puts the headline on a calm part of the film (0.5 would be the middle). */
  padding: 0 var(--gutter) calc((1 - 2 * var(--headline-y, 0.5)) * 100vh);
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: center;
  pointer-events: none;
}

/* Each chunk changes its own colour. If the headline did it for them, Safari would restart
   their movement on every frame of the colour change and the words would start late. */
.intro__title [data-part] {
  display: inline-block;
  white-space: nowrap;
  transform: translate(0, 0) scale(1);
  transition: transform var(--intro-time) var(--intro-ease), color var(--intro-time) var(--intro-ease);
  will-change: transform;
}

.intro.is-open .intro__title [data-part] {
  color: var(--ink);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--k, 1));
}

.intro__cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: #fff;
  font: 500 0.9375rem/1 var(--font);
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

.intro__cue svg {
  width: 16px;
  height: 16px;
  animation: nudge 1.8s ease-in-out infinite;
}

.intro.is-open .intro__cue {
  opacity: 0;
  pointer-events: none;
}

/* The line and buttons that appear under the card. */
.intro__after {
  position: absolute;
  top: var(--after-top, 72%);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 28px;
  width: min(100% - 2 * var(--gutter), 40rem);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.intro.is-open .intro__after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.8s var(--ease) calc(var(--intro-time) - 0.35s), transform 0.8s var(--ease) calc(var(--intro-time) - 0.35s);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.intro__after .lead {
  max-width: 30em;
}

/* When the film cannot fold (no JavaScript, or reduced motion), the line and buttons sit on the film itself. */
html:not(.js) .intro__after,
.intro.is-static .intro__after {
  top: auto;
  bottom: 14%;
  color: #fff;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

html:not(.js) .intro__after .lead,
html:not(.js) .intro__after .link,
.intro.is-static .intro__after .lead,
.intro.is-static .intro__after .link {
  color: #fff;
}

html:not(.js) .intro__after .btn,
.intro.is-static .intro__after .btn {
  background: #fff;
  color: var(--ink);
}

html:not(.js) .intro__cue,
.intro.is-static .intro__cue {
  display: none;
}

/* Product: what Kibo is, in four pictures. */

.suite {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(56px, 7vw, 96px);
}

.suite .tile {
  aspect-ratio: 1;
  font-size: clamp(0.8125rem, 1.08vw, 1rem);
}

.suite .ui,
.suite .minicard,
.suite .gauge {
  width: min(100% - 2.6em, 21em);
}

.suite .ui,
.suite .minicard {
  font-size: inherit;
}

.suite__item > h3 {
  margin-top: 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.suite__item > p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}

/* Tile 1: the home and the credit line it gives. */
.home-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 1em;
  padding: 0.9em 1em;
  border-radius: 0.7em;
  background: var(--forest);
  color: #eaf6ea;
}

.home-line span {
  font-size: 0.74em;
  white-space: nowrap;
  opacity: 0.8;
}

.home-line strong {
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Tile 2: the card with a payment that has just gone through. */
.pay {
  display: grid;
  justify-items: center;
  gap: 1.1em;
  width: 100%;
}

.pay__toast {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 1em 0.7em 0.75em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1.2em 2.4em -1em rgba(11, 42, 32, 0.3);
  font-size: 0.87em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pay__toast b {
  font-weight: inherit;
}

.pay__toast svg {
  width: 1.7em;
  height: 1.7em;
}

/* The payment lands a moment after its tile has appeared. */
.pay__toast {
  transition: opacity 0.6s var(--ease) 0.9s, transform 0.6s var(--ease) 0.9s;
}

.js [data-reveal]:not(.is-in) .pay__toast {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.pay__toast span {
  color: var(--ink-soft);
  font-weight: 400;
}

/* Tile 3: how much of the line is in use. */
.gauge {
  width: min(100% - 48px, 19em);
  padding-bottom: 1.6em;
}

.gauge svg {
  width: 100%;
}

.gauge path {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge__track {
  stroke: rgba(11, 42, 32, 0.1);
}

.gauge__fill {
  stroke: url(#gauge-ink);
  stroke-dasharray: 16 100;
  transition: stroke-dasharray 1.4s var(--ease) 0.3s;
}

.js [data-reveal]:not(.is-in) .gauge__fill {
  stroke-dasharray: 0 100;
}

.gauge p {
  margin-top: -3.4em;
  color: var(--ink-soft);
  font-size: 0.87em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gauge .gauge__note {
  margin-top: 1.1em;
  color: var(--green);
  font-size: 0.8em;
  font-weight: 500;
}

.gauge strong {
  display: block;
  color: var(--ink);
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* How it works. The base layout (narrow screens, no JavaScript) is a plain list: each step with
   its line of text and its picture underneath. */

.how {
  padding-block: clamp(56px, 6.5vw, 96px);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px var(--col-gap);
  margin-top: clamp(32px, 4vw, 56px);
}

.how__step {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.how__step h3 {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.how__n {
  color: var(--ink-soft);
  font: 400 0.875rem/1 var(--mono);
  letter-spacing: 0.06em;
}

.how__step > p {
  max-width: 26em;
  margin-top: 12px;
  color: var(--ink-soft);
}

.how__visual {
  margin-top: 24px;
  padding-block: 1.8em;
  font-size: 0.8125rem;
}

/* Wide screens with JavaScript: the section pins to the screen while you scroll through the three
   steps. Only the current step shows its text, and the phone on the right shows its screen.
   The extra height of the section is the scroll distance for the steps. */

.how.is-pinned {
  height: calc(100vh + 150vh);
  padding-block: 0;
}

.how.is-pinned .how__pin {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding-top: var(--nav);
}

.how.is-pinned .how__grid {
  grid-template-columns: var(--cols);
  align-items: center;
}

.how.is-pinned .how__step {
  padding-block: 22px;
  cursor: pointer;
  transition: border-color 0.5s var(--ease);
}

.how.is-pinned .how__step h3 {
  color: var(--ink-faint);
  transition: color 0.5s var(--ease);
}

.how.is-pinned .how__step > p {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease), margin-top 0.5s var(--ease);
}

/* The text sits in a span so the row can open and close smoothly. */
.how.is-pinned .how__step > p > span {
  overflow: hidden;
}

.how.is-pinned .how__step.is-active {
  border-top-color: var(--leaf);
  box-shadow: inset 0 2px 0 var(--leaf);
}

.how.is-pinned .how__step.is-active h3 {
  color: var(--ink);
}

.how.is-pinned .how__step.is-active .how__n {
  color: var(--leaf);
}

.how.is-pinned .how__step.is-active > p {
  grid-template-rows: 1fr;
  margin-top: 12px;
  opacity: 1;
}

.how.is-pinned .how__stage {
  position: relative;
  height: min(66vh, 600px);
}

.how.is-pinned .how__visual {
  position: absolute;
  inset: 0;
  margin: 0;
  padding-block: 0;
  font-size: clamp(0.6875rem, min(1.05vw, 1.75vh), 0.9688rem);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.how.is-pinned .how__visual.is-active {
  opacity: 1;
  transform: none;
}

/* Each picture is the app on a phone, cut off at the bottom edge of its tile. */
.phone {
  width: 19em;
  min-height: 31em;
  padding: 0.32em;
  border-radius: 2.6em;
  background: linear-gradient(145deg, #3a4a44, #16231f 40%, #0d1a16);
  box-shadow:
    0 1.6em 2.6em -1.6em rgba(11, 42, 32, 0.45),
    0 0 0 1px rgba(11, 42, 32, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  line-height: 1.35;
}

.phone__screen {
  position: relative;
  min-height: 30.36em;
  padding: 2.4em 1.3em 1.6em;
  overflow: hidden;
  border-radius: 2.3em;
  background: #fff;
}

/* The camera cut-out. */
.phone__screen::before {
  content: '';
  position: absolute;
  top: 0.75em;
  left: 50%;
  width: 3.9em;
  height: 1.05em;
  border-radius: 999px;
  background: #0d1a16;
  transform: translateX(-50%);
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4em;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.phone__bar svg {
  width: 1.1em;
  height: 1.25em;
}

.phone__bar span {
  margin-left: auto;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0;
}

.phone__progress {
  height: 0.28em;
  margin-top: 1em;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece4;
}

.phone__progress span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--leaf);
}

.form-row--done {
  position: relative;
}

.form-row--done svg {
  position: absolute;
  top: 50%;
  right: 0.85em;
  width: 1.3em;
  height: 1.3em;
  transform: translateY(-50%);
}

.phone__title {
  margin-block: 1.3em 0.2em;
  font-size: 1.45em;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.phone__label {
  margin-top: 1em;
  color: var(--ink-soft);
  font-size: 0.8em;
}

.phone__clock {
  color: var(--green);
  font-size: 2.9em;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.phone .minicard {
  width: 100%;
  margin-top: 1.1em;
  font-size: inherit;
}

.phone__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.1em;
  padding-bottom: 0.2em;
  color: var(--ink-soft);
  font-size: 0.9em;
}

.phone__line strong {
  color: var(--ink);
  font-size: 1.5em;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.phone .ui__button {
  height: 3.1em;
  border-radius: 0.8em;
}

.form-row {
  margin-top: 0.7em;
  padding: 0.6em 0.85em;
  border-radius: 0.7em;
  background: #f3f6f1;
}

.form-row span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72em;
}

.form-row strong {
  font-size: 0.95em;
  font-weight: 500;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.checks {
  margin-top: 1em;
  font-size: 0.93em;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding-block: 0.6em;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.checks svg {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

/* The ticks land one after another when the verification picture comes up. */
.checks li,
.verified {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.js .how__visual:not(.is-active) .checks li,
.js .how__visual:not(.is-active) .verified {
  opacity: 0;
  transform: translateY(8px);
}

.how__visual.is-active .checks li:nth-child(1) {
  transition-delay: 0.4s;
}

.how__visual.is-active .checks li:nth-child(2) {
  transition-delay: 0.8s;
}

.how__visual.is-active .checks li:nth-child(3) {
  transition-delay: 1.2s;
}

.how__visual.is-active .verified {
  transition-delay: 1.7s;
}

.verified {
  margin-top: 0.9em;
}

/* Costs: one picture of a credit line and three short points. */

.terms__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 72px);
}

.terms__main {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: #f3f6f1;
}

.terms__pair.terms__pair--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terms__pair--three h3 {
  margin-top: 0;
}

.terms__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--col-gap);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.terms__pair h3 {
  margin-top: 14px;
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.terms__pair h3 + p {
  max-width: 30em;
  margin-top: 10px;
  color: var(--ink-soft);
}

/* One credit line as a bar: the used part carries interest, the rest does not. */
.line__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(1.1875rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.line__top span:first-child {
  color: var(--ink-soft);
}

.line__bar {
  height: 28px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #dde7da;
}

.line__bar span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--green), #4fae7c);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.3s;
}

.js [data-reveal]:not(.is-in) .line__bar span {
  transform: scaleX(0);
}

.line__keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--col-gap);
  margin-top: 16px;
}

.line__key {
  padding-left: 14px;
  border-left: 3px solid #cfdccb;
  color: var(--ink-soft);
  font-size: 1rem;
}

.line__key--used {
  border-color: var(--leaf);
}

.line__key strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Kibo in numbers. */

.proof {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: start;
  gap: 40px var(--col-gap);
}

.proof .head {
  position: sticky;
  top: calc(var(--nav) + 32px);
}

.proof__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: last baseline;
  gap: 4px 24px;
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--line);
}

.proof__stat + .proof__stat {
  margin-top: clamp(28px, 4vw, 56px);
}

.proof__number {
  font-size: clamp(4.5rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.proof__label {
  color: var(--ink-soft);
  font: 400 clamp(1.0625rem, 1.5vw, 1.375rem) / 1.2 var(--serif);
  letter-spacing: -0.005em;
}

/* Uses: what people spend it on. */

.uses__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 72px);
}

.uses__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
}

.uses__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* The words sit on the lower part of the picture, on a green veil. */
.uses__cap {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 8.4em;
  padding: 2.6em 20px 0;
  background: linear-gradient(rgba(8, 36, 27, 0), rgba(8, 36, 27, 0.62) 52%);
}

.uses__cap h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.uses__cap p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9688rem;
  line-height: 1.4;
}

.uses__hint {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--ink-soft);
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uses__hint svg {
  width: 14px;
  height: 14px;
}

/* Questions */

.faq__grid {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: start;
  gap: 40px var(--col-gap);
}

.faq__grid .head {
  position: sticky;
  top: calc(var(--nav) + 32px);
}

.faq__list {
  border-bottom: 1px solid var(--line);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

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

.faq__item summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  max-width: 36em;
  padding-bottom: 22px;
  color: var(--ink-soft);
}

/* Footer: a picture with the sign-up, the links, the fine print, and the name across the full width. */

.foot {
  padding-top: clamp(48px, 7vw, 120px);
}

.foot__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: clamp(420px, 38vw, 540px);
  padding: 48px var(--gutter);
  overflow: hidden;
  border-radius: 28px;
  background: var(--forest);
  color: #fff;
  text-align: center;
}

.foot__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 78%;
}

/* Darkens the picture behind the words. */
.foot__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 62% at 50% 46%, rgba(6, 22, 26, 0.72), transparent 100%),
    linear-gradient(rgba(6, 22, 26, 0.18), rgba(6, 22, 26, 0.3));
}

.foot__copy {
  position: relative;
  z-index: 1;
  display: grid;
  /* Without this the email field's natural width would push the column wider than a phone. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: min(100%, 44rem);
}

.foot__title {
  font-size: clamp(1.875rem, 3.5vw, 3.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.foot__lead {
  max-width: 30em;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font: 400 clamp(1.0625rem, 1.4vw, 1.25rem) / 1.5 var(--serif);
}

.signup {
  display: flex;
  gap: 8px;
  width: min(100%, 31rem);
  margin-top: 36px;
  padding: 6px;
  border-radius: 999px;
  background: #fff;
}

.signup:focus-within {
  box-shadow: 0 0 0 3px rgba(166, 227, 180, 0.8);
}

.signup input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
}

.signup input::placeholder {
  color: var(--ink-soft);
}

.signup .btn {
  height: 48px;
  padding: 0 24px;
  background: var(--ink);
  color: #fff;
}

.signup .btn:hover {
  background: var(--green);
}

.signup .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.signup__note {
  min-height: 1.4em;
  margin-top: 14px;
  color: #fff;
  font-size: 0.9375rem;
  text-shadow: 0 1px 8px rgba(6, 30, 21, 0.9), 0 0 2px rgba(6, 30, 21, 0.6);
  text-wrap: balance;
}

.signup__note.is-good {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* Same column split as the sections above. */
.foot__links {
  display: grid;
  grid-template-columns: var(--cols);
  gap: 40px var(--col-gap);
  margin-top: clamp(96px, 12vw, 176px);
  font-size: 0.9375rem;
}

.foot__nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.foot__brand p {
  max-width: 24em;
  margin-top: 16px;
  color: var(--ink-soft);
}

.foot__links h3 {
  margin-bottom: 6px;
  font-size: inherit;
  font-weight: 600;
}

.foot__links li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.foot__links a[href] {
  transition: color 0.3s var(--ease);
}

.foot__links a[href]:hover {
  color: var(--ink);
}

.foot__legal {
  max-width: 46rem;
  margin-top: clamp(40px, 5vw, 64px);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.foot__wordmark {
  width: 100%;
  height: auto;
  margin-block: clamp(180px, 24vw, 380px) clamp(24px, 3vw, 40px);
  overflow: visible;
  color: var(--ink);
  font-size: 400px;
  font-weight: 600;
}

.foot__bar {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.foot__bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px;
}

.foot__bar strong {
  color: var(--ink);
  font-weight: 600;
}

.foot__bar a:hover {
  color: var(--ink);
}

@keyframes nudge {
  50% {
    transform: translateY(5px);
  }
}

/* Narrower screens */

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

  .suite .tile {
    font-size: clamp(0.8rem, 1.9vw, 1rem);
  }

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

@media (max-width: 860px) {
  .nav__in {
    gap: 16px;
  }

  .nav .logo {
    margin-right: auto;
  }

  .nav__toggle {
    display: grid;
  }

  /* The section links drop down as a sheet under the nav. */
  .nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    box-shadow: 0 24px 40px -24px rgba(11, 42, 32, 0.25);
    font-size: 1.125rem;
  }

  .nav.is-menu .nav__links {
    display: flex;
    align-items: stretch;
  }

  /* Inside the phone menu there is room to show the three languages side by side. */
  .lang {
    margin: 20px 0 0;
  }

  .lang__button {
    display: none;
  }

  .lang__menu {
    position: static;
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .lang__menu button {
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .lang__menu button[aria-pressed='true'] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
  }

  .lang__menu button[aria-pressed='true']::after {
    display: none;
  }

  .nav.is-menu {
    background: #fff;
  }

  .nav__links a,
  html.js:not(.intro-open) .nav:not(.is-stuck) .nav__links a {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  html.js .nav.is-menu,
  html.js:not(.intro-open) .nav.is-menu:not(.is-stuck) {
    color: var(--ink);
  }

  html.js:not(.intro-open) .nav.is-menu:not(.is-stuck) .btn {
    background: var(--ink);
    color: #fff;
  }

  html.js:not(.intro-open) .nav.is-menu:not(.is-stuck) .logo__mark--on-film {
    display: none;
  }

  html.js:not(.intro-open) .nav.is-menu:not(.is-stuck) .logo__mark--on-page {
    display: block;
  }

  .proof,
  .faq__grid,
  .foot__links,
  .terms__pair.terms__pair--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__grid .head,
  .proof .head {
    position: static;
  }
}

@media (max-width: 620px) {
  /* The four product points stay in the reading path, each with a compact picture. */
  .suite {
    grid-template-columns: minmax(0, 1fr);
  }

  .suite .tile {
    font-size: 0.8125rem;
  }

  .suite {
    gap: 28px;
  }

  .suite .tile {
    aspect-ratio: auto;
    padding-block: 16px;
  }

  .suite__item > h3 {
    margin-top: 14px;
  }

  .suite .gauge {
    width: min(100% - 2.6em, 15em);
  }

  .terms__pair,
  .line__keys {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .line__keys {
    gap: 14px;
  }

  /* The photos become a strip you swipe sideways. */
  .uses__grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

  .uses__item {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  .uses__hint {
    display: flex;
  }

  /* On a phone the app screens are shown as plain panels, without a device around them. */
  .phone {
    min-height: 0;
    padding: 0;
    border-radius: 1.5em;
    background: none;
    box-shadow: 0 1em 2em -1em rgba(11, 42, 32, 0.22), 0 0 0 1px rgba(11, 42, 32, 0.05);
  }

  .phone__screen {
    min-height: 0;
    padding: 1.3em 1.3em 1.4em;
    border-radius: 1.5em;
  }

  .phone__screen::before {
    display: none;
  }

  .phone__bar {
    margin-top: 0;
  }

  .foot__lead span {
    display: none;
  }

  .phone .ui__button--quiet {
    display: none;
  }

  .proof__stat {
    grid-template-columns: minmax(0, 1fr) 6.5em;
    gap: 12px;
  }

  .signup .btn {
    padding: 0 16px;
    font-size: 0.9375rem;
  }

  .signup input {
    padding: 0 8px 0 16px;
  }

  .intro__after {
    width: calc(100% - 2 * var(--gutter));
  }

  /* On a tall panel the picture is cut to a strip, so it is aimed at the house on the left. */
  .foot__image {
    object-position: 16% 78%;
  }

  .intro__after {
    gap: 14px;
  }

  .foot__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
