:root {
  color-scheme: light dark;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --ink: #14202b;
  --muted: #53606b;
  --line: #d9d4c8;
  --brand: #0f6cbd;
  --brand-strong: #0b5697;
  --on-brand: #ffffff;
  --band: #14202b;
  --on-band: #f6f3ec;
  --on-band-muted: #b9c3cb;
  --kitchen: #14202b;
  --on-kitchen: #f6f3ec;
  --timer: #ffc65c;
  --ticket: #ffffff;
  --on-ticket: #1b1b1b;
  --shadow: 0 18px 40px rgb(20 32 43 / 16%);
  --sans: 'Avenir Next', Avenir, 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14202b;
    --surface: #1c2a37;
    --ink: #eef1f3;
    --muted: #a9b5bf;
    --line: #33434f;
    --brand: #4aa3ec;
    --brand-strong: #74b9f1;
    --on-brand: #0b1a26;
    --band: #0f6cbd;
    --on-band: #ffffff;
    --on-band-muted: #e2effa;
    --kitchen: #0d161e;
    --shadow: 0 18px 40px rgb(0 0 0 / 38%);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

img {
  display: block;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--ink);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.button:hover {
  background: var(--brand-strong);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.button-light {
  background: #ffffff;
  color: #0b5697;
}

.button-light:hover {
  background: #e7f2fb;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 4px;
}

/* Type */

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

h2 {
  max-width: 19em;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.17rem;
}

/* Hero */

.hero {
  padding: 68px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 48px;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 500px;
  margin-inline: auto;
}

.tablet,
.kitchen,
.receipt {
  position: absolute;
  box-shadow: var(--shadow);
}

.tablet {
  top: 10px;
  left: 0;
  width: 64%;
  padding: 20px;
  background: var(--surface);
  border: 9px solid #101820;
  border-radius: 24px;
}

.tablet-bar,
.tablet-total,
.lines li,
.kitchen-head,
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tablet-bar {
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tablet-bar strong {
  font-size: 1.3rem;
}

.tablet-bar span {
  color: var(--muted);
  font-size: 0.85rem;
}

.lines {
  padding: 8px 0;
}

.lines li {
  padding: 8px 0;
  font-size: 0.98rem;
}

.lines b,
.kitchen b {
  display: inline-block;
  min-width: 1.45em;
  color: var(--brand);
}

.tablet-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.tablet-send {
  margin-top: 14px;
  padding: 13px;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 9px;
  font-weight: 650;
  text-align: center;
}

.kitchen {
  right: 0;
  bottom: 12px;
  width: 52%;
  padding: 16px 18px;
  background: var(--kitchen);
  color: var(--on-kitchen);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  font-size: 0.94rem;
}

.kitchen-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.kitchen-head span {
  color: var(--timer);
  font-family: var(--mono);
  font-weight: 600;
}

.kitchen b {
  color: var(--timer);
}

.receipt {
  top: 0;
  right: 1%;
  width: 33%;
  padding: 16px 14px 20px;
  background: var(--ticket);
  color: var(--on-ticket);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.55;
  transform: rotate(2.5deg);
  animation: print 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.receipt-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}

.receipt > p:nth-child(2),
.receipt-thanks {
  text-align: center;
}

.receipt-rule {
  margin: 7px 0;
  border-top: 1px dashed #777777;
}

.receipt-total {
  font-weight: 700;
}

.receipt-thanks {
  margin-top: 8px;
}

/* Motion only: the receipt stays visible even if the animation never runs. */
@keyframes print {
  from {
    transform: translateY(-14px) rotate(2.5deg);
  }
}

/* Sections */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 2px dashed var(--line);
}

.steps li {
  padding: 22px 24px 0 0;
}

.steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
}

h3,
dt {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h3 {
  margin: 10px 0 8px;
}

.steps p,
.features dd {
  color: var(--muted);
  font-size: 1rem;
}

.offline {
  padding: 72px 0;
  background: var(--band);
  color: var(--on-band);
}

.offline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.offline p {
  color: var(--on-band-muted);
  font-size: 1.1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  margin-top: 36px;
}

.features > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.features dt {
  font-size: 1.03rem;
}

.needs {
  background: var(--surface);
}

.needs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.needs li {
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.needs li:first-child {
  padding-top: 0;
}

.closing {
  padding: 88px 0;
  background: #0f6cbd;
  color: #ffffff;
  text-align: center;
}

.closing h2 {
  margin-inline: auto;
}

.closing p {
  margin: 14px auto 28px;
  color: #e2effa;
  font-size: 1.12rem;
}

.closing .closing-mail {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.site-footer {
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 20px;
}

/* 404 */

.not-found {
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.not-found img {
  margin: 0 auto 22px;
  border-radius: 12px;
}

.not-found h1 {
  max-width: 13em;
  margin-bottom: 28px;
  font-size: clamp(2rem, 6vw, 3.2rem);
}

/* Smaller screens */

@media (max-width: 980px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid,
  .offline-grid,
  .needs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 40px;
  }

  .offline-grid,
  .needs-grid {
    gap: 22px;
  }

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

  .steps li {
    padding-bottom: 26px;
  }

  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .nav-link {
    display: none;
  }

  .section,
  .closing {
    padding: 64px 0;
  }

  .actions .button {
    width: 100%;
  }

  .stage {
    height: 545px;
  }

  .tablet {
    top: 0;
    width: 100%;
    padding: 14px;
    border-width: 7px;
  }

  .lines li {
    padding: 5px 0;
    font-size: 0.9rem;
  }

  .kitchen {
    top: 335px;
    bottom: auto;
    width: 55%;
    padding: 12px 14px;
    font-size: 0.84rem;
  }

  .receipt {
    top: 335px;
    right: auto;
    left: 4px;
    width: 39%;
    font-size: 0.58rem;
  }

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

  .steps li,
  .steps li + li,
  .steps li:nth-child(3) {
    padding: 20px 0;
    border-left: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--line);
  }

  .features > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

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

  .receipt {
    animation: none;
  }

  .button {
    transition: none;
  }
}
