/* Landing page. Direction: "the product performs". The page shows working and cropped pieces of the
   MAJACLOUD dashboard and API at their real interface size; the marketing type around them is the
   dashboard's own face (Hanken Grotesk) set large. One ground, one ink, the logo's blue on the action;
   two ink fields (security, the close) change the ground like chapters. No shadows, gradients or
   hairlines outside the fragments, which carry the product's own conventions under [data-ui]. */

.landing .site-main {
  min-height: 0;
}

.landing .site-header {
  background: var(--bg);
}

/* Frame and rhythm --------------------------------------------------------------------- */
.l-frame {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.l-section {
  padding: clamp(72px, 7.6vw, 120px) 0;
}

.l-split,
.l-hero__grid,
.l-service,
.l-faq__grid,
.l-close__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.2vw, 32px);
}

/* Type: display (hero), head (sections), lead, body, small. Nothing in between. -------- */
.l-hero__title,
.l-h2 {
  margin: 0 0 0 -0.04em;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
  hyphens: none;
}

/* One statement size for every heading, as the type system sets it. */
.l-hero__title,
.l-h2 {
  font-size: clamp(2.75rem, 0.8rem + 4.6vw, 5.75rem);
}

.l-h2 {
  max-width: 15ch;
}

.l-h3,
.l-h4 {
  margin: 0;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

.l-lead {
  margin: 0;
  font-size: var(--step-lead);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 34ch;
  text-wrap: pretty;
}

.l-body {
  margin: 0;
  font-size: var(--step-body);
  line-height: 1.55;
  max-width: 58ch;
  text-wrap: pretty;
}

.l-note {
  margin: var(--sp-6) 0 0;
  color: var(--text-2);
  font-size: var(--step-small);
  line-height: 1.5;
  max-width: 64ch;
}

.l-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-8);
  margin-top: var(--sp-8);
}

.landing .btn--lg {
  min-height: 52px;
  padding: 0 var(--sp-8);
  font-size: var(--fs-16);
  font-weight: 600;
}

.landing .btn--primary {
  transition: background-color 140ms ease, transform 140ms ease;
}

.landing .btn--primary:active {
  transform: translateY(1px);
}

.l-textlink {
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, text-underline-offset 140ms ease;
}

.l-textlink:hover {
  color: var(--accent-ink);
  text-underline-offset: 0.32em;
}

/* Hero ------------------------------------------------------------------------------ */
.l-hero {
  padding: clamp(40px, 5vw, 80px) 0 clamp(72px, 7.6vw, 120px);
}

.l-hero__grid {
  grid-template-rows: auto 1fr;
  row-gap: clamp(28px, 3vw, 48px);
  align-items: start;
}

.l-hero__title {
  grid-column: 1 / span 6;
  grid-row: 1;
  max-width: 15.5ch;
}

.l-hero__copy {
  grid-column: 1 / span 5;
  grid-row: 2;
}

.l-hero__board {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
}

/* Interface fragments (data-ui): the dashboard's own conventions. ---------------------- */
.ui {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: var(--fs-14);
  line-height: 1.45;
  overflow: hidden;
}

.ui .icon {
  width: 16px;
  height: 16px;
}

.ui-id,
.ui-exchange__req,
.ui-exchange__res,
.ui-call__result {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
}

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

.ui-ellipsis {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ui-head__title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-right: auto;
  font-size: var(--fs-16);
  font-weight: 600;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 500;
}

.ui-chip .icon {
  width: 13px;
  height: 13px;
}

.ui-chip--ok {
  background: var(--success-soft);
  color: var(--success-ink);
}

.ui-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--hue) 70% 92%);
  color: hsl(var(--hue) 55% 28%);
  font-size: 13px;
  font-weight: 600;
}

[data-theme="dark"] .ui-avatar {
  background: hsl(var(--hue) 35% 22%);
  color: hsl(var(--hue) 70% 82%);
}

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
}

.ui-button--primary {
  border-color: var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--on-accent);
  transition: background-color 140ms ease, transform 140ms ease;
}

.ui-button--primary:hover {
  background: var(--btn-primary-hover);
}

.ui-button--primary:active {
  transform: translateY(1px);
}

.ui-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ui-pill--ok {
  background: var(--success-soft);
  color: var(--success-ink);
}

.ui-pill--info {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.ui-pill--warn {
  background: var(--warning-soft);
  color: var(--warning-ink);
}

.ui-method {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 0.5em;
  font-weight: 600;
}

.ui-method--get { color: var(--accent-ink); }
.ui-method--post { color: var(--success-ink); }
.ui-method--put { color: var(--warning-ink); }

.ui-type {
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: 500;
}

.ui-type--number { background: var(--accent-soft); color: var(--accent-ink); }
.ui-type--boolean { background: var(--success-soft); color: var(--success-ink); }
.ui-type--json { background: var(--warning-soft); color: var(--warning-ink); }

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ui-table th {
  padding: 10px 18px;
  color: var(--text-2);
  font-size: var(--fs-13);
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ui-table td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.ui-table tr:last-child td {
  border-bottom: 0;
}

.ui-table tr.is-changed td,
.ui-table tr.is-selected td {
  background: var(--accent-soft);
}

.ui-num {
  text-align: right;
  white-space: nowrap;
}

th.ui-num {
  text-align: right;
}

.ui-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ui-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-2);
}

.ui-foot .ui-button {
  margin-left: auto;
  min-height: 30px;
  font-size: var(--fs-13);
}

/* The hero console: one tab per service, so the first screen names all five. */
.ui-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.ui-tabs::-webkit-scrollbar {
  display: none;
}

.ui-tabs__tab {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}

.ui-tabs__tab:hover {
  color: var(--text);
}

.ui-tabs__tab[aria-selected="true"] {
  background: var(--panel);
  color: var(--accent-ink);
  box-shadow: inset 0 3px 0 var(--accent);
}

.ui-panel {
  display: flex;
  flex-direction: column;
  min-height: var(--panel-h, 0);
  animation: l-panel 260ms ease both;
}

.ui-panel[hidden] {
  display: none;
}

.ui-panel > .ui-exchange:last-child,
.ui-panel > .ui-foot:last-child {
  margin-top: auto;
}

.ui-panel__lead {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-14);
  line-height: 1.5;
}

@keyframes l-panel {
  from {
    opacity: 0;
  }
}

.l-hero__engines {
  margin-top: var(--sp-10);
}

.l-hero__engines p {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-16);
  font-weight: 600;
}

.l-hero__engines ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-hero__engines a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 600;
  transition: background-color 140ms ease;
}

.l-hero__engines a:hover {
  background: var(--border);
  text-decoration: none;
}

.l-hero__engines .icon {
  width: 18px;
  height: 18px;
}

/* The hero board: the page's live thing. */
.ui-board {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}

.ui-board__row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  padding: 0 18px 0 8px;
  font-size: var(--fs-16);
}

.ui-board__rank {
  color: var(--text-2);
  font-weight: 500;
  text-align: center;
}

.ui-board__who {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 500;
}

.ui-board__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-board__score {
  font-weight: 600;
}

.ui-board__row.is-you {
  background: var(--accent-soft);
}

.ui-board__row.is-you .ui-board__rank,
.ui-board__row.is-you .ui-board__score {
  color: var(--accent-ink);
}

.ui-board__row.is-out {
  color: var(--text-2);
}

.ui-try {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}

.ui-try__title {
  margin: 0 0 10px;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
}

.ui-try__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: end;
  gap: 10px;
}

.ui-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: var(--text-2);
  font-size: var(--fs-13);
}

.ui-field input {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: var(--fs-16);
  font-variant-numeric: tabular-nums;
}

.ui-try .ui-button {
  min-height: 38px;
}

.ui-exchange {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
}

.ui-exchange__req {
  display: flex;
  align-items: baseline;
  gap: 0;
  color: var(--text);
}

.ui-exchange__res {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ui-exchange__res code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Code -------------------------------------------------------------------------------- */
.l-split__text {
  grid-column: 1 / span 5;
  align-self: start;
}

.l-split__text .l-body,
.l-split__text .l-lead {
  margin-top: var(--sp-6);
}

.l-codebox {
  grid-column: 7 / span 6;
  align-self: start;
  border-radius: var(--radius-lg);
  background: var(--field-ink);
  color: #E6EBF2;
  overflow: hidden;
}

.l-engines {
  margin: var(--sp-10) 0 0;
  display: grid;
  gap: var(--sp-6);
}

.l-engines__item dt a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.l-engines__item dt a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.l-engines__logo {
  width: 22px;
  height: 22px;
}

.l-engines__item dd {
  margin: 4px 0 0 32px;
  font-size: var(--step-body);
  line-height: 1.5;
  max-width: 46ch;
}

.l-codebox__tabs {
  display: flex;
  gap: 2px;
  padding: 10px 10px 0;
}

.l-codebox__tab {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  color: #A9B4C4;
  font-size: var(--fs-14);
  font-weight: 600;
  transition: color 140ms ease, background-color 140ms ease;
}

.l-codebox__tab:hover {
  color: #FFFFFF;
}

.l-codebox__tab[aria-selected="true"] {
  background: var(--field-ink-surface);
  color: #FFFFFF;
}

.l-codebox__panel {
  position: relative;
  background: var(--field-ink-surface);
}

.l-codebox__panel pre {
  margin: 0;
  padding: 22px 24px 26px;
  color: #E6EBF2;
  font-size: 13.5px;
  line-height: 1.7;
  max-height: 520px;
  overflow: auto;
}

.l-codebox__copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #E6EBF2;
  transition: background-color 140ms ease;
}

.l-codebox__copy:hover {
  background: rgba(255, 255, 255, 0.16);
}

.l-codebox .tok-k,
.l-signed .tok-k { color: #C9B2FF; }
.l-codebox .tok-s,
.l-signed .tok-s { color: #8FE3B0; }
.l-codebox .tok-n,
.l-signed .tok-n { color: #FFC28A; }
.l-codebox .tok-c,
.l-signed .tok-c { color: #8D98A8; }

/* Services: a statement on the left, a cropped piece of the dashboard on the right. ------ */
.l-intro {
  max-width: 900px;
}

.l-intro .l-body {
  margin-top: var(--sp-6);
}

.l-service {
  align-items: center;
  margin-top: clamp(64px, 8vw, 128px);
}

.l-service__text {
  grid-column: 1 / span 4;
}

.l-service__text .l-body {
  margin-top: var(--sp-4);
}

.l-service__text .l-textlink {
  display: inline-block;
  margin-top: var(--sp-5);
}

.l-service__ui--wide {
  grid-column: 6 / span 7;
}

.l-service__ui--split {
  grid-column: 6 / span 7;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.l-service__ui--narrow {
  grid-column: 6 / span 5;
  display: grid;
  gap: 0;
}

.ui-detail {
  padding: 18px;
  border-left: 1px solid var(--border);
  background: var(--panel-2);
}

.ui-detail__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ui-detail__who .ui-avatar {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.ui-detail__label {
  margin: 14px 0 6px;
  color: var(--text-2);
  font-size: var(--fs-13);
}

.ui-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-variant-numeric: tabular-nums;
}

.ui-call {
  padding: 16px 18px;
}

.ui-call + .ui-call {
  border-top: 1px solid var(--border);
}

.ui-call__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.ui-call__result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ui-chart {
  display: block;
  width: calc(100% - 36px);
  height: 120px;
  margin: 16px 18px 6px;
}

.ui-chart line {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.ui-chart__bar {
  fill: var(--accent);
}

.ui-chart__err {
  fill: var(--warning);
}

.ui-table--logs td:first-child {
  white-space: nowrap;
}

/* Getting started: a field one tone off the ground, the Starter scene beside the steps. */
.l-start {
  background: var(--panel-2);
}

.l-split--reverse .l-split__text {
  grid-column: 1 / span 6;
}

.l-steps {
  margin: var(--sp-10) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-8);
}

.l-steps .l-body {
  margin-top: var(--sp-2);
}

.l-game {
  grid-column: 8 / span 5;
  align-self: center;
  justify-self: center;
  width: min(100%, 360px);
  padding: 12px;
  border: 0;
  border-radius: 40px;
  background: #0B0F19;
  font-size: 13px;
}

.l-game__screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
  padding: 22px 16px;
  border-radius: 30px;
  background: #13213D;
  color: #F5F7FB;
}

.l-game__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-game__coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #2A3550;
  color: #FDE68A;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.l-game__title {
  font-size: 14px;
  font-weight: 600;
}

.l-game__board {
  padding: 14px;
  border-radius: 18px;
  background: #0E1830;
}

.l-game__board-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.l-game__board-head span {
  margin-left: auto;
  color: #9BA8C2;
  font-size: 12px;
  font-weight: 500;
}

.l-game__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.l-game__row.is-me {
  background: #1E4FA8;
}

.l-game__reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: #1C2A49;
  font-weight: 600;
}

.l-game__reward > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.l-game__claim {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #FDE68A;
  color: #2A2005;
  font-weight: 600;
  white-space: nowrap;
}

/* Security: the first ink chapter. ----------------------------------------------------- */
.l-security {
  background: var(--field-ink);
  color: var(--field-ink-text);
}

.l-security .l-lead {
  color: var(--field-ink-text);
}

.l-claims {
  margin: var(--sp-10) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  font-size: var(--step-body);
  line-height: 1.5;
  max-width: 52ch;
}

.l-signed {
  grid-column: 7 / span 6;
  align-self: start;
  border-radius: var(--radius-lg);
  background: var(--field-ink-surface);
  overflow: hidden;
}

.l-signed .ui-exchange__req {
  padding: 16px 22px;
  color: var(--field-ink-text);
  background: rgba(255, 255, 255, 0.04);
}

.l-signed .ui-method--get {
  color: #8DB4FF;
}

.l-signed__status {
  margin-left: auto;
  color: #8FE3B0;
  font-weight: 600;
}

.l-signed pre {
  margin: 0;
  padding: 20px 22px 24px;
  color: #E6EBF2;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Pricing ----------------------------------------------------------------------------- */
.l-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(40px, 5vw, 72px);
}

.l-plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.l-plan--featured {
  background: var(--field-ink);
  color: var(--field-ink-text);
}

.l-plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.l-plan__popular {
  color: #8DB4FF;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0;
}

.l-plan__desc {
  margin: 8px 0 0;
  min-height: 3em;
  color: var(--text-2);
  font-size: var(--fs-14);
}

.l-plan--featured .l-plan__desc,
.l-plan--featured .l-plan__billed,
.l-plan--featured .l-plan__price small {
  color: var(--field-ink-muted);
}

.l-plan__price {
  margin: 24px 0 0;
  font-variant-numeric: tabular-nums;
}

.l-plan__price span {
  font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.l-plan__price small {
  color: var(--text-2);
  font-size: var(--fs-14);
}

.l-plan__billed {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: var(--fs-14);
}

.l-plan__limits {
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
}

.l-plan .btn {
  margin-top: auto;
  min-height: 46px;
  font-weight: 600;
}

.l-plan--featured .btn--primary {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--field-ink);
}

.l-plan--featured .btn--primary:hover {
  background: #DCE6F7;
  border-color: #DCE6F7;
}

.l-pricing .l-note {
  margin-top: var(--sp-8);
}

/* Questions --------------------------------------------------------------------------- */
.l-faq {
  padding-top: 0;
}

.l-faq__grid > .l-h2 {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: 96px;
}

.l-faq__list {
  grid-column: 6 / span 7;
  display: grid;
  gap: 8px;
}

.l-faq__item {
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.l-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 20px 24px;
  font-size: var(--fs-20);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.l-faq__item summary:hover {
  color: var(--accent-ink);
}

.l-faq__icon {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.l-faq__item[open] .l-faq__icon {
  transform: rotate(45deg);
}

.l-faq__item p {
  margin: 0;
  padding: 0 24px 24px;
  font-size: var(--step-body);
  line-height: 1.55;
  max-width: 62ch;
}

/* The close: the second ink chapter, running straight into the footer. --------------- */
.l-close {
  padding: clamp(80px, 9vw, 144px) 0 clamp(56px, 6vw, 96px);
  background: var(--field-ink);
  color: var(--field-ink-text);
}

.l-close__grid > .l-h2 {
  grid-column: 1 / span 7;
  max-width: 16ch;
}

.l-close__act {
  grid-column: 9 / span 4;
  align-self: end;
}

.l-close .l-lead {
  color: var(--field-ink-muted);
}

.l-close .btn--primary,
.l-security .btn--primary {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--field-ink);
}

.l-close .btn--primary:hover {
  background: #DCE6F7;
  border-color: #DCE6F7;
}

.l-close .l-textlink {
  color: var(--field-ink-text);
}

.landing .site-footer--close .site-footer__inner {
  padding-top: 0;
}

/* Entrances: heading, then text, then picture. Content is visible without script. ----- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* The first screen never waits for script: its parts rise in on their own, in reading order. */
.l-hero__title,
.l-hero__copy,
.l-hero__board {
  animation: l-rise 720ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.l-hero__copy {
  animation-delay: 90ms;
}

.l-hero__board {
  animation-delay: 180ms;
}

@keyframes l-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* If landing.js never runs, nothing stays hidden. */
.js-reveal:not([data-reveal-ready]) [data-reveal] {
  animation: l-reveal-fallback 0s 1.5s forwards;
}

@keyframes l-reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

.ui-board__row.is-moving {
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ui-board__row.is-moving {
    transition: none;
  }

  .ui-panel {
    animation: none;
  }

  .l-hero__title,
  .l-hero__copy,
  .l-hero__board {
    animation: none;
  }
}

/* Tablet ------------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .l-hero__title {
    grid-column: 1 / -1;
  }

  .l-hero__copy {
    grid-column: 1 / -1;
  }

  .l-hero__board {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .l-split__text,
  .l-split--reverse .l-split__text,
  .l-codebox,
  .l-signed,
  .l-service__text,
  .l-service__ui--wide,
  .l-service__ui--split,
  .l-service__ui--narrow,
  .l-faq__grid > .l-h2,
  .l-faq__list,
  .l-close__grid > .l-h2,
  .l-close__act {
    grid-column: 1 / -1;
  }

  .l-codebox,
  .l-signed,
  .l-service__ui--wide,
  .l-service__ui--split,
  .l-service__ui--narrow,
  .l-faq__list,
  .l-close__act {
    margin-top: var(--sp-10);
  }

  .l-game {
    grid-column: 1 / -1;
    margin-top: var(--sp-10);
  }

  .l-faq__grid > .l-h2 {
    position: static;
  }

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

/* Phone: its own composition, one column, the board right under the action. -------------- */
@media (max-width: 640px) {
  .l-hero {
    padding-top: 24px;
  }

  .l-hero__title {
    font-size: clamp(2.5rem, 1.2rem + 6.4vw, 3rem);
  }

  /* Section headings run longer in German or Russian; at 36px they keep to two lines. */
  .l-h2 {
    font-size: 2.25rem;
    max-width: none;
  }

  .l-close__grid > .l-h2 {
    font-size: 1.875rem;
    max-width: none;
  }

  .ui-try__fields {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .ui-tabs__tab {
    flex: none;
    padding: 0 12px;
  }

  .ui-try .ui-button {
    grid-column: 1 / -1;
    min-height: 44px;
  }

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

  .ui-detail {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .ui-table th,
  .ui-table td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ui-table--logs .ui-method {
    display: block;
  }

  .ui-table--logs th:last-child,
  .ui-table--logs td:last-child {
    display: none;
  }

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

  .l-plan__desc {
    min-height: 0;
  }

  .l-faq__item summary {
    padding: 18px;
    font-size: var(--fs-16);
  }

  .l-faq__item p {
    padding: 0 18px 20px;
  }

  .l-game__screen {
    min-height: 480px;
  }
}
