:root {
  --ink: #14342b;
  --paper: #fff8e7;
  --mint: #8be3c2;
  --yellow: #ffd84d;
  --red: #ff5d52;
  --white: #fffdf7;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, system-ui, sans-serif; overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.topbar { max-width: 1180px; margin: auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 23px; text-decoration: none; letter-spacing: -.8px; }
.logo-mark { width: 42px; height: 42px; border: var(--line); border-radius: 50%; display: grid; place-items: center; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.logo-mark::after { content: "Kč"; font-size: 15px; }
.status { font: 500 12px "DM Mono", monospace; text-transform: uppercase; display: flex; gap: 9px; align-items: center; }
.status-dot { width: 10px; height: 10px; background: #18aa6e; border: 2px solid var(--ink); border-radius: 50%; animation: blink 1.8s infinite; }

.hero { position: relative; padding: 44px 28px 110px; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--yellow); top: -75px; left: -190px; z-index: -1; }
.hero-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: .88fr 1.12fr; gap: 76px; align-items: center; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; border: 2px solid var(--ink); border-radius: 99px; padding: 8px 13px; background: var(--white); font: 500 11px "DM Mono", monospace; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
h1 { font-size: clamp(48px, 6.2vw, 85px); line-height: .94; letter-spacing: -5px; margin: 27px 0 24px; }
.hero-copy > p { font-size: 18px; line-height: 1.7; max-width: 470px; margin: 0 0 28px; }
.scribble { display: inline-block; position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; height: 9px; left: 0; right: 0; bottom: -5px; background: var(--red); border-radius: 60% 40%; transform: rotate(-1.5deg); z-index: -1; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; font: 700 12px "DM Mono", monospace; text-transform: uppercase; }
.trust-row span { display: flex; gap: 7px; align-items: center; }
.trust-row b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }

.machine-wrap { position: relative; max-width: 600px; width: 100%; }
.machine { border: var(--line); border-radius: 32px 32px 18px 18px; background: var(--mint); padding: 26px; box-shadow: 13px 15px 0 var(--ink); position: relative; }
.machine-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.machine-title { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.machine-id { font: 500 10px "DM Mono", monospace; background: var(--ink); color: var(--white); padding: 7px 9px; border-radius: 4px; }
.screen { background: var(--ink); color: #baffda; border: 3px solid var(--ink); outline: 3px solid var(--white); outline-offset: -7px; border-radius: 15px; padding: 25px 20px 20px; text-align: center; box-shadow: inset 0 0 30px #071b15; }
.screen small { display: block; font: 500 11px "DM Mono", monospace; text-transform: uppercase; opacity: .72; margin-bottom: 9px; }
.amount { font: 500 clamp(39px, 6vw, 66px)/1 "DM Mono", monospace; letter-spacing: -4px; text-shadow: 0 0 13px rgba(186,255,218,.35); }
.screen-note { font: 500 10px "DM Mono", monospace; margin-top: 9px; opacity: .65; }
.slots-label { font: 800 12px "DM Mono", monospace; text-transform: uppercase; margin: 21px 0 11px; }
.amount-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.amount-btn { border: 2px solid var(--ink); border-radius: 9px; padding: 12px 4px; background: var(--white); font: 700 13px "DM Mono", monospace; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: .15s ease; }
.amount-btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.amount-btn.active { background: var(--yellow); transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.slider-box { border: 2px solid var(--ink); border-radius: 9px; padding: 13px 14px 10px; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.amount-slider { width: 100%; height: 24px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.amount-slider::-webkit-slider-runnable-track { height: 7px; border: 2px solid var(--ink); border-radius: 99px; background: linear-gradient(90deg, var(--yellow) 0 var(--slider-fill, 20%), #d8ddd9 var(--slider-fill, 20%) 100%); }
.amount-slider::-webkit-slider-thumb { appearance: none; width: 23px; height: 23px; margin-top: -10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--red); box-shadow: 2px 2px 0 var(--ink); }
.amount-slider::-moz-range-track { height: 5px; border: 2px solid var(--ink); border-radius: 99px; background: #d8ddd9; }
.amount-slider::-moz-range-progress { height: 5px; background: var(--yellow); }
.amount-slider::-moz-range-thumb { width: 21px; height: 21px; border: 2px solid var(--ink); border-radius: 50%; background: var(--red); box-shadow: 2px 2px 0 var(--ink); }
.slider-scale { display: flex; justify-content: space-between; margin-top: 5px; font: 500 9px "DM Mono", monospace; }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.contact input { width: 100%; min-width: 0; border: 2px solid var(--ink); border-radius: 9px; padding: 13px 14px; background: var(--white); outline: none; font: 500 13px "DM Mono", monospace; }
.contact input:focus { box-shadow: 0 0 0 4px rgba(255,216,77,.8); }
.dispense { border: var(--line); border-radius: 9px; background: var(--red); color: white; padding: 12px 18px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: .16s ease; }
.dispense:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--ink); }
.dispense:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.dispense.loading { opacity: .7; cursor: wait; }
.machine-base { height: 22px; width: 82%; background: var(--ink); margin: 0 auto; border-radius: 0 0 10px 10px; }
.sticker { position: absolute; right: -34px; top: 84px; width: 90px; height: 90px; background: var(--yellow); border: var(--line); border-radius: 50%; display: grid; place-items: center; text-align: center; font: 800 12px/1.1 Manrope; transform: rotate(10deg); box-shadow: 5px 5px 0 var(--ink); z-index: 2; }

.ticker { border-block: var(--line); background: var(--yellow); padding: 15px 0; overflow: hidden; transform: rotate(-1deg) scale(1.01); }
.ticker-track { display: flex; width: max-content; animation: ticker 24s linear infinite; font: 800 15px "DM Mono", monospace; text-transform: uppercase; }
.ticker-track span { padding-right: 42px; }
.how { max-width: 1120px; margin: auto; padding: 110px 28px 120px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.section-head h2 { margin: 0; max-width: 660px; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -3px; }
.section-head p { max-width: 330px; line-height: 1.6; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { min-height: 275px; border: var(--line); border-radius: 17px; padding: 25px; box-shadow: var(--shadow); position: relative; overflow: hidden; background: var(--white); }
.step:nth-child(2) { background: var(--yellow); transform: translateY(18px) rotate(1deg); }
.step:nth-child(3) { background: var(--mint); }
.step-no { font: 500 12px "DM Mono", monospace; }
.step-icon { font-size: 48px; margin: 28px 0 22px; display: block; }
.step h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -1px; }
.step p { margin: 0; line-height: 1.6; font-size: 14px; }
.fineprint { background: var(--ink); color: var(--paper); padding: 30px 28px; }
.fineprint-inner { max-width: 1120px; margin: auto; }
.fineprint p { opacity: .72; font-size: 11px; line-height: 1.7; margin: 0; }
.apply { min-height: calc(100vh - 194px); padding: 45px 20px 90px; position: relative; }
.apply::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--yellow); top: -160px; left: -180px; z-index: -1; }
.apply__inner { width: min(820px, 100%); margin: 0 auto; }
.apply__header { margin-bottom: 28px; text-align: center; }
.apply__step { display: inline-block; border: 2px solid var(--ink); border-radius: 99px; padding: 8px 13px; background: var(--white); font: 500 11px "DM Mono", monospace; }
.apply__header h1 { margin: 20px 0 12px; font-size: clamp(42px, 7vw, 70px); letter-spacing: -4px; }
.apply__header p { margin: 0; font-size: 17px; }
.apply__form { padding: 24px; border: var(--line); border-radius: 24px; background: var(--mint); box-shadow: 11px 12px 0 var(--ink); overflow: hidden; }
.apply__form iframe { display: block; background: var(--white); border-radius: 12px; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .trust-row { justify-content: center; }
  .machine-wrap { margin: auto; }
  .section-head { display: block; }
  .section-head p { margin-top: 20px; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2) { transform: none; }
}
@media (max-width: 560px) {
  .topbar { padding: 18px; }
  .status { display: none; }
  .hero { padding: 32px 16px 82px; }
  h1 { letter-spacing: -3.5px; }
  .machine { padding: 18px; border-radius: 24px 24px 14px 14px; }
  .sticker { width: 72px; height: 72px; right: -8px; top: -38px; font-size: 10px; }
  .amount-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .amount-btn { padding: 11px 2px; font-size: 10px; box-shadow: 2px 2px 0 var(--ink); }
  .slider-box { padding-inline: 10px; }
  .contact { grid-template-columns: 1fr; }
  .dispense { min-height: 52px; }
  .amount { font-size: 39px; letter-spacing: -3px; }
  .how { padding: 85px 18px 95px; }
  .apply { padding: 30px 14px 70px; }
  .apply__form { padding: 10px; border-radius: 17px; box-shadow: 7px 8px 0 var(--ink); }
  .apply__header h1 { letter-spacing: -2.5px; }
}
