@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/fonts/onest-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/fonts/onest-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Onest"; font-weight: 600; font-display: swap; src: url("/fonts/onest-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/fonts/onest-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Onest"; font-weight: 800; font-display: swap; src: url("/fonts/onest-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("/fonts/onest-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Fragment Mono"; font-weight: 400; font-display: swap; src: url("/fonts/fragment-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+2713; }
@font-face { font-family: "Fragment Mono"; font-weight: 400; font-display: swap; src: url("/fonts/fragment-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FCFCF8;      /* termopapír */
  --ink: #17201F;        /* tisk */
  --teal: #0B5D63;       /* barva aplikace */
  --deep: #073F43;       /* pozadí úvodu */
  --mist: #D5E4E2;       /* dlaždice v pokladně */
  --fade: #5E6B69;       /* vybledlý tisk */
  --page: #EEF3F2;

  --sans: "Onest", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--sans);
  font-feature-settings: "ss01";
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #F2B84B; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* ---------- úvod ---------- */
.hero {
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}
.bar {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1rem;
}
@media (min-width: 48rem) { .bar { padding: 1.5rem 2rem; } }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: var(--step-1); text-decoration: none; letter-spacing: -.01em; }
.bar-link { font-weight: 600; text-decoration: none; padding: .4rem .2rem; border-bottom: 2px solid rgba(252,252,248,.35); }
.bar-link:hover { border-color: var(--paper); }

.hero-grid {
  max-width: 72rem; margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: grid; gap: 1rem;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: start; padding: 3rem 2rem 0; gap: 3rem; }
}
.hero-text { padding-bottom: 3rem; }
@media (min-width: 60rem) { .hero-text { padding: 2.5rem 0 6rem; } }
h1 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; max-width: 36rem; color: #DCE9E7; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hint { margin-top: 1rem; font-size: var(--step--1); color: #A9C4C1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.4rem;
  border-radius: .75rem;
  font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--paper); color: var(--deep); }
.btn-primary:hover { background: #fff; }
.btn-quiet { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(252,252,248,.45); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.btn-ink { color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ink:hover { background: var(--teal); color: var(--paper); }

/* ---------- tiskárna a účtenka ---------- */
.printer { position: relative; justify-self: center; width: min(100%, 24rem); }
@media (min-width: 60rem) { .printer { justify-self: end; margin-top: 1rem; } }
.slot {
  position: relative; z-index: 2;
  height: 1.1rem; margin: 0 -.6rem;
  background: #042C2F;
  border-radius: .55rem;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,.06);
}
.paper-clip { position: relative; z-index: 1; margin-top: -.55rem; overflow: hidden; padding-bottom: 14px; }
.paper {
  --tooth: 14px;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(.875rem, .8rem + .3vw, 1rem)/1.65 var(--mono);
  padding: 2rem 1.4rem 1.5rem;
  animation: print 2.4s steps(24, end) .3s both;
}
.paper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--tooth) * -1);
  height: var(--tooth);
  background:
    linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x,
    linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / var(--tooth) var(--tooth) repeat-x;
}
@keyframes print { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.r-center { text-align: center; }
.r-strong { font-size: 1.05rem; letter-spacing: .08em; }
.r-line { display: flex; justify-content: space-between; gap: 1rem; }
.r-line span:last-child { text-align: right; }
.r-total { font-size: 1.05rem; margin: .2rem 0; }
.paper .r-rule { height: 0; border-top: 1.5px dashed #9AA4A2; margin: .7rem 0; }

/* ---------- sekce ---------- */
main section { padding: 5rem 0; }
@media (min-width: 48rem) { main section { padding: 7rem 0; } }
h2 { font-size: var(--step-2); font-weight: 800; letter-spacing: -.02em; max-width: 24ch; }
@media (min-width: 48rem) { h2 { font-size: 2.5rem; } }
.section-lead { margin-top: 1rem; max-width: 40rem; font-size: var(--step-1); line-height: 1.5; color: var(--fade); }

/* režimy: délka pásku = velikost provozu */
.mode-list {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: 2.5rem;
}
@media (min-width: 40rem) { .mode-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .mode-list { grid-template-columns: repeat(4, 1fr); gap: 2rem; } .mode-list li::before { content: none; } .strip-box { height: 9rem; } }
.mode-list li { display: flex; flex-direction: column; }
.strip-box { display: flex; align-items: flex-end; margin-bottom: 1.25rem; }
.strip {
  display: block; width: 3.25rem;
  height: calc(var(--len) * 2.25rem);
  background:
    repeating-linear-gradient(to bottom, transparent 0 .55rem, var(--mist) .55rem calc(.55rem + 3px), transparent calc(.55rem + 3px) 1.1rem) .6rem .7rem / 2rem calc(100% - 1.4rem) no-repeat,
    var(--paper);
  border-top: 4px solid var(--teal);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% calc(100% - 6px), 75% 100%, 62.5% calc(100% - 6px), 50% 100%, 37.5% calc(100% - 6px), 25% 100%, 12.5% calc(100% - 6px), 0 100%);
}
.mode-list h3 { font-size: var(--step-1); font-weight: 800; }
.mode-list p { margin-top: .5rem; color: var(--fade); max-width: 32ch; }

.screens { background: var(--mist); }
.shots { margin-top: 3rem; display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 56rem) { .shots { grid-template-columns: 2.6fr 1fr; gap: 2rem; } }
.shot { margin: 0; }
.shot img {
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(7,63,67,.12), 0 18px 40px -18px rgba(7,63,67,.45);
}
.shot figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--fade); }
.shot-tab { max-width: 20rem; }

.feature-list {
  margin: 3rem 0 0;
  display: grid; gap: 0 3rem;
}
@media (min-width: 48rem) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list > div { padding: 1.5rem 0; border-top: 1.5px dashed #A9B6B4; }
.feature-list dt { font-weight: 800; font-size: var(--step-1); }
.feature-list dd { margin: .5rem 0 0; color: var(--fade); max-width: 34rem; }

.status { background: var(--paper); }
.status-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .status-grid { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.status p { margin-top: 1.25rem; max-width: 40rem; }
.status-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56rem) { .status-actions { justify-content: flex-end; } }
.status .btn-primary { background: var(--teal); color: var(--paper); }
.status .btn-primary:hover { background: var(--deep); }
.pin { font-family: var(--mono); background: var(--mist); padding: .05rem .4rem; border-radius: .3rem; }

.foot { background: var(--deep); color: #A9C4C1; font-size: var(--step--1); padding: 2rem 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.foot a { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .paper { animation: none; }
  .btn { transition: none; }
}
