/* StefoPay – visual identity: a thermal receipt being printed and paid for. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --aubergine: #1c0e33;
  --aubergine-2: #2b1650;
  --violet: #6b3fe0;
  --violet-deep: #5229c4;
  --lilac: #f4f0fc;
  --lilac-deep: #e1d8f5;
  --lilac-ink: #c9bcef;
  --paper: #ffffff;
  --ink-soft: #4b3f63;
  --thermal: #4b4560;
  --paid: #2ee59d;

  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Modular scale 1.25 from an 18px body */
  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.406rem;
  --step-2: 1.758rem;
  --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --measure: 38rem;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lilac);
  color: var(--aubergine);
  font: 400 var(--step-0) / 1.55 var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--paid);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}

figure {
  margin: 0;
}

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

.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--aubergine);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

/* Pre-launch notice: the product cannot be used yet, say so before anything else */

.prelaunch {
  margin: 0;
  max-width: none;
  padding: 0.6rem var(--gutter);
  background: var(--violet);
  color: var(--paper);
  font-size: var(--step--1);
  line-height: 1.4;
  text-align: center;
}

.prelaunch::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: #ffc94d;
  vertical-align: 0.05rem;
}

/* Header sits on the dark stage together with the hero copy */

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem max(var(--gutter), (100vw - 74rem) / 2);
  background: var(--aubergine);
  color: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.brand svg {
  width: 2.1rem;
  height: 2.1rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.75rem;
  font-size: var(--step--1);
}

.site-nav a {
  text-decoration: none;
  color: var(--lilac-ink);
}

.site-nav a:hover {
  color: var(--paper);
  text-decoration: underline;
}

/* Buttons: square-ish like a ticket, not pills */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: scale(0.97);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

.button-primary {
  background: var(--violet);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--violet-deep);
}

.button-light {
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--lilac-ink);
}

.button-light:hover {
  background: var(--paper);
  color: var(--aubergine);
}

.button-dark {
  background: var(--aubergine);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--aubergine-2);
}

/* Hero: dark copy on the left, full-height photo on the right, the receipt prints across the seam */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: min(48rem, 100svh - 7rem);
  background: var(--aubergine);
  color: var(--paper);
}

.hero-copy {
  align-self: center;
  padding: clamp(2.5rem, 1rem + 5vw, 6rem) clamp(2rem, 1rem + 6vw, 7rem) clamp(3rem, 2rem + 5vw, 7rem) var(--gutter);
  padding-left: max(var(--gutter), (100vw - 74rem) / 2);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 860;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.hero .lede {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--lilac-ink);
  max-width: 32rem;
}

.hero .actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--lilac-ink);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 2rem var(--gutter) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 78%, rgb(255 255 255 / 0.22), transparent 55%),
    var(--violet);
}

/* Our own terminal: a handheld Android POS with the printer on top.
   One orchestrated moment: tap → "Zaplatené" → the receipt rises out of the printer. */

.terminal {
  position: relative;
  width: 19rem;
  margin-top: 21rem;
}

.paper {
  position: absolute;
  z-index: 0;
  left: 1.6rem;
  right: 1.6rem;
  bottom: calc(100% - 2.6rem);
  height: 24rem;
  overflow: hidden;
  /* Older lines fade out at the top as the paper keeps rising */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5rem);
  mask-image: linear-gradient(to bottom, transparent, #000 5rem);
}

.paper .receipt {
  position: absolute;
  inset: auto 0 0;
  -webkit-mask: none;
  mask: none;
  filter: none;
  padding-bottom: 3.4rem;
  animation: rise 2.6s cubic-bezier(0.45, 0, 0.2, 1) 1.7s both;
}

.device {
  position: relative;
  z-index: 1;
  padding: 0 1.1rem 1.4rem;
  border-radius: 2.4rem 2.4rem 2.8rem 2.8rem;
  background: linear-gradient(160deg, #2d1a52, var(--aubergine) 60%);
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.12),
    0 40px 60px -25px rgb(28 14 51 / 0.7);
}

.device-printer {
  display: grid;
  place-items: center;
  height: 3.6rem;
  margin-inline: -1.1rem;
  border-radius: 2.4rem 2.4rem 0 0;
  background: linear-gradient(#3a2466, #24123f);
}

.device-slot {
  width: 78%;
  height: 0.45rem;
  border-radius: 1rem;
  background: #07020f;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.15);
}

.device-screen {
  position: relative;
  display: grid;
  height: 17rem;
  margin-top: 0.9rem;
  border-radius: 1.3rem;
  overflow: hidden;
  background: var(--paper);
  color: var(--aubergine);
  text-align: center;
}

.screen-wait,
.screen-paid {
  grid-area: 1 / 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
}

.screen-wait .tap {
  width: 3.6rem;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.screen-paid {
  background: var(--paid);
  animation: paid 0.35s ease-out 1.3s both;
}

.screen-paid svg {
  width: 4rem;
  margin-bottom: 0.4rem;
}

.screen-label {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.screen-amount {
  font-weight: 860;
  font-size: 2.3rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.screen-note {
  font-size: var(--step--1);
}

.device-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem auto 0;
  color: var(--lilac-ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.device-brand svg {
  width: 1.3rem;
  height: 1.3rem;
}

.receipt {
  --tear: 10px;
  position: relative;
  padding: 2rem 1.4rem 2.4rem;
  background: var(--paper);
  color: var(--thermal);
  font: 400 0.8rem / 1.5 var(--mono);
  filter: drop-shadow(0 22px 30px rgb(28 14 51 / 0.35));
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tear)) var(--tear) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tear)) var(--tear) repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tear)) no-repeat;
  animation: print 2.6s cubic-bezier(0.45, 0, 0.2, 1) 0.3s both;
}

.receipt p {
  max-width: none;
}

.receipt .shop {
  text-align: center;
  color: var(--aubergine);
  font-weight: 600;
  font-size: 0.9rem;
}

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

.receipt .rule {
  margin: 0.7rem 0;
  border: 0;
  border-top: 1px dashed #c4bdd3;
}

.receipt .line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.receipt .total {
  margin-top: 0.3rem;
  color: var(--aubergine);
  font-weight: 600;
  font-size: 1rem;
}

.receipt .qr {
  width: 6.5rem;
  margin: 1rem auto 0.6rem;
  color: var(--aubergine);
}

.receipt .sample {
  text-align: center;
  font-size: 0.7rem;
  color: #6d6680;
}

.stamp {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem auto 0.4rem;
  padding: 0.5rem 1rem 0.5rem 0.7rem;
  border-radius: 999px;
  background: var(--paid);
  color: var(--aubergine);
  font: 700 0.95rem / 1.2 var(--sans);
  white-space: nowrap;
  box-shadow: 0 8px 18px rgb(46 229 157 / 0.4);
  transform: rotate(-4deg);
  animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) 4.4s both;
}

.stamp svg {
  width: 1.3rem;
  height: 1.3rem;
}

@keyframes rise {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes paid {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes print {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(1.7);
  }
  to {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .receipt,
  .paper .receipt,
  .stamp,
  .screen-paid {
    animation: none;
  }
}

/* Sections */

.section {
  padding-block: clamp(4rem, 2rem + 6vw, 8rem);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.45;
}

/* Law timeline – a real sequence of dates, on the brand violet */

.band {
  background: var(--violet);
  color: var(--paper);
}

.band .section-head p {
  color: #e4dcfb;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  border-top: 2px solid rgb(255 255 255 / 0.35);
}

.timeline li {
  position: relative;
  padding-top: 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.timeline time {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.timeline p {
  margin-top: 0.6rem;
  color: #ece6fd;
}

.fine {
  margin-top: 2.5rem;
  font-size: var(--step--1);
  color: #e4dcfb;
}

/* How it works: steps beside a phone showing the app */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.6rem;
  border-top: 1px solid var(--lilac-deep);
}

.steps li:last-child {
  border-bottom: 1px solid var(--lilac-deep);
}

.steps li::before {
  content: counter(step);
  font-size: clamp(2.8rem, 2rem + 2vw, 3.8rem);
  font-weight: 860;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--violet);
}

.steps p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.phone {
  justify-self: center;
  width: min(18rem, 100%);
}

.phone-screen {
  padding: 1.4rem 1.1rem 1.6rem;
  border: 0.7rem solid var(--aubergine);
  border-radius: 2.6rem;
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgb(28 14 51 / 0.45);
  font-size: 0.95rem;
}

.phone-screen p {
  max-width: none;
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.9rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.app-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--paid);
}

.app-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--lilac-deep);
}

.app-add {
  padding-block: 0.7rem;
  color: var(--violet);
  font-weight: 700;
}

.app-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  background: var(--lilac);
}

.app-total strong {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.app-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.app-pay span,
.app-cash {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: 0.7rem;
  text-align: center;
  font-weight: 700;
}

.app-card {
  background: var(--violet);
  color: var(--paper);
}

.app-qr {
  background: var(--aubergine);
  color: var(--paper);
}

.app-cash {
  margin-top: 0.5rem;
  box-shadow: inset 0 0 0 2px var(--lilac-deep);
}

.phone figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Itemized features: printed like receipt lines */

.items {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 4rem;
  margin: 0;
}

.items div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 1.1rem;
  border-bottom: 1px dashed var(--lilac-ink);
}

.items dt {
  order: 0;
  font-weight: 700;
}

.items div::after {
  content: "";
  order: 1;
  border-bottom: 2px dotted var(--lilac-ink);
  transform: translateY(-0.3rem);
}

.items dd {
  order: 2;
  margin: 0;
  font: 600 var(--step--1) / 1.4 var(--mono);
  color: var(--violet-deep);
  white-space: nowrap;
}

.items .note {
  grid-column: 1 / -1;
  order: 3;
  margin: 0.3rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Examples: each feature shown as the thing the user will actually see */

.examples {
  padding-top: 0;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.example h3 {
  margin-top: 1.25rem;
  font-size: var(--step-1);
}

.example > p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
}

.mock {
  display: grid;
  align-content: center;
  min-height: 15rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--lilac-deep), 0 24px 40px -30px rgb(28 14 51 / 0.4);
  font-size: var(--step--1);
}

.mock p {
  max-width: none;
}

.mock-amount {
  font-weight: 860;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mock-hint {
  color: var(--ink-soft);
}

.mock-qr {
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.mock-qr-code {
  width: 6.5rem;
  padding: 0.5rem;
  border-radius: 0.6rem;
  box-shadow: inset 0 0 0 2px var(--lilac-deep);
  color: var(--aubergine);
}

.mock-toast {
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--paid);
  font-weight: 700;
}

.mock-tap {
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  background: var(--violet);
  color: var(--paper);
}

.mock-tap svg {
  width: 3.5rem;
  margin-bottom: 0.5rem;
}

.mock-tap .mock-hint {
  color: #e4dcfb;
}

.mock-mail {
  align-content: start;
  gap: 0.45rem;
}

.mail-from {
  font-weight: 700;
}

.mail-subject {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--lilac-deep);
  font-weight: 800;
  font-size: var(--step-0);
}

.mail-body {
  color: var(--ink-soft);
}

.mail-file {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--lilac);
  font: 600 0.8rem / 1.4 var(--mono);
}

.mock-report {
  align-content: start;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.report-title {
  margin-bottom: 0.6rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-0);
}

.report-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.3rem;
}

.report-total {
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px dashed var(--lilac-ink);
}

.report-muted {
  color: var(--ink-soft);
}

.mock-export {
  gap: 0.6rem;
  background: var(--aubergine);
  color: var(--paper);
}

.export-file {
  font: 600 0.82rem / 1.4 var(--mono);
  overflow-wrap: anywhere;
}

.export-meta {
  color: var(--lilac-ink);
}

.export-ok {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--paid);
  color: var(--aubergine);
  font-weight: 700;
}

.export-ok svg {
  width: 1.1rem;
}

.mock-api {
  gap: 0.5rem;
  background: #120824;
  color: #efeaff;
  font: 400 0.82rem / 1.5 var(--mono);
}

.api-line {
  overflow-wrap: anywhere;
}

.api-method {
  color: var(--paid);
  font-weight: 600;
}

.api-status {
  color: var(--paid);
  font-weight: 600;
}

.api-muted {
  color: #a99cc9;
}

/* Pricing: one perforated ticket strip */

.tickets {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: 1.25rem;
  font-size: var(--step--1);
  box-shadow: 0 1px 0 var(--lilac-deep), 0 24px 50px -30px rgb(28 14 51 / 0.35);
}

.tickets caption {
  caption-side: bottom;
  padding-top: 1rem;
  text-align: left;
  color: var(--ink-soft);
}

.tickets th,
.tickets td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.tickets thead th {
  padding-top: 1.75rem;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tickets thead th:first-child {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-soft);
}

.tickets .price td {
  padding-bottom: 1.5rem;
}

.tickets .price strong {
  display: block;
  font-size: var(--step-3);
  font-weight: 860;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--violet);
}

.tickets tbody th {
  font-weight: 400;
  color: var(--ink-soft);
}

.tickets tbody tr + tr > * {
  border-top: 1px solid #efeaf9;
}

/* Perforation between the tickets */
.tickets td,
.tickets thead th:not(:first-child) {
  border-left: 2px dashed var(--lilac-deep);
}

.tickets .yes {
  color: var(--violet-deep);
  font-weight: 700;
}

.tickets .no {
  color: #6f6782;
}

/* Who it is for: photo beside the trades */

.who {
  background: var(--paper);
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.who-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 35% 50%;
  border-radius: 1.5rem;
}

.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trades li {
  padding: 0.55rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--lilac);
  font-weight: 600;
}

/* FAQ */

.faq {
  display: grid;
  border-top: 2px solid var(--aubergine);
}

.faq details {
  border-bottom: 1px solid var(--lilac-deep);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.015em;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--violet);
  color: var(--paper);
  font-weight: 400;
  transition: transform 0.2s ease;
}

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

.faq .answer {
  padding: 0 0 1.6rem;
  display: grid;
  gap: 0.8rem;
  color: var(--ink-soft);
}

/* Closing call */

.closing {
  padding-block: 0 clamp(4rem, 2rem + 5vw, 7rem);
}

.closing .card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: 1.5rem;
  background: var(--aubergine);
  color: var(--paper);
}

.closing h2 {
  font-size: var(--step-3);
}

.closing p {
  margin-top: 0.8rem;
  color: var(--lilac-ink);
}

/* Footer */

.site-footer {
  padding-block: 3rem 4rem;
  background: var(--aubergine);
  color: var(--lilac-ink);
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
}

.site-footer address {
  font-style: normal;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
  justify-items: end;
}

/* Legal page and 404 */

.page-title {
  font-size: var(--step-4);
  letter-spacing: -0.05em;
}

.legal .wrap {
  max-width: 46rem;
}

.legal .lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
}

.legal h2 {
  margin-top: 3rem;
  font-size: var(--step-2);
}

.legal p {
  margin-top: 1rem;
}

.facts {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--lilac-deep);
}

.facts div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--lilac-deep);
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.updated {
  margin-top: 3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Medium and small screens */

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-copy {
    padding: 2.5rem var(--gutter) 3rem;
  }
  .hero-visual {
    padding-top: 1.5rem;
  }
  .terminal {
    width: min(17rem, 86%);
    margin-top: 19rem;
  }
  .paper {
    height: 21.5rem;
  }
  .how,
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .who-photo img {
    aspect-ratio: 3 / 2;
  }
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    border-top: 0;
    border-left: 2px solid rgb(255 255 255 / 0.35);
    padding-left: 1.5rem;
  }
  .timeline li {
    padding-top: 0;
  }
  .timeline li::before {
    top: 0.45rem;
    left: calc(-1.5rem - 0.55rem);
  }
  .items {
    grid-template-columns: minmax(0, 1fr);
  }
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .closing .card,
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-links {
    justify-items: start;
  }
  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
}

@media (max-width: 40rem) {
  .site-nav {
    display: none;
  }
  .site-header {
    justify-content: space-between;
  }
  .steps li {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
  }
  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Pricing becomes a three-column grid: plan names on top, each feature as a labelled row */
  .tickets,
  .tickets thead,
  .tickets tbody {
    display: block;
  }
  .tickets tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tickets thead th:first-child {
    display: none;
  }
  .tickets th,
  .tickets td {
    padding: 0.6rem 0.75rem;
  }
  .tickets thead th {
    padding-top: 1.25rem;
  }
  .tickets tbody th {
    grid-column: 1 / -1;
    padding-bottom: 0;
    font-size: 0.8rem;
  }
  .tickets tbody tr + tr > * {
    border-top: 0;
  }
  .tickets tbody tr + tr > th {
    border-top: 1px solid #efeaf9;
  }
  .tickets td:first-of-type,
  .tickets thead th:nth-child(2) {
    border-left: 0;
  }
  .tickets .price strong {
    font-size: var(--step-2);
  }
  .tickets caption {
    display: block;
    padding: 1rem 0.75rem 0;
  }
}
