/*
 * SPLET — landing.
 *
 * The palette and the faces are the app's own (app/src/theme): three
 * surfaces — night, paper, orange — that alternate section to section
 * exactly as the screens do, Rubik for display, IBM Plex Sans for text and
 * IBM Plex Mono for the small capitalised labels. Nothing here is a new
 * design language; it is the phone, opened up to page width.
 */

:root {
  --ink: #17150f;
  --ink-raised: #201f1c;
  --ink-pressed: #2c2820;
  --cream: #f0eae0;
  --orange: #ef9b3b;
  --orange-hi: #f7b56a;
  --orange-ink: #8f5416;
  --red: #e0553a;
  --green: #6fb894;

  /* Text tones, mirroring the app's translucent ladders. */
  --on-night: var(--cream);
  --on-night-body: rgba(240, 234, 224, 0.72);
  --on-night-muted: rgba(240, 234, 224, 0.56);
  --on-night-dim: rgba(240, 234, 224, 0.42);
  --line-night: rgba(240, 234, 224, 0.14);

  --on-paper: var(--ink);
  --on-paper-body: rgba(23, 21, 15, 0.74);
  --on-paper-muted: rgba(23, 21, 15, 0.58);
  --line-paper: rgba(23, 21, 15, 0.14);

  --display: 'Rubik', system-ui, sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --r-card: 24px;
  --r-pill: 999px;
  --wrap: 1160px;
  --gap-section: clamp(76px, 9vw, 132px);
}

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

html {
  scroll-behavior: smooth;
  /* The sticky bar must not sit on the heading an anchor jumps to. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-night);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.wrap--narrow {
  max-width: 760px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 12px 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

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

/* ─────────────────────────── typography ─────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  /* Capped so that on a laptop the primary button still sits above the fold:
     a hero whose call to action needs a scroll is a poster, not a landing. */
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.03;
}

h1 em {
  font-style: normal;
  color: var(--orange);
  display: block;
}

h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.06;
}

h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}

.eyebrow--ink {
  color: var(--orange-ink);
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.62;
  color: var(--on-night-body);
  max-width: 62ch;
}

.lead--ink {
  color: var(--on-paper-body);
}

.lead b {
  color: var(--on-night);
  font-weight: 600;
}

.lead--ink b {
  color: var(--on-paper);
}

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

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

.btn--accent {
  background: var(--orange);
  color: var(--ink);
}

.btn--accent:hover {
  background: var(--orange-hi);
}

.btn--ghost {
  border-color: rgba(240, 234, 224, 0.26);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(240, 234, 224, 0.06);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 0.94rem;
}

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 21, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line-night);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--orange);
  flex: none;
}

.logo__word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.logo--sm .logo__mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.logo--sm .logo__word {
  font-size: 1rem;
}

.nav__links {
  display: flex;
  gap: 26px;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.96rem;
  color: var(--on-night-muted);
  transition: color 0.16s ease;
}

.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--cream);
}

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

/* ─────────────────────────── sections ─────────────────────────── */

.section {
  padding-block: var(--gap-section);
}

.section--night {
  background: var(--ink);
  color: var(--on-night);
}

.section--paper {
  background: var(--cream);
  color: var(--on-paper);
}

.section--orange {
  background: var(--orange);
  color: var(--ink);
}

.head {
  max-width: 72ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.head h2 + .lead {
  margin-top: 22px;
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  padding-block: clamp(48px, 5vw, 76px) clamp(72px, 9vw, 116px);
  position: relative;
  overflow: hidden;
}

/* A single warm glow behind the phone, so the dark page has a light source
   instead of being flat black. */
.hero::before {
  content: '';
  position: absolute;
  top: -18%;
  right: -10%;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(239, 155, 59, 0.16), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lead {
  margin-bottom: 30px;
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-dim);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__facts li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.hero__shot {
  position: relative;
  justify-self: center;
}

@media (max-width: 940px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__shot {
    max-width: 330px;
    margin-inline: auto;
  }
}

/* ─────────────────────────── phone ─────────────────────────── */

.phone {
  width: 100%;
  max-width: 312px;
  border-radius: 46px;
  padding: 9px;
  background: #0b0a07;
  box-shadow:
    0 2px 0 rgba(240, 234, 224, 0.1) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

.phone img {
  border-radius: 38px;
}

.phone--sm {
  max-width: 258px;
}

.phone--paper {
  box-shadow:
    0 2px 0 rgba(240, 234, 224, 0.12) inset,
    0 34px 64px -30px rgba(23, 21, 15, 0.5);
}

/* The card that leans on the hero phone: the product's whole idea in three
   lines, placed where the eye lands after the screenshot. */
.floatcard {
  position: absolute;
  left: clamp(-30px, -4vw, 0px);
  bottom: 12%;
  width: 212px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.8);
  display: grid;
  gap: 2px;
}

.floatcard__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.floatcard__sr {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
}

.floatcard__wrong {
  font-size: 0.95rem;
  color: var(--on-paper-muted);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.floatcard__right {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--orange-ink);
}

@media (max-width: 420px) {
  .floatcard {
    left: -6px;
    width: 186px;
    padding: 15px 17px;
  }
}

/* ─────────────────────────── traps ─────────────────────────── */

.traps {
  display: grid;
  /* Two on a phone, four on a desktop: eight cards divide evenly into both,
     and `auto-fit` would have made six columns and a stranded pair. */
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0 0 clamp(56px, 7vw, 96px);
  padding: 0;
}

.trap {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 4px;
  /* Tall enough for the answer before it is asked for, so a tap reveals
     text instead of shoving the rest of the grid down the page. */
  min-height: clamp(116px, 26vw, 136px);
  text-align: left;
  font-family: var(--text);
  padding: 22px 22px 20px;
  border-radius: var(--r-card);
  border: 1.5px solid var(--line-paper);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.trap:hover {
  border-color: rgba(23, 21, 15, 0.3);
  transform: translateY(-2px);
}

.trap[aria-expanded='true'] {
  background: rgba(23, 21, 15, 0.045);
  border-color: rgba(23, 21, 15, 0.24);
}

.trap__sr {
  font-family: var(--display);
  font-weight: 800;
  /* «pozorište» is the longest of them and has to fit a half-width card. */
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  letter-spacing: -0.01em;
}

@media (min-width: 700px) {
  .traps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .trap {
    padding: 18px 16px 16px;
  }
}

.trap__ask {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.trap__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

/* One child, so the row can go from 0fr to the content's own height. Two
   children would have needed `1fr 1fr`, which sets them equal instead. */
.trap__body > .trap__inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 4px;
  align-content: start;
}

.trap[aria-expanded='true'] .trap__ask {
  display: none;
}

.trap[aria-expanded='true'] .trap__body {
  grid-template-rows: 1fr 1fr;
}

.trap__body s {
  font-size: 0.98rem;
  color: var(--on-paper-muted);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
}

.trap__body em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.08rem, 3.4vw, 1.28rem);
  color: var(--orange-ink);
  line-height: 1.25;
}

/* ─────────────────────────── split blocks ─────────────────────── */

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

.split--wide {
  grid-template-columns: 1fr 1.05fr;
}

.split__text h3 {
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.split__text h2 {
  margin-bottom: 20px;
}

.split__text p + p {
  margin-top: 16px;
}

.split__text p:not(.lead):not(.note) {
  color: var(--on-paper-body);
  max-width: 56ch;
}

.section--night .split__text p:not(.lead):not(.note) {
  color: var(--on-night-body);
}

.note {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: rgba(239, 155, 59, 0.12);
  border-radius: 0 14px 14px 0;
  font-size: 0.98rem;
  color: var(--on-paper-body);
  max-width: 54ch;
}

.split__shot {
  justify-self: center;
}

.split__shot--pair {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.phone--offset {
  margin-top: 44px;
}

@media (max-width: 900px) {
  .split,
  .split--wide {
    grid-template-columns: 1fr;
  }

  .split__shot--pair {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .split__shot--pair {
    gap: 10px;
  }

  .phone--offset {
    margin-top: 26px;
  }
}

/* ─────────────────────────── scenes ─────────────────────────── */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scene {
  display: grid;
  gap: 3px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--ink-raised);
  border: 1px solid var(--line-night);
  transition: border-color 0.18s ease;
}

.scene:hover {
  border-color: rgba(240, 234, 224, 0.28);
}

.scene__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
}

.scene__words {
  font-size: 0.92rem;
  color: var(--on-night-dim);
}

.scenes__more {
  margin-top: 26px;
  color: var(--on-night-muted);
  max-width: 64ch;
  font-size: 0.99rem;
}

/* ─────────────────────────── features ─────────────────────────── */

.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(56px, 7vw, 92px);
}

.feat__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--orange-ink);
  margin-bottom: 14px;
}

.feat h3 {
  margin-bottom: 12px;
}

.feat p {
  color: var(--on-paper-body);
  font-size: 0.99rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(222px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.strip__item {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.strip__item figcaption {
  font-size: 0.93rem;
  color: var(--on-paper-muted);
  text-align: center;
  max-width: 30ch;
}

/* ─────────────────────────── ticks ─────────────────────────── */

.ticks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--on-night-body);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

.ticks--ink li {
  color: var(--on-paper-body);
}

.ticks--ink li::before {
  border-color: var(--orange-ink);
}

/* ─────────────────────────── numbers ─────────────────────────── */

.numbers {
  padding-block: clamp(52px, 6vw, 82px);
}

.nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nums li {
  display: grid;
  gap: 2px;
}

.nums b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.nums span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23, 21, 15, 0.66);
}

/* Names rather than counts: a number here would be stale by the next
   publish, and a word this size needs the columns wider. */
.nums--words {
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
}

.nums--words b {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.nums--words span {
  margin-top: 6px;
}

/* ─────────────────────────── plans ─────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 18px;
}

.plan {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-card);
  border: 1.5px solid var(--line-paper);
}

.plan--accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.plan--accent .ticks--ink li {
  color: var(--on-night-body);
}

.plan--accent .ticks--ink li::before {
  border-color: var(--orange);
}

.plan__name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 14px;
}

.plan--accent .plan__name {
  color: var(--orange);
}

.plan__price {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.plan__price span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-paper-muted);
}

.plan--accent .plan__price span {
  color: var(--on-night-muted);
}

/* The billed amounts, each as large as the next; the per-month equivalent of
   the yearly plan is a note under it, never the headline. */
.prices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.prices li {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  column-gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-night);
}

.prices__term {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-muted);
}

.prices__amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.prices__note {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--on-night-muted);
}

.plan__note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--on-paper-muted);
}

.plan--accent .plan__note {
  color: var(--on-night-muted);
}

/* ─────────────────────────── cta / form ─────────────────────── */

.cta__inner {
  max-width: 720px;
  text-align: center;
}

.cta .lead {
  margin: 20px auto 0;
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.form input {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(240, 234, 224, 0.24);
  background: var(--ink-raised);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1rem;
}

.form input::placeholder {
  color: var(--on-night-dim);
}

.form input:focus {
  border-color: var(--orange);
}

.form__status {
  flex: 1 0 100%;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--on-night-muted);
}

.form__status.is-ok {
  color: var(--green);
}

.form__status.is-bad {
  color: var(--red);
}

.form.is-done input,
.form.is-done button {
  display: none;
}

.cta__note {
  margin: 18px auto 0;
  max-width: 48ch;
  font-size: 0.88rem;
  color: var(--on-night-muted);
}

/* ─────────────────────────── faq ─────────────────────────── */

.faq__title {
  margin-bottom: clamp(30px, 4vw, 48px);
}

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

.q summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

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

.q summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--orange-ink);
  border-bottom: 2px solid var(--orange-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.q[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.q p {
  padding: 0 0 24px;
  color: var(--on-paper-body);
  max-width: 66ch;
}

/* ─────────────────────────── footer ─────────────────────────── */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-night);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
}

.footer__line {
  font-size: 0.9rem;
  color: var(--on-night-dim);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--on-night-muted);
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a[aria-current='page'] {
  color: var(--cream);
}

/* ─────────────────────────── documents ─────────────────────────── */

/* /privacy, /terms and /support: the landing's surfaces, turned to long
   reading — a night header, then paper at a measure one can follow. */

.doc-head {
  padding-block: clamp(56px, 7vw, 96px) clamp(44px, 5vw, 68px);
}

.doc-head .lead {
  margin-top: 22px;
}

.doc-head a {
  color: var(--orange);
  text-underline-offset: 3px;
}

.doc-head__meta {
  margin-top: 26px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-muted);
}

.doc {
  color: var(--on-paper-body);
}

.doc h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--on-paper);
  margin: 52px 0 14px;
}

.doc h2:first-child,
.doc .eyebrow + h2 {
  margin-top: 0;
}

.doc h3 {
  color: var(--on-paper);
  margin: 36px 0 10px;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 14px;
}

.doc ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 10px;
}

.doc li::marker {
  color: var(--orange-ink);
}

.doc b {
  color: var(--on-paper);
  font-weight: 600;
}

.doc a {
  color: var(--orange-ink);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc__meta {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-paper-muted);
}

.doc__lang {
  margin: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
  border: 0;
  border-top: 1px solid var(--line-paper);
}

/* ─────────────────────────── reveal ─────────────────────────── */

/* Hidden only when the script that reveals it is running: a landing parked
   at opacity 0 waiting on an observer that never loads is a blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .trap,
  .trap__body {
    transition: none;
  }
}
