/* Negocio Control landing — "lime ledger".
   Flat lime field, night-green type and rules, the stepped balance line of the
   store graphics as the recurring motif. No shadows, no gradients. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  --lime: #c8e64a;
  --lime-deep: #b3d235;
  --night: #0a2e24;
  --emerald: #0c5a43;
  --ink: #14201b;
  --paper: #eef2ec;
  --white: #ffffff;
  --muted: #45544d;
  --rule: #c7d2ca;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --text: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: 20px;
  --line: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--night);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--emerald);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--night);
}

:focus-visible {
  outline: 3px solid var(--night);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper);
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--night);
  color: var(--lime);
  padding: 12px 16px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* Small upper-case label with the square bullet of the store posters */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night);
}

.label__dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: currentColor;
}

/* Stepped balance line */
.stepline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 240px;
  display: block;
  pointer-events: none;
}

.stepline__area {
  fill: var(--lime-deep);
}

.stepline__line {
  fill: none;
  stroke: var(--night);
  stroke-width: var(--line);
  stroke-linejoin: miter;
}

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

.top {
  background: var(--lime);
}

.top__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--night);
  text-decoration: none;
}

.brand img {
  display: block;
  background: var(--paper);
  border-radius: 10px;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.top__nav {
  display: flex;
  gap: 4px;
}

.top__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--night);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.top__nav a:hover,
.top__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.lang {
  display: inline-flex;
  border: 2px solid var(--night);
  border-radius: 8px;
  overflow: hidden;
  flex: none;
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 40px;
  padding: 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--night);
  text-decoration: none;
}

.lang__item.is-current {
  background: var(--night);
  color: var(--lime);
}

a.lang__item:hover {
  background: var(--lime-deep);
  color: var(--night);
}

/* ---------- Buttons / call to action ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-decoration: none;
}

.btn__icon {
  flex: none;
}

.btn--play {
  background: var(--night);
  color: var(--lime);
}

.btn--play:hover {
  background: var(--emerald);
  color: var(--white);
}

.btn--lime {
  background: var(--lime);
  color: var(--night);
}

.btn--lime:hover {
  background: var(--white);
  color: var(--night);
}

.btn--soon {
  border: 2px dashed var(--night);
  color: var(--night);
  cursor: default;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta__note {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--night);
}

.link-arrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--emerald);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--lime);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  column-gap: 72px;
}

.hero__copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: 680px;
  padding: 56px 0 300px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero__copy .label {
  flex-direction: row-reverse;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 26px;
  max-width: 33em;
  font-size: 19px;
  line-height: 1.5;
  color: var(--night);
}

.cta--hero {
  margin-top: 32px;
  align-items: flex-end;
}

.hero__screen {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0;
  padding-top: 40px;
  position: relative;
}

.screen {
  border: 10px solid var(--night);
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  background: var(--paper);
}

.screen img {
  display: block;
  width: 100%;
}

.hero__screen figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  padding: 10px 16px;
  background: var(--night);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Three points under the hero ---------- */

.points {
  background: var(--night);
  color: var(--paper);
}

.points__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.points__list li {
  padding: 30px 28px 32px;
  border-left: 1px solid rgba(238, 242, 236, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15.5px;
}

.points__list li:first-child {
  padding-left: 0;
  border-left: 0;
}

.points__list strong {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--lime);
}

/* ---------- Sections ---------- */

.how,
.features,
.ledger,
.private,
.faq {
  padding: 104px 0;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 50px);
  max-width: 17em;
}

.section-head__intro {
  margin-top: 18px;
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
}

/* How it works: four treads of one staircase, the same shape as the balance line */
.stairs {
  --step: 46px;
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stairs__step {
  position: relative;
  margin-top: calc(var(--rise) * var(--step));
  padding: 22px 26px 36px;
  background: var(--lime);
  border-top: var(--line) solid var(--night);
}

.stairs__step + .stairs__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(-1 * var(--line));
  width: var(--line);
  height: calc(var(--step) + var(--line));
  background: var(--night);
}

.stairs__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--night);
}

.stairs__step h3 {
  margin-top: 14px;
  font-size: 23px;
}

.stairs__step p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--night);
}

/* Features: cropped fragments of the real screens on paper-coloured tiles */
.features {
  padding-top: 0;
}

.bento {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.tile {
  display: flex;
  overflow: hidden;
  background: var(--paper);
}

.tile__text {
  padding: 34px 34px 30px;
}

.tile__text h3 {
  margin-top: 16px;
  font-size: clamp(24px, 2.2vw, 30px);
}

.tile__text p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
}

.tile__shot img {
  display: block;
  width: 100%;
}

.tile--wide {
  grid-column: span 8;
}

.tile--wide .tile__text {
  flex: 0 0 42%;
}

.tile--wide .tile__shot {
  flex: 1;
  align-self: flex-end;
  padding-top: 28px;
}

.tile--flip {
  flex-direction: row-reverse;
}

.tile--narrow {
  grid-column: span 4;
  flex-direction: column;
}

.tile--narrow .tile__shot {
  height: 290px;
  overflow: hidden;
  margin-top: auto;
}

.tile--full {
  grid-column: span 12;
  background: var(--lime);
  align-items: stretch;
}

.tile--full .tile__text {
  flex: 1;
  padding: 48px;
  align-self: center;
}

.tile--full .tile__text h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.tile--full .tile__text p:last-child {
  color: var(--night);
  max-width: 30em;
  font-size: 17.5px;
}

.tile--full .tile__shot {
  flex: 0 0 440px;
  height: 400px;
  margin: 44px 64px 0 0;
  overflow: hidden;
  border: 8px solid var(--night);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: var(--paper);
}

/* Secondary features as a ruled ledger sheet */
.ledger {
  background: var(--paper);
}

.ledger__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.ledger__sheet {
  background: var(--white);
  border-top: var(--line) solid var(--night);
  padding: 0 32px 8px;
}

.ledger__head,
.ledger__row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  column-gap: 32px;
}

.ledger__head {
  padding: 16px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger dl {
  margin: 0;
}

.ledger__row {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.ledger dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--night);
}

.ledger dd {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

/* Store posters on a rail */
.gallery {
  background: var(--night);
  padding: 96px 0 88px;
}

.gallery .label,
.gallery h2 {
  color: var(--lime);
}

.gallery h2 {
  color: var(--white);
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery__hint {
  color: var(--paper);
  font-size: 15.5px;
}

.gallery__rail {
  margin-top: 44px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--lime) transparent;
  padding-bottom: 20px;
}

.gallery__rail:focus-visible {
  outline-color: var(--lime);
  outline-offset: -3px;
}

.gallery__rail ul {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - 1200px) / 2));
}

.gallery__rail li {
  flex: none;
  width: 264px;
  scroll-snap-align: center;
}

.gallery__rail img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

/* Privacy band */
.private__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.private__copy h2 {
  margin-top: 16px;
  font-size: clamp(30px, 3.6vw, 50px);
}

.private__copy > p:not(.label) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.private__copy .link-arrow {
  margin-top: 20px;
}

.private__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
}

.private__facts li {
  padding: 22px 0 30px;
  border-top: 3px solid var(--night);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 16.5px;
}

.private__facts strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--night);
}

/* Questions */
.faq {
  background: var(--paper);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.faq__list details {
  border-top: 1px solid var(--rule);
}

.faq__list details:first-child {
  border-top: 3px solid var(--night);
}

.faq__list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--night);
}

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

.faq__list summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--lime);
  font-size: 22px;
  line-height: 1;
}

.faq__list details[open] summary::after {
  content: "\2212";
  background: var(--night);
  color: var(--lime);
}

.faq__list details p {
  padding: 0 52px 24px 0;
  color: var(--muted);
  max-width: 44em;
}

/* Closing call to action */
.download {
  position: relative;
  overflow: hidden;
  background: var(--lime);
}

.download .stepline {
  height: 190px;
}

.download__inner {
  position: relative;
  padding: 96px 0 250px;
}

.download h2 {
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.035em;
  max-width: 12em;
}

.download__inner > p {
  margin-top: 20px;
  max-width: 32em;
  font-size: 19px;
  color: var(--night);
}

.download .cta {
  margin-top: 30px;
}

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

.foot {
  background: var(--night);
  color: var(--paper);
  padding: 64px 0 36px;
  font-size: 15.5px;
}

.foot a {
  color: var(--paper);
}

.foot a:hover {
  color: var(--lime);
}

.foot :focus-visible {
  outline-color: var(--lime);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: 40px;
}

.brand--light {
  color: var(--white);
}

.brand--light img {
  background: none;
}

.foot__brand p {
  margin-top: 14px;
  max-width: 20em;
  color: #cbd6ce;
}

.foot__col h2 {
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

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

.foot__col li:not(:has(a)) {
  padding: 4px 0;
}

.foot__col li a {
  display: inline-block;
  padding: 10px 0;
}

.foot__mail {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.foot__lang-title {
  margin-top: 22px;
}

.foot .lang {
  border-color: var(--lime);
}

.foot .lang__item {
  color: var(--lime);
}

.foot .lang__item.is-current {
  background: var(--lime);
  color: var(--night);
}

.foot a.lang__item:hover {
  background: var(--emerald);
  color: var(--white);
}

.foot__disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 242, 236, 0.22);
  max-width: 60em;
  color: #cbd6ce;
}

.foot__legal {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  color: #a9b9ae;
}

/* ---------- Inner pages ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  padding: 48px 0 150px;
}

.page-head .stepline {
  height: 110px;
}

.page-head .wrap {
  position: relative;
}

.page-head h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 68px);
  letter-spacing: -0.035em;
}

.page-head__meta {
  margin-top: 16px;
  max-width: 40em;
  font-size: 18px;
  color: var(--night);
}

/* Privacy policy */
.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  padding-top: 64px;
  padding-bottom: 104px;
  align-items: start;
}

.doc__side {
  position: sticky;
  top: 24px;
}

.doc__side h2 {
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__side ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-top: 3px solid var(--night);
}

.doc__side li {
  counter-increment: toc;
  border-bottom: 1px solid var(--rule);
}

.doc__side a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--night);
  text-decoration: none;
}

.doc__side a::before {
  content: counter(toc);
  flex: none;
  width: 1.4em;
  font-family: var(--display);
  font-weight: 700;
  color: var(--emerald);
}

.doc__side a:hover {
  text-decoration: underline;
}

.prose {
  max-width: 46em;
}

.prose section + section {
  margin-top: 52px;
}

.prose h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.prose__num {
  flex: none;
  min-width: 1.3em;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.prose p,
.prose ul,
.prose table {
  margin-top: 16px;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 10px;
}

.prose li::marker {
  color: var(--emerald);
}

.summary {
  background: var(--night);
  color: var(--paper);
  padding: 30px 34px 34px;
}

.summary h2 {
  color: var(--lime);
  font-size: 24px;
}

.summary li::marker {
  color: var(--lime);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
  border-top: 3px solid var(--night);
}

.data-table th,
.data-table td {
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.data-table thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table tbody th {
  font-weight: 700;
  color: var(--night);
  width: 34%;
}

/* Help */
.help {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  grid-template-areas:
    "start contact"
    "faq contact";
  gap: 64px 72px;
  padding-top: 64px;
  padding-bottom: 104px;
  align-items: start;
}

.help h2 {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.help__start {
  grid-area: start;
}

.help__steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 3px solid var(--night);
}

.help__steps li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.help__num {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--night);
}

.help__steps h3 {
  font-size: 20.5px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.help__steps p {
  margin-top: 6px;
  color: var(--muted);
}

.help__note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--paper);
  color: var(--night);
}

.help__contact {
  grid-area: contact;
  position: sticky;
  top: 24px;
  background: var(--night);
  color: var(--paper);
  padding: 34px 34px 36px;
}

.help__contact h2 {
  color: var(--lime);
}

.help__contact > p {
  margin-top: 14px;
}

.help__contact .btn {
  margin-top: 24px;
}

.help__contact :focus-visible {
  outline-color: var(--lime);
}

.help__mail a {
  color: var(--white);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.help__contact .help__small {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(238, 242, 236, 0.22);
  font-size: 14.5px;
  color: #cbd6ce;
}

.help__faq {
  grid-area: faq;
}

.help__faq .faq__list {
  margin-top: 26px;
}

.help__disclaimer {
  margin-top: 30px;
  font-size: 15.5px;
  color: var(--muted);
}

/* Changelog */
.log {
  padding-top: 64px;
  padding-bottom: 104px;
}

.log__entry {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 72px;
  padding: 30px 0 38px;
  border-top: 3px solid var(--night);
  border-bottom: 1px solid var(--rule);
}

.log__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--night);
  overflow-wrap: anywhere;
}

.log__badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  background: var(--lime);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night);
}

.log__body h2 {
  font-size: 30px;
}

.log__body ul {
  margin: 18px 0 0;
  padding-left: 1.2em;
  max-width: 42em;
}

.log__body li + li {
  margin-top: 10px;
}

.log__body li::marker {
  color: var(--emerald);
}

.cta--log {
  margin-top: 44px;
}

/* 404 */
.lost {
  position: relative;
  overflow: hidden;
  background: var(--lime);
}

.lost .stepline {
  height: 170px;
}

.lost__inner {
  position: relative;
  padding: 56px 0 250px;
}

.lost__code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(110px, 20vw, 230px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--lime-deep);
}

.lost h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 60px);
}

.lost__inner > p:not(.lost__code) {
  margin-top: 16px;
  font-size: 19px;
  color: var(--night);
}

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

.lost__links .link-arrow {
  color: var(--night);
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 340px minmax(0, 1fr);
    column-gap: 44px;
  }

  .tile--wide,
  .tile--narrow {
    grid-column: span 6;
    flex-direction: column;
  }

  .tile--wide .tile__text {
    flex: none;
  }

  .tile--wide .tile__shot,
  .tile--narrow .tile__shot {
    height: 330px;
    overflow: hidden;
    margin-top: auto;
    padding-top: 0;
    align-self: stretch;
    flex: none;
  }

  .tile--full .tile__shot {
    flex-basis: 360px;
    margin-right: 40px;
  }

  .ledger__grid,
  .faq__grid,
  .private__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doc {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 44px;
  }

  .help {
    gap: 56px 44px;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 820px) {
  body {
    font-size: 16.5px;
  }

  .top__row {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 12px;
  }

  .top__nav {
    order: 3;
    flex: 0 0 calc(100% + 2 * var(--gutter));
    margin: 8px calc(-1 * var(--gutter)) 0;
    padding: 0 calc(var(--gutter) - 7px);
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    border-top: 2px solid var(--night);
    scrollbar-width: none;
  }

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

  .top__nav a {
    padding: 0 7px;
    font-size: 14.5px;
  }

  .brand__name {
    font-size: 19px;
  }

  .stepline {
    height: 150px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
    padding: 36px 0 0;
  }

  .hero__copy .label {
    flex-direction: row;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(38px, 11.4vw, 60px);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 17.5px;
  }

  .cta--hero {
    margin-top: 26px;
    align-items: flex-start;
  }

  .hero__screen {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 330px);
    margin: 0 auto;
    padding-top: 40px;
  }

  .screen {
    height: 470px;
    border-width: 8px;
    border-radius: 36px 36px 0 0;
  }

  .hero__screen figcaption {
    left: 8px;
    right: 8px;
  }

  .points__list {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .points__list li,
  .points__list li:first-child {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid rgba(238, 242, 236, 0.22);
  }

  .points__list li:first-child {
    border-top: 0;
  }

  .how,
  .ledger,
  .private,
  .faq {
    padding: 68px 0;
  }

  .features {
    padding: 0 0 68px;
  }

  .section-head__intro {
    font-size: 17px;
  }

  .stairs {
    --step: 0px;
    grid-template-columns: 1fr;
    margin-top: 36px;
  }

  .stairs__step {
    margin-top: 0;
    margin-left: calc((3 - var(--rise)) * 14px);
    padding: 18px 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: baseline;
  }

  .stairs__step + .stairs__step::before {
    content: none;
  }

  .stairs__num {
    font-size: 40px;
    grid-row: span 2;
  }

  .stairs__step h3 {
    margin-top: 0;
    font-size: 21px;
  }

  .stairs__step p {
    grid-column: 2;
    margin-top: 6px;
  }

  .bento {
    margin-top: 36px;
    gap: 16px;
  }

  .tile--wide,
  .tile--narrow,
  .tile--full {
    grid-column: span 12;
    flex-direction: column;
  }

  .tile__text,
  .tile--full .tile__text {
    padding: 26px 22px 22px;
    align-self: stretch;
  }

  .tile--wide .tile__shot,
  .tile--narrow .tile__shot {
    height: auto;
  }

  .tile__shot img {
    max-width: 460px;
    margin-inline: auto;
  }

  .tile--full .tile__shot {
    flex: none;
    width: min(100% - 44px, 460px);
    height: 330px;
    margin: 4px auto 0;
  }

  .ledger__sheet {
    padding: 0 20px 6px;
  }

  .ledger__head {
    display: none;
  }

  .ledger__row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 18px 0;
  }

  .ledger__row:first-child {
    border-top: 0;
  }

  .gallery {
    padding: 68px 0 56px;
  }

  .gallery__rail {
    margin-top: 30px;
  }

  .gallery__rail li {
    width: 232px;
  }

  .private__facts {
    grid-template-columns: 1fr;
  }

  .private__facts li {
    padding: 18px 0 22px;
  }

  .faq__list summary {
    font-size: 18px;
    padding: 18px 0;
  }

  .faq__list details p {
    padding-right: 0;
  }

  .download .stepline {
    height: 120px;
  }

  .download__inner {
    padding: 64px 0 170px;
  }

  .foot {
    padding-top: 48px;
  }

  .foot__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-head {
    padding: 34px 0 104px;
  }

  .page-head .stepline {
    height: 74px;
  }

  .page-head__meta {
    font-size: 17px;
  }

  .doc {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .doc__side {
    position: static;
  }

  .doc__side a {
    padding: 12px 0;
  }

  .prose h2 {
    font-size: 24px;
  }

  .summary {
    padding: 24px 22px 26px;
  }

  /* The data table becomes one block per row */
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: auto;
  }

  .data-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }

  .data-table th,
  .data-table td {
    padding: 0;
    border: 0;
  }

  .data-table tbody th {
    width: auto;
    font-size: 16px;
  }

  .data-table td {
    margin-top: 10px;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .help {
    grid-template-columns: 1fr;
    grid-template-areas:
      "start"
      "contact"
      "faq";
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .help h2 {
    font-size: 28px;
  }

  .help__contact {
    position: static;
    padding: 26px 22px 28px;
  }

  .help__steps li {
    gap: 16px;
  }

  .log {
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .log__entry {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .log__num {
    font-size: 48px;
  }

  .lost__inner {
    padding: 36px 0 170px;
  }

  .lost .stepline {
    height: 110px;
  }
}

@media print {
  .top__nav,
  .lang,
  .stepline,
  .gallery,
  .download {
    display: none;
  }
}
