/* Dempick – web. Barvy a písma stejné jako aplikace: tmavá, jantarová = akce, zelená = potvrzení. */
@font-face { font-family: "Barlow SC"; src: url("/fonts/BarlowSemiCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow SC"; src: url("/fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0E1012; --card: #181B1F; --line: #2A2F36; --text: #F4F5F6; --muted: #9BA3AD;
  --amber: #FFB020; --on-amber: #14110A; --green: #5BE3A8; --green-bg: #12241C; --green-line: #1F4A37;
  --paper: #F5F6F7; --ink: #14171A; --ink-muted: #5B6470; --paper-line: #E2E5E9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand-name, .num { font-family: "Barlow SC", "Inter", sans-serif; font-weight: 700; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
section { padding: clamp(56px, 8vw, 96px) 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.kicker.dark { color: #9A6400; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border: 0; border-radius: 18px; background: var(--amber); color: var(--on-amber); font-family: "Barlow SC", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 176, 32, .28); }
.btn:active { transform: none; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 16px; border-radius: 13px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.link { font-weight: 600; color: var(--text); text-underline-offset: 4px; }

/* Hlavička */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 16, 18, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--text); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--amber); }
.brand-name { font-size: 24px; letter-spacing: 0.08em; }
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top-nav a { text-decoration: none; color: #C9CED4; }
.top-nav a:hover { color: var(--text); }

/* Úvod */
.hero { background: radial-gradient(900px 520px at 78% 8%, rgba(255, 176, 32, .20), transparent 62%), var(--bg); color: var(--text); padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: clamp(18px, 2vw, 21px); color: #C9CED4; margin-top: 20px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: #C9CED4; font-size: 16px; }
.hero-points li { padding-left: 28px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Telefon s ukázkou */
.hero-visual { display: flex; justify-content: center; }
.phone { width: min(340px, 100%); border-radius: 44px; padding: 12px; background: #1B1E22; border: 1px solid #343A42; box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; position: relative; }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 16px; background: #000; z-index: 2; }
.phone-screen { border-radius: 34px; background: var(--bg); padding: 62px 16px 18px; }
.ph-kicker { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.ph-title { font-family: "Barlow SC", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.1; }
.route { width: 100%; height: auto; margin: 4px 0 2px; }
.route-label { font: 600 10px "Inter", sans-serif; fill: var(--muted); }
.route-run { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jede 5.2s infinite; }
.route-end { animation: dojel 5.2s infinite; }
@keyframes jede { 0% { stroke-dashoffset: 1; animation-timing-function: cubic-bezier(.42, 0, .58, 1); } 72%, 100% { stroke-dashoffset: 0; } }
@keyframes dojel { 0%, 71% { stroke: #4C8DF6; fill: rgba(76, 141, 246, .18); } 74%, 96% { stroke: var(--green); fill: rgba(91, 227, 168, .22); } 100% { stroke: #4C8DF6; fill: rgba(76, 141, 246, .18); } }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tile { background: var(--card); border-radius: 14px; padding: 10px 12px; }
.ph-tile span { display: block; font-size: 11px; color: var(--muted); }
.ph-tile b { font-family: "Barlow SC", sans-serif; font-size: 34px; line-height: 1.05; }
.amber { color: var(--amber); }
.ph-strip { margin-top: 8px; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.ph-strip.ok { background: var(--green-bg); border: 1px solid var(--green-line); color: #D7F7E8; }
.ph-day { margin-top: 8px; background: var(--card); border-radius: 14px; padding: 10px 12px; }
.ph-day > div:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.ph-day span { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.chip { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 4px 7px; border-radius: 7px; }
.chip.ok { background: var(--green-bg); color: var(--green); }
.pop { animation: pop .5s ease; }
@keyframes pop { 40% { transform: scale(1.22); color: var(--green); } }

/* Mřížky a karty */
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .feat { background: #fff; border: 1px solid var(--paper-line); border-radius: 20px; padding: 24px; }
.card p, .feat p { color: var(--ink-muted); margin-top: 10px; font-size: 16px; }
.pain h3 { font-size: 23px; }

/* Jak to funguje */
.how { background: #fff; border-block: 1px solid var(--paper-line); }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { position: relative; padding-top: 6px; }
.num { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 16px; background: var(--amber); color: var(--on-amber); font-size: 30px; margin-bottom: 16px; }
.steps p { color: var(--ink-muted); margin-top: 10px; }

/* Pro koho */
.roles { background: var(--bg); color: var(--text); }
.role { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.role h3 { font-size: 30px; font-weight: 700; }
.role-sub { color: var(--amber); font-weight: 600; margin-top: 6px; }
.role ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #C9CED4; font-size: 16px; }
.role li { padding-left: 22px; position: relative; }
.role li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--amber); }

/* Co není */
.honest { background: #fff; border-block: 1px solid var(--paper-line); }
.honest-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.honest p { color: var(--ink-muted); }
.honest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.honest li { padding: 16px 18px; border: 1px solid var(--paper-line); border-radius: 16px; background: var(--paper); color: var(--ink-muted); }
.honest b { color: var(--ink); }

/* Otázky */
details { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: 0 20px; margin-top: 10px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 600 26px "Barlow SC", sans-serif; color: #9A6400; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-muted); padding-bottom: 18px; }

/* Poptávka */
.cta { background: radial-gradient(800px 480px at 12% 0%, rgba(255, 176, 32, .16), transparent 60%), var(--bg); color: var(--text); }
.cta-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cta-text p { color: #C9CED4; font-size: 19px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #C9CED4; }
.form input:not([type=radio]), .form textarea { width: 100%; padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 17px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-size: 14px; font-weight: 600; color: #C9CED4; margin-bottom: 6px; padding: 0; }
.form .radio { display: inline-flex; }
.form .radio input { position: absolute; opacity: 0; }
.form .radio span { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 600; cursor: pointer; }
.form .radio input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.form .radio input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.opt { font-weight: 400; color: var(--muted); }
.form-note { min-height: 1.4em; font-weight: 600; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #FF6B5E; }
.form-legal { font-size: 13px; color: var(--muted); }

/* Patička */
.foot { background: #08090A; color: var(--muted); padding: 34px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot .brand { color: var(--text); }
.foot nav { display: flex; gap: 20px; }
.foot-note { margin-left: auto; }

/* Textové stránky a stránky odkazů z aplikace */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink-muted); margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc .stamp { font-size: 14px; }
.dark-page { background: var(--bg); color: var(--text); min-height: 100vh; }
.box { width: min(440px, 100% - 40px); margin-inline: auto; padding: 40px 0; display: grid; gap: 16px; }
.box h1 { font-size: 38px; }
.box p { color: var(--muted); }
.panel { background: var(--card); border-radius: 20px; padding: 20px; display: grid; gap: 12px; }
.panel small { color: var(--muted); font-size: 14px; }
.code { font-family: "Barlow SC", sans-serif; font-weight: 700; font-size: 52px; letter-spacing: .08em; line-height: 1; }
.btn.big { min-height: 72px; font-size: 22px; border-radius: 22px; }
.warn { color: var(--amber); }

@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero-in, .cta-in, .honest-in { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three, .steps { grid-template-columns: 1fr 1fr; }
  .foot-note { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid.four, .grid.three, .grid.two, .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn.small { width: auto; }
  .hero-cta { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .route-run, .route-end, .pop { animation: none; }
  .route-run { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
